kmemtrace: fix build breakage in lib/decompress_unlzma.c
PATCH 1/1 kmemtrace: fix build breakage in lib/decompress_unlzma.c
From: Pekka Enberg <[email protected]>
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
--- lib/decompress_unlzma.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
lib/decompress_unlzma.c +1 -0
@@ -34,6 +34,7 @@#endif /* STATIC */ #include <linux/decompress/mm.h> +#include <linux/slab.h> #define MIN (a, b) (((a) < (b)) ? (a) : (b))
Signature · 1 line
1.5.4.3