Re: cs42l43.c:undefined reference to `devm_regmap_add_irq_chip'

From: Charles Keepax
Date: Tue Sep 12 2023 - 05:21:34 EST


On Tue, Sep 12, 2023 at 06:29:42AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
> commit: ace6d14481386ec6c1b63cc2b24c71433a583dc2 mfd: cs42l43: Add support for cs42l43 core driver
> date: 4 weeks ago
> config: nios2-randconfig-r013-20230912 (https://download.01.org/0day-ci/archive/20230912/202309120614.y7xm6iqp-lkp@xxxxxxxxx/config)
> compiler: nios2-linux-gcc (GCC) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230912/202309120614.y7xm6iqp-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/202309120614.y7xm6iqp-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> nios2-linux-ld: drivers/mfd/cs42l43.o: in function `cs42l43_boot_work':
> >> cs42l43.c:(.text+0x614): undefined reference to `devm_regmap_add_irq_chip'
> cs42l43.c:(.text+0x614): relocation truncated to fit: R_NIOS2_CALL26 against `devm_regmap_add_irq_chip'
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki

This should be fixed by this patch:

https://lore.kernel.org/lkml/20230905133406.GM103419@xxxxxxxxxxxxxxxxxxxxxxx/T/

Thanks,
Charles