[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202212141753.FAdsHypS-lkp@intel.com>
Date: Wed, 14 Dec 2022 17:38:22 +0800
From: kernel test robot <lkp@...el.com>
To: Puma Hsu <pumahsu@...gle.com>, gregkh@...uxfoundation.org,
mka@...omium.org, dianders@...omium.org
Cc: oe-kbuild-all@...ts.linux.dev, albertccwang@...gle.com,
raychi@...gle.com, howardyen@...gle.com, leejj@...gle.com,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
Puma Hsu <pumahsu@...gle.com>
Subject: Re: [PATCH 1/2] usb: core: add vendor hook for usb suspend and resume
Hi Puma,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on usb/usb-testing]
[also build test WARNING on usb/usb-next usb/usb-linus linus/master v6.1 next-20221214]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Puma-Hsu/add-vendor-hooks-for-usb-suspend-and-resume/20221214-150942
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
patch link: https://lore.kernel.org/r/20221214070650.703793-2-pumahsu%40google.com
patch subject: [PATCH 1/2] usb: core: add vendor hook for usb suspend and resume
config: i386-randconfig-a001
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/c37166c62c494c4e2b7ebbb0a920a47a41a4500a
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Puma-Hsu/add-vendor-hooks-for-usb-suspend-and-resume/20221214-150942
git checkout c37166c62c494c4e2b7ebbb0a920a47a41a4500a
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/usb/core/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/core/driver.c:40:5: warning: no previous prototype for 'usb_dev_register_vendor_ops' [-Wmissing-prototypes]
40 | int usb_dev_register_vendor_ops(struct usb_device_vendor_ops *vendor_ops)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/core/driver.c:50:31: warning: no previous prototype for 'usb_vendor_get_ops' [-Wmissing-prototypes]
50 | struct usb_device_vendor_ops *usb_vendor_get_ops(void)
| ^~~~~~~~~~~~~~~~~~
vim +/usb_dev_register_vendor_ops +40 drivers/usb/core/driver.c
39
> 40 int usb_dev_register_vendor_ops(struct usb_device_vendor_ops *vendor_ops)
41 {
42 if (vendor_ops == NULL)
43 return -EINVAL;
44
45 usb_dev_vendor_ops = vendor_ops;
46 return 0;
47 }
48 EXPORT_SYMBOL_GPL(usb_dev_register_vendor_ops);
49
> 50 struct usb_device_vendor_ops *usb_vendor_get_ops(void)
51 {
52 return usb_dev_vendor_ops;
53 }
54 EXPORT_SYMBOL_GPL(usb_vendor_get_ops);
55
56
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (153017 bytes)
Powered by blists - more mailing lists