From: kbuild test robot <fengguang.wu@intel.com>
To: Felix Fietkau <nbd@nbd.name>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
Kalle Valo <kvalo@codeaurora.org>,
Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Subject: drivers/net/wireless/mediatek/mt76/mac80211.c:119: undefined reference to `devm_of_led_classdev_register'
Date: Sun, 11 Mar 2018 02:34:29 +0800 [thread overview]
Message-ID: <201803110224.XT5RVTIg%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3161 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cdb06e9d8f520c969676e7d6778cffe5894f079f
commit: 7bc04215a66b60e198aecaee8418f6d79fa19faa mt76: add driver code for MT76x2e
date: 3 months ago
config: x86_64-randconfig-v0-03110120 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 7bc04215a66b60e198aecaee8418f6d79fa19faa
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/net/wireless/mediatek/mt76/mac80211.o: In function `mt76_led_init':
>> drivers/net/wireless/mediatek/mt76/mac80211.c:119: undefined reference to `devm_of_led_classdev_register'
vim +119 drivers/net/wireless/mediatek/mt76/mac80211.c
17f1de56 Felix Fietkau 2017-11-21 92
17f1de56 Felix Fietkau 2017-11-21 93 static int mt76_led_init(struct mt76_dev *dev)
17f1de56 Felix Fietkau 2017-11-21 94 {
17f1de56 Felix Fietkau 2017-11-21 95 struct device_node *np = dev->dev->of_node;
17f1de56 Felix Fietkau 2017-11-21 96 struct ieee80211_hw *hw = dev->hw;
17f1de56 Felix Fietkau 2017-11-21 97 int led_pin;
17f1de56 Felix Fietkau 2017-11-21 98
17f1de56 Felix Fietkau 2017-11-21 99 if (!dev->led_cdev.brightness_set && !dev->led_cdev.blink_set)
17f1de56 Felix Fietkau 2017-11-21 100 return 0;
17f1de56 Felix Fietkau 2017-11-21 101
17f1de56 Felix Fietkau 2017-11-21 102 snprintf(dev->led_name, sizeof(dev->led_name),
17f1de56 Felix Fietkau 2017-11-21 103 "mt76-%s", wiphy_name(hw->wiphy));
17f1de56 Felix Fietkau 2017-11-21 104
17f1de56 Felix Fietkau 2017-11-21 105 dev->led_cdev.name = dev->led_name;
17f1de56 Felix Fietkau 2017-11-21 106 dev->led_cdev.default_trigger =
17f1de56 Felix Fietkau 2017-11-21 107 ieee80211_create_tpt_led_trigger(hw,
17f1de56 Felix Fietkau 2017-11-21 108 IEEE80211_TPT_LEDTRIG_FL_RADIO,
17f1de56 Felix Fietkau 2017-11-21 109 mt76_tpt_blink,
17f1de56 Felix Fietkau 2017-11-21 110 ARRAY_SIZE(mt76_tpt_blink));
17f1de56 Felix Fietkau 2017-11-21 111
17f1de56 Felix Fietkau 2017-11-21 112 np = of_get_child_by_name(np, "led");
17f1de56 Felix Fietkau 2017-11-21 113 if (np) {
17f1de56 Felix Fietkau 2017-11-21 114 if (!of_property_read_u32(np, "led-sources", &led_pin))
17f1de56 Felix Fietkau 2017-11-21 115 dev->led_pin = led_pin;
17f1de56 Felix Fietkau 2017-11-21 116 dev->led_al = of_property_read_bool(np, "led-active-low");
17f1de56 Felix Fietkau 2017-11-21 117 }
17f1de56 Felix Fietkau 2017-11-21 118
17f1de56 Felix Fietkau 2017-11-21 @119 return devm_led_classdev_register(dev->dev, &dev->led_cdev);
17f1de56 Felix Fietkau 2017-11-21 120 }
17f1de56 Felix Fietkau 2017-11-21 121
:::::: The code at line 119 was first introduced by commit
:::::: 17f1de56df051229988aab37e01971c9713c4a31 mt76: add common code shared between multiple chipsets
:::::: TO: Felix Fietkau <nbd@nbd.name>
:::::: CC: Kalle Valo <kvalo@codeaurora.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24100 bytes --]
next reply other threads:[~2018-03-10 18:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-10 18:34 kbuild test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-09-14 18:03 kbuild test robot
2018-08-27 15:28 kbuild test robot
2018-03-03 16:58 kbuild test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201803110224.XT5RVTIg%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=kvalo@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lorenzo.bianconi83@gmail.com \
--cc=nbd@nbd.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®