Skip to contentSkip to conversation

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

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

lore
Share & tools
lore
#0 lore raw

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

This patch fixes the following checkpatch.pl warning:
Use #include <linux/errno.h> instead of <asm/errno.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 80dfa07..1fb6d85 100644
@@ -16,7 +16,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/string.h>
-#include <asm/errno.h>
+#include <linux/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/errno.h> instead of <asm/errno.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 80dfa07..1fb6d85 100644

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

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

Patch is correct, but you should write a commit message instead of just pasting in the checkpatch message.

Simply saying - "asm/errno.h should not be included directly" would suffice.

Cheers,
Jes