From 2010bb84bc7e5e711c84a09ce0690348d6683c12 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Mon, 23 Apr 2012 18:01:21 -0700 Subject: [PATCH] compat-wireless: add sched.h on libertas/firmware.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit sched.h is required to compile users of wake_up(), firmware.c somehow gets sched.h included on newer kernels but on older kernels this is not happening so include this on the file itself. This patch should and will be sent upstream. This fixes this compilation error: /home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c: In function ‘lbs_fw_loaded’: /home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c:26:29: error: ‘TASK_NORMAL’ undeclared (first use in this function) /home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c:26:29: note: each undeclared identifier is reported only once for each function it appears in /home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c: In function ‘lbs_wait_for_firmware_load’: /home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c:110:260: error: ‘TASK_UNINTERRUPTIBLE’ undeclared (first use in this function) /home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c:110:2: error: implicit declaration of function ‘schedule’ [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[4]: *** [/home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.o] Error 1 Signed-off-by: Luis R. Rodriguez --- patches/55-sched.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 patches/55-sched.patch diff --git a/patches/55-sched.patch b/patches/55-sched.patch new file mode 100644 index 000000000000..67830a257ae8 --- /dev/null +++ b/patches/55-sched.patch @@ -0,0 +1,17 @@ + +sched.h is required to compile users of wake_up(), +firmware.c somehow gets sched.h included on newer kernels +but on older kernels this is not happening so include +this on the file itself. This patch should and will +be sent upstream. + +--- a/drivers/net/wireless/libertas/firmware.c ++++ b/drivers/net/wireless/libertas/firmware.c +@@ -2,6 +2,7 @@ + * Firmware loading and handling functions. + */ + ++#include + #include + #include + #include -- 2.30.2