linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Michael Grzeschik <m.grzeschik@pengutronix.de>,
	linux-usb@vger.kernel.org
Cc: kbuild-all@lists.01.org, balbi@kernel.org,
	laurent.pinchart@ideasonboard.com, paul.elder@ideasonboard.com,
	kernel@pengutronix.de
Subject: Re: [PATCH v2 6/7] usb: gadget: uvc: add VIDIOC function
Date: Wed, 17 Nov 2021 12:22:54 +0800	[thread overview]
Message-ID: <202111171212.xTHMFTYJ-lkp@intel.com> (raw)
In-Reply-To: <20211117004432.3763306-7-m.grzeschik@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 3057 bytes --]

Hi Michael,

I love your patch! Perhaps something to improve:

[auto build test WARNING on usb/usb-testing]
[also build test WARNING on peter-chen-usb/for-usb-next v5.16-rc1 next-20211116]
[cannot apply to media-tree/master balbi-usb/testing/next]
[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/Michael-Grzeschik/usb-gadget-uvc-use-configfs-entries-for-negotiation-and-v4l2-VIDIOCS/20211117-084501
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: nds32-buildonly-randconfig-r005-20211116 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/3227638d6b37451cc22e7ee61a3311ec3f6498ce
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Michael-Grzeschik/usb-gadget-uvc-use-configfs-entries-for-negotiation-and-v4l2-VIDIOCS/20211117-084501
        git checkout 3227638d6b37451cc22e7ee61a3311ec3f6498ce
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/usb/gadget/function/uvc_v4l2.c:52:5: warning: no previous prototype for 'uvc_v4l2_get_bytesperline' [-Wmissing-prototypes]
      52 | int uvc_v4l2_get_bytesperline(struct uvcg_format *uformat,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/usb/gadget/function/uvc_v4l2.c: In function '_uvc_v4l2_try_fmt':
   drivers/usb/gadget/function/uvc_v4l2.c:240:13: warning: unused variable 'i' [-Wunused-variable]
     240 |         int i = 0;
         |             ^
   In file included from drivers/usb/gadget/function/uvc_v4l2.c:29:
   At top level:
   drivers/usb/gadget/function/uvc_configfs.h:40:27: warning: 'uvcg_format_names' defined but not used [-Wunused-const-variable=]
      40 | static const char * const uvcg_format_names[] = {
         |                           ^~~~~~~~~~~~~~~~~


vim +/uvc_v4l2_get_bytesperline +52 drivers/usb/gadget/function/uvc_v4l2.c

    51	
  > 52	int uvc_v4l2_get_bytesperline(struct uvcg_format *uformat,
    53				      struct uvcg_frame *uframe)
    54	{
    55		struct uvcg_uncompressed *u;
    56	
    57		if (uformat->type == UVCG_UNCOMPRESSED) {
    58			u = to_uvcg_uncompressed(&uformat->group.cg_item);
    59			if (!u)
    60				return 0;
    61	
    62			return u->desc.bBitsPerPixel * uframe->frame.w_width / 8;
    63		}
    64	
    65		return 0;
    66	}
    67	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28604 bytes --]

  reply	other threads:[~2021-11-17  4:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17  0:44 [PATCH v2 0/7] usb: gadget: uvc: use configfs entries for negotiation and v4l2 VIDIOCS Michael Grzeschik
2021-11-17  0:44 ` [PATCH v2 1/7] media: v4l: move helper functions for fractions from uvc to v4l2-common Michael Grzeschik
2021-11-17  0:44 ` [PATCH v2 2/7] media: uvcvideo: move uvc_format_desc to common header Michael Grzeschik
2021-11-17  0:44 ` [PATCH v2 3/7] usb: gadget: uvc: prevent index variables to start from 0 Michael Grzeschik
2021-11-17  0:44 ` [PATCH v2 4/7] usb: gadget: uvc: move structs to common header Michael Grzeschik
2021-11-17  0:44 ` [PATCH v2 5/7] usb: gadget: uvc: track frames in format entries Michael Grzeschik
2021-11-17  0:44 ` [PATCH v2 6/7] usb: gadget: uvc: add VIDIOC function Michael Grzeschik
2021-11-17  4:22   ` kernel test robot [this message]
2021-11-17  0:44 ` [PATCH v2 7/7] usb: gadget: uvc: add format/frame handling code Michael Grzeschik
2021-11-17 12:26 ` [PATCH v2 0/7] usb: gadget: uvc: use configfs entries for negotiation and v4l2 VIDIOCS 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=202111171212.xTHMFTYJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=balbi@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=kernel@pengutronix.de \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=m.grzeschik@pengutronix.de \
    --cc=paul.elder@ideasonboard.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).