Subject: Re: [PATCH net-next v2] octeon_ep: reset firmware ready status

From: kernel test robot <[email-masked]>
Date: Sat, 6 Dec 2025 20:39:52 +0800

Hi Vimlesh,

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/Vimlesh-Kumar/octeon_ep-reset-firmware-ready-status/20251205-172517
base:   net-next/main
patch link:    https://lore.kernel.org/r/20251205091045.1655157-1-vimleshk%40marvell.com
patch subject: [PATCH net-next v2] octeon_ep: reset firmware ready status
config: loongarch-randconfig-002-20251206 (https://download.01.org/0day-ci/archive/20251206/[email-masked]/config)
compiler: loongarch64-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251206/[email-masked]/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 <[email-masked]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email-masked]/

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/marvell/octeon_ep/octep_cn9k_pf.c:14:
   drivers/net/ethernet/marvell/octeon_ep/octep_cn9k_pf.c: In function 'octep_soft_reset_cn93_pf':
>> drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h:393:55: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
     393 |                                                       FIELD_PREP(CN9K_PEM_GENMASK, pem)\
         |                                                       ^~~~~~~~~~
   drivers/net/ethernet/marvell/octeon_ep/octep_cn9k_pf.c:648:34: note: in expansion of macro 'CN9K_PEMX_PFX_CSX_PFCFGX'
     648 |         OCTEP_PCI_WIN_WRITE(oct, CN9K_PEMX_PFX_CSX_PFCFGX(0, 0, CN9K_PCIEEP_VSECST_CTL),
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/FIELD_PREP +393 drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h

   388	
   389	#define CN9K_PEM_GENMASK BIT_ULL(36)
   390	#define CN9K_PF_GENMASK GENMASK_ULL(21, 18)
   391	#define PFX_CSX_PFCFGX_SHADOW_BIT BIT_ULL(16)
   392	#define CN9K_PEMX_PFX_CSX_PFCFGX(pem, pf, offset)   ((0x8e0000008000 | (uint64_t)\
 > 393							      FIELD_PREP(CN9K_PEM_GENMASK, pem)\
   394							      | FIELD_PREP(CN9K_PF_GENMASK, pf)\
   395							      | (PFX_CSX_PFCFGX_SHADOW_BIT & (offset))\
   396							      | (rounddown((offset), 8)))\
   397							      + ((offset) & BIT_ULL(2)))
   398	

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