lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201808272343.1KX9eUZl%fengguang.wu@intel.com>
Date:   Mon, 27 Aug 2018 23:28:46 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Lorenzo Bianconi <lorenzo.bianconi@...hat.com>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        Kalle Valo <kvalo@...eaurora.org>
Subject: drivers/net/wireless/mediatek/mt76/mac80211.c:119: undefined
 reference to `devm_of_led_classdev_register'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5b394b2ddf0347bef56e50c69a58773c94343ff3
commit: ee676cd5017c5f71b8aac1f2d1016ba0f6e4f348 mt76: add driver code for MT76x2u based devices
date:   4 weeks ago
config: i386-randconfig-c0-08272052 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout ee676cd5017c5f71b8aac1f2d1016ba0f6e4f348
        # save the attached .config to linux build tree
        make ARCH=i386 

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@....name>
:::::: CC: Kalle Valo <kvalo@...eaurora.org>

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

Download attachment ".config.gz" of type "application/gzip" (28799 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ