[hid:for-5.16/playstation 1/4] drivers/hid/hid-playstation.c:816: undefined reference to `led_mc_calc_color_components'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-5.16/playstation
head:   3c92cb4cb60c71b574e47108ead8b6f0470850db
commit: fc97b4d6a1a6d418fd4053fd7716eca746fdd163 [1/4] HID: playstation: expose DualSense lightbar through a multi-color LED.
config: i386-randconfig-a016-20211027 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?id=fc97b4d6a1a6d418fd4053fd7716eca746fdd163
        git remote add hid https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git
        git fetch --no-tags hid for-5.16/playstation
        git checkout fc97b4d6a1a6d418fd4053fd7716eca746fdd163
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   ld: drivers/hid/hid-playstation.o: in function `dualsense_lightbar_set_brightness':
>> drivers/hid/hid-playstation.c:816: undefined reference to `led_mc_calc_color_components'
   ld: drivers/hid/hid-playstation.o: in function `devm_led_classdev_multicolor_register':
>> include/linux/led-class-multicolor.h:105: undefined reference to `devm_led_classdev_multicolor_register_ext'


vim +816 drivers/hid/hid-playstation.c

   808	
   809	static int dualsense_lightbar_set_brightness(struct led_classdev *cdev,
   810		enum led_brightness brightness)
   811	{
   812		struct led_classdev_mc *mc_cdev = lcdev_to_mccdev(cdev);
   813		struct dualsense *ds = container_of(mc_cdev, struct dualsense, lightbar);
   814		uint8_t red, green, blue;
   815	
 > 816		led_mc_calc_color_components(mc_cdev, brightness);
   817		red = mc_cdev->subled_info[0].brightness;
   818		green = mc_cdev->subled_info[1].brightness;
   819		blue = mc_cdev->subled_info[2].brightness;
   820	
   821		dualsense_set_lightbar(ds, red, green, blue);
   822		return 0;
   823	}
   824	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux