Content-Type: multipart/mixed; boundary="===============0052485482378386209==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH] usbnet: sanity check for endpoint types Date: Fri, 26 Nov 2021 01:39:02 +0800 Message-ID: <202111260112.7MrCT7S6-lkp@intel.com> In-Reply-To: <8b395185-b18c-caf9-0418-78e96797b474@suse.com> List-Id: --===============0052485482378386209== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Oliver, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.16-rc2 next-20211125] [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/Oliver-Neukum/usbnet-sanit= y-check-for-endpoint-types/20211125-214053 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = 5f53fa508db098c9d372423a6dac31c8a5679cdf config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211126/= 202111260112.7MrCT7S6-lkp(a)intel.com/config) compiler: arceb-elf-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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/66c033857b47c1dceaaa6d9da= acaabc12ab8ee09 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Oliver-Neukum/usbnet-sanity-check-= for-endpoint-types/20211125-214053 git checkout 66c033857b47c1dceaaa6d9daacaabc12ab8ee09 # save the config file to linux build tree COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= ARCH=3Darc = If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/net/usb/usbnet.c:94:6: warning: no previous prototype for 'usbne= t_validate_endpoints' [-Wmissing-prototypes] 94 | bool usbnet_validate_endpoints(struct usbnet *dev, struct usb_in= terface *intf, const struct driver_info *info) | ^~~~~~~~~~~~~~~~~~~~~~~~~ vim +/usbnet_validate_endpoints +94 drivers/net/usb/usbnet.c 93 = > 94 bool usbnet_validate_endpoints(struct usbnet *dev, struct usb_interf= ace *intf, const struct driver_info *info) 95 { 96 struct usb_host_interface *alt =3D intf->cur_altsetting; 97 struct usb_host_endpoint *e; 98 = 99 e =3D alt->endpoint + info->in; 100 if (!e) 101 return false; 102 if (!usb_endpoint_is_bulk_in(&e->desc)) 103 return false; 104 = 105 e =3D alt->endpoint + info->out; 106 if (!e) 107 return false; 108 if (!usb_endpoint_is_bulk_out(&e->desc)) 109 return false; 110 = 111 return true; 112 } 113 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0052485482378386209==--