Re: [PATCH] Revert "nvmem: add new config option"

From: Rafał Miłecki
Date: Tue Jul 18 2023 - 13:36:38 EST


On 2023-07-18 18:00, kernel test robot wrote:
drivers/mtd/mtdcore.c: In function 'mtd_nvmem_add':
drivers/mtd/mtdcore.c:542:29: warning: unused variable 'node' [-Wunused-variable]
542 | struct device_node *node = mtd_get_of_node(mtd);
| ^~~~

My patch I mentioned:
[PATCH V4] nvmem: add explicit config option to read old syntax fixed OF cells

adds following line:
config.add_legacy_fixed_of_cells = of_device_is_compatible(node, "nvmem-cells");

So this is a false kernel bot warning (but I understand kernel bot
couldn't understand it needs my other patch).