Linux-GPIO Archive on lore.kernel.org
 help / color / Atom feed
* [gpio:devel 21/25] drivers/gpio/gpiolib.c:2112:28: error: 'struct gpio_irq_chip' has no member named 'child_offset_to_irq'
@ 2019-08-14 12:23 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-08-14 12:23 UTC (permalink / raw)
  To: Linus Walleij; +Cc: kbuild-all, linux-gpio, Thierry Reding, Brian Masney

[-- Attachment #1: Type: text/plain, Size: 2617 bytes --]

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/linusw/linux-gpio.git devel
head:   470219c619e9f76e41497b9a90f2ec61dbedf3f2
commit: 9d5f07204350d557ec1e2d9bd2f779b45b490931 [21/25] gpio: Add support for hierarchical IRQ domains
config: nios2-10m50_defconfig (attached as .config)
compiler: nios2-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 9d5f07204350d557ec1e2d9bd2f779b45b490931
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=nios2 

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

All errors (new ones prefixed by >>):

   drivers/gpio/gpiolib.c: In function 'gpiochip_to_irq':
>> drivers/gpio/gpiolib.c:2112:28: error: 'struct gpio_irq_chip' has no member named 'child_offset_to_irq'
      spec.param[0] = chip->irq.child_offset_to_irq(chip, offset);
                               ^
   In file included from include/asm-generic/gpio.h:13:0,
                    from include/linux/gpio.h:62,
                    from drivers/gpio/gpiolib.c:13:
   At top level:
   include/linux/gpio/driver.h:553:13: warning: 'gpiochip_populate_parent_fwspec_fourcell' defined but not used [-Wunused-function]
    static void gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *chip,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/gpio/driver.h:546:13: warning: 'gpiochip_populate_parent_fwspec_twocell' defined but not used [-Wunused-function]
    static void gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *chip,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +2112 drivers/gpio/gpiolib.c

  2099	
  2100	static int gpiochip_to_irq(struct gpio_chip *chip, unsigned offset)
  2101	{
  2102		struct irq_domain *domain = chip->irq.domain;
  2103	
  2104		if (!gpiochip_irqchip_irq_valid(chip, offset))
  2105			return -ENXIO;
  2106	
  2107		if (irq_domain_is_hierarchy(domain)) {
  2108			struct irq_fwspec spec;
  2109	
  2110			spec.fwnode = domain->fwnode;
  2111			spec.param_count = 2;
> 2112			spec.param[0] = chip->irq.child_offset_to_irq(chip, offset);
  2113			spec.param[1] = IRQ_TYPE_NONE;
  2114	
  2115			return irq_create_fwspec_mapping(&spec);
  2116		}
  2117	
  2118		return irq_create_mapping(domain, offset);
  2119	}
  2120	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 9849 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-14 12:23 [gpio:devel 21/25] drivers/gpio/gpiolib.c:2112:28: error: 'struct gpio_irq_chip' has no member named 'child_offset_to_irq' kbuild test robot

Linux-GPIO Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-gpio/0 linux-gpio/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-gpio linux-gpio/ https://lore.kernel.org/linux-gpio \
		linux-gpio@vger.kernel.org linux-gpio@archiver.kernel.org
	public-inbox-index linux-gpio


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-gpio


AGPL code for this site: git clone https://public-inbox.org/ public-inbox