Re: [PATCH 5/9] [media] redrat3: enable carrier reports using wideband receiver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sean,

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on next-20161028]
[cannot apply to v4.9-rc3]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/Sean-Young/Various-IR-fixes/20161101-023658
base:   git://linuxtv.org/media_tree.git master
config: x86_64-randconfig-x014-201644 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/media/rc/redrat3.c: In function 'redrat3_learn_complete':
>> drivers/media/rc/redrat3.c:903:6: warning: unused variable 'ret' [-Wunused-variable]
     int ret;
         ^~~

vim +/ret +903 drivers/media/rc/redrat3.c

   887	
   888		rr3->wideband = enable != 0;
   889	
   890		if (enable) {
   891			ret = usb_submit_urb(rr3->learn_urb, GFP_KERNEL);
   892			if (ret)
   893				dev_err(rr3->dev, "Failed to submit learning urb: %d",
   894										ret);
   895		}
   896	
   897		return ret;
   898	}
   899	
   900	static void redrat3_learn_complete(struct urb *urb)
   901	{
   902		struct redrat3_dev *rr3 = urb->context;
 > 903		int ret;
   904	
   905		switch (urb->status) {
   906		case 0:
   907			break;
   908		case -ECONNRESET:
   909		case -ENOENT:
   910		case -ESHUTDOWN:
   911			usb_unlink_urb(urb);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux