Decompressors: include <linux/slab.h> in <linux/decompress/mm.h>
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 13 Jan 2011 01:01:15 +0000 (17:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:23 +0000 (08:03 -0800)
Currently users of mm.h need to include <linux/slab.h> to use the macros
malloc() and free() provided by mm.h.  This fixes it.

Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Alain Knaff <alain@knaff.lu>
Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/decompress/mm.h
lib/decompress_bunzip2.c
lib/decompress_inflate.c
lib/decompress_unlzma.c
lib/decompress_unlzo.c

index a31e9820710ab30d9d5e479b288c5a7f63abad2f..4cb72b920c74d39ed5a480e6d7a40dfac8266242 100644 (file)
@@ -70,6 +70,7 @@ static void free(void *where)
 #include <linux/kernel.h>
 #include <linux/fs.h>
 #include <linux/string.h>
+#include <linux/slab.h>
 #include <linux/vmalloc.h>
 
 /* Use defines rather than static inline in order to avoid spurious
index e805087f55618f2694abb92b6cf90b8561976813..a7b80c1d6a0d5fba9c4078969a8916cd41ff02f7 100644 (file)
@@ -49,7 +49,6 @@
 #define PREBOOT
 #else
 #include <linux/decompress/bunzip2.h>
-#include <linux/slab.h>
 #endif /* STATIC */
 
 #include <linux/decompress/mm.h>
index 9a7f5dfc0ed7a76829f563c7ea29e27c4e27ab33..b5fe1d1d5f05e8772afe39ede9f127591dac71ec 100644 (file)
@@ -19,7 +19,6 @@
 #include "zlib_inflate/inflate.h"
 
 #include "zlib_inflate/infutil.h"
-#include <linux/slab.h>
 
 #endif /* STATIC */
 
index 2787dc560e4b328013c8c5afd7a23a9bbbea29c9..946b83be3bcc1821a4cadb8f54c0d579b32f77cf 100644 (file)
@@ -33,7 +33,6 @@
 #define PREBOOT
 #else
 #include <linux/decompress/unlzma.h>
-#include <linux/slab.h>
 #endif /* STATIC */
 
 #include <linux/decompress/mm.h>
index df3e98f945a6e2ee7945c6fb16483f499e5cee0c..6e56d547ba32849666cbb1abc2a2f7e194fee1d5 100644 (file)
@@ -33,7 +33,6 @@
 #ifdef STATIC
 #include "lzo/lzo1x_decompress.c"
 #else
-#include <linux/slab.h>
 #include <linux/decompress/unlzo.h>
 #endif