linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] staging:ks7010: use __packed instead of __attribute__((packed))
@ 2016-10-09  5:52 Sabitha George
  2016-10-09 14:50 ` [PATCH 1/3] staging: ks7010: " Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Sabitha George @ 2016-10-09  5:52 UTC (permalink / raw)
  To: gregkh, wsa+renesas, devel, linux-kernel; +Cc: Sabitha George

This patch fixes the below checkpatch warning in ks_hostif.c:
 __packed is preferred over __attribute__((packed))

Signed-off-by: Sabitha George <sabitha.george@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index c57ca58..b4d422b 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1942,12 +1942,12 @@ void hostif_sme_set_wep(struct ks_wlan_private *priv, int type)
 struct wpa_suite_t {
 	unsigned short size;
 	unsigned char suite[4][CIPHER_ID_LEN];
-} __attribute__ ((packed));
+} __packed;
 
 struct rsn_mode_t {
 	uint32_t rsn_mode;
 	uint16_t rsn_capability;
-} __attribute__ ((packed));
+} __packed;
 
 static
 void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type)
@@ -2427,8 +2427,8 @@ void hostif_sme_set_pmksa(struct ks_wlan_private *priv)
 		struct {
 			uint8_t bssid[ETH_ALEN];
 			uint8_t pmkid[IW_PMKID_LEN];
-		} __attribute__ ((packed)) list[PMK_LIST_MAX];
-	} __attribute__ ((packed)) pmkcache;
+		} __packed list[PMK_LIST_MAX];
+	} __packed pmkcache;
 	struct pmk_t *pmk;
 	struct list_head *ptr;
 	int i;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/3] staging: ks7010: use __packed instead of __attribute__((packed))
  2016-10-09  5:52 [PATCH 1/3] staging:ks7010: use __packed instead of __attribute__((packed)) Sabitha George
@ 2016-10-09 14:50 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2016-10-09 14:50 UTC (permalink / raw)
  To: Sabitha George; +Cc: wsa+renesas, devel, linux-kernel

On Sun, Oct 09, 2016 at 11:22:32AM +0530, Sabitha George wrote:
> This patch fixes the below checkpatch warning in ks_hostif.c:
>  __packed is preferred over __attribute__((packed))
> 
> Signed-off-by: Sabitha George <sabitha.george@gmail.com>
> ---
>  drivers/staging/ks7010/ks_hostif.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Someone else sent this right before you did, sorry :(

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-09 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-09  5:52 [PATCH 1/3] staging:ks7010: use __packed instead of __attribute__((packed)) Sabitha George
2016-10-09 14:50 ` [PATCH 1/3] staging: ks7010: " Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).