[PATCH net v2 04/10] list: Move on_list_rcu() to list.h and add on_list() also
kernel test robot
lkp at intel.com
Mon Mar 23 15:55:04 PDT 2026
Hi David,
kernel test robot noticed the following build errors:
[auto build test ERROR on net/main]
url: https://github.com/intel-lab-lkp/linux/commits/David-Howells/rxrpc-Fix-key-quota-calculation-for-multitoken-keys/20260323-234846
base: net/main
patch link: https://lore.kernel.org/r/20260323150505.3513839-5-dhowells%40redhat.com
patch subject: [PATCH net v2 04/10] list: Move on_list_rcu() to list.h and add on_list() also
config: arc-randconfig-r071-20260324 (https://download.01.org/0day-ci/archive/20260324/202603240650.DP6vwmk9-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 10.5.0
smatch: v0.5.0-9004-gb810ac53
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260324/202603240650.DP6vwmk9-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603240650.DP6vwmk9-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/usb/dwc2/gadget.c:4313:13: error: conflicting types for 'on_list'
4313 | static bool on_list(struct dwc2_hsotg_ep *ep, struct dwc2_hsotg_req *test)
| ^~~~~~~
In file included from include/linux/module.h:12,
from drivers/usb/dwc2/gadget.c:15:
include/linux/list.h:392:20: note: previous definition of 'on_list' was here
392 | static inline bool on_list(const struct list_head *entry)
| ^~~~~~~
vim +/on_list +4313 drivers/usb/dwc2/gadget.c
4fe4f9fecc3695 drivers/usb/dwc2/gadget.c Minas Harutyunyan 2018-12-10 4307
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4308 /**
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4309 * on_list - check request is on the given endpoint
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4310 * @ep: The endpoint to check.
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4311 * @test: The request to test if it is on the endpoint.
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4312 */
1f91b4cc03556b drivers/usb/dwc2/gadget.c Felipe Balbi 2015-08-06 @4313 static bool on_list(struct dwc2_hsotg_ep *ep, struct dwc2_hsotg_req *test)
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4314 {
1f91b4cc03556b drivers/usb/dwc2/gadget.c Felipe Balbi 2015-08-06 4315 struct dwc2_hsotg_req *req, *treq;
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4316
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4317 list_for_each_entry_safe(req, treq, &ep->queue, queue) {
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4318 if (req == test)
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4319 return true;
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4320 }
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4321
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4322 return false;
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4323 }
5b7d70c6dbf2db drivers/usb/gadget/s3c-hsotg.c Ben Dooks 2009-06-02 4324
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-afs
mailing list