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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8ABD0C636CD for ; Tue, 7 Feb 2023 11:38:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231302AbjBGLiC (ORCPT ); Tue, 7 Feb 2023 06:38:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231218AbjBGLiB (ORCPT ); Tue, 7 Feb 2023 06:38:01 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C89DF10265 for ; Tue, 7 Feb 2023 03:38:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675769880; x=1707305880; h=date:from:to:cc:subject:message-id:mime-version; bh=csIN9Lv3LAreFTCA+Qa2/KAShx5y2v7DH8eD/1nbPDw=; b=f38uJZT79ylGMQOKeV9X6z+s8gdWdCZ408ZWX+612K6e8C+NFcF7ctQK rJQcl8jOQalMRsc1bxZn6HxWR6dMLFELfJt5i5e2Q6CGqccvwQBksD0cJ iCVsXG21XE1SxNM46GavOeogjzdP2XDO0kfVZvgB8vWuUv0IsIDHO2Xa+ +DgX4Xx26At1FMnaEaLYkkGc7e5/R0juiBHOVuct59/Ick4CJezPaf3R5 TGihk8lyq7vnsUgLWMJj1Dkx7slrj2tJjyg22uHjS527S0CxOxdOF7MSh iu+CxM8FWC91paiG8TB2boSpJOZIL4KhSlHh8bz69UXa/CcP2XAeBv5FH g==; X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="329502045" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="329502045" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2023 03:38:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="995698714" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="995698714" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 07 Feb 2023 03:37:59 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pPMIQ-0003VW-1y; Tue, 07 Feb 2023 11:37:58 +0000 Date: Tue, 7 Feb 2023 19:37:53 +0800 From: kernel test robot To: Daniel Scally Cc: oe-kbuild-all@lists.linux.dev, linux-usb@vger.kernel.org, Greg Kroah-Hartman Subject: [usb:usb-testing 34/39] drivers/usb/gadget/configfs.c:824:13: warning: variable 'ret' set but not used Message-ID: <202302071942.wrmMMxiA-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing head: cf13d6e4a9aa6639c173fd630d82d586a2322ff9 commit: 15a7cf8caabee4613764abe7814dd3162cb64137 [34/39] usb: gadget: configfs: Support arbitrary string descriptors config: arm64-buildonly-randconfig-r002-20230207 (https://download.01.org/0day-ci/archive/20230207/202302071942.wrmMMxiA-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=15a7cf8caabee4613764abe7814dd3162cb64137 git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git git fetch --no-tags usb usb-testing git checkout 15a7cf8caabee4613764abe7814dd3162cb64137 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/usb/gadget/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/usb/gadget/configfs.c: In function 'gadget_string_s_store': >> drivers/usb/gadget/configfs.c:824:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 824 | int ret; | ^~~ vim +/ret +824 drivers/usb/gadget/configfs.c 818 819 static ssize_t gadget_string_s_store(struct config_item *item, const char *page, 820 size_t len) 821 { 822 struct gadget_string *string = to_gadget_string(item); 823 int size = min(sizeof(string->string), len + 1); > 824 int ret; 825 826 if (len > USB_MAX_STRING_LEN) 827 return -EINVAL; 828 829 ret = strscpy(string->string, page, size); 830 return len; 831 } 832 CONFIGFS_ATTR(gadget_string_, s); 833 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests