Re: [PATCH RESEND] usb: gadget: udc-core: Rescan pending list on driver unbind

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

 



Hi Krzysztof,

[auto build test WARNING on usb/usb-testing]
[also build test WARNING on v4.9-rc8 next-20161205]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Krzysztof-Opasiak/usb-gadget-udc-core-Rescan-pending-list-on-driver-unbind/20161206-185131
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: x86_64-randconfig-s0-12061826 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/usb/gadget/udc/core.c: In function 'usb_add_gadget_udc_release':
>> drivers/usb/gadget/udc/core.c:1114: warning: unused variable 'driver'
   At top level:
   cc1: warning: unrecognized command line option "-Wno-maybe-uninitialized"
   drivers/usb/gadget/udc/core.o: warning: objtool: usb_gadget_map_request_by_dev()+0x90: function has unreachable instruction

vim +/driver +1114 drivers/usb/gadget/udc/core.c

60068fb97 drivers/usb/gadget/udc/core.c     Krzysztof Opasiak 2016-12-06  1098  	return ret;
60068fb97 drivers/usb/gadget/udc/core.c     Krzysztof Opasiak 2016-12-06  1099  }
60068fb97 drivers/usb/gadget/udc/core.c     Krzysztof Opasiak 2016-12-06  1100  
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1101  /**
792bfcf7a drivers/usb/gadget/udc-core.c     Felipe Balbi      2013-02-26  1102   * usb_add_gadget_udc_release - adds a new gadget to the udc class driver list
792bfcf7a drivers/usb/gadget/udc-core.c     Felipe Balbi      2013-02-26  1103   * @parent: the parent device to this udc. Usually the controller driver's
792bfcf7a drivers/usb/gadget/udc-core.c     Felipe Balbi      2013-02-26  1104   * device.
792bfcf7a drivers/usb/gadget/udc-core.c     Felipe Balbi      2013-02-26  1105   * @gadget: the gadget to be added to the list.
792bfcf7a drivers/usb/gadget/udc-core.c     Felipe Balbi      2013-02-26  1106   * @release: a gadget release function.
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1107   *
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1108   * Returns zero on success, negative errno otherwise.
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1109   */
792bfcf7a drivers/usb/gadget/udc-core.c     Felipe Balbi      2013-02-26  1110  int usb_add_gadget_udc_release(struct device *parent, struct usb_gadget *gadget,
792bfcf7a drivers/usb/gadget/udc-core.c     Felipe Balbi      2013-02-26  1111  		void (*release)(struct device *dev))
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1112  {
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1113  	struct usb_udc		*udc;
855ed04a3 drivers/usb/gadget/udc/udc-core.c Ruslan Bilovol    2015-11-23 @1114  	struct usb_gadget_driver *driver;
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1115  	int			ret = -ENOMEM;
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1116  
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1117  	udc = kzalloc(sizeof(*udc), GFP_KERNEL);
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1118  	if (!udc)
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1119  		goto err1;
2ccea03a8 drivers/usb/gadget/udc-core.c     Felipe Balbi      2011-06-28  1120  
f07bd56bb drivers/usb/gadget/udc-core.c     Felipe Balbi      2013-01-24  1121  	dev_set_name(&gadget->dev, "gadget");
5702f7537 drivers/usb/gadget/udc-core.c     Felipe Balbi      2013-07-17  1122  	INIT_WORK(&gadget->work, usb_gadget_state_work);

:::::: The code at line 1114 was first introduced by commit
:::::: 855ed04a3758b205e84b269f92d26ab36ed8e2f7 usb: gadget: udc-core: independent registration of gadgets and gadget drivers

:::::: TO: Ruslan Bilovol <ruslan.bilovol@xxxxxxxxx>
:::::: CC: Felipe Balbi <balbi@xxxxxx>

---
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 Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux