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 C992CD15D9D for ; Tue, 22 Oct 2024 11:07:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KBZ3Jz4qygi5ZaEj5lt0dcfNaFLU1VSlqshS57lGAFw=; b=cch3M3vw5yEKH1kSQq/ANu6rMw H52wI37ETaZ5ej+seN1BrN4NdoLFBJsj+KE2MYZ6ChW9LPYd/2UgIen9oF/pQonJimojh2h1Ue8X0 zVrkJg3PTRprultY8lFhF2MIW2MEWmQX68ZHLD1MbgLHDhLADEgpJX8xx5X2Rnx3J1a3gTdErDKN6 CRH+NjMc/dq6tK6aY9zcLXXP9wgI0cfLIYE8TQNr3noEp7IdSriXdeyqCw+VPJKK3t1JR6GLGWH6p xPEVNIiiO0fAmTCrIHKTc1fNomefyV32XuIPQg3JuQysTPDOwvsJVKkd+5cpNl4pTPE32hLDMDjAi MdIldweQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3CjM-0000000AdxR-48Df; Tue, 22 Oct 2024 11:07:17 +0000 Received: from mgamail.intel.com ([192.198.163.17]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3Chq-0000000AdkK-1WXx; Tue, 22 Oct 2024 11:05:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729595142; x=1761131142; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=lk6aSBgrBEc1NRKveTngB3JmIdfkK85pmGw8ldyXGEM=; b=duoHEe1AAVWZwrTfVvs9QJ3zuv7E9TSdpii+8q6oYlIlgXK8Xu8G2s9+ t/HA5iEE382whTqnNTYre/WskpuzjNBaAfyZrLgOs5kzk2zAeSdOtk48x PzSa19p5yF+2uO+ddVBH4prDrV5lxIj38ns3NwziETHyO+W+2oYFFZLda x64+CVYa0kmE1zTgd3g6tgBcSxnMD9Q3CJj/jgLqlS+v+hAGesnsNk0Bj AeDsEGlmeHIkARykd2DK/oMpef5HVjfy4dDl1MCx3m633CWa1JtALXQGn yillsiZCRfEzJ/Dx674bWBWPCyDgqGG6KOFJXt3hbumLjY8jNjK1qLn4D Q==; X-CSE-ConnectionGUID: W4WwBh5qR2yrn/8em2NIKA== X-CSE-MsgGUID: vQu00oraQ9G+fJfimVJG3g== X-IronPort-AV: E=McAfee;i="6700,10204,11232"; a="29014477" X-IronPort-AV: E=Sophos;i="6.11,223,1725346800"; d="scan'208";a="29014477" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2024 04:05:40 -0700 X-CSE-ConnectionGUID: M5Fes5M9R4qe3m5f1zbR5Q== X-CSE-MsgGUID: bsraSG9CSeiejIeei9+NFg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,223,1725346800"; d="scan'208";a="79778327" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 22 Oct 2024 04:05:33 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1t3Che-000TTS-2k; Tue, 22 Oct 2024 11:05:30 +0000 Date: Tue, 22 Oct 2024 19:04:36 +0800 From: kernel test robot To: Inochi Amaoto , Chen Wang , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Inochi Amaoto , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Giuseppe Cavallaro Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, Yixun Lan , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH 4/4] net: stmmac: Add glue layer for Sophgo SG2044 SoC Message-ID: <202410221853.0nt4WyvW-lkp@intel.com> References: <20241021103617.653386-5-inochiama@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241021103617.653386-5-inochiama@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241022_040542_441827_EBD411BB X-CRM114-Status: GOOD ( 13.34 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Inochi, kernel test robot noticed the following build warnings: [auto build test WARNING on robh/for-next] [also build test WARNING on sophgo/for-next sophgo/fixes net-next/main net/main linus/master v6.12-rc4 next-20241021] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Inochi-Amaoto/dt-bindings-net-snps-dwmac-Add-dwmac-5-30a-version/20241021-184301 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20241021103617.653386-5-inochiama%40gmail.com patch subject: [PATCH 4/4] net: stmmac: Add glue layer for Sophgo SG2044 SoC config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20241022/202410221853.0nt4WyvW-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241022/202410221853.0nt4WyvW-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202410221853.0nt4WyvW-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:41:2: warning: variable 'rate' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 41 | default: | ^~~~~~~ drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:46:36: note: uninitialized use occurs here 46 | ret = clk_set_rate(dwmac->clk_tx, rate); | ^~~~ drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:28:20: note: initialize the variable 'rate' to silence this warning 28 | unsigned long rate; | ^ | = 0 1 warning generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for MODVERSIONS Depends on [n]: MODULES [=y] && !COMPILE_TEST [=y] Selected by [y]: - RANDSTRUCT_FULL [=y] && (CC_HAS_RANDSTRUCT [=y] || GCC_PLUGINS [=n]) && MODULES [=y] vim +/rate +41 drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c 24 25 static void sophgo_dwmac_fix_mac_speed(void *priv, unsigned int speed, unsigned int mode) 26 { 27 struct sophgo_dwmac *dwmac = priv; 28 unsigned long rate; 29 int ret; 30 31 switch (speed) { 32 case SPEED_1000: 33 rate = 125000000; 34 break; 35 case SPEED_100: 36 rate = 25000000; 37 break; 38 case SPEED_10: 39 rate = 2500000; 40 break; > 41 default: 42 dev_err(dwmac->dev, "invalid speed %u\n", speed); 43 break; 44 } 45 46 ret = clk_set_rate(dwmac->clk_tx, rate); 47 if (ret) 48 dev_err(dwmac->dev, "failed to set tx rate %lu\n", rate); 49 } 50 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki