]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00161631 [ASRC]fix build error
authorTony Lin <tony.lin@freescale.com>
Tue, 8 Nov 2011 08:46:14 +0000 (16:46 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:58 +0000 (14:09 +0200)
if kernel hacking -> Big Kernel Lock is deselected, ASRC will build fail as:

drivers/mxc/asrc/mxc_asrc.c: In function 'asrc_input_dma_callback':
drivers/mxc/asrc/mxc_asrc.c:873: error: 'TASK_INTERRUPTIBLE'
undeclared (first use in this function)
drivers/mxc/asrc/mxc_asrc.c:873: error: (Each undeclared identifier
is reported only once
drivers/mxc/asrc/mxc_asrc.c:873: error: for each function it appears in.)
drivers/mxc/asrc/mxc_asrc.c: In function 'asrc_output_dma_callback':
drivers/mxc/asrc/mxc_asrc.c:915: error: 'TASK_INTERRUPTIBLE' undeclared
(first use in this function)
drivers/mxc/asrc/mxc_asrc.c: In function 'asrc_ioctl':
drivers/mxc/asrc/mxc_asrc.c:1259: error: 'TASK_INTERRUPTIBLE' undeclared
(first use in this function)
drivers/mxc/asrc/mxc_asrc.c:1259: error: implicit declaration of function
'signal_pending'
drivers/mxc/asrc/mxc_asrc.c:1259: error: implicit declaration of function
'schedule_timeout'
CC      fs/ext4/symlink.o
drivers/mxc/asrc/mxc_asrc.c: In function 'mxc_asrc_close':
drivers/mxc/asrc/mxc_asrc.c:1554: error: 'TASK_INTERRUPTIBLE' undeclared
(first use in this function)
make[3]: *** [drivers/mxc/asrc/mxc_asrc.o] Error 1

Signed-off-by: Tony Lin <tony.lin@freescale.com>
drivers/mxc/asrc/mxc_asrc.c

index 7898f9066bfb49b8b15d6cfbb262ace44f2ad2fb..37528eb90752c02409c53c581cc237dc14c23057 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/mxc_asrc.h>
 #include <linux/fsl_devices.h>
+#include <linux/sched.h>
 #include <asm/irq.h>
 #include <asm/memory.h>
 #include <mach/dma.h>