* drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c:143:18: sparse: sparse: Initializer entry defined twice
@ 2026-12-04 2:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-04 2:14 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "sparse: Initializer entry defined twice"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Suman Ghosh <sumang@marvell.com>
CC: Jakub Kicinski <kuba@kernel.org>
CC: Ratheesh Kannoth <rkannoth@marvell.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 007722b8211f7b34fdf21b1e6a9c32497633ea29
commit: a2df2f95eac06352f33636c0ba189608a64646ef octeontx2-af: npc: cn20k: Add default profile
date: 9 months ago
:::::: branch date: 9 hours ago
:::::: commit date: 9 months ago
config: arm64-randconfig-r2311-20261203 (https://download.01.org/0day-ci/archive/20261204/20261204031030.DtnSfMat-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.5.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204031030.DtnSfMat-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
| Fixes: a2df2f95eac0 ("octeontx2-af: npc: cn20k: Add default profile")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261204031030.DtnSfMat-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c: note: in included file:
drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h:15585:10: sparse: sparse: Initializer entry defined twice
drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h:15491:10: sparse: also defined here
drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h:15592:17: sparse: sparse: Initializer entry defined twice
drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h:15599:17: sparse: also defined here
drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h:15696:18: sparse: sparse: Initializer entry defined twice
drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h:15715:18: sparse: also defined here
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c: note: in included file:
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.h:69:10: sparse: sparse: Initializer entry defined twice
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.h:89:10: sparse: also defined here
>> drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c:143:18: sparse: sparse: Initializer entry defined twice
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c:151:18: sparse: also defined here
vim +143 drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
1396771b0b7741d Ratheesh Kannoth 2026-02-24 27
a2df2f95eac0635 Suman Ghosh 2026-02-24 28 #define KEX_EXTR_CFG(bytesm1, hdr_ofs, ena, key_ofs) \
a2df2f95eac0635 Suman Ghosh 2026-02-24 29 (((bytesm1) << 16) | ((hdr_ofs) << 8) | ((ena) << 7) | \
a2df2f95eac0635 Suman Ghosh 2026-02-24 30 ((key_ofs) & 0x3F))
a2df2f95eac0635 Suman Ghosh 2026-02-24 31
a2df2f95eac0635 Suman Ghosh 2026-02-24 32 static struct npc_mcam_kex_extr npc_mkex_extr_default = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 33 .mkex_sign = MKEX_SIGN,
a2df2f95eac0635 Suman Ghosh 2026-02-24 34 .name = "default",
a2df2f95eac0635 Suman Ghosh 2026-02-24 35 .kpu_version = NPC_KPU_PROFILE_VER,
a2df2f95eac0635 Suman Ghosh 2026-02-24 36 .keyx_cfg = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 37 /* nibble: LA..LE (ltype only) + Error code + Channel */
a2df2f95eac0635 Suman Ghosh 2026-02-24 38 [NIX_INTF_RX] = ((u64)NPC_MCAM_KEY_DYN << 32) |
a2df2f95eac0635 Suman Ghosh 2026-02-24 39 NPC_PARSE_NIBBLE_INTF_RX |
a2df2f95eac0635 Suman Ghosh 2026-02-24 40 NPC_PARSE_NIBBLE_ERRCODE,
a2df2f95eac0635 Suman Ghosh 2026-02-24 41
a2df2f95eac0635 Suman Ghosh 2026-02-24 42 /* nibble: LA..LE (ltype only) */
a2df2f95eac0635 Suman Ghosh 2026-02-24 43 [NIX_INTF_TX] = ((u64)NPC_MCAM_KEY_X2 << 32) |
a2df2f95eac0635 Suman Ghosh 2026-02-24 44 NPC_PARSE_NIBBLE_INTF_TX,
a2df2f95eac0635 Suman Ghosh 2026-02-24 45 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 46 .intf_extr_lid = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 47 /* Default RX MCAM KEX profile */
a2df2f95eac0635 Suman Ghosh 2026-02-24 48 [NIX_INTF_RX] = { NPC_LID_LA, NPC_LID_LA, NPC_LID_LB, NPC_LID_LB,
a2df2f95eac0635 Suman Ghosh 2026-02-24 49 NPC_LID_LC, NPC_LID_LC, NPC_LID_LD },
a2df2f95eac0635 Suman Ghosh 2026-02-24 50 [NIX_INTF_TX] = { NPC_LID_LA, NPC_LID_LA, NPC_LID_LB, NPC_LID_LB,
a2df2f95eac0635 Suman Ghosh 2026-02-24 51 NPC_LID_LC, NPC_LID_LD },
a2df2f95eac0635 Suman Ghosh 2026-02-24 52 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 53 .intf_extr_lt = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 54 /* Default RX MCAM KEX profile */
a2df2f95eac0635 Suman Ghosh 2026-02-24 55 [NIX_INTF_RX] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 56 [0] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 57 /* Layer A: Ethernet: */
a2df2f95eac0635 Suman Ghosh 2026-02-24 58 [NPC_LT_LA_ETHER] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 59 /* DMAC: 6 bytes, KW1[63:15] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 60 KEX_EXTR_CFG(0x05, 0x0, 0x1,
a2df2f95eac0635 Suman Ghosh 2026-02-24 61 NPC_KEXOF_DMAC + 1),
a2df2f95eac0635 Suman Ghosh 2026-02-24 62 [NPC_LT_LA_CPT_HDR] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 63 /* DMAC: 6 bytes, KW1[63:15] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 64 KEX_EXTR_CFG(0x05, 0x0, 0x1,
a2df2f95eac0635 Suman Ghosh 2026-02-24 65 NPC_KEXOF_DMAC + 1),
a2df2f95eac0635 Suman Ghosh 2026-02-24 66 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 67 [1] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 68 /* Layer A: Ethernet: */
a2df2f95eac0635 Suman Ghosh 2026-02-24 69 [NPC_LT_LA_ETHER] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 70 /* Ethertype: 2 bytes, KW0[63:48] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 71 KEX_EXTR_CFG(0x01, 0xc, 0x1, 0x6),
a2df2f95eac0635 Suman Ghosh 2026-02-24 72 [NPC_LT_LA_CPT_HDR] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 73 /* Ethertype: 2 bytes, KW0[63:48] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 74 KEX_EXTR_CFG(0x01, 0xc, 0x1, 0x6),
a2df2f95eac0635 Suman Ghosh 2026-02-24 75 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 76 [2] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 77 /* Layer B: Single VLAN (CTAG) */
a2df2f95eac0635 Suman Ghosh 2026-02-24 78 [NPC_LT_LB_CTAG] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 79 /* CTAG VLAN: 2 bytes, KW1[15:0] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 80 KEX_EXTR_CFG(0x01, 0x2, 0x1, 0x8),
a2df2f95eac0635 Suman Ghosh 2026-02-24 81 /* Layer B: Stacked VLAN (STAG|QinQ) */
a2df2f95eac0635 Suman Ghosh 2026-02-24 82 [NPC_LT_LB_STAG_QINQ] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 83 /* Outer VLAN: 2 bytes, KW1[15:0] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 84 KEX_EXTR_CFG(0x01, 0x2, 0x1, 0x8),
a2df2f95eac0635 Suman Ghosh 2026-02-24 85 [NPC_LT_LB_FDSA] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 86 /* SWITCH PORT: 1 byte, KW1[7:0] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 87 KEX_EXTR_CFG(0x0, 0x1, 0x1, 0x8),
a2df2f95eac0635 Suman Ghosh 2026-02-24 88 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 89 [3] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 90 [NPC_LT_LB_CTAG] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 91 /* Ethertype: 2 bytes, KW0[63:48] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 92 KEX_EXTR_CFG(0x01, 0x4, 0x1, 0x6),
a2df2f95eac0635 Suman Ghosh 2026-02-24 93 [NPC_LT_LB_STAG_QINQ] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 94 /* Ethertype: 2 bytes, KW0[63:48] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 95 KEX_EXTR_CFG(0x01, 0x8, 0x1, 0x6),
a2df2f95eac0635 Suman Ghosh 2026-02-24 96 [NPC_LT_LB_FDSA] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 97 /* Ethertype: 2 bytes, KW0[63:48] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 98 KEX_EXTR_CFG(0x01, 0x4, 0x1, 0x6),
a2df2f95eac0635 Suman Ghosh 2026-02-24 99 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 100 [4] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 101 /* Layer C: IPv4 */
a2df2f95eac0635 Suman Ghosh 2026-02-24 102 [NPC_LT_LC_IP] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 103 /* SIP+DIP: 8 bytes, KW3[7:0], KW2[63:8] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 104 KEX_EXTR_CFG(0x07, 0xc, 0x1, 0x11),
a2df2f95eac0635 Suman Ghosh 2026-02-24 105 /* Layer C: IPv6 */
a2df2f95eac0635 Suman Ghosh 2026-02-24 106 [NPC_LT_LC_IP6] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 107 /* Everything up to SADDR: 8 bytes, KW3[7:0],
a2df2f95eac0635 Suman Ghosh 2026-02-24 108 * KW2[63:8]
a2df2f95eac0635 Suman Ghosh 2026-02-24 109 */
a2df2f95eac0635 Suman Ghosh 2026-02-24 110 KEX_EXTR_CFG(0x07, 0x0, 0x1, 0x11),
a2df2f95eac0635 Suman Ghosh 2026-02-24 111 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 112 [5] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 113 [NPC_LT_LC_IP] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 114 /* TOS: 1 byte, KW2[7:0] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 115 KEX_EXTR_CFG(0x0, 0x1, 0x1, 0x10),
a2df2f95eac0635 Suman Ghosh 2026-02-24 116 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 117 [6] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 118 /* Layer D:UDP */
a2df2f95eac0635 Suman Ghosh 2026-02-24 119 [NPC_LT_LD_UDP] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 120 /* SPORT+DPORT: 4 bytes, KW3[39:8] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 121 KEX_EXTR_CFG(0x3, 0x0, 0x1, 0x19),
a2df2f95eac0635 Suman Ghosh 2026-02-24 122 /* Layer D:TCP */
a2df2f95eac0635 Suman Ghosh 2026-02-24 123 [NPC_LT_LD_TCP] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 124 /* SPORT+DPORT: 4 bytes, KW3[39:8] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 125 KEX_EXTR_CFG(0x3, 0x0, 0x1, 0x19),
a2df2f95eac0635 Suman Ghosh 2026-02-24 126 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 127 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 128 /* Default TX MCAM KEX profile */
a2df2f95eac0635 Suman Ghosh 2026-02-24 129 [NIX_INTF_TX] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 130 [0] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 131 /* Layer A: NIX_INST_HDR_S + Ethernet */
a2df2f95eac0635 Suman Ghosh 2026-02-24 132 /* NIX appends 8 bytes of NIX_INST_HDR_S at the
a2df2f95eac0635 Suman Ghosh 2026-02-24 133 * start of each TX packet supplied to NPC.
a2df2f95eac0635 Suman Ghosh 2026-02-24 134 */
a2df2f95eac0635 Suman Ghosh 2026-02-24 135 [NPC_LT_LA_IH_NIX_ETHER] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 136 /* PF_FUNC: 2B , KW0 [47:32] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 137 KEX_EXTR_CFG(0x01, 0x0, 0x1, 0x4),
a2df2f95eac0635 Suman Ghosh 2026-02-24 138 /* Layer A: HiGig2: */
a2df2f95eac0635 Suman Ghosh 2026-02-24 139 [NPC_LT_LA_IH_NIX_HIGIG2_ETHER] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 140 /* PF_FUNC: 2B , KW0 [47:32] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 141 KEX_EXTR_CFG(0x01, 0x0, 0x1, 0x4),
a2df2f95eac0635 Suman Ghosh 2026-02-24 142 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 @143 [1] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 144 [NPC_LT_LA_IH_NIX_ETHER] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 145 /* SQ_ID 3 bytes, KW1[63:16] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 146 KEX_EXTR_CFG(0x02, 0x02, 0x1, 0xa),
a2df2f95eac0635 Suman Ghosh 2026-02-24 147 [NPC_LT_LA_IH_NIX_HIGIG2_ETHER] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 148 /* VID: 2 bytes, KW1[31:16] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 149 KEX_EXTR_CFG(0x01, 0x10, 0x1, 0xa),
a2df2f95eac0635 Suman Ghosh 2026-02-24 150 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 151 [2] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 152 /* Layer B: Single VLAN (CTAG) */
a2df2f95eac0635 Suman Ghosh 2026-02-24 153 [NPC_LT_LB_CTAG] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 154 /* CTAG VLAN[2..3] KW0[63:48] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 155 KEX_EXTR_CFG(0x01, 0x2, 0x1, 0x6),
a2df2f95eac0635 Suman Ghosh 2026-02-24 156 /* Layer B: Stacked VLAN (STAG|QinQ) */
a2df2f95eac0635 Suman Ghosh 2026-02-24 157 [NPC_LT_LB_STAG_QINQ] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 158 /* Outer VLAN: 2 bytes, KW0[63:48] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 159 KEX_EXTR_CFG(0x01, 0x2, 0x1, 0x6),
a2df2f95eac0635 Suman Ghosh 2026-02-24 160 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 161 [3] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 162 [NPC_LT_LB_CTAG] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 163 /* CTAG VLAN[2..3] KW1[15:0] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 164 KEX_EXTR_CFG(0x01, 0x4, 0x1, 0x8),
a2df2f95eac0635 Suman Ghosh 2026-02-24 165 [NPC_LT_LB_STAG_QINQ] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 166 /* Outer VLAN: 2 Bytes, KW1[15:0] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 167 KEX_EXTR_CFG(0x01, 0x8, 0x1, 0x8),
a2df2f95eac0635 Suman Ghosh 2026-02-24 168 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 169 [4] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 170 /* Layer C: IPv4 */
a2df2f95eac0635 Suman Ghosh 2026-02-24 171 [NPC_LT_LC_IP] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 172 /* SIP+DIP: 8 bytes, KW2[63:0] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 173 KEX_EXTR_CFG(0x07, 0xc, 0x1, 0x10),
a2df2f95eac0635 Suman Ghosh 2026-02-24 174 /* Layer C: IPv6 */
a2df2f95eac0635 Suman Ghosh 2026-02-24 175 [NPC_LT_LC_IP6] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 176 /* Everything up to SADDR: 8 bytes, KW2[63:0] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 177 KEX_EXTR_CFG(0x07, 0x0, 0x1, 0x10),
a2df2f95eac0635 Suman Ghosh 2026-02-24 178 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 179 [5] = {
a2df2f95eac0635 Suman Ghosh 2026-02-24 180 /* Layer D:UDP */
a2df2f95eac0635 Suman Ghosh 2026-02-24 181 [NPC_LT_LD_UDP] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 182 /* SPORT+DPORT: 4 bytes, KW3[31:0] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 183 KEX_EXTR_CFG(0x3, 0x0, 0x1, 0x18),
a2df2f95eac0635 Suman Ghosh 2026-02-24 184 /* Layer D:TCP */
a2df2f95eac0635 Suman Ghosh 2026-02-24 185 [NPC_LT_LD_TCP] =
a2df2f95eac0635 Suman Ghosh 2026-02-24 186 /* SPORT+DPORT: 4 bytes, KW3[31:0] */
a2df2f95eac0635 Suman Ghosh 2026-02-24 187 KEX_EXTR_CFG(0x3, 0x0, 0x1, 0x18),
a2df2f95eac0635 Suman Ghosh 2026-02-24 188 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 189 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 190 },
a2df2f95eac0635 Suman Ghosh 2026-02-24 191 };
a2df2f95eac0635 Suman Ghosh 2026-02-24 192
--
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:[~2026-12-04 2:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 2:14 drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c:143:18: sparse: sparse: Initializer entry defined twice kernel test robot
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.