tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 74cb9d74e6b6e93cae875cc04536f543eacb1704
commit: 4cf21c3f82edaae97528a6650781f58cc5d7a40f [123/189] octeontx2-af: Fix missing check
bugs in rvu_cgx.c
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 4cf21c3f82edaae97528a6650781f58cc5d7a40f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c: In function
'rvu_mbox_handler_cgx_mac_addr_set':
> drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c:413:7: error:
implicit declaration of function 'is_cgx_config_permitted'
[-Werror=implicit-function-declaration]
413 | if
(!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS &&
STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390
&& !MICROBLAZE && !ARM && !ARC && !X86
vim +/is_cgx_config_permitted +413 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
405
406 int rvu_mbox_handler_cgx_mac_addr_set(struct rvu *rvu,
407 struct cgx_mac_addr_set_or_get *req,
408 struct cgx_mac_addr_set_or_get *rsp)
409 {
410 int pf = rvu_get_pf(req->hdr.pcifunc);
411 u8 cgx_id, lmac_id;
412
413 if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
414 return -EPERM;
415
416 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id);
417
418 cgx_lmac_addr_set(cgx_id, lmac_id, req->mac_addr);
419
420 return 0;
421 }
422
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org