[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <201609090438.PE5SjOzJ%fengguang.wu@intel.com>
Date: Fri, 9 Sep 2016 04:07:54 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org
Subject: drivers/gpio/gpiolib.c:3215: undefined reference to
`of_get_named_gpiod_flags'
Hi Linus,
It's probably a bug fix that unveils the link errors.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d71f058617564750261b673ea9b3352382b9cde4
commit: 2527ecc9195e9c66252af24c4689e8a67cd4ccb9 gpio: Fix OF build problem on UM
date: 3 weeks ago
config: um-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout 2527ecc9195e9c66252af24c4689e8a67cd4ccb9
# save the attached .config to linux build tree
make ARCH=um
All error/warnings (new ones prefixed by >>):
arch/um/drivers/built-in.o: In function `vde_open_real':
>> (.text+0xc7d1): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
arch/um/drivers/built-in.o: In function `vde_open_real':
>> (.text+0xc61c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
arch/um/drivers/built-in.o: In function `vde_open_real':
>> (.text+0xc935): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
arch/um/drivers/built-in.o: In function `pcap_nametoaddr':
>> (.text+0x1d3c5): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
arch/um/drivers/built-in.o: In function `pcap_nametonetaddr':
>> (.text+0x1d465): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
arch/um/drivers/built-in.o: In function `pcap_nametoproto':
>> (.text+0x1d685): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
arch/um/drivers/built-in.o: In function `pcap_nametoport':
>> (.text+0x1d4b7): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
drivers/built-in.o: In function `fwnode_get_named_gpiod':
>> drivers/gpio/gpiolib.c:3215: undefined reference to `of_get_named_gpiod_flags'
drivers/built-in.o: In function `gpiod_get_index':
drivers/gpio/gpiolib.c:3140: undefined reference to `of_get_named_gpiod_flags'
drivers/built-in.o: In function `bgpio_map':
>> drivers/gpio/gpio-mmio.c:571: undefined reference to `devm_ioremap_resource'
drivers/built-in.o: In function `dwapb_gpio_probe':
>> drivers/gpio/gpio-dwapb.c:554: undefined reference to `devm_ioremap_resource'
drivers/built-in.o: In function `zx_gpio_probe':
>> drivers/gpio/gpio-zx.c:229: undefined reference to `devm_ioremap_resource'
drivers/built-in.o: In function `lp872x_probe':
>> drivers/regulator/lp872x.c:773: undefined reference to `devm_gpio_request_one'
drivers/regulator/lp872x.c:746: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `max8952_pmic_probe':
>> drivers/regulator/max8952.c:249: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `max8973_probe':
>> drivers/regulator/max8973-regulator.c:715: undefined reference to `devm_gpio_request_one'
drivers/regulator/max8973-regulator.c:770: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `pwm_regulator_probe':
>> drivers/regulator/pwm-regulator.c:387: undefined reference to `devm_gpiod_get_optional'
drivers/built-in.o: In function `tps62360_probe':
>> drivers/regulator/tps62360-regulator.c:433: undefined reference to `devm_gpio_request_one'
drivers/regulator/tps62360-regulator.c:444: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `fdp_nci_i2c_probe':
>> drivers/nfc/fdp/i2c.c:326: undefined reference to `devm_gpiod_get'
drivers/built-in.o: In function `nfcmrvl_nci_unregister_dev':
>> drivers/nfc/nfcmrvl/main.c:198: undefined reference to `devm_gpio_free'
drivers/built-in.o: In function `nfcmrvl_nci_register_dev':
>> drivers/nfc/nfcmrvl/main.c:127: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `st21nfca_hci_i2c_probe':
>> drivers/nfc/st21nfca/i2c.c:597: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `st_nci_i2c_probe':
vim +3215 drivers/gpio/gpiolib.c
40b73183 Mika Westerberg 2014-10-21 3199 * In case of error an ERR_PTR() is returned.
40b73183 Mika Westerberg 2014-10-21 3200 */
40b73183 Mika Westerberg 2014-10-21 3201 struct gpio_desc *fwnode_get_named_gpiod(struct fwnode_handle *fwnode,
40b73183 Mika Westerberg 2014-10-21 3202 const char *propname)
40b73183 Mika Westerberg 2014-10-21 3203 {
40b73183 Mika Westerberg 2014-10-21 3204 struct gpio_desc *desc = ERR_PTR(-ENODEV);
40b73183 Mika Westerberg 2014-10-21 3205 bool active_low = false;
90b665f6 Laurent Pinchart 2015-10-13 3206 bool single_ended = false;
40b73183 Mika Westerberg 2014-10-21 3207 int ret;
40b73183 Mika Westerberg 2014-10-21 3208
40b73183 Mika Westerberg 2014-10-21 3209 if (!fwnode)
40b73183 Mika Westerberg 2014-10-21 3210 return ERR_PTR(-EINVAL);
40b73183 Mika Westerberg 2014-10-21 3211
40b73183 Mika Westerberg 2014-10-21 3212 if (is_of_node(fwnode)) {
40b73183 Mika Westerberg 2014-10-21 3213 enum of_gpio_flags flags;
40b73183 Mika Westerberg 2014-10-21 3214
c181fb3e Alexander Sverdlin 2015-06-22 @3215 desc = of_get_named_gpiod_flags(to_of_node(fwnode), propname, 0,
40b73183 Mika Westerberg 2014-10-21 3216 &flags);
90b665f6 Laurent Pinchart 2015-10-13 3217 if (!IS_ERR(desc)) {
40b73183 Mika Westerberg 2014-10-21 3218 active_low = flags & OF_GPIO_ACTIVE_LOW;
90b665f6 Laurent Pinchart 2015-10-13 3219 single_ended = flags & OF_GPIO_SINGLE_ENDED;
90b665f6 Laurent Pinchart 2015-10-13 3220 }
40b73183 Mika Westerberg 2014-10-21 3221 } else if (is_acpi_node(fwnode)) {
40b73183 Mika Westerberg 2014-10-21 3222 struct acpi_gpio_info info;
40b73183 Mika Westerberg 2014-10-21 3223
:::::: The code at line 3215 was first introduced by commit
:::::: c181fb3e723351e2f7a1f76b6c0627a4b8ad1723 ACPI / OF: Rename of_node() and acpi_node() to to_of_node() and to_acpi_node()
:::::: TO: Alexander Sverdlin <alexander.sverdlin@...il.com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
---
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/octet-stream" (18018 bytes)
Powered by blists - more mailing lists