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 660F7C6FA8F for ; Thu, 24 Aug 2023 15:15:40 +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=OCOGkYomiVyJMPPaEKgjMsmH+D1w9FnF/v9msBDyxZk=; b=cgn5dckGx3/HjD z3jPvoF+e3UotI4Pj8MLKsQhMFAYYdR6Ih8OtA9IISlSLqoDp1wv4nfg4otFB7VSmCQILft7AZS8N rPMLxLJIfKKFppe854wXzywI41jKeSjRFAbyQLbQvhkvBoNO00o5JUBAV8osukftCA9fQ7LqfHXf6 hPOuZZ9EtUW0j5vETV3vPJ13gvWaZakkOQhRHO1VWe2udLzMT6Ohhw+8f3PTFP+yNMgI3yFH/jiCC 005gJRjwGzDULVldIxnufL0rdOZ8rlvizQL7g5uMq4aHr9QzQ59WVoa/bdF9fZK2++AITpizmYTrr dzdMD2DvBESyJ0fRXpSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZC3C-003LJw-2E; Thu, 24 Aug 2023 15:15:10 +0000 Received: from mgamail.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qZC38-003LIv-2i; Thu, 24 Aug 2023 15:15:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692890106; x=1724426106; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=j3s15fzbY21jU7a4dXxI63BSMfPORjJ31zoaNT3reHQ=; b=Tjx+XEjFviEOmMmC6tsAis9YN6dsHAWlUVvcjIPNG5BRATWY+mbWOL7W Oezh6jAuAiN+ILEgW5S8eBjKzO5Gb5Zh0zKN4rjlvRqSMmA/TFa923BZa q5afT+yAQlXjcM0Y0EAdXGcEf02d87uwxICjH0+TScXMYx1Q93rZz0yqa MlbANkKbUShwsIY+5WFwYXo4GihmNcV+53FfLhZwU2Og3/1Md/H33taEk +dfNPb20P+uWZf5vZY/5i1IN9a/Tbevl3KMIf5Sa+22KiqbhOm8emri2q 8aNGpHJkElKzmvRyjZWGXY1MYaSr4yngR2OLwo1oqGVa1NQasnviC0Hdo Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="374433218" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="374433218" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2023 08:07:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.01,202,1684825200"; d="scan'208";a="880838364" Received: from lkp-server02.sh.intel.com (HELO daf8bb0a381d) ([10.239.97.151]) by fmsmga001.fm.intel.com with ESMTP; 24 Aug 2023 08:06:58 -0700 Received: from kbuild by daf8bb0a381d with local (Exim 4.96) (envelope-from ) id 1qZBv5-0002me-0p; Thu, 24 Aug 2023 15:06:49 +0000 Date: Thu, 24 Aug 2023 23:06:07 +0800 From: kernel test robot To: Jisheng Zhang , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH net-next 3/3] net: stmmac: add glue layer for T-HEAD TH1520 SoC Message-ID: <202308242250.G39QxvdR-lkp@intel.com> References: <20230820120213.2054-4-jszhang@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230820120213.2054-4-jszhang@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230824_081506_948874_B53015D9 X-CRM114-Status: GOOD ( 13.42 ) 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 Jisheng, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Jisheng-Zhang/dt-bindings-net-snps-dwmac-allow-dwmac-3-70a-to-set-pbl-properties/20230821-114902 base: net-next/main patch link: https://lore.kernel.org/r/20230820120213.2054-4-jszhang%40kernel.org patch subject: [PATCH net-next 3/3] net: stmmac: add glue layer for T-HEAD TH1520 SoC config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230824/202308242250.G39QxvdR-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230824/202308242250.G39QxvdR-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/202308242250.G39QxvdR-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:151:3: warning: variable 'div' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 151 | default: | ^~~~~~~ drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:156:50: note: uninitialized use occurs here 156 | GMAC_PLLCLK_DIV_MASK, GMAC_PLLCLK_DIV_NUM(div)); | ^~~ drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:40:68: note: expanded from macro 'GMAC_PLLCLK_DIV_NUM' 40 | #define GMAC_PLLCLK_DIV_NUM(x) FIELD_PREP(GMAC_PLLCLK_DIV_MASK, (x)) | ^ include/linux/bitfield.h:114:33: note: expanded from macro 'FIELD_PREP' 114 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ | ^~~~ include/linux/bitfield.h:68:41: note: expanded from macro '__BF_FIELD_CHECK' 68 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ | ^~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:397:22: note: expanded from macro 'compiletime_assert' 397 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~ include/linux/compiler_types.h:385:23: note: expanded from macro '_compiletime_assert' 385 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~ include/linux/compiler_types.h:377:9: note: expanded from macro '__compiletime_assert' 377 | if (!(condition)) \ | ^~~~~~~~~ drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:121:9: note: initialize the variable 'div' to silence this warning 121 | u32 div; | ^ | = 0 1 warning generated. vim +/div +151 drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c 115 116 static void thead_dwmac_fix_speed(void *priv, unsigned int speed, unsigned int mode) 117 { 118 struct thead_dwmac *dwmac = priv; 119 struct plat_stmmacenet_data *plat = dwmac->plat; 120 unsigned long rate; 121 u32 div; 122 123 switch (plat->interface) { 124 /* For MII, rxc/txc is provided by phy */ 125 case PHY_INTERFACE_MODE_MII: 126 return; 127 128 case PHY_INTERFACE_MODE_RGMII: 129 case PHY_INTERFACE_MODE_RGMII_ID: 130 case PHY_INTERFACE_MODE_RGMII_RXID: 131 case PHY_INTERFACE_MODE_RGMII_TXID: 132 rate = clk_get_rate(plat->stmmac_clk); 133 if (!rate || rate % GMAC_GMII_RGMII_RATE != 0 || 134 rate % GMAC_MII_RATE != 0) { 135 dev_err(dwmac->dev, "invalid gmac rate %ld\n", rate); 136 return; 137 } 138 139 regmap_update_bits(dwmac->apb_regmap, GMAC_PLLCLK_DIV, GMAC_PLLCLK_DIV_EN, 0); 140 141 switch (speed) { 142 case SPEED_1000: 143 div = rate / GMAC_GMII_RGMII_RATE; 144 break; 145 case SPEED_100: 146 div = rate / GMAC_MII_RATE; 147 break; 148 case SPEED_10: 149 div = rate * 10 / GMAC_MII_RATE; 150 break; > 151 default: 152 dev_err(dwmac->dev, "invalid speed %u\n", speed); 153 break; 154 } 155 regmap_update_bits(dwmac->apb_regmap, GMAC_PLLCLK_DIV, 156 GMAC_PLLCLK_DIV_MASK, GMAC_PLLCLK_DIV_NUM(div)); 157 158 regmap_update_bits(dwmac->apb_regmap, GMAC_PLLCLK_DIV, 159 GMAC_PLLCLK_DIV_EN, GMAC_PLLCLK_DIV_EN); 160 break; 161 default: 162 dev_err(dwmac->dev, "unsupported phy interface %d\n", 163 plat->interface); 164 return; 165 } 166 } 167 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel