From: Pramod Maurya Date: Sun, 10 May 2026 17:52:04 +0000 (-0400) Subject: staging: rtl8723bs: Replace __attribute__((packed)) with __packed in ieee80211.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f9ed6afa6e45bea9906c87086b353877f6b5083;p=thirdparty%2Fkernel%2Fstable.git staging: rtl8723bs: Replace __attribute__((packed)) with __packed in ieee80211.h Replace the verbose __attribute__ ((packed)) with the preferred kernel shorthand __packed in struct eapol and struct ieee80211_snap_hdr. Signed-off-by: Pramod Maurya Link: https://patch.msgid.link/20260510175207.563378-2-pramod.nexgen@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/include/ieee80211.h b/drivers/staging/rtl8723bs/include/ieee80211.h index a3f519e2f6d2..53707ea7bbc8 100644 --- a/drivers/staging/rtl8723bs/include/ieee80211.h +++ b/drivers/staging/rtl8723bs/include/ieee80211.h @@ -231,7 +231,7 @@ struct eapol { u8 version; u8 type; u16 length; -} __attribute__ ((packed)); +} __packed; #define IEEE80211_FCS_LEN 4 @@ -274,7 +274,7 @@ struct ieee80211_snap_hdr { u8 ssap; /* always 0xAA */ u8 ctrl; /* always 0x03 */ u8 oui[P80211_OUI_LEN]; /* organizational universal id */ -} __attribute__ ((packed)); +} __packed; #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr)