[PATCH 2/2] pbl: factorise linux/decompress/mm.h inclusion

Antony Pavlov antonynpavlov at gmail.com
Mon Feb 4 17:36:36 EST 2013


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 lib/decompress_inflate.c |    1 -
 lib/decompress_unlzo.c   |    1 -
 pbl/decomp.c             |    2 ++
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c
index 5c1ebb6..526d6a1 100644
--- a/lib/decompress_inflate.c
+++ b/lib/decompress_inflate.c
@@ -4,7 +4,6 @@
 /* prevent inclusion of _LINUX_KERNEL_H in pre-boot environment: lots
  * errors about console_printk etc... on ARM */
 #define _LINUX_KERNEL_H
-#include <linux/decompress/mm.h>
 
 #include "zlib_inflate/inftrees.c"
 #include "zlib_inflate/inffast.c"
diff --git a/lib/decompress_unlzo.c b/lib/decompress_unlzo.c
index 1b2dc9d..2b0fbed 100644
--- a/lib/decompress_unlzo.c
+++ b/lib/decompress_unlzo.c
@@ -32,7 +32,6 @@
 #include <xfuncs.h>
 
 #ifdef STATIC
-#include <linux/decompress/mm.h>
 #include "lzo/lzo1x_decompress.c"
 #else
 #include <malloc.h>
diff --git a/pbl/decomp.c b/pbl/decomp.c
index aa6a31e..17fc01e 100644
--- a/pbl/decomp.c
+++ b/pbl/decomp.c
@@ -10,6 +10,8 @@
 
 #define STATIC static
 
+#include <linux/decompress/mm.h>
+
 #ifdef CONFIG_IMAGE_COMPRESSION_LZO
 #include "../../../lib/decompress_unlzo.c"
 #endif
-- 
1.7.10.4




More information about the barebox mailing list