[brgl:gpio/for-current 2/2] include/linux/gpio/driver.h:782:68: error: parameter 4 ('lflags') has incomplete type

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-current
head:   de5f701724ac1078deaf19ca2aa8dbf4bcd4b04f
commit: de5f701724ac1078deaf19ca2aa8dbf4bcd4b04f [2/2] gpiolib: fix linker errors when GPIOLIB is disabled
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20230124/202301240409.tZdm0o0a-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git/commit/?id=de5f701724ac1078deaf19ca2aa8dbf4bcd4b04f
        git remote add brgl https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git
        git fetch --no-tags brgl gpio/for-current
        git checkout de5f701724ac1078deaf19ca2aa8dbf4bcd4b04f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   In file included from include/linux/of_gpio.h:14,
                    from drivers/net/phy/mdio_bus.c:27:
>> include/linux/gpio/driver.h:782:68: error: parameter 4 ('lflags') has incomplete type
     782 |                                             enum gpio_lookup_flags lflags,
         |                                             ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
>> include/linux/gpio/driver.h:779:33: error: function declaration isn't a prototype [-Werror=strict-prototypes]
     779 | static inline struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc,
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/ssb/ssb.h:10,
                    from include/linux/ssb/ssb_driver_gige.h:5,
                    from drivers/net/ethernet/broadcom/tg3.c:54:
>> include/linux/gpio/driver.h:782:68: error: parameter 4 ('lflags') has incomplete type
     782 |                                             enum gpio_lookup_flags lflags,
         |                                             ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
>> include/linux/gpio/driver.h:783:62: error: parameter 5 ('dflags') has incomplete type
     783 |                                             enum gpiod_flags dflags)
         |                                             ~~~~~~~~~~~~~~~~~^~~~~~
>> include/linux/gpio/driver.h:779:33: error: function declaration isn't a prototype [-Werror=strict-prototypes]
     779 | static inline struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc,
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +782 include/linux/gpio/driver.h

   778	
 > 779	static inline struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc,
   780						    unsigned int hwnum,
   781						    const char *label,
 > 782						    enum gpio_lookup_flags lflags,
 > 783						    enum gpiod_flags dflags)
   784	{
   785		/* GPIO can never have been requested */
   786		WARN_ON(1);
   787		return ERR_PTR(-ENODEV);
   788	}
   789	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests



[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