From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: Re: [RFC PATCH] usb: gadget: Drop unnecessary NULL checks after container_of
Date: Sat, 24 Apr 2021 03:13:10 +0800 [thread overview]
Message-ID: <202104240348.phU39YGm-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5146 bytes --]
CC: kbuild-all(a)lists.01.org
In-Reply-To: <20210423150626.138188-1-linux@roeck-us.net>
References: <20210423150626.138188-1-linux@roeck-us.net>
TO: Guenter Roeck <linux@roeck-us.net>
Hi Guenter,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on usb/usb-testing]
[also build test WARNING on peter.chen-usb/for-usb-next balbi-usb/testing/next v5.12-rc8 next-20210423]
[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]
url: https://github.com/0day-ci/linux/commits/Guenter-Roeck/usb-gadget-Drop-unnecessary-NULL-checks-after-container_of/20210423-230821
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
:::::: branch date: 4 hours ago
:::::: commit date: 4 hours ago
config: powerpc-randconfig-s031-20210423 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/cbd5fdce089022e1d479b647580489e84d92ca5e
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Guenter-Roeck/usb-gadget-Drop-unnecessary-NULL-checks-after-container_of/20210423-230821
git checkout cbd5fdce089022e1d479b647580489e84d92ca5e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/usb/gadget/function/uvc_configfs.c:967:1: sparse: sparse: unused label 'out'
vim +/out +967 drivers/usb/gadget/function/uvc_configfs.c
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 936
e16769d4bca672 Andrzej Pietrasiewicz 2016-11-28 937 static void uvcg_streaming_header_drop_link(struct config_item *src,
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 938 struct config_item *target)
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 939 {
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 940 struct mutex *su_mutex = &src->ci_group->cg_subsys->su_mutex;
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 941 struct config_item *opts_item;
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 942 struct f_uvc_opts *opts;
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 943 struct uvcg_streaming_header *src_hdr;
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 944 struct uvcg_format *target_fmt = NULL;
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 945 struct uvcg_format_ptr *format_ptr, *tmp;
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 946
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 947 src_hdr = to_uvcg_streaming_header(src);
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 948 mutex_lock(su_mutex); /* for navigating configfs hierarchy */
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 949
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 950 opts_item = src->ci_parent->ci_parent->ci_parent;
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 951 opts = to_f_uvc_opts(opts_item);
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 952
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 953 mutex_lock(&opts->lock);
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 954 target_fmt = container_of(to_config_group(target), struct uvcg_format,
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 955 group);
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 956
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 957 list_for_each_entry_safe(format_ptr, tmp, &src_hdr->formats, entry)
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 958 if (format_ptr->fmt == target_fmt) {
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 959 list_del(&format_ptr->entry);
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 960 kfree(format_ptr);
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 961 --src_hdr->num_fmt;
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 962 break;
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 963 }
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 964
cb2200f7af8341 Joel Pepper 2018-05-29 965 --target_fmt->linked;
cb2200f7af8341 Joel Pepper 2018-05-29 966
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 @967 out:
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 968 mutex_unlock(&opts->lock);
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 969 mutex_unlock(su_mutex);
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 970 }
46919a23ee87bb Andrzej Pietrasiewicz 2014-12-10 971
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33613 bytes --]
next reply other threads:[~2021-04-23 19:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-23 19:13 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-23 15:06 [RFC PATCH] usb: gadget: Drop unnecessary NULL checks after container_of Guenter Roeck
2021-04-23 17:31 ` kernel test robot
2021-04-24 6:01 ` Greg Kroah-Hartman
2021-04-24 8:03 ` Felipe Balbi
2021-04-24 22:07 ` Laurent Pinchart
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=202104240348.phU39YGm-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/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.