Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp310242lqb; Tue, 4 Jun 2024 12:02:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvW1XpI8mYb59PVC84eRMqukUBjj/c42JhDE/j37cu02gftoPa3Fjk5Cyc5FBVWUwHFQoB9j8Y18d6sQ+oBsAECjAdbcWcwj+AZ+lOiA== X-Google-Smtp-Source: AGHT+IEh4tNHwPiQkK9MZBDWLhxUQrre80jeT/AEVzkvGnaZxoJTgbmKogOqjY5ac2Yid7V7WKJz X-Received: by 2002:a05:6a00:14c4:b0:702:cec:85a2 with SMTP id d2e1a72fcca58-703e5a1bdd5mr415463b3a.27.1717527761627; Tue, 04 Jun 2024 12:02:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717527761; cv=pass; d=google.com; s=arc-20160816; b=Zn5jA/INvTYToH3dv0yFUyXvehN16y95f1ja+p7y+GKuyUzc88vTWBnQy8Lxg8NeMb Owa8FK61s/uKOjmX8N5uEWUeOalnBEPfCNour8P+yWNGdlO9M2Coun9pw91Yb5lNhOYb HO0pcwcrwaXIWweFk384klCb5DKqHBTHFf2blssdhVRJzrzHtl3jjSltEjNPsGur15fa IGyRBEnT+sFopPon5q43TA8inzKT75Hj+pOwvdcRTtLGmyEuxjRMrmtWSBodmL3IdyKe bg0/ZTyEJxcrlpm8ujy32enkrIkSwGd/qtuWQo+lwKFjHEWta1Ag6qTyuBMhT9o9pcQc Y/iQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W7Q8VGIAi5tQ9julGa4SqlRlUOc2HKYyibkm4va4Mt4=; fh=8sU3+7Dd5ubEr4C7EyfheMoS2yYTeKdy30vWtUEt/oc=; b=JyE063/wATj3TdGLJts2e0zj6ffG5oUn9rz9Ye4VL3JdKeYMFRpVl4XNR0HrOPbSPP YITp9oJ5ii7jbrfFT50HCVavZy38QWbiEcJi0Q7pJQvUufoOhumLFS4D9K3/24uxxqNT 3qNjDaNhJpau1sD0Hesw/S3sN9mUx5zmYw87aH/3uZvsd98BnwN2TMDpbF0iRHao6yco QlH8WdtjATcwbEuI04PSZA67cvIeWvO3uHKx34FBtwN3XesWabkGwzV9LSVsi+n+uMTM sQgCT9xFWrQei080wue/FfIQwCFtRfFxNFfmqYyWbwe/6G+WRnNP9H+Uy0jo0O9da4qM 4LQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b2BIlCYJ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-201264-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242c2938dsi368669b3a.283.2024.06.04.12.02.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 12:02:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201264-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b2BIlCYJ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-201264-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8C3EA282E53 for ; Tue, 4 Jun 2024 19:01:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F83314AD2D; Tue, 4 Jun 2024 19:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="b2BIlCYJ" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 6F72314A0AE; Tue, 4 Jun 2024 19:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717527669; cv=none; b=QpOtXEXDEWbNvgB+94SQhAIpzzgovm8iqTweG0r1ejLLxlRd50n2QNrCtq1EQISbXw2arxJTIgrafOCC/MjTtfCyByQ6AUa95jJX/unV31bQ4ZfPdDnUaPsMqllgLdCnN299VS0goDJlxpp/ZQUisFvwmWv9ROtRCbZabfWRhTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717527669; c=relaxed/simple; bh=RqzDd6PqyNpUbR3KegZSUVXG8pajX9LJcIatMv0cgDU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eF0y2/PBBoMj1SGwOR+69Rs9XZCmz6UmxT044E9hxh4qmrFAU4u+K7sOzr7NG/k46VJ2Tltq3EPvo7DjPLOLY/eeAdWpv87wZN9HpMBEhOETJbg7HHfXXWkykT2kfPpUPPHzysW0Xz53aleEPEB7SX+aK3aTEoQMHpJJDqwr2Hc= 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=b2BIlCYJ; arc=none smtp.client-ip=192.198.163.16 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717527668; x=1749063668; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=RqzDd6PqyNpUbR3KegZSUVXG8pajX9LJcIatMv0cgDU=; b=b2BIlCYJI2tCpsrr6JiHhLrJIh1TyxqGz1m18R9B1irD7Q+7ITW3rbxD hbdWYNmrtiddH9mDYBv1GGDKeoHUwcTs75wc3X0YHc6CcuhjK2iSKDdrr v5tZj8yJ17Dg+QbR5rWn7kAnUaxphsv8WTqEuk4JzOFLSLiwh9zTgqqKI PdoI1NHfHMM/5WtQay+Zy52arX7Nh97EF8Rrve3UOAXaECV9RQqSHN+Si pvRNXxCWzVOTweKDK0zF82olDV56mRhE9hW2CajBgXM1DeWC0xyOnPOov pc845enTKOs2vK2Jjt7yz9gAdzmN3sP43HAVmqQiFXjw2VKIMjsrRK4f8 A==; X-CSE-ConnectionGUID: eMuvmdE8TUO3W7wImiWzCA== X-CSE-MsgGUID: X3uMotcjSOyVNlYjWSpI/g== X-IronPort-AV: E=McAfee;i="6600,9927,11093"; a="11903040" X-IronPort-AV: E=Sophos;i="6.08,214,1712646000"; d="scan'208";a="11903040" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 12:01:07 -0700 X-CSE-ConnectionGUID: iY0xvanZRzqrvzsDJnXbdg== X-CSE-MsgGUID: sth1H5/sS2yVeM9gjrFlaw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,214,1712646000"; d="scan'208";a="68149973" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 04 Jun 2024 12:01:02 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sEZP0-0000Pz-2Y; Tue, 04 Jun 2024 19:00:58 +0000 Date: Wed, 5 Jun 2024 03:00:24 +0800 From: kernel test robot To: Christophe Roullier , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Richard Cochran , Jose Abreu , Liam Girdwood , Mark Brown , Marek Vasut Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 07/11] net: ethernet: stmmac: add management of stm32mp13 for stm32 Message-ID: <202406050248.rGgTkevY-lkp@intel.com> References: <20240604143502.154463-8-christophe.roullier@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240604143502.154463-8-christophe.roullier@foss.st.com> Hi Christophe, kernel test robot noticed the following build warnings: [auto build test WARNING on cd0057ad75116bacf16fea82e48c1db642971136] url: https://github.com/intel-lab-lkp/linux/commits/Christophe-Roullier/dt-bindings-net-add-STM32MP13-compatible-in-documentation-for-stm32/20240604-224324 base: cd0057ad75116bacf16fea82e48c1db642971136 patch link: https://lore.kernel.org/r/20240604143502.154463-8-christophe.roullier%40foss.st.com patch subject: [PATCH v4 07/11] net: ethernet: stmmac: add management of stm32mp13 for stm32 config: arm-defconfig (https://download.01.org/0day-ci/archive/20240605/202406050248.rGgTkevY-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240605/202406050248.rGgTkevY-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/202406050248.rGgTkevY-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:239:4: warning: variable 'val' is uninitialized when used here [-Wuninitialized] val |= SYSCFG_PMCR_ETH_SEL_MII; ^~~ drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:228:9: note: initialize the variable 'val' to silence this warning int val; ^ = 0 1 warning generated. vim +/val +239 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c 223 224 static int stm32mp1_configure_pmcr(struct plat_stmmacenet_data *plat_dat) 225 { 226 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; 227 u32 reg = dwmac->mode_reg; 228 int val; 229 230 switch (plat_dat->mac_interface) { 231 case PHY_INTERFACE_MODE_MII: 232 /* 233 * STM32MP15xx supports both MII and GMII, STM32MP13xx MII only. 234 * SYSCFG_PMCSETR ETH_SELMII is present only on STM32MP15xx and 235 * acts as a selector between 0:GMII and 1:MII. As STM32MP13xx 236 * supports only MII, ETH_SELMII is not present. 237 */ 238 if (!dwmac->is_mp13) /* Select MII mode on STM32MP15xx */ > 239 val |= SYSCFG_PMCR_ETH_SEL_MII; 240 break; 241 case PHY_INTERFACE_MODE_GMII: 242 val = SYSCFG_PMCR_ETH_SEL_GMII; 243 if (dwmac->enable_eth_ck) 244 val |= SYSCFG_PMCR_ETH_CLK_SEL; 245 break; 246 case PHY_INTERFACE_MODE_RMII: 247 val = SYSCFG_PMCR_ETH_SEL_RMII; 248 if (dwmac->enable_eth_ck) 249 val |= SYSCFG_PMCR_ETH_REF_CLK_SEL; 250 break; 251 case PHY_INTERFACE_MODE_RGMII: 252 case PHY_INTERFACE_MODE_RGMII_ID: 253 case PHY_INTERFACE_MODE_RGMII_RXID: 254 case PHY_INTERFACE_MODE_RGMII_TXID: 255 val = SYSCFG_PMCR_ETH_SEL_RGMII; 256 if (dwmac->enable_eth_ck) 257 val |= SYSCFG_PMCR_ETH_CLK_SEL; 258 break; 259 default: 260 dev_err(dwmac->dev, "Mode %s not supported", 261 phy_modes(plat_dat->mac_interface)); 262 /* Do not manage others interfaces */ 263 return -EINVAL; 264 } 265 266 dev_dbg(dwmac->dev, "Mode %s", phy_modes(plat_dat->mac_interface)); 267 268 /* Shift value at correct ethernet MAC offset in SYSCFG_PMCSETR */ 269 val <<= ffs(dwmac->mode_mask) - ffs(SYSCFG_MP1_ETH_MASK); 270 271 /* Need to update PMCCLRR (clear register) */ 272 regmap_write(dwmac->regmap, dwmac->ops->syscfg_clr_off, 273 dwmac->mode_mask); 274 275 /* Update PMCSETR (set register) */ 276 return regmap_update_bits(dwmac->regmap, reg, 277 dwmac->mode_mask, val); 278 } 279 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki