]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: Replace __attribute__((packed)) with __packed in wifi.h
authorPramod Maurya <pramod.nexgen@gmail.com>
Sun, 10 May 2026 10:36:26 +0000 (06:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 May 2026 08:09:05 +0000 (10:09 +0200)
Replace all occurrences of __attribute__((packed)) with the preferred
__packed macro in wifi.h to fix checkpatch.pl warnings.

Signed-off-by: Pramod Maurya <pramod.nexgen@gmail.com>
Link: https://patch.msgid.link/20260510103630.80917-1-pramod.nexgen@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/wifi.h

index 92b7882de15c642758c11b3df85b165b61dbaaee..c8844e2bf7b451627ba92d10c9d31cc3023dbcac 100644 (file)
@@ -333,7 +333,7 @@ struct ieee80211_ht_addt_info {
        __le16  operation_mode;
        __le16  stbc_param;
        unsigned char   basic_set[16];
-} __attribute__ ((packed));
+} __packed;
 
 
 struct HT_caps_element {
@@ -348,32 +348,32 @@ struct HT_caps_element {
                } HT_cap_element;
                unsigned char HT_cap[26];
        } u;
-} __attribute__ ((packed));
+} __packed;
 
 struct HT_info_element {
        unsigned char primary_channel;
        unsigned char infos[5];
        unsigned char MCS_rate[16];
-}  __attribute__ ((packed));
+} __packed;
 
 struct AC_param {
        unsigned char   ACI_AIFSN;
        unsigned char   CW;
        __le16  TXOP_limit;
-}  __attribute__ ((packed));
+} __packed;
 
 struct WMM_para_element {
        unsigned char   QoS_info;
        unsigned char   reserved;
        struct AC_param ac_param[4];
-}  __attribute__ ((packed));
+} __packed;
 
 struct ADDBA_request {
        unsigned char   dialog_token;
        __le16  BA_para_set;
        __le16  BA_timeout_value;
        __le16  BA_starting_seqctrl;
-}  __attribute__ ((packed));
+} __packed;
 
 /* 802.11n HT capabilities masks */
 #define IEEE80211_HT_CAP_LDPC_CODING           0x0001