tree:
https://github.com/thierryreding/linux for-5.8/gpio
head: 7bf6a172582da9ec37054f5db206308e6bda0ac4
commit: ef26cf803b6588a982129fb633b4d8dd08833640 [1/4] gpio: Support GPIO controllers
without pin-ranges
config: s390-randconfig-a001-20200316 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.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 ef26cf803b6588a982129fb633b4d8dd08833640
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:23,
from include/linux/bitops.h:5,
from include/linux/bitmap.h:8,
from drivers//gpio/gpiolib.c:2:
drivers//gpio/gpiolib.c: In function 'gpiochip_generic_request':
drivers//gpio/gpiolib.c:2792:32: error: 'struct gpio_device' has no member
named 'pin_ranges'
2792 | if (!list_empty(&chip->gpiodev->pin_ranges))
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
> drivers//gpio/gpiolib.c:2792:2: note: in expansion of macro
'if'
2792 | if (!list_empty(&chip->gpiodev->pin_ranges))
| ^~
drivers//gpio/gpiolib.c:2792:32: error: 'struct gpio_device' has no member
named 'pin_ranges'
2792 | if (!list_empty(&chip->gpiodev->pin_ranges))
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
> drivers//gpio/gpiolib.c:2792:2: note: in expansion of macro
'if'
2792 | if (!list_empty(&chip->gpiodev->pin_ranges))
| ^~
drivers//gpio/gpiolib.c:2792:32: error: 'struct gpio_device' has no member
named 'pin_ranges'
2792 | if (!list_empty(&chip->gpiodev->pin_ranges))
| ^~
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
> drivers//gpio/gpiolib.c:2792:2: note: in expansion of macro
'if'
2792 | if (!list_empty(&chip->gpiodev->pin_ranges))
| ^~
vim +/if +2792 drivers//gpio/gpiolib.c
2784
2785 /**
2786 * gpiochip_generic_request() - request the gpio function for a pin
2787 * @chip: the gpiochip owning the GPIO
2788 * @offset: the offset of the GPIO to request for GPIO function
2789 */
2790 int gpiochip_generic_request(struct gpio_chip *chip, unsigned offset)
2791 {
2792 if (!list_empty(&chip->gpiodev->pin_ranges))
2793 return pinctrl_gpio_request(chip->gpiodev->base + offset);
2794
2795 return 0;
2796 }
2797 EXPORT_SYMBOL_GPL(gpiochip_generic_request);
2798
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org