4234-fsl-ifc-fix-compilation-error-when-COMPAT-not-enable.patch 1017 B

1234567891011121314151617181920212223242526272829
  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. When CONFIG_COMPAT is not enabled for cases when 64K pages
  7. are enabled, there are a series of include dependencies that
  8. result in some definitions in sched.h that get missed (e.g.
  9. TASK_NORMAL). Explictly include sched.h to resolve this.
  10. (This seems to be what other drivers do as well)
  11. Signed-off-by: Lijun Pan <Lijun.Pan@freescale.com>
  12. [Stuart: updated subject and commit message]
  13. Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
  14. ---
  15. drivers/memory/fsl_ifc.c | 1 +
  16. 1 file changed, 1 insertion(+)
  17. --- a/drivers/memory/fsl_ifc.c
  18. +++ b/drivers/memory/fsl_ifc.c
  19. @@ -35,6 +35,7 @@
  20. #include <linux/irqdomain.h>
  21. #include <linux/of_address.h>
  22. #include <linux/of_irq.h>
  23. +#include <linux/sched.h>
  24. struct fsl_ifc_ctrl *fsl_ifc_ctrl_dev;
  25. EXPORT_SYMBOL(fsl_ifc_ctrl_dev);