Re: [PATCH] nvmem: core: balance the layout module ref in nvmem_cell_get_from_lookup()

From: kernel test robot

Date: Tue Oct 27 2026 - 05:48:28 EST


Hi Yu,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v7.3 next-20261026]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Yu-Zhang/nvmem-core-balance-the-layout-module-ref-in-nvmem_cell_get_from_lookup/20261026-225709
base: linus/master
patch link: https://lore.kernel.org/r/20261026125709.73500-1-yuz08559%40gmail.com
patch subject: [PATCH] nvmem: core: balance the layout module ref in nvmem_cell_get_from_lookup()
config: parisc-defconfig (https://download.01.org/0day-ci/archive/20261027/202610271703.wiO2VfuK-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261027/202610271703.wiO2VfuK-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610271703.wiO2VfuK-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/nvmem/core.c:1327:12: warning: 'nvmem_layout_module_get_optional' used but never defined
1327 | static int nvmem_layout_module_get_optional(struct nvmem_device *nvmem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/nvmem_layout_module_get_optional +1327 drivers/nvmem/core.c

1326
> 1327 static int nvmem_layout_module_get_optional(struct nvmem_device *nvmem);
1328 static void nvmem_layout_module_put(struct nvmem_device *nvmem);
1329

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki