]> err.no Git - linux-2.6/commitdiff
mm/slab.c: proper prototypes
authorAdrian Bunk <bunk@stusta.de>
Sun, 6 May 2007 21:49:12 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:12:52 +0000 (12:12 -0700)
Add proper prototypes in include/linux/slab.h.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/proc_misc.c
include/linux/slab.h

index e2c4c0a5c90d40ff8ac2d28715956a8cbf65dd6c..75ec6523d29aeb746d51bbce79b178c0e8015e11 100644 (file)
@@ -398,8 +398,6 @@ static const struct file_operations proc_modules_operations = {
 #endif
 
 #ifdef CONFIG_SLAB
-extern struct seq_operations slabinfo_op;
-extern ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *);
 static int slabinfo_open(struct inode *inode, struct file *file)
 {
        return seq_open(file, &slabinfo_op);
index 2f8f60ff294aa93426409289c383d2a73f4f6cf2..f9ed9346bfd6eec54db83cc097e449423cf1d67f 100644 (file)
@@ -219,6 +219,9 @@ extern void *__kmalloc_node_track_caller(size_t, gfp_t, int, void *);
 
 #endif /* DEBUG_SLAB */
 
+extern const struct seq_operations slabinfo_op;
+ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *);
+
 #endif /* __KERNEL__ */
 #endif /* _LINUX_SLAB_H */