[j.anaszewski-leds:led_naming_v4 18/38] drivers/leds/led-core.c:432: undefined reference to `led_colors'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds.git led_naming_v4
head:   17c207150285b966d99c4d038e44dd5e16810916
commit: 3a7c9f0d2c8b919c62c23cfff173cf4c49c2b163 [18/38] leds: core: Add support for composing LED class device names
config: x86_64-randconfig-f1-04071504 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout 3a7c9f0d2c8b919c62c23cfff173cf4c49c2b163
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/leds/led-core.o: In function `led_compose_name':
>> drivers/leds/led-core.c:432: undefined reference to `led_colors'
   drivers/leds/led-core.c:436: undefined reference to `led_colors'

vim +432 drivers/leds/led-core.c

   400	
   401	int led_compose_name(struct device *parent, struct fwnode_handle *fwnode,
   402			     const char *led_hw_name, const char *default_label,
   403			     char *led_classdev_name)
   404	{
   405		struct led_properties props = {};
   406	
   407		if (!led_classdev_name)
   408			return -EINVAL;
   409	
   410		led_parse_properties(parent, fwnode, &props);
   411	
   412		if (props.label) {
   413			/*
   414			 * Presence of 'label' DT property implies legacy LED name,
   415			 * formatted as <devicename:color:function>, with possible
   416			 * section omission if it doesn't apply to given device.
   417			 *
   418			 * If no led_hw_name has been passed, then it indicates that
   419			 * DT label should be used as-is for LED class device name.
   420			 * Otherwise the label is prepended with led_hw_name to compose
   421			 * the final LED class device name.
   422			 */
   423			if (!led_hw_name) {
   424				strncpy(led_classdev_name, props.label,
   425					LED_MAX_NAME_SIZE);
   426			} else {
   427				snprintf(led_classdev_name, LED_MAX_NAME_SIZE, "%s:%s",
   428					 led_hw_name, props.label);
   429			}
   430		} else if (props.function || props.color_present) {
   431			if (props.led_enum_present) {
 > 432				snprintf(led_classdev_name, LED_MAX_NAME_SIZE, "%s:%s-%d",

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux