Skip to content

Commit

Permalink
kmemtrace, kbuild: fix slab.h dependency problem in lib/decompress_un…
Browse files Browse the repository at this point in the history
…lzma.c

Impact: cleanup

lib/decompress_unlzma.c depends on slab.h without including it:

    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

It gets included implicitly currently - but this will not be the
case with upcoming kmemtrace changes.

Signed-off-by: Pekka Enberg <[email protected]>
Cc: Eduard - Gabriel Munteanu <[email protected]>
LKML-Reference: <1237886521.25315.58.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Pekka Enberg authored and Ingo Molnar committed Apr 3, 2009
1 parent ba56617 commit e65a1b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/decompress_unlzma.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#endif /* STATIC */

#include <linux/decompress/mm.h>
#include <linux/slab.h>

#define MIN(a, b) (((a) < (b)) ? (a) : (b))

Expand Down

0 comments on commit e65a1b7

Please sign in to comment.