Linux 9p file system development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Michael Grzeschik <m.grzeschik@pengutronix.de>,
	Eric Van Hensbergen <ericvh@kernel.org>,
	Latchesar Ionkov <lucho@ionkov.net>,
	Dominique Martinet <asmadeus@codewreck.org>,
	Christian Schoenebeck <linux_oss@crudebyte.com>,
	Jonathan Corbet <corbet@lwn.net>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: oe-kbuild-all@lists.linux.dev,
	Andrzej Pietrasiewicz <andrzej.p@collabora.com>,
	v9fs@lists.linux.dev, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
	kernel@pengutronix.de,
	Michael Grzeschik <m.grzeschik@pengutronix.de>
Subject: Re: [PATCH v8 2/3] net/9p/usbg: Add new usb gadget function transport
Date: Mon, 22 Jul 2024 10:10:06 +0800	[thread overview]
Message-ID: <202407220933.WQ9L15Zw-lkp@intel.com> (raw)
In-Reply-To: <20240116-ml-topic-u9p-v8-2-409e659ca4dd@pengutronix.de>

Hi Michael,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 2c9b3512402ed192d1f43f4531fb5da947e72bd0]

url:    https://github.com/intel-lab-lkp/linux/commits/Michael-Grzeschik/usb-gadget-function-move-u_f-h-to-include-linux-usb-func_utils-h/20240722-070652
base:   2c9b3512402ed192d1f43f4531fb5da947e72bd0
patch link:    https://lore.kernel.org/r/20240116-ml-topic-u9p-v8-2-409e659ca4dd%40pengutronix.de
patch subject: [PATCH v8 2/3] net/9p/usbg: Add new usb gadget function transport
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20240722/202407220933.WQ9L15Zw-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240722/202407220933.WQ9L15Zw-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/202407220933.WQ9L15Zw-lkp@intel.com/

All warnings (new ones prefixed by >>):

   net/9p/trans_usbg.c: In function 'p9_usbg_create':
>> net/9p/trans_usbg.c:407:35: warning: variable 'cdev' set but not used [-Wunused-but-set-variable]
     407 |         struct usb_composite_dev *cdev;
         |                                   ^~~~


vim +/cdev +407 net/9p/trans_usbg.c

   404	
   405	static int p9_usbg_create(struct p9_client *client, const char *devname, char *args)
   406	{
 > 407		struct usb_composite_dev *cdev;
   408		struct f_usb9pfs_dev *dev;
   409		struct f_usb9pfs_dev *tmp;
   410		struct f_usb9pfs *usb9pfs;
   411		struct usb_function *f;
   412		int ret = -ENOENT;
   413		int found = 0;
   414	
   415		if (!devname)
   416			return -EINVAL;
   417	
   418		mutex_lock(&usb9pfs_lock);
   419		list_for_each_entry_safe(dev, tmp, &usbg_instance_list, usb9pfs_instance) {
   420			if (!strncmp(devname, dev->tag, strlen(devname))) {
   421				if (!dev->inuse) {
   422					dev->inuse = true;
   423					found = 1;
   424					break;
   425				}
   426				ret = -EBUSY;
   427				break;
   428			}
   429		}
   430	
   431		if (!found) {
   432			mutex_unlock(&usb9pfs_lock);
   433			pr_err("no channels available for device %s\n", devname);
   434			return ret;
   435		}
   436	
   437		usb9pfs = dev->usb9pfs;
   438		if (!usb9pfs) {
   439			mutex_unlock(&usb9pfs_lock);
   440			return -EINVAL;
   441		}
   442	
   443		INIT_LIST_HEAD(&usb9pfs->tx_req_list);
   444	
   445		f = &usb9pfs->function;
   446		cdev = f->config->cdev;
   447	
   448		client->trans = (void *)usb9pfs;
   449		if (!usb9pfs->in_req)
   450			client->status = Disconnected;
   451		else
   452			client->status = Connected;
   453		usb9pfs->client = client;
   454	
   455		client->trans_mod->maxsize = usb9pfs->buflen;
   456	
   457		mutex_unlock(&usb9pfs_lock);
   458	
   459		return 0;
   460	}
   461	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2024-07-22  2:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-21 22:18 [PATCH v8 0/3] usb: gadget: 9pfs transport Michael Grzeschik
2024-07-21 22:18 ` [PATCH v8 1/3] usb: gadget: function: move u_f.h to include/linux/usb/func_utils.h Michael Grzeschik
2024-07-21 22:18 ` [PATCH v8 2/3] net/9p/usbg: Add new usb gadget function transport Michael Grzeschik
2024-07-22  2:10   ` kernel test robot [this message]
2024-07-21 22:18 ` [PATCH v8 3/3] tools: usb: p9_fwd: add usb gadget packet forwarder script Michael Grzeschik

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=202407220933.WQ9L15Zw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrzej.p@collabora.com \
    --cc=asmadeus@codewreck.org \
    --cc=corbet@lwn.net \
    --cc=ericvh@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux_oss@crudebyte.com \
    --cc=lucho@ionkov.net \
    --cc=m.grzeschik@pengutronix.de \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=v9fs@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox