drivers/mtd/nand/oxnas_nand.c:102: undefined reference to `devm_ioremap_resource'
From: kbuild test robot
Date: Sun Jan 01 2017 - 20:52:16 EST
Hi Neil,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0c744ea4f77d72b3dcebb7a8f2684633ec79be88
commit: 668592492409498afc277da41e84799e1d2255c2 mtd: nand: Add OX820 NAND Support
date: 2 months ago
config: um-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 668592492409498afc277da41e84799e1d2255c2
# 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 `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:716: undefined reference to `devm_gpio_request_one'
drivers/regulator/max8973-regulator.c:771: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `pwm_regulator_probe':
drivers/regulator/pwm-regulator.c:377: 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 `oxnas_nand_probe':
>> drivers/mtd/nand/oxnas_nand.c:102: undefined reference to `devm_ioremap_resource'
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:3832: undefined reference to `devm_gpiod_get_optional'
drivers/built-in.o: In function `img_ascii_lcd_probe':
drivers/auxdisplay/img-ascii-lcd.c:384: undefined reference to `devm_ioremap_resource'
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 `sbs_probe':
drivers/power/supply/sbs-battery.c:803: undefined reference to `devm_gpiod_get_optional'
drivers/built-in.o: In function `max8903_probe':
drivers/power/supply/max8903_charger.c:248: undefined reference to `devm_gpio_request'
drivers/power/supply/max8903_charger.c:280: undefined reference to `devm_gpio_request'
drivers/power/supply/max8903_charger.c:243: undefined reference to `devm_gpio_request'
drivers/built-in.o: In function `bq24257_probe':
drivers/power/supply/bq24257_charger.c:876: undefined reference to `devm_gpiod_get_optional'
drivers/built-in.o: In function `bq24735_charger_probe':
drivers/power/supply/bq24735-charger.c:389: undefined reference to `devm_gpiod_get_optional'
drivers/built-in.o: In function `bq25890_probe':
drivers/power/supply/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:103: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `gpio_led_probe':
drivers/leds/leds-gpio.c:177: undefined reference to `devm_get_gpiod_from_child'
drivers/built-in.o: In function `lp55xx_init_device':
drivers/leds/leds-lp55xx-common.c:402: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `lp8860_probe':
drivers/leds/leds-lp8860.c:383: undefined reference to `devm_gpiod_get_optional'
drivers/built-in.o: In function `lt3593_led_probe':
drivers/leds/leds-lt3593.c:98: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `ktd2692_probe':
drivers/leds/leds-ktd2692.c:272: undefined reference to `devm_gpiod_get'
drivers/built-in.o: In function `gpio_extcon_probe':
drivers/extcon/extcon-gpio.c:70: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `max3355_probe':
drivers/extcon/extcon-max3355.c:68: undefined reference to `devm_gpiod_get'
drivers/built-in.o: In function `usb_extcon_probe':
drivers/extcon/extcon-usb-gpio.c:104: undefined reference to `devm_gpiod_get'
drivers/built-in.o: In function `mma9551_probe':
drivers/iio/accel/mma9551.c:421: undefined reference to `devm_gpiod_get_index'
drivers/built-in.o: In function `ad5592r_probe':
drivers/iio/dac/ad5592r-base.c:163: undefined reference to `devm_gpiod_get_optional'
drivers/built-in.o: In function `ak8975_probe':
drivers/iio/magnetometer/ak8975.c:886: undefined reference to `devm_gpio_request_one'
drivers/built-in.o: In function `bmp280_common_probe':
drivers/iio/pressure/bmp280-core.c:985: undefined reference to `devm_gpiod_get'
drivers/built-in.o: In function `hp03_probe':
drivers/iio/pressure/hp03.c:238: undefined reference to `devm_gpiod_get_index'
drivers/built-in.o: In function `sx9500_probe':
drivers/iio/proximity/sx9500.c:877: undefined reference to `devm_gpiod_get_index'
net/built-in.o: In function `rfkill_gpio_probe':
net/rfkill/rfkill-gpio.c:115: undefined reference to `devm_gpiod_get_optional'
collect2: error: ld returned 1 exit status
vim +102 drivers/mtd/nand/oxnas_nand.c
96 if (!oxnas)
97 return -ENOMEM;
98
99 nand_hw_control_init(&oxnas->base);
100
101 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> 102 oxnas->io_base = devm_ioremap_resource(&pdev->dev, res);
103 if (IS_ERR(oxnas->io_base))
104 return PTR_ERR(oxnas->io_base);
105
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip