]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
octeontx2-af: Fix marking couple of structure as __packed
authorSuman Ghosh <sumang@marvell.com>
Tue, 19 Dec 2023 14:26:33 +0000 (19:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2024 17:51:09 +0000 (18:51 +0100)
[ Upstream commit 0ee2384a5a0f3b4eeac8d10bb01a0609d245a4d1 ]

Couple of structures was not marked as __packed. This patch
fixes the same and mark them as __packed.

Fixes: 42006910b5ea ("octeontx2-af: cleanup KPU config data")
Signed-off-by: Suman Ghosh <sumang@marvell.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/npc.h

index 6e1192f5260891d06e81beef9e870338fc13f109..0f88efe39e41af19c9f6f579fc1b36cca85f9f60 100644 (file)
@@ -490,7 +490,7 @@ struct npc_lt_def {
        u8      ltype_mask;
        u8      ltype_match;
        u8      lid;
-};
+} __packed;
 
 struct npc_lt_def_ipsec {
        u8      ltype_mask;
@@ -498,7 +498,7 @@ struct npc_lt_def_ipsec {
        u8      lid;
        u8      spi_offset;
        u8      spi_nz;
-};
+} __packed;
 
 struct npc_lt_def_apad {
        u8      ltype_mask;