[gpio:devel-gpio-irqchip 44/44] drivers/gpio/gpio-tegra186.c:351:21: error: 'struct tegra_gpio' has no member named 'irq'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git devel-gpio-irqchip
head:   bad37d41e1471662e243626ea2deb1bb601e6bab
commit: bad37d41e1471662e243626ea2deb1bb601e6bab [44/44] gpio: Put a static parent array in the gpio_irqchip
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-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 bad37d41e1471662e243626ea2deb1bb601e6bab
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=xtensa 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/gpio/gpio-tegra186.c: In function 'tegra186_gpio_irq':
>> drivers/gpio/gpio-tegra186.c:351:21: error: 'struct tegra_gpio' has no member named 'irq'
      if (parent != gpio->irq[port->irq])
                        ^~

vim +351 drivers/gpio/gpio-tegra186.c

5b2b135a Thierry Reding 2017-11-07  333  
5b2b135a Thierry Reding 2017-11-07  334  static void tegra186_gpio_irq(struct irq_desc *desc)
5b2b135a Thierry Reding 2017-11-07  335  {
5b2b135a Thierry Reding 2017-11-07  336  	struct tegra_gpio *gpio = irq_desc_get_handler_data(desc);
5b2b135a Thierry Reding 2017-11-07  337  	struct irq_domain *domain = gpio->gpio.irq.domain;
5b2b135a Thierry Reding 2017-11-07  338  	struct irq_chip *chip = irq_desc_get_chip(desc);
5b2b135a Thierry Reding 2017-11-07  339  	unsigned int parent = irq_desc_get_irq(desc);
5b2b135a Thierry Reding 2017-11-07  340  	unsigned int i, offset = 0;
5b2b135a Thierry Reding 2017-11-07  341  
5b2b135a Thierry Reding 2017-11-07  342  	chained_irq_enter(chip, desc);
5b2b135a Thierry Reding 2017-11-07  343  
5b2b135a Thierry Reding 2017-11-07  344  	for (i = 0; i < gpio->soc->num_ports; i++) {
5b2b135a Thierry Reding 2017-11-07  345  		const struct tegra_gpio_port *port = &gpio->soc->ports[i];
5b2b135a Thierry Reding 2017-11-07  346  		void __iomem *base = gpio->base + port->offset;
5b2b135a Thierry Reding 2017-11-07  347  		unsigned int pin, irq;
5b2b135a Thierry Reding 2017-11-07  348  		unsigned long value;
5b2b135a Thierry Reding 2017-11-07  349  
5b2b135a Thierry Reding 2017-11-07  350  		/* skip ports that are not associated with this controller */
5b2b135a Thierry Reding 2017-11-07 @351  		if (parent != gpio->irq[port->irq])
5b2b135a Thierry Reding 2017-11-07  352  			goto skip;
5b2b135a Thierry Reding 2017-11-07  353  
5b2b135a Thierry Reding 2017-11-07  354  		value = readl(base + TEGRA186_GPIO_INTERRUPT_STATUS(1));
5b2b135a Thierry Reding 2017-11-07  355  
5b2b135a Thierry Reding 2017-11-07  356  		for_each_set_bit(pin, &value, port->pins) {
5b2b135a Thierry Reding 2017-11-07  357  			irq = irq_find_mapping(domain, offset + pin);
5b2b135a Thierry Reding 2017-11-07  358  			if (WARN_ON(irq == 0))
5b2b135a Thierry Reding 2017-11-07  359  				continue;
5b2b135a Thierry Reding 2017-11-07  360  
5b2b135a Thierry Reding 2017-11-07  361  			generic_handle_irq(irq);
5b2b135a Thierry Reding 2017-11-07  362  		}
5b2b135a Thierry Reding 2017-11-07  363  
5b2b135a Thierry Reding 2017-11-07  364  skip:
5b2b135a Thierry Reding 2017-11-07  365  		offset += port->pins;
5b2b135a Thierry Reding 2017-11-07  366  	}
5b2b135a Thierry Reding 2017-11-07  367  
5b2b135a Thierry Reding 2017-11-07  368  	chained_irq_exit(chip, desc);
5b2b135a Thierry Reding 2017-11-07  369  }
5b2b135a Thierry Reding 2017-11-07  370  

:::::: The code at line 351 was first introduced by commit
:::::: 5b2b135a87fcfb2b27c3c192fd7c3b053f0c5fa2 gpio: Add Tegra186 support

:::::: TO: Thierry Reding <treding@xxxxxxxxxx>
:::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux