Skip to contentSkip to conversation

ld.lld: error: undefined symbol: led_classdev_multicolor_unregister

DISCUSSION kernel test robot 2 participants 2 messages Sep 17 – Sep 18

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b5a051f6b840d48f159166ef073d3021989bfb50
commit: 721d90c8509aee195c3714b70c4cff612fbb3a1c wifi: rtw89: add multicolor LED support for RTL8852CU valve board
date:   8 weeks ago
config: hexagon-randconfig-r072-20260915 (https://download.01.org/0day-ci/archive/20260917/[email protected]/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260917/[email protected]/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

| Fixes: 721d90c8509a ("wifi: rtw89: add multicolor LED support for RTL8852CU valve board")
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: led_classdev_multicolor_register_ext
   >>> referenced by led_mc.c:67 (drivers/net/wireless/realtek/rtw89/led_mc.c:67)
   >>>               drivers/net/wireless/realtek/rtw89/led_mc.o:(rtw89_led_mc_init) in archive vmlinux.a
   >>> referenced by led_mc.c:67 (drivers/net/wireless/realtek/rtw89/led_mc.c:67)
   >>>               drivers/net/wireless/realtek/rtw89/led_mc.o:(rtw89_led_mc_init) in archive vmlinux.a
--
>> ld.lld: error: undefined symbol: led_classdev_multicolor_unregister
   >>> referenced by led_mc.c:80 (drivers/net/wireless/realtek/rtw89/led_mc.c:80)
   >>>               drivers/net/wireless/realtek/rtw89/led_mc.o:(rtw89_led_mc_deinit) in archive vmlinux.a
   >>> referenced by led_mc.c:80 (drivers/net/wireless/realtek/rtw89/led_mc.c:80)
   >>>               drivers/net/wireless/realtek/rtw89/led_mc.o:(rtw89_led_mc_deinit) in archive vmlinux.a

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

#1 lore raw
Quoted 13 lines · kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b5a051f6b840d48f159166ef073d3021989bfb50
commit: 721d90c8509aee195c3714b70c4cff612fbb3a1c wifi: rtw89: add multicolor LED support for RTL8852CU
valve board
date:   8 weeks ago
config: hexagon-randconfig-r072-20260915

(https://download.01.org/0day-ci/archive/20260917/[email protected]/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project
6009708b4367171ccdbf4b5905cb6a803753fe18)
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build):
(https://download.01.org/0day-ci/archive/20260917/[email protected]/reproduce)

Quoted 9 lines

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

| Fixes: 721d90c8509a ("wifi: rtw89: add multicolor LED support for RTL8852CU valve board")
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

ld.lld: error: undefined symbol: led_classdev_multicolor_register_ext

Thanks for the report. This is because multicolor is kernel module

CONFIG_LEDS_CLASS_MULTICOLOR=m

but rtw89 is built-in

CONFIG_RTW89=y
CONFIG_RTW89_LEDS_MC=y

Correct the dependency in Kconfig to avoid this case. [1]

[1] https://lore.kernel.org/linux-wireless/[email protected]/T/#u