[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202311222227.RtqixHxt-lkp@intel.com>
Date: Thu, 23 Nov 2023 00:26:08 +0800
From: kernel test robot <lkp@...el.com>
To: Raju Rangoju <Raju.Rangoju@....com>, netdev@...r.kernel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, Shyam-sundar.S-k@....com,
Raju Rangoju <Raju.Rangoju@....com>
Subject: Re: [PATCH v2 net-next 4/4] amd-xgbe: use smn functions to avoid race
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/20231116-215630
base: net-next/main
patch link: https://lore.kernel.org/r/20231116135416.3371367-5-Raju.Rangoju%40amd.com
patch subject: [PATCH v2 net-next 4/4] amd-xgbe: use smn functions to avoid race
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20231122/202311222227.RtqixHxt-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231122/202311222227.RtqixHxt-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311222227.RtqixHxt-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/amd/xgbe/xgbe-dev.c:1194:2: error: call to undeclared function 'amd_smn_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1194 | amd_smn_write(0, (pdata->smn_base + pdata->xpcs_window_sel_reg), index);
| ^
drivers/net/ethernet/amd/xgbe/xgbe-dev.c:1194:2: note: did you mean 'pmd_mkwrite'?
include/linux/pgtable.h:610:21: note: 'pmd_mkwrite' declared here
610 | static inline pmd_t pmd_mkwrite(pmd_t pmd, struct vm_area_struct *vma)
| ^
>> drivers/net/ethernet/amd/xgbe/xgbe-dev.c:1195:2: error: call to undeclared function 'amd_smn_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1195 | amd_smn_read(0, pdata->smn_base + offset, &mmd_data);
| ^
drivers/net/ethernet/amd/xgbe/xgbe-dev.c:1224:2: error: call to undeclared function 'amd_smn_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1224 | amd_smn_write(0, (pdata->smn_base + pdata->xpcs_window_sel_reg), index);
| ^
drivers/net/ethernet/amd/xgbe/xgbe-dev.c:1225:2: error: call to undeclared function 'amd_smn_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1225 | amd_smn_read(0, pdata->smn_base + offset, &ctr_mmd_data);
| ^
4 errors generated.
--
>> drivers/net/ethernet/amd/xgbe/xgbe-pci.c:316:3: error: call to undeclared function 'amd_smn_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
316 | amd_smn_read(0, pdata->smn_base + (pdata->xpcs_window_def_reg), ®);
| ^
1 error generated.
vim +/amd_smn_write +1194 drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1172
1173 static int xgbe_read_mmd_regs_v3(struct xgbe_prv_data *pdata, int prtad,
1174 int mmd_reg)
1175 {
1176 unsigned int mmd_address, index, offset;
1177 unsigned long flags;
1178 int mmd_data;
1179
1180 mmd_address = get_mmd_address(pdata, mmd_reg);
1181
1182 /* The PCS registers are accessed using mmio. The underlying
1183 * management interface uses indirect addressing to access the MMD
1184 * register sets. This requires accessing of the PCS register in two
1185 * phases, an address phase and a data phase.
1186 *
1187 * The mmio interface is based on 16-bit offsets and values. All
1188 * register offsets must therefore be adjusted by left shifting the
1189 * offset 1 bit and reading 16 bits of data.
1190 */
1191 offset = get_index_offset(pdata, mmd_address, &index);
1192
1193 spin_lock_irqsave(&pdata->xpcs_lock, flags);
> 1194 amd_smn_write(0, (pdata->smn_base + pdata->xpcs_window_sel_reg), index);
> 1195 amd_smn_read(0, pdata->smn_base + offset, &mmd_data);
1196 mmd_data = (offset % 4) ? FIELD_GET(XGBE_GEN_HI_MASK, mmd_data) :
1197 FIELD_GET(XGBE_GEN_LO_MASK, mmd_data);
1198
1199 spin_unlock_irqrestore(&pdata->xpcs_lock, flags);
1200
1201 return mmd_data;
1202 }
1203
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists