linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 2040/3984] drivers/leds/leds-blinkm.c:440:undefined reference to `led_mc_calc_color_components'
@ 2024-08-11  9:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-08-11  9:23 UTC (permalink / raw)
  To: Joseph Strauss; +Cc: oe-kbuild-all, Linux Memory Management List, Lee Jones

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   61c01d2e181adfba02fe09764f9fca1de2be0dbe
commit: 56e8c56c9af0df8b6de7bc4b6d9a2f4570b055db [2040/3984] leds: Add multicolor support to BlinkM LED driver
config: m68k-randconfig-r064-20240811 (https://download.01.org/0day-ci/archive/20240811/202408111700.OhOvZxD1-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240811/202408111700.OhOvZxD1-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408111700.OhOvZxD1-lkp@intel.com/

All errors (new ones prefixed by >>):

   m68k-linux-ld: drivers/leds/leds-blinkm.o: in function `blinkm_set_mc_brightness':
>> drivers/leds/leds-blinkm.c:440:(.text+0x4b2): undefined reference to `led_mc_calc_color_components'
   m68k-linux-ld: drivers/leds/leds-blinkm.o: in function `blinkm_probe':
>> include/linux/led-class-multicolor.h:70:(.text+0x740): undefined reference to `led_classdev_multicolor_register_ext'


vim +440 drivers/leds/leds-blinkm.c

   432	
   433	static int blinkm_set_mc_brightness(struct led_classdev *led_cdev,
   434					 enum led_brightness value)
   435	{
   436		struct led_classdev_mc *mcled_cdev = lcdev_to_mccdev(led_cdev);
   437		struct blinkm_led *led = mcled_cdev_to_led(mcled_cdev);
   438		struct blinkm_data *data = i2c_get_clientdata(led->i2c_client);
   439	
 > 440		led_mc_calc_color_components(mcled_cdev, value);
   441	
   442		data->next_red = (u8) mcled_cdev->subled_info[RED].brightness;
   443		data->next_green = (u8) mcled_cdev->subled_info[GREEN].brightness;
   444		data->next_blue = (u8) mcled_cdev->subled_info[BLUE].brightness;
   445	
   446		blinkm_transfer_hw(led->i2c_client, BLM_GO_RGB);
   447	
   448		return 0;
   449	}
   450	

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


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

only message in thread, other threads:[~2024-08-11  9:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-11  9:23 [linux-next:master 2040/3984] drivers/leds/leds-blinkm.c:440: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