Re: [linux-next:master 11496/12841] ld.lld: error: undefined symbol: led_mc_calc_color_components
From: Jiri Kosina <hidden>
Date: 2021-11-01 14:13:29
Also in:
llvm, oe-kbuild-all
Subsystem:
hid core layer, the rest · Maintainers:
Jiri Kosina, Benjamin Tissoires, Linus Torvalds
On Sat, 30 Oct 2021, kernel test robot wrote:
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: bdcc9f6a568275aed4cc32fd2312432d2ff1b704 commit: fc97b4d6a1a6d418fd4053fd7716eca746fdd163 [11496/12841] HID: playstation: expose DualSense lightbar through a multi-color LED. config: hexagon-randconfig-r013-20211028 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fc97b4d6a1a6d418fd4053fd7716eca746fdd163 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout fc97b4d6a1a6d418fd4053fd7716eca746fdd163 # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All errors (new ones prefixed by >>):quoted
quoted
ld.lld: error: undefined symbol: devm_led_classdev_multicolor_register_ext>>> referenced by hid-playstation.c >>> hid/hid-playstation.o:(ps_lightbar_register) in archive drivers/built-in.a >>> referenced by hid-playstation.c >>> hid/hid-playstation.o:(ps_lightbar_register) in archive drivers/built-in.a --quoted
quoted
ld.lld: error: undefined symbol: led_mc_calc_color_components>>> referenced by hid-playstation.c >>> hid/hid-playstation.o:(dualsense_lightbar_set_brightness) in archive drivers/built-in.a >>> referenced by hid-playstation.c >>> hid/hid-playstation.o:(dualsense_lightbar_set_brightness) in archive drivers/built-in.a
From: Jiri Kosina <redacted> Subject: [PATCH] HID: playstation: require multicolor LED functionality The driver requires multicolor LED support; express that in Kconfig. Reported-by: kernel test robot <redacted> Signed-off-by: Jiri Kosina <redacted> --- drivers/hid/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 3c33bf572d6d..d78b1c1fb97e 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig@@ -868,6 +868,7 @@ config HID_PLANTRONICS config HID_PLAYSTATION tristate "PlayStation HID Driver" depends on HID + depends on LEDS_CLASS_MULTICOLOR select CRC32 select POWER_SUPPLY help
--
Jiri Kosina
SUSE Labs