staging: rtl8192e: remove bogus __packed annotations
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Sep 2023 15:54:04 +0000 (17:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Sep 2023 09:18:56 +0000 (11:18 +0200)
The rtllib_rxb structure contains a pointer, so this is not a hardware
structure but could benefit from loading the pointer in a single
instruction rather than assembling it from four or eight individual
bytes.

Both structures are allocated as part of larger structure that
already enforce at least a 4-byte alignment, so there is no
reason to ever have to deal with misaligned definitions.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230925155413.471287-2-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib.h

index 0597dcb759e05362df4a459f4d9419ca9995b913..bdbd27e382b9de7958c892a8531862e919704f4c 100644 (file)
@@ -172,7 +172,7 @@ struct sw_chnl_cmd {
        u32                     Para1;
        u32                     Para2;
        u32                     msDelay;
-} __packed;
+};
 
 /*--------------------------Define -------------------------------------------*/
 #define MGN_1M           0x02
@@ -700,7 +700,7 @@ struct rtllib_rxb {
        struct sk_buff *subframes[MAX_SUBFRAME_COUNT];
        u8 dst[ETH_ALEN];
        u8 src[ETH_ALEN];
-} __packed;
+};
 
 union frameqos {
        u16 shortdata;