Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 03B3E1DFF5 for ; Fri, 25 Oct 2024 14:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729867037; cv=none; b=buNPZzMf8iZKgmfAFSbJCO5Ok3y7tQDC/Bl5fndcPrJDqBn/BMpU7kkBcVvylytltTjiMhYyh1KlTi5/PIz2kCGhW74ixW0hHgiM4hW9aBCecLawC3r5+OiR1kGFp+qxkBYO/0wofgbC8DkJf2cXT6nV3RtOyWu9FDXS8sjV+Vc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729867037; c=relaxed/simple; bh=wBK4Q5W4WJLNTzG1NF53EifkW/90VdiVn34zzoNQPnk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dON2+p0JsM6nqgUcrUr6qR/ArIhdVH4dtJuM9n0VS9B4MTrNK0d6puGsIpsqd3cFfHWhKCeTnBpYewpXylA/TbpqCbeGuoa9PFTzhf98L6PsWy2L8G3Slsqa4Wqs8wwe7/b/QJvAAKgHC+s4zUiVGhdFH+vJipb5wKm6xA9ISMY= 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=Th5q2Kv4; arc=none smtp.client-ip=192.198.163.8 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="Th5q2Kv4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729867035; x=1761403035; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wBK4Q5W4WJLNTzG1NF53EifkW/90VdiVn34zzoNQPnk=; b=Th5q2Kv49tkeXGLnAb5aYmkUCXTM2Y9P9j/tYSxLdhIXq16T09gOvrZi B6X2ojy+BIWH+377hOS/Qo3UzGHIc3KzshyeGrrVkF52OHnHA3hLw3LcQ x5zkNyEPwfz+i8NdGfFjBjJOeNy9ZKeRHc5NEdGrVVoR5BEopYTZq8F6W oCvhBpluZI8OmyESRkGtWZRGB2+M5/BUFGAB4hqtg9l7jqL1xP60OTWAM dfru0zySL5Aql0IGJ88CpJ54qmotnhAc2/EfSek2WXyQ9G2h9bOYTRela WVfIK/TicYgAPQ18SNfVrevB89k4brRwhtLlynv1KpbrkBj98n9lNJHo1 w==; X-CSE-ConnectionGUID: r7ePjP+XSOOhNFFPYC9SWQ== X-CSE-MsgGUID: FB8rsFfLTsWPJMVt4uPeXw== X-IronPort-AV: E=McAfee;i="6700,10204,11236"; a="47021764" X-IronPort-AV: E=Sophos;i="6.11,232,1725346800"; d="scan'208";a="47021764" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2024 07:37:15 -0700 X-CSE-ConnectionGUID: bCV38PoTTeCmNINXGqmYRA== X-CSE-MsgGUID: j5RovBWzSgW+deRdUluG6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="85699443" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 25 Oct 2024 07:37:08 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1t4LR4-000YMs-0J; Fri, 25 Oct 2024 14:37:06 +0000 Date: Fri, 25 Oct 2024 22:36:15 +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: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, Yixun Lan , Longbin Li , 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 v2 4/4] net: stmmac: Add glue layer for Sophgo SG2044 SoC Message-ID: <202410252215.79396yyg-lkp@intel.com> References: <20241025011000.244350-5-inochiama@gmail.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241025011000.244350-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-20241025] [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/20241025-091315 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20241025011000.244350-5-inochiama%40gmail.com patch subject: [PATCH v2 4/4] net: stmmac: Add glue layer for Sophgo SG2044 SoC config: um-allyesconfig (https://download.01.org/0day-ci/archive/20241025/202410252215.79396yyg-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241025/202410252215.79396yyg-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/202410252215.79396yyg-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c: In function 'sophgo_dwmac_fix_mac_speed': drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:30:16: error: implicit declaration of function 'rgmii_clock' [-Werror=implicit-function-declaration] 30 | rate = rgmii_clock(speed); | ^~~~~~~~~~~ drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c: In function 'sophgo_sg2044_dwmac_init': drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:46:13: warning: unused variable 'ret' [-Wunused-variable] 46 | int ret; | ^~~ drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c: In function 'sophgo_dwmac_fix_mac_speed': >> drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:31:12: warning: 'ret' is used uninitialized [-Wuninitialized] 31 | if (ret < 0) { | ^ drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:28:13: note: 'ret' was declared here 28 | int ret; | ^~~ cc1: some warnings being treated as errors 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 [=n] || GCC_PLUGINS [=y]) && MODULES [=y] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [y]: - RESOURCE_KUNIT_TEST [=y] && RUNTIME_TESTING_MENU [=y] && KUNIT [=y] vim +/ret +31 drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c 23 24 static void sophgo_dwmac_fix_mac_speed(void *priv, unsigned int speed, unsigned int mode) 25 { 26 struct sophgo_dwmac *dwmac = priv; 27 long rate; 28 int ret; 29 30 rate = rgmii_clock(speed); > 31 if (ret < 0) { 32 dev_err(dwmac->dev, "invalid speed %u\n", speed); 33 return; 34 } 35 36 ret = clk_set_rate(dwmac->clk_tx, rate); 37 if (ret) 38 dev_err(dwmac->dev, "failed to set tx rate %lu\n", rate); 39 } 40 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki