tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git gpio-driver-h head: 8589e607647a24701fd4ef97c3fd4f513b934a37 commit: 8589e607647a24701fd4ef97c3fd4f513b934a37 [38/38] pinctrl: at91-pio4: Get rid of legacy call config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.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 8589e607647a24701fd4ef97c3fd4f513b934a37 # save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=arm All errors (new ones prefixed by >>): drivers/pinctrl/pinctrl-at91-pio4.c: In function 'atmel_gpio_irq_handler': >> drivers/pinctrl/pinctrl-at91-pio4.c:305:41: error: passing argument 1 of 'atmel_gpio_to_irq' from incompatible pointer type [-Werror=incompatible-pointer-types] generic_handle_irq(atmel_gpio_to_irq(chip, bank * ^~~~ drivers/pinctrl/pinctrl-at91-pio4.c:265:12: note: expected 'struct gpio_chip *' but argument is of type 'struct irq_chip *' static int atmel_gpio_to_irq(struct gpio_chip *chip, unsigned offset) ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/atmel_gpio_to_irq +305 drivers/pinctrl/pinctrl-at91-pio4.c 271 272 static void atmel_gpio_irq_handler(struct irq_desc *desc) 273 { 274 unsigned int irq = irq_desc_get_irq(desc); 275 struct atmel_pioctrl *atmel_pioctrl = irq_desc_get_handler_data(desc); 276 struct irq_chip *chip = irq_desc_get_chip(desc); 277 unsigned long isr; 278 int n, bank = -1; 279 280 /* Find from which bank is the irq received. */ 281 for (n = 0; n < atmel_pioctrl->nbanks; n++) { 282 if (atmel_pioctrl->irqs[n] == irq) { 283 bank = n; 284 break; 285 } 286 } 287 288 if (bank < 0) { 289 dev_err(atmel_pioctrl->dev, 290 "no bank associated to irq %u\n", irq); 291 return; 292 } 293 294 chained_irq_enter(chip, desc); 295 296 for (;;) { 297 isr = (unsigned long)atmel_gpio_read(atmel_pioctrl, bank, 298 ATMEL_PIO_ISR); 299 isr &= (unsigned long)atmel_gpio_read(atmel_pioctrl, bank, 300 ATMEL_PIO_IMR); 301 if (!isr) 302 break; 303 304 for_each_set_bit(n, &isr, BITS_PER_LONG) > 305 generic_handle_irq(atmel_gpio_to_irq(chip, bank * 306 ATMEL_PIO_NPINS_PER_BANK + n)); 307 } 308 309 chained_irq_exit(chip, desc); 310 } 311 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip