tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/linusw/linux-gpio.git devel-gpio-driver-isolation head: 95af28c7af12975e4c4ccb3d33974fadc8b4656a commit: 6a690b9e1ee32cfe12a86891f5db2dabcca4e5cf [30/31] gpio: Drop driver header from legacy header include config: alpha-allmodconfig (attached as .config) compiler: alpha-linux-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 6a690b9e1ee32cfe12a86891f5db2dabcca4e5cf # save the attached .config to linux build tree GCC_VERSION=7.4.0 make.cross ARCH=alpha If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): drivers/pinctrl/pinctrl-rza2.c: In function 'rza2_set_pin_function': drivers/pinctrl/pinctrl-rza2.c:79:10: error: implicit declaration of function 'readw' [-Werror=implicit-function-declaration] reg16 = readw(pfc_base + RZA2_PDR(port)); ^~~~~ >> drivers/pinctrl/pinctrl-rza2.c:82:2: error: implicit declaration of function 'writew'; did you mean 'wrmces'? [-Werror=implicit-function-declaration] writew(reg16, pfc_base + RZA2_PDR(port)); ^~~~~~ wrmces drivers/pinctrl/pinctrl-rza2.c:85:9: error: implicit declaration of function 'readb' [-Werror=implicit-function-declaration] reg8 = readb(pfc_base + RZA2_PMR(port)); ^~~~~ >> drivers/pinctrl/pinctrl-rza2.c:87:2: error: implicit declaration of function 'writeb'; did you mean 'wrmces'? [-Werror=implicit-function-declaration] writeb(reg8, pfc_base + RZA2_PMR(port)); ^~~~~~ wrmces drivers/pinctrl/pinctrl-rza2.c: In function 'rza2_chip_get_direction': drivers/pinctrl/pinctrl-rza2.c:128:35: error: implicit declaration of function 'gpiochip_get_data'; did you mean 'gpio_get_value'? [-Werror=implicit-function-declaration] struct rza2_pinctrl_priv *priv = gpiochip_get_data(chip); ^~~~~~~~~~~~~~~~~ gpio_get_value drivers/pinctrl/pinctrl-rza2.c:128:35: warning: initialization makes pointer from integer without a cast [-Wint-conversion] drivers/pinctrl/pinctrl-rza2.c: In function 'rza2_chip_direction_input': drivers/pinctrl/pinctrl-rza2.c:154:35: warning: initialization makes pointer from integer without a cast [-Wint-conversion] struct rza2_pinctrl_priv *priv = gpiochip_get_data(chip); ^~~~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c: In function 'rza2_chip_get': drivers/pinctrl/pinctrl-rza2.c:163:35: warning: initialization makes pointer from integer without a cast [-Wint-conversion] struct rza2_pinctrl_priv *priv = gpiochip_get_data(chip); ^~~~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c: In function 'rza2_chip_set': drivers/pinctrl/pinctrl-rza2.c:173:35: warning: initialization makes pointer from integer without a cast [-Wint-conversion] struct rza2_pinctrl_priv *priv = gpiochip_get_data(chip); ^~~~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c: In function 'rza2_chip_direction_output': drivers/pinctrl/pinctrl-rza2.c:191:35: warning: initialization makes pointer from integer without a cast [-Wint-conversion] struct rza2_pinctrl_priv *priv = gpiochip_get_data(chip); ^~~~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c: At top level: drivers/pinctrl/pinctrl-rza2.c:225:15: error: variable 'chip' has initializer but incomplete type static struct gpio_chip chip = { ^~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c:226:3: error: 'struct gpio_chip' has no member named 'names' .names = rza2_gpio_names, ^~~~~ drivers/pinctrl/pinctrl-rza2.c:226:11: warning: excess elements in struct initializer .names = rza2_gpio_names, ^~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c:226:11: note: (near initialization for 'chip') drivers/pinctrl/pinctrl-rza2.c:227:3: error: 'struct gpio_chip' has no member named 'base' .base = -1, ^~~~ drivers/pinctrl/pinctrl-rza2.c:227:10: warning: excess elements in struct initializer .base = -1, ^ drivers/pinctrl/pinctrl-rza2.c:227:10: note: (near initialization for 'chip') drivers/pinctrl/pinctrl-rza2.c:228:3: error: 'struct gpio_chip' has no member named 'get_direction' .get_direction = rza2_chip_get_direction, ^~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c:228:19: warning: excess elements in struct initializer .get_direction = rza2_chip_get_direction, ^~~~~~~~~~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c:228:19: note: (near initialization for 'chip') drivers/pinctrl/pinctrl-rza2.c:229:3: error: 'struct gpio_chip' has no member named 'direction_input' .direction_input = rza2_chip_direction_input, ^~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c:229:21: warning: excess elements in struct initializer .direction_input = rza2_chip_direction_input, ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c:229:21: note: (near initialization for 'chip') drivers/pinctrl/pinctrl-rza2.c:230:3: error: 'struct gpio_chip' has no member named 'direction_output' .direction_output = rza2_chip_direction_output, ^~~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c:230:22: warning: excess elements in struct initializer .direction_output = rza2_chip_direction_output, ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c:230:22: note: (near initialization for 'chip') drivers/pinctrl/pinctrl-rza2.c:231:3: error: 'struct gpio_chip' has no member named 'get' .get = rza2_chip_get, ^~~ drivers/pinctrl/pinctrl-rza2.c:231:9: warning: excess elements in struct initializer .get = rza2_chip_get, ^~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c:231:9: note: (near initialization for 'chip') drivers/pinctrl/pinctrl-rza2.c:232:3: error: 'struct gpio_chip' has no member named 'set' .set = rza2_chip_set, ^~~ drivers/pinctrl/pinctrl-rza2.c:232:9: warning: excess elements in struct initializer .set = rza2_chip_set, ^~~~~~~~~~~~~ drivers/pinctrl/pinctrl-rza2.c:232:9: note: (near initialization for 'chip') drivers/pinctrl/pinctrl-rza2.c: In function 'rza2_gpio_register': drivers/pinctrl/pinctrl-rza2.c:241:6: error: invalid use of undefined type 'struct gpio_chip' chip.label = devm_kasprintf(priv->dev, GFP_KERNEL, "%pOFn", np); ^ drivers/pinctrl/pinctrl-rza2.c:242:6: error: invalid use of undefined type 'struct gpio_chip' chip.of_node = np; ^ drivers/pinctrl/pinctrl-rza2.c:243:6: error: invalid use of undefined type 'struct gpio_chip' chip.parent = priv->dev; ^ drivers/pinctrl/pinctrl-rza2.c:244:6: error: invalid use of undefined type 'struct gpio_chip' chip.ngpio = priv->npins; ^ drivers/pinctrl/pinctrl-rza2.c:262:30: error: invalid use of undefined type 'struct gpio_chip' priv->gpio_range.name = chip.label; ^ drivers/pinctrl/pinctrl-rza2.c:266:8: error: implicit declaration of function 'devm_gpiochip_add_data'; did you mean 'devm_gpiod_put'? [-Werror=implicit-function-declaration] ret = devm_gpiochip_add_data(priv->dev, &chip, priv); ^~~~~~~~~~~~~~~~~~~~~~ devm_gpiod_put drivers/pinctrl/pinctrl-rza2.c: In function 'rza2_dt_node_to_map': drivers/pinctrl/pinctrl-rza2.c:382:9: error: implicit declaration of function 'kzalloc'; did you mean 'd_alloc'? [-Werror=implicit-function-declaration] vim +82 drivers/pinctrl/pinctrl-rza2.c b59d0e78270678 Chris Brandt 2018-11-15 70 b59d0e78270678 Chris Brandt 2018-11-15 71 static void rza2_set_pin_function(void __iomem *pfc_base, u8 port, u8 pin, b59d0e78270678 Chris Brandt 2018-11-15 72 u8 func) b59d0e78270678 Chris Brandt 2018-11-15 73 { b59d0e78270678 Chris Brandt 2018-11-15 74 u16 mask16; b59d0e78270678 Chris Brandt 2018-11-15 75 u16 reg16; b59d0e78270678 Chris Brandt 2018-11-15 76 u8 reg8; b59d0e78270678 Chris Brandt 2018-11-15 77 b59d0e78270678 Chris Brandt 2018-11-15 78 /* Set pin to 'Non-use (Hi-z input protection)' */ b59d0e78270678 Chris Brandt 2018-11-15 @79 reg16 = readw(pfc_base + RZA2_PDR(port)); b59d0e78270678 Chris Brandt 2018-11-15 80 mask16 = RZA2_PDR_MASK << (pin * 2); b59d0e78270678 Chris Brandt 2018-11-15 81 reg16 &= ~mask16; b59d0e78270678 Chris Brandt 2018-11-15 @82 writew(reg16, pfc_base + RZA2_PDR(port)); b59d0e78270678 Chris Brandt 2018-11-15 83 b59d0e78270678 Chris Brandt 2018-11-15 84 /* Temporarily switch to GPIO */ b59d0e78270678 Chris Brandt 2018-11-15 85 reg8 = readb(pfc_base + RZA2_PMR(port)); b59d0e78270678 Chris Brandt 2018-11-15 86 reg8 &= ~BIT(pin); b59d0e78270678 Chris Brandt 2018-11-15 @87 writeb(reg8, pfc_base + RZA2_PMR(port)); b59d0e78270678 Chris Brandt 2018-11-15 88 b59d0e78270678 Chris Brandt 2018-11-15 89 /* PFS Register Write Protect : OFF */ b59d0e78270678 Chris Brandt 2018-11-15 90 writeb(0x00, pfc_base + RZA2_PWPR); /* B0WI=0, PFSWE=0 */ b59d0e78270678 Chris Brandt 2018-11-15 91 writeb(PWPR_PFSWE, pfc_base + RZA2_PWPR); /* B0WI=0, PFSWE=1 */ b59d0e78270678 Chris Brandt 2018-11-15 92 b59d0e78270678 Chris Brandt 2018-11-15 93 /* Set Pin function (interrupt disabled, ISEL=0) */ b59d0e78270678 Chris Brandt 2018-11-15 94 writeb(func, pfc_base + RZA2_PFS(port, pin)); b59d0e78270678 Chris Brandt 2018-11-15 95 b59d0e78270678 Chris Brandt 2018-11-15 96 /* PFS Register Write Protect : ON */ b59d0e78270678 Chris Brandt 2018-11-15 97 writeb(0x00, pfc_base + RZA2_PWPR); /* B0WI=0, PFSWE=0 */ b59d0e78270678 Chris Brandt 2018-11-15 98 writeb(0x80, pfc_base + RZA2_PWPR); /* B0WI=1, PFSWE=0 */ b59d0e78270678 Chris Brandt 2018-11-15 99 b59d0e78270678 Chris Brandt 2018-11-15 100 /* Port Mode : Peripheral module pin functions */ b59d0e78270678 Chris Brandt 2018-11-15 101 reg8 = readb(pfc_base + RZA2_PMR(port)); b59d0e78270678 Chris Brandt 2018-11-15 102 reg8 |= BIT(pin); b59d0e78270678 Chris Brandt 2018-11-15 103 writeb(reg8, pfc_base + RZA2_PMR(port)); b59d0e78270678 Chris Brandt 2018-11-15 104 } b59d0e78270678 Chris Brandt 2018-11-15 105 :::::: The code at line 82 was first introduced by commit :::::: b59d0e782706785b7042539e820e95df3be4d04c pinctrl: Add RZ/A2 pin and gpio controller :::::: TO: Chris Brandt <chris.brandt@xxxxxxxxxxx> :::::: CC: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip