2008-03-14 02:11:34

by Robert P. J. Day

[permalink] [raw]
Subject: [PATCH] BEFS: Explicitly include required header file slab.h.


Since fs/befs/debug.c invokes kmalloc(), it should explicitly include
<linux/slab.h>.

Signed-off-by: Robert P. J. Day <[email protected]>

---

diff --git a/fs/befs/debug.c b/fs/befs/debug.c
index b8e304a..622e737 100644
--- a/fs/befs/debug.c
+++ b/fs/befs/debug.c
@@ -17,6 +17,7 @@
#include <linux/spinlock.h>
#include <linux/kernel.h>
#include <linux/fs.h>
+#include <linux/slab.h>

#endif /* __KERNEL__ */

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================