[brgl:gpio/devel 36/62] include/linux/pinctrl/consumer.h:76:1: error: conflicting types for 'pinctrl_gpio_can_use_line'; have 'bool(struct gpio_chip *, unsigned int)' {aka '_Bool(struct gpio_chip *, unsigned int)'}

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

 



Hi Bartosz,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/devel
head:   f45ee006d473c033a7d0152b182f9ba12cf52ce5
commit: c193f038b53221830113a2ef53a30f12d22e31e8 [36/62] treewide: rename pinctrl_gpio_can_use_line_new()
config: s390-randconfig-001-20231013 (https://download.01.org/0day-ci/archive/20231013/202310130237.2NLTLV30-lkp@xxxxxxxxx/config)
compiler: s390-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231013/202310130237.2NLTLV30-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310130237.2NLTLV30-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from drivers/i2c/i2c-core-base.c:36:
>> include/linux/pinctrl/consumer.h:76:1: error: conflicting types for 'pinctrl_gpio_can_use_line'; have 'bool(struct gpio_chip *, unsigned int)' {aka '_Bool(struct gpio_chip *, unsigned int)'}
      76 | pinctrl_gpio_can_use_line(struct gpio_chip *gc, unsigned int offset)
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/pinctrl/consumer.h:70:20: note: previous definition of 'pinctrl_gpio_can_use_line' with type 'bool(unsigned int)' {aka '_Bool(unsigned int)'}
      70 | static inline bool pinctrl_gpio_can_use_line(unsigned gpio)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~


vim +76 include/linux/pinctrl/consumer.h

    74	
    75	static inline bool
  > 76	pinctrl_gpio_can_use_line(struct gpio_chip *gc, unsigned int offset)
    77	{
    78		return true;
    79	}
    80	

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



[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