linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [brgl:gpio/for-next 3/11] drivers/gpio/gpiolib-shared.c:62:1: warning: 'gpio_shared_find_entry' defined but not used
@ 2025-11-17 18:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-17 18:18 UTC (permalink / raw)
  To: Bartosz Golaszewski; +Cc: oe-kbuild-all, linux-gpio, Linus Walleij

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next
head:   67f9b828d4e5e47caf3472a399c25c3c0ddc824a
commit: a060b8c511abb0997381b397e52149a5e3e5259a [3/11] gpiolib: implement low-level, shared GPIO support
config: s390-randconfig-r073-20251117 (https://download.01.org/0day-ci/archive/20251118/202511180232.EItKeYjY-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251118/202511180232.EItKeYjY-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/202511180232.EItKeYjY-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpio/gpiolib-shared.c:62:1: warning: 'gpio_shared_find_entry' defined but not used [-Wunused-function]
    gpio_shared_find_entry(struct fwnode_handle *controller_node,
    ^~~~~~~~~~~~~~~~~~~~~~


vim +/gpio_shared_find_entry +62 drivers/gpio/gpiolib-shared.c

    60	
    61	static struct gpio_shared_entry *
  > 62	gpio_shared_find_entry(struct fwnode_handle *controller_node,
    63			       unsigned int offset)
    64	{
    65		struct gpio_shared_entry *entry;
    66	
    67		list_for_each_entry(entry, &gpio_shared_list, list) {
    68			if (entry->fwnode == controller_node && entry->offset == offset)
    69				return entry;
    70		}
    71	
    72		return NULL;
    73	}
    74	

-- 
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:[~2025-11-17 18:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-17 18:18 [brgl:gpio/for-next 3/11] drivers/gpio/gpiolib-shared.c:62:1: warning: 'gpio_shared_find_entry' defined but not used 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).