[PATCH] kmemtrace: fix build breakage in lib/decompress_unlzma.c
From: Pekka Enberg
Date: Tue Mar 24 2009 - 05:22:19 EST
From: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
Impact: fix build
This patch fixes up the following build breakage caused by commit
e251ea2fa52321009940fad02238ef1c369531ae ("rcu: don't include unnecessary
headers, allow kmemtrace w/ tracepoints"):
CC lib/decompress_unlzma.o
lib/decompress_unlzma.c: In function ârc_freeâ:
lib/decompress_unlzma.c:122: error: implicit declaration of function âkfreeâ
lib/decompress_unlzma.c: In function âunlzmaâ:
lib/decompress_unlzma.c:551: error: implicit declaration of function âkmallocâ
lib/decompress_unlzma.c:551: warning: assignment makes pointer from integer without a cast
make[1]: *** [lib/decompress_unlzma.o] Error 1
make: *** [lib/] Error 2
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@xxxxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
---
lib/decompress_unlzma.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/decompress_unlzma.c b/lib/decompress_unlzma.c
index 546f2f4..32123a1 100644
--- a/lib/decompress_unlzma.c
+++ b/lib/decompress_unlzma.c
@@ -34,6 +34,7 @@
#endif /* STATIC */
#include <linux/decompress/mm.h>
+#include <linux/slab.h>
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/