[gpio:gpio-variable-naming 19/28] drivers/gpio/gpiolib.c:2748:32: error: 'struct gpio_device' has no member named 'pin_ranges'

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

 



Hi Thierry,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-variable-naming
head:   6ce316651a9f236e7204494a4fa080aaf59d5a9d
commit: 2ab73c6d8323fa1eb02c16c07c40ba2ed17da729 [19/28] gpio: Support GPIO controllers without pin-ranges
config: x86_64-randconfig-h002-20200329 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
        git checkout 2ab73c6d8323fa1eb02c16c07c40ba2ed17da729
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/bitops.h:16:0,
                    from include/linux/bitops.h:29,
                    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:2748:32: error: 'struct gpio_device' has no member named 'pin_ranges'
     if (!list_empty(&chip->gpiodev->pin_ranges))
                                   ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
   drivers/gpio/gpiolib.c:2748:2: note: in expansion of macro 'if'
     if (!list_empty(&chip->gpiodev->pin_ranges))
     ^~
>> drivers/gpio/gpiolib.c:2748:32: error: 'struct gpio_device' has no member named 'pin_ranges'
     if (!list_empty(&chip->gpiodev->pin_ranges))
                                   ^
   include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                ^~~~
   drivers/gpio/gpiolib.c:2748:2: note: in expansion of macro 'if'
     if (!list_empty(&chip->gpiodev->pin_ranges))
     ^~
>> drivers/gpio/gpiolib.c:2748:32: error: 'struct gpio_device' has no member named 'pin_ranges'
     if (!list_empty(&chip->gpiodev->pin_ranges))
                                   ^
   include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
     (cond) ?     \
      ^~~~
   include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
    #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                               ^~~~~~~~~~~~~~
   drivers/gpio/gpiolib.c:2748:2: note: in expansion of macro 'if'
     if (!list_empty(&chip->gpiodev->pin_ranges))
     ^~

vim +2748 drivers/gpio/gpiolib.c

  2740	
  2741	/**
  2742	 * gpiochip_generic_request() - request the gpio function for a pin
  2743	 * @chip: the gpiochip owning the GPIO
  2744	 * @offset: the offset of the GPIO to request for GPIO function
  2745	 */
  2746	int gpiochip_generic_request(struct gpio_chip *chip, unsigned offset)
  2747	{
> 2748		if (!list_empty(&chip->gpiodev->pin_ranges))
  2749			return pinctrl_gpio_request(chip->gpiodev->base + offset);
  2750	
  2751		return 0;
  2752	}
  2753	EXPORT_SYMBOL_GPL(gpiochip_generic_request);
  2754	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

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