Re: [PATCH] nvmem: layouts: Add fixed-layout driver
From: Mathieu Dubois-Briand
Date: Mon May 11 2026 - 11:27:57 EST
On Mon May 11, 2026 at 3:06 PM CEST, kernel test robot wrote:
> Hi Mathieu,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on 7fd2df204f342fc17d1a0bfcd474b24232fb0f32]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Mathieu-Dubois-Briand/nvmem-layouts-Add-fixed-layout-driver/20260511-170834
> base: 7fd2df204f342fc17d1a0bfcd474b24232fb0f32
> patch link: https://lore.kernel.org/r/20260505-mathieu-nvmem-fixed-layout-v1-1-7f6ecbce108d%40bootlin.com
> patch subject: [PATCH] nvmem: layouts: Add fixed-layout driver
> config: sh-defconfig (https://download.01.org/0day-ci/archive/20260511/202605112100.08bk8fTf-lkp@xxxxxxxxx/config)
> compiler: sh4-linux-gcc (GCC) 15.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260511/202605112100.08bk8fTf-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/202605112100.08bk8fTf-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> sh4-linux-ld: drivers/nvmem/layouts/fixed-layout.o: in function `fixed_layout_layout_init':
>>> fixed-layout.c:(.init.text+0x18): undefined reference to `__nvmem_layout_driver_register'
> sh4-linux-ld: drivers/nvmem/layouts/fixed-layout.o: in function `fixed_layout_layout_exit':
>>> fixed-layout.c:(.exit.text+0x14): undefined reference to `nvmem_layout_driver_unregister'
I confirm this is an issue. I will make sure this is fixed in v2.
My current plan is to modify drivers/nvmem/layouts/Makefile:
-obj-y += fixed-layout.o
+obj-$(CONFIG_NVMEM_LAYOUTS) += fixed-layout.o
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com