Re: [paulmck-rcu:dev.2024.04.04b 59/65] controller.c:undefined reference to `cmpxchg_emu_u8'

From: Paul E. McKenney
Date: Tue Apr 09 2024 - 12:00:09 EST


On Tue, Apr 09, 2024 at 08:56:05AM -0700, Paul E. McKenney wrote:
> On Tue, Apr 09, 2024 at 02:44:49PM +0800, kernel test robot wrote:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2024.04.04b
> > head: e2a520f3f3921cb5d3c9631917fccf8c215991ce
> > commit: 5ce37a62e3d207bd20d4c850c4547816c0dd9c22 [59/65] EXP arch/x86: Test one-byte cmpxchg emulation
> > config: i386-buildonly-randconfig-006-20240409 (https://download.01.org/0day-ci/archive/20240409/202404091402.CYa0g4R6-lkp@xxxxxxxxx/config)
> > compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240409/202404091402.CYa0g4R6-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/202404091402.CYa0g4R6-lkp@xxxxxxxxx/
> >
> > All errors (new ones prefixed by >>):
> >
> > ld: drivers/platform/surface/aggregator/controller.o: in function `ssam_request_write_data':
> > >> controller.c:(.text+0xcdf): undefined reference to `cmpxchg_emu_u8'
>
> I believe that this is fixed in this updated version:
>
> b8eb8a06afe1 ("EXP arch/x86: Test one-byte cmpxchg emulation")
>
> But please let me know if I am missing something here.

OK, what I am missing is my failure to have changed ARCH_NEED_CMPXCHG_1_2_EMU
to ARCH_NEED_CMPXCHG_1_EMU. On it! And yet again, thank you for your testing
efforts.

Thanx, Paul