linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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)'}
@ 2023-10-12 18:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-10-12 18:46 UTC (permalink / raw)
  To: Bartosz Golaszewski; +Cc: oe-kbuild-all, linux-gpio

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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310130237.2NLTLV30-lkp@intel.com/

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-12 18:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-12 18:46 [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)'} kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).