[PATCH] mtd: rawnand: ndfc: add CONFIG_OF dependency

Miquel Raynal miquel.raynal at bootlin.com
Mon Jun 29 07:44:10 PDT 2026


On Thu, 18 Jun 2026 22:58:27 +0200, Arnd Bergmann wrote:
> When compile-testing on x86 without CONFIG_OF, the ndfc driver produces
> a harmless warning:
> 
> drivers/mtd/nand/raw/ndfc.c: In function 'ndfc_probe':
> include/linux/dev_printk.h:154:31: error: 'len' is used uninitialized [-Werror=uninitialized]
>   154 |         dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
>       |                               ^
> drivers/mtd/nand/raw/ndfc.c:196:17: note: in expansion of macro 'dev_err'
>   196 |                 dev_err(&ofdev->dev, "unable read reg property (%d)\n", len);
> 
> [...]

Applied to mtd/fixes, thanks!

[1/1] mtd: rawnand: ndfc: add CONFIG_OF dependency
      commit: 97f9e509d839f7e5b9a32105ae322e5223c86786

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl




More information about the linux-mtd mailing list