From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F77FC433EF for ; Fri, 13 May 2022 11:05:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Rx6pjl11LKfmoJVyA6ze7Ar2po1upPPGxQnZFQ3nrAM=; b=ONUsWCzyyXoypx trwzSK0z3bGoLfyJ0ZPxHz1yVaoR4AVKkFbRrG5RL5dG7X+XDl5+c3gtf6NJgLWpx4NQcJJboySw4 TawLuhpjdZs7AcSHhd2d6NXjcRafC6bVOYEXXcAAvOT7pddQWnu67R2uAYKsz5ezeqTUfKmNFmhyd 8t4wCFQv7DbKDoK6CXz6vk9cVT8M1llKUIg55FqmFZ7i+UcuCGeu12tJLaqyBF/sNpGN+LcJHJHXG ByWRO5jVa/ZuuGEIUpuJCPWlmUPL+UhshF2UfJd71JuHJrILubIa8cYzsWM2d3gJDTiEx593/De0x EM4eUhELkPubstuuevMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1npT5P-00Fhjw-CP; Fri, 13 May 2022 11:03:56 +0000 Received: from mga01.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1npT5J-00FhgA-Ib for linux-arm-kernel@lists.infradead.org; Fri, 13 May 2022 11:03:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652439829; x=1683975829; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=TLKqQ2wymwAEhGiToADns1nYw8QR22hogOXokBFX7Cc=; b=AI5NvkCr0NCYu8Na/45S39xx5C4I5bO6AODGnkSTWa7r8GxGASP5O5Au H/6QfTPB3vMb1IMQhe1xZR1TzqyGDd00QzNx9cogmPqEFKJfsVOvN9WcS lRS0FUjv1HWwtPHUxh+nteCScGw/ZiciK4QDIkTXARY0CVHgMAou6JDIR ekHnX1da5M7sQweiuNuFmKNyRw+zvTS2ZSXJeU76eHlsXXsuTMl01Nmn6 hpcKcJjUhVwk0VSH2yvM4FzHkddO/gO5vJHWcJ0biOyv0kaqDcG49dHbG 6f4YVaOS1NPESuamS+fx/keIhJtjR9RCUTpnt5H4truGh87R+5WcRGItQ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="295538835" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="295538835" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 04:03:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="815340352" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 13 May 2022 04:03:36 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1npT55-000LfU-DL; Fri, 13 May 2022 11:03:35 +0000 Date: Fri, 13 May 2022 19:03:22 +0800 From: kernel test robot To: Neal Liu , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Joel Stanley , Andrew Jeffery , Felipe Balbi , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , Geert Uytterhoeven , Li Yang Cc: kbuild-all@lists.01.org, Neal Liu , linux-aspeed@lists.ozlabs.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, BMC-SW@aspeedtech.com Subject: Re: [PATCH 1/3] usb: gadget: add Aspeed ast2600 udc driver Message-ID: <202205131836.QEUySDoN-lkp@intel.com> References: <20220513065728.857722-2-neal_liu@aspeedtech.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220513065728.857722-2-neal_liu@aspeedtech.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220513_040349_670773_66FEC810 X-CRM114-Status: GOOD ( 16.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Neal, I love your patch! Perhaps something to improve: [auto build test WARNING on usb/usb-testing] [also build test WARNING on robh/for-next v5.18-rc6 next-20220513] [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/intel-lab-lkp/linux/commits/Neal-Liu/add-Aspeed-udc-driver-for-ast2600/20220513-150314 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20220513/202205131836.QEUySDoN-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 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/intel-lab-lkp/linux/commit/272ae26f9fe89f60d584cf445431d0fa566eb24b git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Neal-Liu/add-Aspeed-udc-driver-for-ast2600/20220513-150314 git checkout 272ae26f9fe89f60d584cf445431d0fa566eb24b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/usb/gadget/udc/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/usb/gadget/udc/aspeed_udc.c: In function 'ast_udc_ep0_out': >> drivers/usb/gadget/udc/aspeed_udc.c:790:13: warning: variable 'buf' set but not used [-Wunused-but-set-variable] 790 | u8 *buf; | ^~~ drivers/usb/gadget/udc/aspeed_udc.c: In function 'ast_udc_ep0_handle_setup': >> drivers/usb/gadget/udc/aspeed_udc.c:1099:60: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] 1099 | SETUP_DBG(udc, "No gadget for request !\n"); | ^ >> drivers/usb/gadget/udc/aspeed_udc.c:1034:13: warning: variable 'ep_num' set but not used [-Wunused-but-set-variable] 1034 | u16 ep_num = 0; | ^~~~~~ vim +/buf +790 drivers/usb/gadget/udc/aspeed_udc.c 783 784 static void ast_udc_ep0_out(struct ast_udc_dev *udc) 785 { 786 struct device *dev = &udc->pdev->dev; 787 struct ast_udc_ep *ep = &udc->ep[0]; 788 struct ast_udc_request *req; 789 u16 rx_len; > 790 u8 *buf; 791 792 if (list_empty(&ep->queue)) 793 return; 794 795 req = list_entry(ep->queue.next, struct ast_udc_request, queue); 796 797 buf = req->req.buf; 798 rx_len = EP0_GET_RX_LEN(ast_udc_read(udc, AST_UDC_EP0_CTRL)); 799 req->req.actual += rx_len; 800 801 SETUP_DBG(udc, "req %p (%d/%d)\n", req, 802 req->req.actual, req->req.length); 803 804 if ((rx_len < ep->ep.maxpacket) || 805 (req->req.actual == req->req.length)) { 806 ast_udc_ep0_tx(udc); 807 if (!ep->dir_in) 808 ast_udc_done(ep, req, 0); 809 810 } else { 811 if (rx_len > req->req.length) { 812 // Issue Fix 813 dev_warn(dev, "Something wrong (%d/%d)\n", 814 req->req.actual, req->req.length); 815 ast_udc_ep0_tx(udc); 816 ast_udc_done(ep, req, 0); 817 return; 818 } 819 820 ep->dir_in = 0; 821 822 /* More works */ 823 ast_udc_ep0_queue(ep, req); 824 } 825 } 826 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel