Skip to contentSkip to conversation

errno.h: define ERFKILL

PATCH In review Alexander Beregalov 4 participants 4 messages Jun 5, 2009 – Jun 7, 2009

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 errno.h: define ERFKILL

Commit 1f87f7d3 (cfg80211: add rfkill support) added ERFKILL to asm-generic/errno.h, but alpha, mips, parisc and sparc use their own numbering scheme and do not include asm-generic/errno.h. We need to add definition of ERFKILL for them.

---
 arch/alpha/include/asm/errno.h  |    2 ++
 arch/mips/include/asm/errno.h   |    2 ++
 arch/parisc/include/asm/errno.h |    1 +
 arch/sparc/include/asm/errno.h  |    2 ++
 4 files changed, 7 insertions(+), 0 deletions(-)
arch/alpha/include/asm/errno.h +2 -0
index 69e2655..98099bd 100644
@@ -120,4 +120,6 @@
 #define	EOWNERDEAD	136	/* Owner died */
 #define	ENOTRECOVERABLE	137	/* State not recoverable */
 
+#define	ERFKILL		138	/* Operation not possible due to RF-kill */
+
 #endif
arch/mips/include/asm/errno.h +2 -0
index 3c0d840..a0efc73 100644
@@ -119,6 +119,8 @@
 #define	EOWNERDEAD	165	/* Owner died */
 #define	ENOTRECOVERABLE	166	/* State not recoverable */
 
+#define	ERFKILL		167	/* Operation not possible due to RF-kill */
+
 #define EDQUOT		1133	/* Quota exceeded */
 
 #ifdef __KERNEL__
arch/parisc/include/asm/errno.h +1 -0
index e2f3ddc..9992abd 100644
@@ -120,5 +120,6 @@
 #define EOWNERDEAD	254	/* Owner died */
 #define ENOTRECOVERABLE	255	/* State not recoverable */
 
+#define	ERFKILL		256	/* Operation not possible due to RF-kill */
 
 #endif
arch/sparc/include/asm/errno.h +2 -0
index a9ef172..4e2bc49 100644
@@ -110,4 +110,6 @@
 #define	EOWNERDEAD	132	/* Owner died */
 #define	ENOTRECOVERABLE	133	/* State not recoverable */
 
+#define	ERFKILL		134	/* Operation not possible due to RF-kill */
+
 #endif
Signature · 1 line
1.6.3.1
#1 lore raw
Quoted 4 lines · Alexander Beregalov

Commit 1f87f7d3 (cfg80211: add rfkill support) added ERFKILL to asm-generic/errno.h, but alpha, mips, parisc and sparc use their own numbering scheme and do not include asm-generic/errno.h. We need to add definition of ERFKILL for them.

Oh, I wasn't aware of that, thanks.

johannes

Quoted 54 lines
---
 arch/alpha/include/asm/errno.h  |    2 ++
 arch/mips/include/asm/errno.h   |    2 ++
 arch/parisc/include/asm/errno.h |    1 +
 arch/sparc/include/asm/errno.h  |    2 ++
 4 files changed, 7 insertions(+), 0 deletions(-)
arch/alpha/include/asm/errno.h +2 -0
index 69e2655..98099bd 100644
@@ -120,4 +120,6 @@
 #define	EOWNERDEAD	136	/* Owner died */
 #define	ENOTRECOVERABLE	137	/* State not recoverable */
 
+#define	ERFKILL		138	/* Operation not possible due to RF-kill */
+
 #endif
arch/mips/include/asm/errno.h +2 -0
index 3c0d840..a0efc73 100644
@@ -119,6 +119,8 @@
 #define	EOWNERDEAD	165	/* Owner died */
 #define	ENOTRECOVERABLE	166	/* State not recoverable */
 
+#define	ERFKILL		167	/* Operation not possible due to RF-kill */
+
 #define EDQUOT		1133	/* Quota exceeded */
 
 #ifdef __KERNEL__
arch/parisc/include/asm/errno.h +1 -0
index e2f3ddc..9992abd 100644
@@ -120,5 +120,6 @@
 #define EOWNERDEAD	254	/* Owner died */
 #define ENOTRECOVERABLE	255	/* State not recoverable */
 
+#define	ERFKILL		256	/* Operation not possible due to RF-kill */
 
 #endif
arch/sparc/include/asm/errno.h +2 -0
index a9ef172..4e2bc49 100644
@@ -110,4 +110,6 @@
 #define	EOWNERDEAD	132	/* Owner died */
 #define	ENOTRECOVERABLE	133	/* State not recoverable */
 
+#define	ERFKILL		134	/* Operation not possible due to RF-kill */
+
 #endif
Acked-by
#2 lore raw
In reply to Johannes Berg
Quoted 11 lines · Johannes Berg
Quoted 4 lines · Alexander Beregalov

Commit 1f87f7d3 (cfg80211: add rfkill support) added ERFKILL to asm-generic/errno.h, but alpha, mips, parisc and sparc use their own numbering scheme and do not include asm-generic/errno.h. We need to add definition of ERFKILL for them.

Oh, I wasn't aware of that, thanks.

johannes

Quoted 1 line

Cool with me.