Hi Johan, [auto build test WARNING on usb/usb-testing] [also build test WARNING on v4.10 next-20170303] [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/Johan-Hovold/USB-serial-refactor-endpoint-sanity-checks/20170303-232312 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: x86_64-randconfig-s0-03040020 (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/serial/usb-serial.c: In function 'usb_serial_probe': drivers/usb/serial/usb-serial.c:1088: warning: label 'err_free_epds' defined but not used >> drivers/usb/serial/usb-serial.c:767: warning: unused variable 'iface_desc' vim +/iface_desc +767 drivers/usb/serial/usb-serial.c 129ec185 Johan Hovold 2017-03-02 751 } else if (usb_endpoint_is_int_out(epd)) { 129ec185 Johan Hovold 2017-03-02 752 dev_dbg(dev, "found interrupt out on endpoint %u\n", i); 129ec185 Johan Hovold 2017-03-02 753 if (epds->num_interrupt_out == MAX_NUM_PORTS) 129ec185 Johan Hovold 2017-03-02 754 continue; 129ec185 Johan Hovold 2017-03-02 755 epds->interrupt_out[epds->num_interrupt_out++] = epd; 129ec185 Johan Hovold 2017-03-02 756 } 129ec185 Johan Hovold 2017-03-02 757 } 129ec185 Johan Hovold 2017-03-02 758 } 129ec185 Johan Hovold 2017-03-02 759 2edd284b Greg Kroah-Hartman 2012-05-07 760 static int usb_serial_probe(struct usb_interface *interface, ^1da177e Linus Torvalds 2005-04-16 761 const struct usb_device_id *id) ^1da177e Linus Torvalds 2005-04-16 762 { 92931d24 Greg Kroah-Hartman 2012-09-13 763 struct device *ddev = &interface->dev; ^1da177e Linus Torvalds 2005-04-16 764 struct usb_device *dev = interface_to_usbdev(interface); ^1da177e Linus Torvalds 2005-04-16 765 struct usb_serial *serial = NULL; ^1da177e Linus Torvalds 2005-04-16 766 struct usb_serial_port *port; ^1da177e Linus Torvalds 2005-04-16 @767 struct usb_host_interface *iface_desc; ^1da177e Linus Torvalds 2005-04-16 768 struct usb_endpoint_descriptor *endpoint; 129ec185 Johan Hovold 2017-03-02 769 struct usb_serial_endpoints *epds; ea65370d Greg Kroah-Hartman 2005-06-20 770 struct usb_serial_driver *type = NULL; ^1da177e Linus Torvalds 2005-04-16 771 int retval; ^1da177e Linus Torvalds 2005-04-16 772 int buffer_size; ^1da177e Linus Torvalds 2005-04-16 773 int i; d83b4053 Johan Hovold 2011-11-06 774 int j; ^1da177e Linus Torvalds 2005-04-16 775 int num_ports = 0; :::::: The code at line 767 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip