Re: db1000.c:undefined reference to `mmc_detect_change'

From: Christoph Hellwig
Date: Mon Sep 04 2023 - 09:24:04 EST


Ok, looks like the problem is that the mips arch code is still built
without the au1mmc driver. I think the code just needs to become
conditional, I'll look into it.

On Sun, Sep 03, 2023 at 01:47:19PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 92901222f83d988617aee37680cb29e1a743b5e4
> commit: d4a5c59a955bba96b273ec1a5885bada24c56979 mmc: au1xmmc: force non-modular build and remove symbol_get usage
> date: 4 weeks ago
> config: mips-randconfig-r003-20230903 (https://download.01.org/0day-ci/archive/20230903/202309031319.FjILvr3H-lkp@xxxxxxxxx/config)
> compiler: mipsel-linux-gcc (GCC) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230903/202309031319.FjILvr3H-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/202309031319.FjILvr3H-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> mipsel-linux-ld: arch/mips/alchemy/devboards/db1000.o: in function `db1100_mmc_cd':
> >> db1000.c:(.text+0x1f0): undefined reference to `mmc_detect_change'
> mipsel-linux-ld: arch/mips/alchemy/devboards/db1200.o: in function `pb1200_mmc1_cdfn':
> >> db1200.c:(.text+0x3b0): undefined reference to `mmc_detect_change'
> mipsel-linux-ld: arch/mips/alchemy/devboards/db1200.o: in function `db1200_mmc_cdfn':
> db1200.c:(.text+0x428): undefined reference to `mmc_detect_change'
> mipsel-linux-ld: arch/mips/alchemy/devboards/db1300.o: in function `db1300_mmc_cdfn':
> >> db1300.c:(.text+0x240): undefined reference to `mmc_detect_change'
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
---end quoted text---