From: kernel test robot <lkp@intel.com>
To: Michael Grzeschik <m.grzeschik@pengutronix.de>,
laurent.pinchart@ideasonboard.com
Cc: oe-kbuild-all@lists.linux.dev, linux-usb@vger.kernel.org,
linux-media@vger.kernel.org, dan.scally@ideasonboard.com,
gregkh@linuxfoundation.org, nicolas@ndufresne.ca,
kernel@pengutronix.de
Subject: Re: [PATCH 1/3] usb: gadget: uvc: stop pump thread on video disable
Date: Mon, 11 Sep 2023 16:05:46 +0800 [thread overview]
Message-ID: <202309111506.64B9KHI7-lkp@intel.com> (raw)
In-Reply-To: <20230911002451.2860049-2-m.grzeschik@pengutronix.de>
Hi Michael,
kernel test robot noticed the following build errors:
[auto build test ERROR on usb/usb-testing]
[also build test ERROR on usb/usb-next usb/usb-linus westeri-thunderbolt/next media-tree/master linus/master v6.6-rc1 next-20230911]
[cannot apply to sailus-media-tree/streams]
[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/Michael-Grzeschik/usb-gadget-uvc-stop-pump-thread-on-video-disable/20230911-082623
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
patch link: https://lore.kernel.org/r/20230911002451.2860049-2-m.grzeschik%40pengutronix.de
patch subject: [PATCH 1/3] usb: gadget: uvc: stop pump thread on video disable
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230911/202309111506.64B9KHI7-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230911/202309111506.64B9KHI7-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/202309111506.64B9KHI7-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/usb/gadget/function/uvc_video.c: In function 'uvcg_video_enable':
>> drivers/usb/gadget/function/uvc_video.c:502:17: error: 'uvc' undeclared (first use in this function)
502 | uvc->state = UVC_STATE_CONNECTED;
| ^~~
drivers/usb/gadget/function/uvc_video.c:502:17: note: each undeclared identifier is reported only once for each function it appears in
vim +/uvc +502 drivers/usb/gadget/function/uvc_video.c
486
487 /*
488 * Enable or disable the video stream.
489 */
490 int uvcg_video_enable(struct uvc_video *video, int enable)
491 {
492 unsigned int i;
493 int ret;
494
495 if (video->ep == NULL) {
496 uvcg_info(&video->uvc->func,
497 "Video enable failed, device is uninitialized.\n");
498 return -ENODEV;
499 }
500
501 if (!enable) {
> 502 uvc->state = UVC_STATE_CONNECTED;
503
504 cancel_work_sync(&video->pump);
505 uvcg_queue_cancel(&video->queue, 0);
506
507 for (i = 0; i < video->uvc_num_requests; ++i)
508 if (video->ureq && video->ureq[i].req)
509 usb_ep_dequeue(video->ep, video->ureq[i].req);
510
511 uvc_video_free_requests(video);
512 uvcg_queue_enable(&video->queue, 0);
513 return 0;
514 }
515
516 if ((ret = uvcg_queue_enable(&video->queue, 1)) < 0)
517 return ret;
518
519 if ((ret = uvc_video_alloc_requests(video)) < 0)
520 return ret;
521
522 if (video->max_payload_size) {
523 video->encode = uvc_video_encode_bulk;
524 video->payload_size = 0;
525 } else
526 video->encode = video->queue.use_sg ?
527 uvc_video_encode_isoc_sg : uvc_video_encode_isoc;
528
529 uvc->state = UVC_STATE_STREAMING;
530
531 video->req_int_count = 0;
532
533 queue_work(video->async_wq, &video->pump);
534
535 return ret;
536 }
537
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-09-11 8:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-11 0:24 [PATCH 0/3] usb: gadget: uvc: restart fixes Michael Grzeschik
2023-09-11 0:24 ` [PATCH 1/3] usb: gadget: uvc: stop pump thread on video disable Michael Grzeschik
2023-09-11 4:35 ` kernel test robot
2023-09-11 8:05 ` kernel test robot [this message]
2023-09-11 0:24 ` [PATCH 2/3] usb: gadget: uvc: cleanup request when not in correct state Michael Grzeschik
2023-09-12 4:52 ` Avichal Rakesh
2023-09-15 23:32 ` Michael Grzeschik
2023-09-16 2:41 ` Avichal Rakesh
2023-09-16 23:23 ` Michael Grzeschik
2023-09-18 19:02 ` Avichal Rakesh
2023-09-18 21:43 ` Michael Grzeschik
2023-09-18 23:40 ` Avichal Rakesh
2023-09-19 8:08 ` Avichal Rakesh
2023-09-19 19:13 ` Michael Grzeschik
2023-09-19 19:55 ` Avichal Rakesh
2023-09-19 20:07 ` Michael Grzeschik
2023-09-19 20:22 ` Avichal Rakesh
2023-09-19 21:16 ` Michael Grzeschik
2023-09-20 20:15 ` Avichal Rakesh
2023-09-11 0:24 ` [PATCH 3/3] usb: gadget: uvc: rework pump worker to avoid while loop 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=202309111506.64B9KHI7-lkp@intel.com \
--to=lkp@intel.com \
--cc=dan.scally@ideasonboard.com \
--cc=gregkh@linuxfoundation.org \
--cc=kernel@pengutronix.de \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.grzeschik@pengutronix.de \
--cc=nicolas@ndufresne.ca \
--cc=oe-kbuild-all@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