Re: other.c:undefined reference to `devm_led_classdev_register_ext'

From: Hans de Goede
Date: Tue May 21 2024 - 05:47:15 EST


Hi,

On 5/18/24 4:09 PM, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 4b377b4868ef17b040065bd468668c707d2477a5
> commit: 9426adb0326a87ed2fa9d010c4c18189047e0c11 platform/x86: x86-android-tablets: Create LED device for Xiaomi Pad 2 bottom bezel touch buttons
> date: 4 days ago
> config: i386-buildonly-randconfig-004-20240118 (https://download.01.org/0day-ci/archive/20240518/202405182256.FsKBjIzG-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/20240518/202405182256.FsKBjIzG-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/202405182256.FsKBjIzG-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> ld: drivers/platform/x86/x86-android-tablets/other.o: in function `xiaomi_mipad2_init':
>>> other.c:(.init.text+0x97): undefined reference to `devm_led_classdev_register_ext'

My bad config X86_ANDROID_TABLETS now needs a "select NEW_LEDS" + "select LEDS_CLASS"
I'll submit a patch fixing this and include it in the first pdx86 fixes pull-request for 6.10.

Regards,

Hans