From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 96F8233C19E; Wed, 19 Nov 2025 12:01:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763553709; cv=none; b=fzyEjPh5L1NFZ+qqu3DtzZODZ3lcaliY+SPWUBY+LFK8tZuxCC6C3HkOta7EtgOQCngLswRwYFHRStSog0vj9yvm3FFngTh+4ZrZx+1uJZBzxwXVtdnG1LVdV/d5YkjMuoArL5NOShsJNbnjFEQnU3nHRIWnDSumzvviODOCeIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763553709; c=relaxed/simple; bh=wZu4O2eSmloAFp6UwaVGMqF7y8f9HckwQhotuR9qm1Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RmTYqKWgYNVqL4jxWbkB31ow28+k9/gAkdLnwWr4NH4c+KRkQdjdfazSCmtZFxVXEGw3Hhe5RRPVGvFwGmfcKmTLsGFXegVyRZDof55UKMcrOxfo6MxnwP3vr6o294o8ASr5Q2a5ZgX+Gi0bMZfh+PWa0rQdIb5E1UntyeKNE0o= 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=G+h4AzQ0; arc=none smtp.client-ip=192.198.163.9 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="G+h4AzQ0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1763553707; x=1795089707; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wZu4O2eSmloAFp6UwaVGMqF7y8f9HckwQhotuR9qm1Y=; b=G+h4AzQ0gxoE9uQ0tzl3kRMFWq/nEuO2QupcdZwiHC2dgs3zHQ1vOEwD hPaiwKT7aKEynpVsnHKjkMHq7ASxy3gWN63NzKuSDvIdk+COONCQ274Ct NRM5jRvh5PTob/1ND/tnUumTyD7PxA391dOooB5HHNqvtJCeT3bi3Uc70 xCNWs+09V69D9+x2Yscm3Akf4e6d/OXX3ylrBrE6E0mHl38xD/L815NuQ 2mLxe7DLeTwprh9P76jwU9j+I5UH7VclahnLHbO+pWl5Jqi4mAbJ2+hbv C6+yBH3SS9+wFcINvOOFp+7/G9hKXheBosniSbcux36bcxhkioLrDTeyX A==; X-CSE-ConnectionGUID: N92M4bh5Tze5gSkZodPa3Q== X-CSE-MsgGUID: CvAVy+1hQ12UU0BZvk4dfQ== X-IronPort-AV: E=McAfee;i="6800,10657,11617"; a="76271666" X-IronPort-AV: E=Sophos;i="6.19,315,1754982000"; d="scan'208";a="76271666" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2025 04:01:47 -0800 X-CSE-ConnectionGUID: XB1SN3ttTmGK7uDmo05Z/A== X-CSE-MsgGUID: 7W9+R3cbTcy+1Abon/uAzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,315,1754982000"; d="scan'208";a="190698459" Received: from lkp-server01.sh.intel.com (HELO adf6d29aa8d9) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 19 Nov 2025 04:01:42 -0800 Received: from kbuild by adf6d29aa8d9 with local (Exim 4.96) (envelope-from ) id 1vLgsV-0002r9-2H; Wed, 19 Nov 2025 12:01:39 +0000 Date: Wed, 19 Nov 2025 20:01:38 +0800 From: kernel test robot To: Vladimir Oltean , netdev@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Lunn , Heiner Kallweit , Russell King , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, Serge Semin , Andy Shevchenko , Herve Codina , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org Subject: Re: [PATCH net-next 14/15] net: dsa: sja1105: replace mdiobus-pcs with xpcs-plat driver Message-ID: <202511191946.DzxNhLVl-lkp@intel.com> References: <20251118190530.580267-15-vladimir.oltean@nxp.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: <20251118190530.580267-15-vladimir.oltean@nxp.com> Hi Vladimir, 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/Vladimir-Oltean/net-dsa-sja1105-let-phylink-help-with-the-replay-of-link-callbacks/20251119-031300 base: net-next/main patch link: https://lore.kernel.org/r/20251118190530.580267-15-vladimir.oltean%40nxp.com patch subject: [PATCH net-next 14/15] net: dsa: sja1105: replace mdiobus-pcs with xpcs-plat driver config: hexagon-randconfig-002-20251119 (https://download.01.org/0day-ci/archive/20251119/202511191946.DzxNhLVl-lkp@intel.com/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251119/202511191946.DzxNhLVl-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/202511191946.DzxNhLVl-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/net/dsa/sja1105/sja1105_mfd.c:146:5: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int') [-Wformat] 145 | snprintf(node_name, sizeof(node_name), "ethernet-pcs@%llx", | ~~~~ | %x 146 | pcs_res->res.start); | ^~~~~~~~~~~~~~~~~~ 1 warning generated. vim +146 drivers/net/dsa/sja1105/sja1105_mfd.c 124 125 static int sja1105_create_pcs_nodes(struct sja1105_private *priv, 126 struct device_node *regs_node) 127 { 128 struct dsa_switch *ds = priv->ds; 129 struct device *dev = ds->dev; 130 struct device_node *pcs_node; 131 const u32 reg_io_width = 4; 132 char node_name[32]; 133 u32 reg_props[2]; 134 int rc; 135 136 for (int i = 0; i < priv->info->num_pcs_resources; i++) { 137 const struct sja1105_pcs_resource *pcs_res; 138 139 pcs_res = &priv->info->pcs_resources[i]; 140 141 if (sja1105_child_node_exists(regs_node, "ethernet-pcs", 142 &pcs_res->res)) 143 continue; 144 145 snprintf(node_name, sizeof(node_name), "ethernet-pcs@%llx", > 146 pcs_res->res.start); 147 148 pcs_node = of_changeset_create_node(&priv->of_cs, regs_node, 149 node_name); 150 if (!pcs_node) { 151 dev_err(dev, "Failed to create PCS node %s\n", node_name); 152 return -ENOMEM; 153 } 154 155 rc = of_changeset_add_prop_string(&priv->of_cs, pcs_node, 156 "compatible", 157 pcs_res->compatible); 158 if (rc) { 159 dev_err(dev, "Failed to add compatible property to %s: %pe\n", 160 node_name, ERR_PTR(rc)); 161 return rc; 162 } 163 164 reg_props[0] = pcs_res->res.start; 165 reg_props[1] = resource_size(&pcs_res->res); 166 rc = of_changeset_add_prop_u32_array(&priv->of_cs, pcs_node, 167 "reg", reg_props, 2); 168 if (rc) { 169 dev_err(dev, "Failed to add reg property to %s: %pe\n", 170 node_name, ERR_PTR(rc)); 171 return rc; 172 } 173 174 rc = of_changeset_add_prop_string(&priv->of_cs, pcs_node, 175 "reg-names", 176 pcs_res->res.name); 177 if (rc) { 178 dev_err(dev, "Failed to add reg-names property to %s: %pe\n", 179 node_name, ERR_PTR(rc)); 180 return rc; 181 } 182 183 rc = of_changeset_add_prop_u32_array(&priv->of_cs, pcs_node, 184 "reg-io-width", 185 ®_io_width, 1); 186 if (rc) { 187 dev_err(dev, "Failed to add reg-io-width property to %s: %pe\n", 188 node_name, ERR_PTR(rc)); 189 return rc; 190 } 191 192 dev_dbg(dev, "Created OF node %pOF\n", pcs_node); 193 priv->pcs_fwnode[pcs_res->port] = of_fwnode_handle(pcs_node); 194 } 195 196 return 0; 197 } 198 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki