Skip to contentSkip to conversation

Staging: wilc1000: Fixed a coding style error of preference

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: wilc1000: Fixed a coding style error of preference

This patch fixes the following warning: __packed is preferred over __attribute__((packed))

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

This patch fixes the following warning: __packed is preferred over __attribute__((packed))

Hi,

I think it would be good if you can use more reasonable subject and commit log.

For example, for this patch you can use something like this:

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

Then in the commit log you can explain the reason for the fix. Like what you have done and why the change is correct. And then to give a credit to the tool, you can add something like 'Problem found using checkpatch.pl'.

You can also go for reading this for the better idea:
http://kernelnewbies.org/PatchPhilosophy

Thank you.

Quoted 35 lines
---
 drivers/staging/wilc1000/linux_mon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wilc1000/linux_mon.c +2 -3
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 */
 
--

1.9.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1455348872-8892-1-git-send-email-rakhish1994%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Signature · 1 line
Vaishali
#2 lore raw
Quoted 14 lines · Vaishali Thakkar
Quoted 2 lines · Rakhi Sharma

This patch fixes the following warning: __packed is preferred over __attribute__((packed))

Hi,

I think it would be good if you can use more reasonable subject and commit log.

For example, for this patch you can use something like this:

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

Quoted 7 lines

Then in the commit log you can explain the reason for the fix. Like what you
have done and why the change is correct. And then to give a credit to the tool,
you can add something like 'Problem found using checkpatch.pl'.

Sorry , I am jsut sending a v2 for this :)

Rakhi

Quoted 51 lines

You can also go for reading this for the better idea:
http://kernelnewbies.org/PatchPhilosophy

Thank you.

Review

Quoted 6 lines
---
 drivers/staging/wilc1000/linux_mon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/staging/wilc1000/linux_mon.c

Quoted 23 lines

index e550027..284dfb0 100644

drivers/staging/wilc1000/linux_mon.c +2 -3
@@ -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 */
 
--

1.9.1

Quoted 2 lines

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 2 lines

To post to this group, send email to [email protected]. To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/1455348872-8892-1-git-send-email-rakhish1994%40gmail.com
.

Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

--
Vaishali

#3 lore raw
Quoted 17 lines · RAKHI SHARMA
Quoted 15 lines · Vaishali Thakkar
Quoted 2 lines · Rakhi Sharma

This patch fixes the following warning: __packed is preferred over __attribute__((packed))

Hi,

I think it would be good if you can use more reasonable subject and commit log.

For example, for this patch you can use something like this:

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

Quoted 7 lines
Quoted 6 lines

Then in the commit log you can explain the reason for the fix. Like what you
have done and why the change is correct. And then to give a credit to the tool,
you can add something like 'Problem found using checkpatch.pl'.

Sorry , I am jsut sending a v2 for this :)

Don't be sorry for that. :)

By the way, this patch is already in staging-testing branch.
https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/commit/?h=staging-testing&id=d8c7d2b35d156e4faccfe2742b6c58492b60d065

You need to update your branch.

Quoted 53 lines

Rakhi

Quoted 50 lines

You can also go for reading this for the better idea:
http://kernelnewbies.org/PatchPhilosophy

Thank you.

Quoted 30 lines
---
 drivers/staging/wilc1000/linux_mon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wilc1000/linux_mon.c +2 -3
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 */
 
--

1.9.1

Quoted 9 lines

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit
https://groups.google.com/d/msgid/outreachy-kernel/1455348872-8892-1-git-send-email-rakhish1994%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
Vaishali

Signature · 1 line
Vaishali