]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kmemtrace, befs: fix slab.h dependency problem
authorPekka Enberg <penberg@cs.helsinki.fi>
Tue, 24 Mar 2009 08:43:50 +0000 (10:43 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 3 Apr 2009 10:21:33 +0000 (12:21 +0200)
Impact: cleanup

fs/befs/debug.c depends on slab.h without including it. Upcoming
changes for kmemtrace would break the build:

    CC      fs/befs/debug.o
  fs/befs/debug.c: In function ‘befs_error’:
  fs/befs/debug.c:31: error: implicit declaration of function ‘kmalloc’
  fs/befs/debug.c:31: warning: initialization makes pointer from integer without a cast
  fs/befs/debug.c:42: error: implicit declaration of function ‘kfree’
  fs/befs/debug.c: In function ‘befs_warning’:
  fs/befs/debug.c:49: warning: initialization makes pointer from integer without a cast
  fs/befs/debug.c: In function ‘befs_debug’:
  fs/befs/debug.c:73: warning: assignment makes pointer from integer without a cast
  make[1]: *** [fs/befs/debug.o] Error 1
  make: *** [fs/befs/] Error 2

So add the dependency explicitly.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
LKML-Reference: <1237884230.25315.33.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
fs/befs/debug.c

index b8e304a0661e473ba7b44ca74ceebd3e8f228c52..622e73775c83e91da573ff7266688d19e25f3dca 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/spinlock.h>
 #include <linux/kernel.h>
 #include <linux/fs.h>
+#include <linux/slab.h>
 
 #endif                         /* __KERNEL__ */