layerscape: make uImage with zImage for 32-bit kernel
[openwrt/staging/jow.git] / target / linux / layerscape / patches-4.4 / 4234-fsl-ifc-fix-compilation-error-when-COMPAT-not-enable.patch
1 From 6183d512e7539033ccfd177d5f5819302d1fda99 Mon Sep 17 00:00:00 2001
2 From: Lijun Pan <Lijun.Pan@freescale.com>
3 Date: Wed, 23 Sep 2015 17:06:01 -0500
4 Subject: [PATCH 234/238] fsl-ifc: fix compilation error when COMPAT not
5 enabled
6
7 When CONFIG_COMPAT is not enabled for cases when 64K pages
8 are enabled, there are a series of include dependencies that
9 result in some definitions in sched.h that get missed (e.g.
10 TASK_NORMAL). Explictly include sched.h to resolve this.
11 (This seems to be what other drivers do as well)
12
13 Signed-off-by: Lijun Pan <Lijun.Pan@freescale.com>
14 [Stuart: updated subject and commit message]
15 Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
16 ---
17 drivers/memory/fsl_ifc.c | 1 +
18 1 file changed, 1 insertion(+)
19
20 --- a/drivers/memory/fsl_ifc.c
21 +++ b/drivers/memory/fsl_ifc.c
22 @@ -35,6 +35,7 @@
23 #include <linux/irqdomain.h>
24 #include <linux/of_address.h>
25 #include <linux/of_irq.h>
26 +#include <linux/sched.h>
27
28 struct fsl_ifc_ctrl *fsl_ifc_ctrl_dev;
29 EXPORT_SYMBOL(fsl_ifc_ctrl_dev);