[pinctrl:devel 49/52] include/linux/gpio.h:254:11: warning: 'struct pinctrl_dev' declared inside parameter list will not be visible outside of this definition or declaration

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
head:   2e80e10f2d71f42c6c8f82fc173b21be856acc0f
commit: 78b99577b3934e3e787fe0c52aa1b59442c8bbb5 [49/52] pinctrl: remove unused pin_is_valid()
config: h8300-h8300h-sim_defconfig (attached as .config)
compiler: h8300-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 78b99577b3934e3e787fe0c52aa1b59442c8bbb5
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=h8300 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/tty/serial/sh-sci.h:5:0,
                    from drivers/tty/serial/sh-sci.c:60:
>> include/linux/gpio.h:254:11: warning: 'struct pinctrl_dev' declared inside parameter list will not be visible outside of this definition or declaration
       struct pinctrl_dev *pctldev,
              ^~~~~~~~~~~

vim +254 include/linux/gpio.h

165adc9c Linus Walleij     2012-11-06  251  
586a87e6 Christian Ruppert 2013-10-15  252  static inline int
586a87e6 Christian Ruppert 2013-10-15  253  gpiochip_add_pingroup_range(struct gpio_chip *chip,
586a87e6 Christian Ruppert 2013-10-15 @254  			struct pinctrl_dev *pctldev,
586a87e6 Christian Ruppert 2013-10-15  255  			unsigned int gpio_offset, const char *pin_group)
586a87e6 Christian Ruppert 2013-10-15  256  {
586a87e6 Christian Ruppert 2013-10-15  257  	WARN_ON(1);
586a87e6 Christian Ruppert 2013-10-15  258  	return -EINVAL;
586a87e6 Christian Ruppert 2013-10-15  259  }
586a87e6 Christian Ruppert 2013-10-15  260  

:::::: The code at line 254 was first introduced by commit
:::::: 586a87e6edc936d6d3c3585af504b33b9c3f0a06 pinctrl/gpio: non-linear GPIO ranges accesible from gpiolib

:::::: TO: Christian Ruppert <christian.ruppert@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