oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH net-next v3 06/14] octeontx2-af: Add support for SPI to SA index translation
       [not found] <20250711121317.340326-7-tanmay@marvell.com>
@ 2025-07-16 22:11 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-16 22:11 UTC (permalink / raw)
  To: Tanmay Jagdale, davem, leon, horms, herbert, sgoutham, bbhushan2
  Cc: oe-kbuild-all, linux-crypto, netdev, Kiran Kumar K,
	Nithin Dabilpuram, Tanmay Jagdale

Hi Tanmay,

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/Tanmay-Jagdale/crypto-octeontx2-Share-engine-group-info-with-AF-driver/20250711-201723
base:   net-next/main
patch link:    https://lore.kernel.org/r/20250711121317.340326-7-tanmay%40marvell.com
patch subject: [PATCH net-next v3 06/14] octeontx2-af: Add support for SPI to SA index translation
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20250717/202507170541.NbMPkGbC-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250717/202507170541.NbMPkGbC-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/202507170541.NbMPkGbC-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/net/ethernet/marvell/octeontx2/af/rvu_nix_spi.c: In function 'nix_spi_to_sa_index_check_duplicate':
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_nix_spi.c:25:21: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration]
      25 |         spi_index = FIELD_GET(NIX_AF_SPI_TO_SA_SPI_INDEX_MASK, wkey);
         |                     ^~~~~~~~~
   drivers/net/ethernet/marvell/octeontx2/af/rvu_nix_spi.c: In function 'nix_spi_to_sa_index_table_update':
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_nix_spi.c:53:16: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
      53 |         wkey = FIELD_PREP(NIX_AF_SPI_TO_SA_SPI_INDEX_MASK, req->spi_index);
         |                ^~~~~~~~~~


vim +/FIELD_GET +25 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix_spi.c

     9	
    10	static bool
    11	nix_spi_to_sa_index_check_duplicate(struct rvu *rvu,
    12					    struct nix_spi_to_sa_add_req *req,
    13					    struct nix_spi_to_sa_add_rsp *rsp,
    14					    int blkaddr, int16_t index, u8 way,
    15					    bool *is_valid, int lfidx)
    16	{
    17		u32 spi_index;
    18		u16 match_id;
    19		bool valid;
    20		u64 wkey;
    21		u8 lfid;
    22	
    23		wkey = rvu_read64(rvu, blkaddr, NIX_AF_SPI_TO_SA_KEYX_WAYX(index, way));
    24	
  > 25		spi_index = FIELD_GET(NIX_AF_SPI_TO_SA_SPI_INDEX_MASK, wkey);
    26		match_id = FIELD_GET(NIX_AF_SPI_TO_SA_MATCH_ID_MASK, wkey);
    27		lfid = FIELD_GET(NIX_AF_SPI_TO_SA_LFID_MASK, wkey);
    28		valid = FIELD_GET(NIX_AF_SPI_TO_SA_KEYX_WAYX_VALID, wkey);
    29	
    30		*is_valid = valid;
    31		if (!valid)
    32			return 0;
    33	
    34		if (req->spi_index == spi_index && req->match_id == match_id &&
    35		    lfidx == lfid) {
    36			rsp->hash_index = index;
    37			rsp->way = way;
    38			rsp->is_duplicate = true;
    39			return 1;
    40		}
    41		return 0;
    42	}
    43	
    44	static void  nix_spi_to_sa_index_table_update(struct rvu *rvu,
    45						      struct nix_spi_to_sa_add_req *req,
    46						      struct nix_spi_to_sa_add_rsp *rsp,
    47						      int blkaddr, int16_t index,
    48						      u8 way, int lfidx)
    49	{
    50		u64 wvalue;
    51		u64 wkey;
    52	
  > 53		wkey = FIELD_PREP(NIX_AF_SPI_TO_SA_SPI_INDEX_MASK, req->spi_index);
    54		wkey |= FIELD_PREP(NIX_AF_SPI_TO_SA_MATCH_ID_MASK, req->match_id);
    55		wkey |= FIELD_PREP(NIX_AF_SPI_TO_SA_LFID_MASK, lfidx);
    56		wkey |= FIELD_PREP(NIX_AF_SPI_TO_SA_KEYX_WAYX_VALID, req->valid);
    57	
    58		rvu_write64(rvu, blkaddr, NIX_AF_SPI_TO_SA_KEYX_WAYX(index, way),
    59			    wkey);
    60		wvalue = (req->sa_index & 0xFFFFFFFF);
    61		rvu_write64(rvu, blkaddr, NIX_AF_SPI_TO_SA_VALUEX_WAYX(index, way),
    62			    wvalue);
    63		rsp->hash_index = index;
    64		rsp->way = way;
    65		rsp->is_duplicate = false;
    66	}
    67	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-16 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250711121317.340326-7-tanmay@marvell.com>
2025-07-16 22:11 ` [PATCH net-next v3 06/14] octeontx2-af: Add support for SPI to SA index translation kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).