summaryrefslogtreecommitdiff
path: root/include/linux/decompress
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-01-13 04:01:15 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 19:03:23 +0300
commit2b6b5caa6d05579bd1501006e34feec1b2aef8c4 (patch)
tree9345fc087fab818c36bf348a563ba1f83c350bda /include/linux/decompress
parent93685ad247ef65b7d6f90ffe97b44f5cfeaf40d3 (diff)
downloadlinux-2b6b5caa6d05579bd1501006e34feec1b2aef8c4.tar.xz
Decompressors: include <linux/slab.h> in <linux/decompress/mm.h>
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>
Diffstat (limited to 'include/linux/decompress')
-rw-r--r--include/linux/decompress/mm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/decompress/mm.h b/include/linux/decompress/mm.h
index a31e9820710a..4cb72b920c74 100644
--- a/include/linux/decompress/mm.h
+++ b/include/linux/decompress/mm.h
@@ -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