mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Raju Rangoju <Raju.Rangoju@amd.com>,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, Shyam-sundar.S-k@amd.com,
	Raju Rangoju <Raju.Rangoju@amd.com>,
	Sudheesh Mavila <sudheesh.mavila@amd.com>
Subject: Re: [PATCH net-next v2 3/5] amd-xgbe: add support for new XPCS routines
Date: Wed, 7 May 2025 16:37:53 +0800	[thread overview]
Message-ID: <202505071632.XaIo3kvL-lkp@intel.com> (raw)
In-Reply-To: <20250428150235.2938110-4-Raju.Rangoju@amd.com>

Hi Raju,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Raju-Rangoju/amd-xgbe-reorganize-the-code-of-XPCS-access/20250428-230635
base:   net-next/main
patch link:    https://lore.kernel.org/r/20250428150235.2938110-4-Raju.Rangoju%40amd.com
patch subject: [PATCH net-next v2 3/5] amd-xgbe: add support for new XPCS routines
config: i386-buildonly-randconfig-002-20250429 (https://download.01.org/0day-ci/archive/20250507/202505071632.XaIo3kvL-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071632.XaIo3kvL-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/202505071632.XaIo3kvL-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/net/ethernet/amd/xgbe/xgbe-dev.c: In function 'xgbe_write_mmd_regs_v3':
>> drivers/net/ethernet/amd/xgbe/xgbe-dev.c:1110:17: error: implicit declaration of function 'pci_err'; did you mean 'pr_err'? [-Werror=implicit-function-declaration]
    1110 |                 pci_err(dev, "Failed to write data 0x%x\n", index);
         |                 ^~~~~~~
         |                 pr_err
   cc1: some warnings being treated as errors


vim +1110 drivers/net/ethernet/amd/xgbe/xgbe-dev.c

  1094	
  1095	static void xgbe_write_mmd_regs_v3(struct xgbe_prv_data *pdata, int prtad,
  1096					   int mmd_reg, int mmd_data)
  1097	{
  1098		unsigned int pci_mmd_data, hi_mask, lo_mask;
  1099		unsigned int mmd_address, index, offset;
  1100		struct pci_dev *dev;
  1101		int ret;
  1102	
  1103		dev = pdata->pcidev;
  1104		mmd_address = xgbe_get_mmd_address(pdata, mmd_reg);
  1105	
  1106		xgbe_get_pcs_index_and_offset(pdata, mmd_address, &index, &offset);
  1107	
  1108		ret = amd_smn_write(0, (pdata->smn_base + pdata->xpcs_window_sel_reg), index);
  1109		if (ret) {
> 1110			pci_err(dev, "Failed to write data 0x%x\n", index);
  1111			return;
  1112		}
  1113	
  1114		ret = amd_smn_read(0, pdata->smn_base + offset, &pci_mmd_data);
  1115		if (ret) {
  1116			pci_err(dev, "Failed to read data\n");
  1117			return;
  1118		}
  1119	
  1120		if (offset % 4) {
  1121			hi_mask = FIELD_PREP(XGBE_GEN_HI_MASK, mmd_data);
  1122			lo_mask = FIELD_GET(XGBE_GEN_LO_MASK, pci_mmd_data);
  1123		} else {
  1124			hi_mask = FIELD_PREP(XGBE_GEN_HI_MASK,
  1125					     FIELD_GET(XGBE_GEN_HI_MASK, pci_mmd_data));
  1126			lo_mask = FIELD_GET(XGBE_GEN_LO_MASK, mmd_data);
  1127		}
  1128	
  1129		pci_mmd_data = hi_mask | lo_mask;
  1130	
  1131		ret = amd_smn_write(0, (pdata->smn_base + pdata->xpcs_window_sel_reg), index);
  1132		if (ret) {
  1133			pci_err(dev, "Failed to write data 0x%x\n", index);
  1134			return;
  1135		}
  1136	
  1137		ret = amd_smn_write(0, (pdata->smn_base + offset), pci_mmd_data);
  1138		if (ret) {
  1139			pci_err(dev, "Failed to write data 0x%x\n", pci_mmd_data);
  1140			return;
  1141		}
  1142	}
  1143	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2025-05-07  8:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-28 15:02 [PATCH net-next v2 0/5] amd-xgbe: add support for AMD Crater Raju Rangoju
2025-04-28 15:02 ` [PATCH net-next v2 1/5] amd-xgbe: reorganize the code of XPCS access Raju Rangoju
2025-04-30 22:38   ` Vadim Fedorenko
2025-05-09 15:43     ` Rangoju, Raju
2025-04-28 15:02 ` [PATCH net-next v2 2/5] amd-xgbe: reorganize the xgbe_pci_probe() code path Raju Rangoju
2025-04-28 15:02 ` [PATCH net-next v2 3/5] amd-xgbe: add support for new XPCS routines Raju Rangoju
2025-04-29 19:37   ` Simon Horman
2025-05-09 15:41     ` Rangoju, Raju
2025-05-07  8:37   ` kernel test robot [this message]
2025-04-28 15:02 ` [PATCH net-next v2 4/5] amd-xgbe: Add XGBE_XPCS_ACCESS_V3 support to xgbe_pci_probe() Raju Rangoju
2025-04-28 15:02 ` [PATCH net-next v2 5/5] amd-xgbe: add support for new pci device id 0x1641 Raju Rangoju

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202505071632.XaIo3kvL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Raju.Rangoju@amd.com \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=sudheesh.mavila@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®