From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66862199236; Tue, 22 Oct 2024 11:05:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729595143; cv=none; b=mTmesu1iWTlOzxV3mqFcvqkNvDhZHPPQDcWfCBYrjG5pmVpAEIScDdlqw1NnhZO8Y18vPxQLTnB3bk2WngXeRyn9jGjY4ubRAhNqrz7o2+ukags7z+dhKEORCDP1OJKWOUuJUAuKh2yET0Dfgc03JcKxL1l9z2Jl9hIEwM+ZdsA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729595143; c=relaxed/simple; bh=lk6aSBgrBEc1NRKveTngB3JmIdfkK85pmGw8ldyXGEM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SmWu4rlrDiApbRfRFLhCh/jeyu1DTyVkMs3Aqv3k4BsobvFA6CV6Kyefw6pucInvhdznJIY3c3Q+KF8hztrP3av3GNNwT1SbbFGm7ICXpd4l1RIqNxbjigesGN1apTvrj0x+/Fk3voKs+mIvsnNxec8KEhhCfjFHfeiSnILjPpo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=jDCkvX03; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jDCkvX03" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729595140; x=1761131140; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=lk6aSBgrBEc1NRKveTngB3JmIdfkK85pmGw8ldyXGEM=; b=jDCkvX03/huqOv9OCFLUhyZNVFMGWBbyKTlgR/wnxJYazWZsDQPUCQM7 2T4IjQTJaQYGsdhVKQPavrenUyzaYXULy+b/3wY7QvynhCvCMu3+2IOjF Q4u0o5lUYyDIRqtA58zSrEd0yTi3A0H2pW/qv4mgFa7mEclh6W2UtsoI/ HHCfCMR2wzNsTDDTh0aPvYeSVGOF4Cx+EPQmsmajZLy8Io8PX9KP7Yz7J Pmoi8+cJUuxN2GKMHyNJSKbjSDlMQr9yWBJZ7slpdoDKv6SQhh225apvZ Va3F4h6jdaeGOrGCsvI0Bk8Fi5VuSb1mqbtlmUzi9IiQhP0tvFe9UdYPK w==; X-CSE-ConnectionGUID: WaYKjoDxQWitu2o0jxEZ8g== X-CSE-MsgGUID: 3ahCKxxGSdOHY6/WMr4tCA== X-IronPort-AV: E=McAfee;i="6700,10204,11232"; a="29014475" X-IronPort-AV: E=Sophos;i="6.11,223,1725346800"; d="scan'208";a="29014475" 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241021103617.653386-5-inochiama@gmail.com> 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