From: kernel test robot <lkp@intel.com>
To: Xu Yang <xu.yang_2@nxp.com>,
gregkh@linuxfoundation.org, benjamin.tissoires@redhat.com,
hdegoede@redhat.com, ivan.orlov0322@gmail.com,
heikki.krogerus@linux.intel.com
Cc: oe-kbuild-all@lists.linux.dev, linux-usb@vger.kernel.org,
linux-imx@nxp.com, jun.li@nxp.com
Subject: Re: [PATCH] usb: roles: try to get/put all relevant modules
Date: Mon, 15 Jan 2024 10:12:47 +0800 [thread overview]
Message-ID: <202401151012.Dzvmty7a-lkp@intel.com> (raw)
In-Reply-To: <20240112080108.1147450-1-xu.yang_2@nxp.com>
Hi Xu,
kernel test robot noticed the following build warnings:
[auto build test WARNING on usb/usb-testing]
[also build test WARNING on usb/usb-next usb/usb-linus hid/for-next westeri-thunderbolt/next linus/master v6.7 next-20240112]
[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/Xu-Yang/usb-roles-try-to-get-put-all-relevant-modules/20240112-155735
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
patch link: https://lore.kernel.org/r/20240112080108.1147450-1-xu.yang_2%40nxp.com
patch subject: [PATCH] usb: roles: try to get/put all relevant modules
config: i386-randconfig-061-20240115 (https://download.01.org/0day-ci/archive/20240115/202401151012.Dzvmty7a-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240115/202401151012.Dzvmty7a-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/202401151012.Dzvmty7a-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/usb/roles/class.c:37:6: sparse: sparse: symbol 'usb_role_switch_get_modules' was not declared. Should it be static?
>> drivers/usb/roles/class.c:46:6: sparse: sparse: symbol 'usb_role_switch_put_modules' was not declared. Should it be static?
vim +/usb_role_switch_get_modules +37 drivers/usb/roles/class.c
36
> 37 void usb_role_switch_get_modules(struct device *dev)
38 {
39 while (dev) {
40 if (dev->driver)
41 WARN_ON(!try_module_get(dev->driver->owner));
42 dev = dev->parent;
43 }
44 }
45
> 46 void usb_role_switch_put_modules(struct device *dev)
47 {
48 while (dev) {
49 if (dev->driver)
50 module_put(dev->driver->owner);
51 dev = dev->parent;
52 }
53 }
54
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2024-01-15 2:13 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-12 8:01 [PATCH] usb: roles: try to get/put all relevant modules Xu Yang
2024-01-12 8:24 ` Greg KH
2024-01-12 8:26 ` Greg KH
2024-01-12 9:28 ` [EXT] " Xu Yang
2024-01-12 13:52 ` Greg KH
2024-01-15 3:02 ` Xu Yang
2024-01-15 6:54 ` Greg KH
2024-01-15 16:31 ` Alan Stern
2024-01-16 5:44 ` Xu Yang
2024-01-16 16:03 ` Alan Stern
2024-01-17 5:57 ` Xu Yang
2024-01-18 9:22 ` Heikki Krogerus
2024-01-18 9:53 ` Greg KH
2024-01-18 12:38 ` Heikki Krogerus
2024-01-18 14:54 ` Greg KH
2024-01-18 15:28 ` Alan Stern
2024-01-18 15:52 ` Xu Yang
2024-01-18 19:21 ` Alan Stern
2024-01-19 8:18 ` Xu Yang
2024-01-19 13:21 ` Heikki Krogerus
2024-01-19 14:53 ` Alan Stern
2024-01-19 11:13 ` Xu Yang
2024-01-19 15:00 ` Alan Stern
2024-01-19 15:23 ` Xu Yang
2024-01-19 16:22 ` Alan Stern
2024-01-22 2:32 ` Xu Yang
2024-01-18 15:29 ` Xu Yang
2024-01-14 12:25 ` Greg KH
2024-01-14 23:06 ` kernel test robot
2024-01-15 2:12 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202401151012.Dzvmty7a-lkp@intel.com \
--to=lkp@intel.com \
--cc=benjamin.tissoires@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=heikki.krogerus@linux.intel.com \
--cc=ivan.orlov0322@gmail.com \
--cc=jun.li@nxp.com \
--cc=linux-imx@nxp.com \
--cc=linux-usb@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=xu.yang_2@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.