tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next head: 78517428a0d5cc071c9933c4371fbbfc5635be4a commit: f8eb0235f65989fc5521c40c78d1261e7f25cdbe [49/50] x86: pcengines apuv2 gpio/leds/keys platform driver config: x86_64-randconfig-s3-02240409 (attached as .config) compiler: gcc-8 (Debian 8.2.0-20) 8.2.0 reproduce: git checkout f8eb0235f65989fc5521c40c78d1261e7f25cdbe # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): ld: drivers/leds/leds-gpio.o: in function `create_gpio_led': >> drivers/leds/leds-gpio.c:115: undefined reference to `devm_of_led_classdev_register' vim +115 drivers/leds/leds-gpio.c ca3259b3 Herbert Valerio Riedel 2008-03-09 77 98ea1ea2 Bill Pemberton 2012-11-19 78 static int create_gpio_led(const struct gpio_led *template, a7d878af Trent Piepho 2009-01-10 79 struct gpio_led_data *led_dat, struct device *parent, 7ea79ae8 Rafał Miłecki 2017-03-06 80 struct device_node *np, gpio_blink_set_t blink_set) a7d878af Trent Piepho 2009-01-10 81 { ed88bae6 Trent Piepho 2009-05-12 82 int ret, state; a7d878af Trent Piepho 2009-01-10 83 a7d878af Trent Piepho 2009-01-10 84 led_dat->cdev.name = template->name; a7d878af Trent Piepho 2009-01-10 85 led_dat->cdev.default_trigger = template->default_trigger; ec98a497 Geert Uytterhoeven 2014-11-06 86 led_dat->can_sleep = gpiod_cansleep(led_dat->gpiod); d5b8a090 Jacek Anaszewski 2015-08-20 87 if (!led_dat->can_sleep) d5b8a090 Jacek Anaszewski 2015-08-20 88 led_dat->cdev.brightness_set = gpio_led_set; d5b8a090 Jacek Anaszewski 2015-08-20 89 else d5b8a090 Jacek Anaszewski 2015-08-20 90 led_dat->cdev.brightness_set_blocking = gpio_led_set_blocking; 2146325d Benjamin Herrenschmidt 2010-05-22 91 led_dat->blinking = 0; a7d878af Trent Piepho 2009-01-10 92 if (blink_set) { a7d878af Trent Piepho 2009-01-10 93 led_dat->platform_gpio_blink_set = blink_set; a7d878af Trent Piepho 2009-01-10 94 led_dat->cdev.blink_set = gpio_blink_set; a7d878af Trent Piepho 2009-01-10 95 } 061b5c1d Heiner Kallweit 2016-09-14 96 if (template->default_state == LEDS_GPIO_DEFSTATE_KEEP) { 061b5c1d Heiner Kallweit 2016-09-14 97 state = gpiod_get_value_cansleep(led_dat->gpiod); 061b5c1d Heiner Kallweit 2016-09-14 98 if (state < 0) 061b5c1d Heiner Kallweit 2016-09-14 99 return state; 061b5c1d Heiner Kallweit 2016-09-14 100 } else { ed88bae6 Trent Piepho 2009-05-12 101 state = (template->default_state == LEDS_GPIO_DEFSTATE_ON); 061b5c1d Heiner Kallweit 2016-09-14 102 } ed88bae6 Trent Piepho 2009-05-12 103 led_dat->cdev.brightness = state ? LED_FULL : LED_OFF; defb512d Richard Purdie 2009-02-17 104 if (!template->retain_state_suspended) a7d878af Trent Piepho 2009-01-10 105 led_dat->cdev.flags |= LED_CORE_SUSPENDRESUME; 80d6737b Ezequiel Garcia 2016-04-28 106 if (template->panic_indicator) 80d6737b Ezequiel Garcia 2016-04-28 107 led_dat->cdev.flags |= LED_PANIC_INDICATOR; f5808ac1 Andrew Jeffery 2017-08-28 108 if (template->retain_state_shutdown) f5808ac1 Andrew Jeffery 2017-08-28 109 led_dat->cdev.flags |= LED_RETAIN_AT_SHUTDOWN; a7d878af Trent Piepho 2009-01-10 110 5c51277a Mika Westerberg 2014-10-27 111 ret = gpiod_direction_output(led_dat->gpiod, state); a7d878af Trent Piepho 2009-01-10 112 if (ret < 0) a99d76f9 Jingoo Han 2012-10-23 113 return ret; a7d878af Trent Piepho 2009-01-10 114 7ea79ae8 Rafał Miłecki 2017-03-06 @115 return devm_of_led_classdev_register(parent, np, &led_dat->cdev); a7d878af Trent Piepho 2009-01-10 116 } a7d878af Trent Piepho 2009-01-10 117 :::::: The code at line 115 was first introduced by commit :::::: 7ea79ae86c28e729d51fa5703b093d27cca25217 leds: gpio: use OF variant of LED registering function :::::: TO: Rafał Miłecki <rafal@xxxxxxxxxx> :::::: CC: Jacek Anaszewski <jacek.anaszewski@xxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip