Skip to contentSkip to conversation

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

PATCH In review Rakhi Sharma 2 participants 2 messages Feb 22, 2016 Staging

lore
Share & tools
lore
#0 lore raw

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

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

---
 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
maintainer
#1 lore raw
Quoted 7 lines · Rakhi Sharma

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

---
 drivers/staging/wilc1000/linux_mon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

This is already in my tree :(