From: kernel test robot <lkp@intel.com>
To: Raju Rangoju <Raju.Rangoju@amd.com>, netdev@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, Shyam-sundar.S-k@amd.com,
Raju Rangoju <Raju.Rangoju@amd.com>
Subject: Re: [PATCH v2 net-next 4/4] amd-xgbe: use smn functions to avoid race
Date: Thu, 23 Nov 2023 00:26:08 +0800 [thread overview]
Message-ID: <202311222227.RtqixHxt-lkp@intel.com> (raw)
In-Reply-To: <20231116135416.3371367-5-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/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@intel.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
prev parent reply other threads:[~2023-11-22 16:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-16 13:54 [PATCH v2 net-next 0/4] amd-xgbe: add support for AMD Crater Raju Rangoju
2023-11-16 13:54 ` [PATCH v2 net-next 1/4] amd-xgbe: reorganize the code of XPCS access Raju Rangoju
2023-11-19 16:37 ` Simon Horman
2023-11-16 13:54 ` [PATCH v2 net-next 2/4] amd-xgbe: add support for Crater ethernet device Raju Rangoju
2023-11-19 16:42 ` Simon Horman
2023-11-16 13:54 ` [PATCH v2 net-next 3/4] amd-xgbe: add support for new pci device id 0x1641 Raju Rangoju
2023-11-16 13:54 ` [PATCH v2 net-next 4/4] amd-xgbe: use smn functions to avoid race Raju Rangoju
2023-11-16 20:49 ` kernel test robot
2023-11-22 16:26 ` kernel test robot [this message]
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=202311222227.RtqixHxt-lkp@intel.com \
--to=lkp@intel.com \
--cc=Raju.Rangoju@amd.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.