🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #3456

Re: [PATCH net-next v3 5/6] net: phy: mediatek: add calibration logic for AN7581

#3456
From: kernel test robot
Date: Thu, 15 Oct 2026 05:06
69 lines
9128 bytes
Hi Christian,

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/Christian-Marangi/net-phy-mediatek-export-__mtk_tr_write/20261014-091732
base:   net-next/main
patch link:    https://lore.kernel.org/r/20261014071739.216345-6-ansuelsmth%40gmail.com
patch subject: [PATCH net-next v3 5/6] net: phy: mediatek: add calibration logic for AN7581
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20261015/202610151259.WmaEeHMH-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 6719b9e31d6a93099612c474eec76d9f41d0275a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261015/202610151259.WmaEeHMH-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610151259.WmaEeHMH-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/phy/mediatek/airoha-ge-soc.c:1522:3: warning: variable 'shared' is uninitialized when used here [-Wuninitialized]
    1522 |                 shared->phydev_p0 = phydev;
         |                 ^~~~~~
   drivers/net/phy/mediatek/airoha-ge-soc.c:1501:37: note: initialize the variable 'shared' to silence this warning
    1501 |         struct airoha_socphy_shared *shared;
         |                                            ^
         |                                             = NULL
   1 warning generated.


vim +/shared +1522 drivers/net/phy/mediatek/airoha-ge-soc.c

  1498	
  1499	static int an7581_phy_probe(struct phy_device *phydev)
  1500	{
  1501		struct airoha_socphy_shared *shared;
  1502		struct mtk_socphy_priv *priv;
  1503		struct pinctrl *pinctrl;
  1504		int ret;
  1505	
  1506		/* Toggle pinctrl to enable PHY LED */
  1507		pinctrl = devm_pinctrl_get_select(&phydev->mdio.dev, "gbe-led");
  1508		if (IS_ERR(pinctrl))
  1509			dev_err(&phydev->mdio.bus->dev,
  1510				"Failed to setup PHY LED pinctrl\n");
  1511	
  1512		ret = devm_phy_package_join(&phydev->mdio.dev, phydev, 0,
  1513					    sizeof(struct airoha_socphy_shared));
  1514		if (ret)
  1515			return ret;
  1516	
  1517		priv = devm_kzalloc(&phydev->mdio.dev, sizeof(*priv), GFP_KERNEL);
  1518		if (!priv)
  1519			return -ENOMEM;
  1520	
  1521		if (phydev->mdio.addr == AIROHA_DEFAULT_PORT0_ADDR)
> 1522			shared->phydev_p0 = phydev;
  1523	
  1524		phydev->priv = priv;
  1525	
  1526		return 0;
  1527	}
  1528	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Technical Details
Message-ID: <202610151259.WmaEeHMH-lkp@intel.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346538-linux-kernel-netdev=dewy.ru
References: <20261014071739.216345-6-ansuelsmth@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346538-linux-kernel-netdev=dewy.ru
From: lkp@intel.com (kernel test robot)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 5/6] net: phy: mediatek: add calibration
 logic for AN7581
Date: Thu, 15 Oct 2026 13:06:09 +0800
Organization: Usenet Network
Message-ID: <202610151259.WmaEeHMH-lkp@intel.com>
References: <20261014071739.216345-6-ansuelsmth@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2453967"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:l9CkBAL6wFc4eqqShnFtaelI4nM= sha256:BKV3ErkkzkgGjX17X9e8eq5PFGRWUDZrbYZPfMVad4A=
	sha1:DrrYmGZNNM+77/GvqFEk5FvOs+Y= sha256:TRJtywBAuIPzHKk5n48t2vIgerWi8LCkauGA5ziSdbM=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 2252611024A; Thu, 15 Oct 2026 08:08:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.989
X-Spam-Status: No, score=-0.989 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=intel.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id SVIrhqDFEe7c;
	Thu, 15 Oct 2026 08:08:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-346538-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=intel.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 5787B110165; Thu, 15 Oct 2026 08:08:07 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 5DBFE206D2; Thu, 15 Oct 2026 05:06:53 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C704F35E950;
	Thu, 15 Oct 2026 05:06:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fluiyHCp"
X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 67F83397B09;
	Thu, 15 Oct 2026 05:06:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792040812; cv=none; b=sgoEeh35d4cSYQ41kPwMdALWNMd9dovSAYA7DV/Ao9+RJU9eNRS06yBTYHQVCWcK0WCxVT0tpuVtmIoAyZSQQguI/FvCpZgKixqVdvjGMJy0tEVQzK3FUxO5MLowP3XEcJCeWoYqVPwaXFsw13FWYLB7A/k9vjHKmzeCLzLNhSQ=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792040812; c=relaxed/simple;
	bh=rPrN/b17tzrrWFqjgXZe93Dbw+hG8QAaSFVecQYWGdw=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=j/vSk/73t2Jx8XhjGFRF07xfsVuiz6V1n9WRGrtEPfcW/zvpkb+mWi2eLjD2oC8Jr6JvrsuVzJZdgJHMZioUsUsgPVzrLpamRbdXUBNWLIbQRSEn9Qa13ZffNIz+zPgRWTtOQOxQZ2sf1D7bZckeb1Sgih1Pbo0J5VUSkVh2BFU=
X-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=fluiyHCp; arc=none smtp.client-ip=198.175.65.17
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
  t=1792040811; x=1823576811;
  h=date:from:to:cc:subject:message-id:references:
   mime-version:in-reply-to;
  bh=rPrN/b17tzrrWFqjgXZe93Dbw+hG8QAaSFVecQYWGdw=;
  b=fluiyHCpyIuJvXdx4XhMVSv/L/zXvTtcmE8/g+l7H7Iw60L7FnCeSDiZ
   1t4O+8ip46tYZ9HqZNhcc1cyiz6DQIMujrYsLKsMTXdUQLDyZUWNETlwS
   BBtEVWOL2zeDnQq+MJ5PXNPnPNotCGoSuEPchQMWGYfrLiNcyfEB8S/T0
   mwDwfxOqLlxCd/hS1YzMPIrqVdyVZ5bw8Xmb82P/veDpQpgVxPK8gwNxs
   h9OZOzCEQxz5+tro39XUjyXTxeYf81Q9ErBAmrzkOBZywvNtTR8jQYyf2
   MPH08zDmgDIlRcM3mHV6nLxQUHJ6jAX9VkO70vGf7ioaFruA3KCLRxwy/
   A==;
X-CSE-ConnectionGUID: CAIetU3LRxCL6PJqI+I1zQ==
X-CSE-MsgGUID: /HZj4Q7zSLW2qcNoeE6bpg==
X-IronPort-AV: E=McAfee;i="6800,10657,11935"; a="808546"
X-IronPort-AV: E=Sophos;i="6.27,159,1787036400"; 
   d="scan'208";a="808546"
X-Received: from fmviesa001.fm.intel.com ([10.60.135.141])
  by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2026 22:06:50 -0700
X-CSE-ConnectionGUID: 8jAOmFopSaOf2TggeW3cqg==
X-CSE-MsgGUID: 8tGAU8DZTY63RexvDIrB6w==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.27,159,1787036400"; 
   d="scan'208";a="1847050"
X-Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150])
  by fmviesa001.fm.intel.com with ESMTP; 14 Oct 2026 22:06:45 -0700
X-Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2)
	(envelope-from <lkp@intel.com>)
	id 1xHDfu-00000000FqJ-0wLc;
	Thu, 15 Oct 2026 05:06:42 +0000
X-Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	netdev@vger.kernel.org
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261014071739.216345-6-ansuelsmth@gmail.com>