Skip to contentSkip to conversation

Staging: wilc1000:Use __packed instead of __attribute__((packed))

PATCH New Rakhi Sharma 1 participant 1 message Feb 13, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Staging: wilc1000:Use __packed instead of __attribute__((packed))

This patch fixes the following warning: "__packed is preferred over __attribute__((packed))" as reported by checkpatch.pl.
Fixed by replacing __attribute__((packed)) over __packed.

---
Changes in v2:
-Modify the subject and commit log.

 drivers/staging/wilc1000/linux_mon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wilc1000/linux_mon.c +2 -2
index e550027..284dfb0 100644
@@ -15,14 +15,14 @@
 struct wilc_wfi_radiotap_hdr {
 	struct ieee80211_radiotap_header hdr;
 	u8 rate;
-} __attribute__((packed));
+} __packed;
 
 struct wilc_wfi_radiotap_cb_hdr {
 	struct ieee80211_radiotap_header hdr;
 	u8 rate;
 	u8 dump;
 	u16 tx_flags;
-} __attribute__((packed));
+} __packed;
 
 static struct net_device *wilc_wfi_mon; /* global monitor netdev */
 
Signature · 1 line
1.9.1