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:07:12 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: hexagon-randconfig-1001-20261027 (https://download.01.org/0day-ci/archive/20261027/202610271602.GRxskiKw-lkp@xxxxxxxxx/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 186e70f4e6a1521991d2340d3d49b23b1beff11f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261027/202610271602.GRxskiKw-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/202610271602.GRxskiKw-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> drivers/nvmem/core.c:1327:12: warning: function 'nvmem_layout_module_get_optional' has internal linkage but is not defined [-Wundefined-internal]
1327 | static int nvmem_layout_module_get_optional(struct nvmem_device *nvmem);
| ^
drivers/nvmem/core.c:1356:8: note: used here
1356 | if (nvmem_layout_module_get_optional(nvmem)) {
| ^
1 warning generated.
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