[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201610030917.rPck6Si5%fengguang.wu@intel.com>
Date: Mon, 3 Oct 2016 09:32:24 +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/gpio-mmio.c:571: undefined reference to
`devm_ioremap_resource'
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: c8d2bc9bc39ebea8437fd974fdbc21847bb897a3
commit: 2527ecc9195e9c66252af24c4689e8a67cd4ccb9 gpio: Fix OF build problem on UM
date: 6 weeks ago
config: um-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 2527ecc9195e9c66252af24c4689e8a67cd4ccb9
# save the attached .config to linux build tree
make ARCH=um
All errors (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':
>> drivers/nfc/st-nci/i2c.c:300: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `nxp_nci_i2c_probe':
>> drivers/nfc/nxp-nci/i2c.c:361: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `mdio_gpio_probe':
>> drivers/net/phy/mdio-gpio.c:177: undefined reference to `devm_gpio_request'
drivers/built-in.o: In function `at803x_probe':
>> drivers/net/phy/at803x.c:283: undefined reference to `devm_gpiod_get_optional'
drivers/built-in.o: In function `mv88e6xxx_probe':
>> drivers/net/dsa/mv88e6xxx/chip.c:4022: undefined reference to `devm_gpiod_get_optional'
drivers/built-in.o: In function `pps_gpio_probe':
>> drivers/pps/clients/pps-gpio.c:125: undefined reference to `devm_gpio_request'
drivers/built-in.o: In function `max8903_probe':
drivers/power/max8903_charger.c:248: undefined reference to `devm_gpio_request'
drivers/power/max8903_charger.c:280: undefined reference to `devm_gpio_request'
drivers/power/max8903_charger.c:243: undefined reference to `devm_gpio_request'
drivers/built-in.o: In function `bq24257_probe':
drivers/power/bq24257_charger.c:876: undefined reference to `devm_gpiod_get_optional'
drivers/built-in.o: In function `bq24735_charger_probe':
drivers/power/bq24735-charger.c:396: undefined reference to `devm_gpio_request'
drivers/built-in.o: In function `bq25890_probe':
drivers/power/bq25890_charger.c:726: undefined reference to `devm_gpiod_get_index'
drivers/built-in.o: In function `intel_probe':
>> drivers/bluetooth/hci_intel.c:1199: undefined reference to `devm_gpiod_get'
drivers/built-in.o: In function `create_gpio_led':
>> drivers/leds/leds-gpio.c:101: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `gpio_led_probe':
>> drivers/leds/leds-gpio.c:172: undefined reference to `devm_get_gpiod_from_child'
drivers/built-in.o: In function `lp55xx_init_device':
vim +571 drivers/gpio/gpio-mmio.c
aeec56e3 drivers/gpio/basic_mmio_gpio.c Anton Vorontsov 2010-10-27 555
280df6b3 drivers/gpio/basic_mmio_gpio.c Jamie Iles 2011-05-20 556 static void __iomem *bgpio_map(struct platform_device *pdev,
280df6b3 drivers/gpio/basic_mmio_gpio.c Jamie Iles 2011-05-20 557 const char *name,
8d240260 drivers/gpio/gpio-generic.c Heiner Kallweit 2015-09-30 558 resource_size_t sane_sz)
280df6b3 drivers/gpio/basic_mmio_gpio.c Jamie Iles 2011-05-20 559 {
280df6b3 drivers/gpio/basic_mmio_gpio.c Jamie Iles 2011-05-20 560 struct resource *r;
280df6b3 drivers/gpio/basic_mmio_gpio.c Jamie Iles 2011-05-20 561 resource_size_t sz;
280df6b3 drivers/gpio/basic_mmio_gpio.c Jamie Iles 2011-05-20 562
280df6b3 drivers/gpio/basic_mmio_gpio.c Jamie Iles 2011-05-20 563 r = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
8d240260 drivers/gpio/gpio-generic.c Heiner Kallweit 2015-09-30 564 if (!r)
b2f68b63 drivers/gpio/gpio-generic.c Guenter Roeck 2015-10-21 565 return NULL;
280df6b3 drivers/gpio/basic_mmio_gpio.c Jamie Iles 2011-05-20 566
280df6b3 drivers/gpio/basic_mmio_gpio.c Jamie Iles 2011-05-20 567 sz = resource_size(r);
8d240260 drivers/gpio/gpio-generic.c Heiner Kallweit 2015-09-30 568 if (sz != sane_sz)
8d240260 drivers/gpio/gpio-generic.c Heiner Kallweit 2015-09-30 569 return IOMEM_ERR_PTR(-EINVAL);
280df6b3 drivers/gpio/basic_mmio_gpio.c Jamie Iles 2011-05-20 570
8d240260 drivers/gpio/gpio-generic.c Heiner Kallweit 2015-09-30 @571 return devm_ioremap_resource(&pdev->dev, r);
aeec56e3 drivers/gpio/basic_mmio_gpio.c Anton Vorontsov 2010-10-27 572 }
aeec56e3 drivers/gpio/basic_mmio_gpio.c Anton Vorontsov 2010-10-27 573
e698613a drivers/gpio/gpio-mmio.c Álvaro Fernández Rojas 2016-05-13 574 #ifdef CONFIG_OF
e698613a drivers/gpio/gpio-mmio.c Álvaro Fernández Rojas 2016-05-13 575 static const struct of_device_id bgpio_of_match[] = {
c0d30ecf drivers/gpio/gpio-mmio.c Christian Lamparter 2016-05-13 576 { .compatible = "wd,mbl-gpio" },
e698613a drivers/gpio/gpio-mmio.c Álvaro Fernández Rojas 2016-05-13 577 { }
e698613a drivers/gpio/gpio-mmio.c Álvaro Fernández Rojas 2016-05-13 578 };
e698613a drivers/gpio/gpio-mmio.c Álvaro Fernández Rojas 2016-05-13 579 MODULE_DEVICE_TABLE(of, bgpio_of_match);
:::::: The code at line 571 was first introduced by commit
:::::: 8d2402605b85be860808961cd82fdc4bd8bc1704 gpio: generic: use error pointers
:::::: TO: Heiner Kallweit <hkallweit1@...il.com>
:::::: CC: Linus Walleij <linus.walleij@...aro.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" (18043 bytes)
Powered by blists - more mailing lists