linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [hid:for-5.16/playstation 1/4] drivers/hid/hid-playstation.c:816: undefined reference to `led_mc_calc_color_components'
@ 2021-10-28  2:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-28  2:58 UTC (permalink / raw)
  To: Roderick Colenbrander; +Cc: kbuild-all, linux-input, Jiri Kosina

[-- Attachment #1: Type: text/plain, Size: 2178 bytes --]

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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31542 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-28  2:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-28  2:58 [hid:for-5.16/playstation 1/4] drivers/hid/hid-playstation.c:816: undefined reference to `led_mc_calc_color_components' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).