From: Chaehyun Lim Date: Mon, 1 Feb 2016 12:26:37 +0000 (+0900) Subject: staging: wilc1000: linux_mon: use __packed instead of __attribute__((packed)) X-Git-Tag: v4.6~331^2~1336 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8c7d2b35d156e4faccfe2742b6c58492b60d065;p=platform%2Fkernel%2Flinux-amlogic.git staging: wilc1000: linux_mon: use __packed instead of __attribute__((packed)) This patch fixes the following checkpatch warning: WARNING: __packed is preferred over __attribute__((packed)) Signed-off-by: Chaehyun Lim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/wilc1000/linux_mon.c index e550027..284dfb0 100644 --- a/drivers/staging/wilc1000/linux_mon.c +++ b/drivers/staging/wilc1000/linux_mon.c @@ -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 */