Skip to contentSkip to conversation

Staging: rtl8192u: ieee80211: Replace <asm/string.h> with <linux/string.h>

PATCH In review Ksenija Stanojevic 3 participants 5 messages Feb 20, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8192u: ieee80211: Replace <asm/string.h> with <linux/string.h>

This patch fixes the following checkpatch.pl warning:
Use #include <linux/string.h> instead of <asm/string.h>

---
 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c +1 -1
index 5533221..80dfa07 100644
@@ -15,7 +15,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/slab.h>
-#include <asm/string.h>
+#include <linux/string.h>
 #include <asm/errno.h>
 
 #include "ieee80211.h"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 14 lines · Ksenija Stanojevic

This patch fixes the following checkpatch.pl warning:
Use #include <linux/string.h> instead of <asm/string.h>

---
 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c +0 -0
index 5533221..80dfa07 100644

drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c line 21

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c +1 -1
@@ -15,7 +15,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/slab.h>
-#include <asm/string.h>
+#include <linux/string.h>
 #include <asm/errno.h>
 
 #include "ieee80211.h"

I just noticed you were generating two patches for very similar changes errno.h and string.h. Since these changes are to the same file and basically identical changes, doing them both in one patch is preferred.

Cheers,
Jes

#2 lore raw

Ok. Should i make a separate patch or v2 of one of them?

Quoted 33 lines · Jes Sorensen

Review

Quoted 9 lines · Ksenija Stanojevic

This patch fixes the following checkpatch.pl warning:
Use #include <linux/string.h> instead of <asm/string.h>

---
 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c

drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c line 21

Quoted 13 lines

index 5533221..80dfa07 100644

drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c +1 -1
@@ -15,7 +15,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/slab.h>
-#include <asm/string.h>
+#include <linux/string.h>
 #include <asm/errno.h>
 
 #include "ieee80211.h"

I just noticed you were generating two patches for very similar changes errno.h and string.h. Since these changes are to the same file and basically identical changes, doing them both in one patch is preferred.

Cheers,
Jes

#3 lore raw
Quoted 1 line · Ksenija Stanojević

Ok. Should i make a separate patch or v2 of one of them?

Don't top post. In reading this message on a small screen one has not idea what comment this is responding to. See

http://kernelnewbies.org/Outreachyfirstpatch

in the section about responding to emails.

julia

Quoted 50 lines

On Fri, Feb 20, 2015 at 8:47 PM, Jes Sorensen <[email protected]> wrote:

      On 02/20/15 14:32, Ksenija Stanojevic wrote:
      > This patch fixes the following checkpatch.pl warning:
      > Use #include <linux/string.h> instead of <asm/string.h>
      >
      > Signed-off-by: Ksenija Stanojevic
      <[email protected]>
      > ---
      >  drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 2 +-
      >  1 file changed, 1 insertion(+), 1 deletion(-)
      >
      > diff --git
      a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
      b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
      > index 5533221..80dfa07 100644
      > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
      > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
      > @@ -15,7 +15,7 @@
      >  #include <linux/module.h>
      >  #include <linux/init.h>
      >  #include <linux/slab.h>
      > -#include <asm/string.h>
      > +#include <linux/string.h>
      >  #include <asm/errno.h>
      >
      >  #include "ieee80211.h"
      >

I just noticed you were generating two patches for very similar changes
errno.h and string.h. Since these changes are to the same file and basically identical changes, doing them both in one patch is preferred.

Cheers,
Jes

--
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 visithttps://groups.google.com/d/msgid/outreachy-kernel/CAL7P5j%2BucoNiBEbRfkwZF ObjPxH8%3Di0yMQTNxsoCj8fubdbSHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

#4 lore raw
In reply to Ksenija Stanojević
Quoted 1 line · Ksenija Stanojević

Ok. Should i make a separate patch or v2 of one of them?

Yes please merge and repost - and as Julia said, please don't top-post it's bad email etiquette. Community people generally frown upon it.

Jes

Quoted 37 lines
Quoted 33 lines · Jes Sorensen

Review

Quoted 9 lines · Ksenija Stanojevic

This patch fixes the following checkpatch.pl warning:
Use #include <linux/string.h> instead of <asm/string.h>

---
 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c

drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c line 21

Quoted 13 lines

index 5533221..80dfa07 100644

drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c +1 -1
@@ -15,7 +15,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/slab.h>
-#include <asm/string.h>
+#include <linux/string.h>
 #include <asm/errno.h>
 
 #include "ieee80211.h"

I just noticed you were generating two patches for very similar changes errno.h and string.h. Since these changes are to the same file and basically identical changes, doing them both in one patch is preferred.

Cheers,
Jes