linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* KEY_RFKILL not found on kernel 2.6.30
@ 2010-03-04  4:58 Keith Bannister
  2010-03-05  5:24 ` Nick Bertrand
  2010-03-05 21:35 ` Pavel Roskin
  0 siblings, 2 replies; 3+ messages in thread
From: Keith Bannister @ 2010-03-04  4:58 UTC (permalink / raw)
  To: linux-wireless

I All,

I'm trying to compile compat-wireless on EasyPeasy (an Ubuntu 9.04
derivative for the eeepc)

The kernel headers are installed for my current kernel:

with

$ sudo apt-get install linux-headers-2.6.30.5-ep0

$ ls -l /lib/modules/`uname -r`/build
lrwxrwxrwx 1 root root 36 2010-03-04 12:02
/lib/modules/2.6.30.5-ep0/build ->
/usr/src/linux-headers-2.6.30.5-ep0/

I got the following compile error, after running

$ ./scripts/driver-select ath5k

$ make clean; make
make[1]: Entering directory `/usr/src/linux-headers-2.6.30.5-ep0'
  CLEAN   /home/keith/wireless/compat-wireless-2010-03-03
  CLEAN   /home/keith/wireless/compat-wireless-2010-03-03/.tmp_versions
make[1]: Leaving directory `/usr/src/linux-headers-2.6.30.5-ep0'
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/2.6.30.5-ep0/build
M=/home/keith/wireless/compat-wireless-2010-03-03 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.30.5-ep0'
  LD      /home/keith/wireless/compat-wireless-2010-03-03/compat/built-in.o

.....


CC [M]  /home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.o
/home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.c: In
function ‘rfkill_event’:
/home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.c:219:
error: ‘KEY_RFKILL’ undeclared (first use in this function)
/home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.c:219:
error: (Each undeclared identifier is reported only once
/home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.c:219:
error: for each function it appears in.)
/home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.c: At
top level:
/home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.c:307:
error: ‘KEY_RFKILL’ undeclared here (not in a function)
/home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.c:307:
error: array index in initialiser not of integer type
/home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.c:307:
error: (near initialisation for ‘rfkill_ids[4].keybit’)
make[3]: *** [/home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.o]
Error 1
make[2]: *** [/home/keith/wireless/compat-wireless-2010-03-03/net/rfkill]
Error 2
make[1]: *** [_module_/home/keith/wireless/compat-wireless-2010-03-03] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.30.5-ep0'
make: *** [modules] Error 2
keith@keith-laptop:~/wireless/compat-wireless-2010-03-03$ uname -a
Linux keith-laptop 2.6.30.5-ep0 #10 SMP PREEMPT Thu Aug 27 19:45:06
CEST 2009 i686 GNU/Linux

Any Ideas?

-- 
Keith Bannister

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

* Re: KEY_RFKILL not found on kernel 2.6.30
  2010-03-04  4:58 KEY_RFKILL not found on kernel 2.6.30 Keith Bannister
@ 2010-03-05  5:24 ` Nick Bertrand
  2010-03-05 21:35 ` Pavel Roskin
  1 sibling, 0 replies; 3+ messages in thread
From: Nick Bertrand @ 2010-03-05  5:24 UTC (permalink / raw)
  To: linux-wireless

I ran into the same problem but was able to get around it by patching
include/linux/input.h. Details here: http://patchwork.kernel.org/patch/46630/

HTH,

Nick Bertrand


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

* Re: KEY_RFKILL not found on kernel 2.6.30
  2010-03-04  4:58 KEY_RFKILL not found on kernel 2.6.30 Keith Bannister
  2010-03-05  5:24 ` Nick Bertrand
@ 2010-03-05 21:35 ` Pavel Roskin
  1 sibling, 0 replies; 3+ messages in thread
From: Pavel Roskin @ 2010-03-05 21:35 UTC (permalink / raw)
  To: Keith Bannister; +Cc: linux-wireless

On Thu, 2010-03-04 at 15:58 +1100, Keith Bannister wrote:

> /home/keith/wireless/compat-wireless-2010-03-03/net/rfkill/input.c:219:
> error: ‘KEY_RFKILL’ undeclared (first use in this function)

The same happens on Linux 2.6.26.  I've just sent a patch for that.
Sorry, I should have credited you as the original reporter.

> Any Ideas?

Please apply this patch to compat-wireless:

diff --git a/include/linux/compat-2.6.33.h b/include/linux/compat-2.6.33.h
index 9559f21..70e5f98 100644
--- a/include/linux/compat-2.6.33.h
+++ b/include/linux/compat-2.6.33.h
@@ -49,6 +49,8 @@ static inline void compat_release_firmware(const struct firmware *fw)
 }
 #endif
 
+#define KEY_RFKILL		247	/* Key that controls all radios */
+
 #define IFF_DONT_BRIDGE 0x800		/* disallow bridging this ether dev */
 /* source: include/linux/if.h */
 

-- 
Regards,
Pavel Roskin

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

end of thread, other threads:[~2010-03-05 21:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-04  4:58 KEY_RFKILL not found on kernel 2.6.30 Keith Bannister
2010-03-05  5:24 ` Nick Bertrand
2010-03-05 21:35 ` Pavel Roskin

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).