[2.6 patch] mm/slab.c: proper prototypes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch adds proper prototypes in include/linux/slab.h.

Signed-off-by: Adrian Bunk <[email protected]>

---

 fs/proc/proc_misc.c  |    2 --
 include/linux/slab.h |    3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

--- linux-2.6.20-mm2/include/linux/slab.h.old	2007-02-25 19:48:30.000000000 +0100
+++ linux-2.6.20-mm2/include/linux/slab.h	2007-02-25 19:52:47.000000000 +0100
@@ -218,6 +218,9 @@
 
 #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 */
 
--- linux-2.6.20-mm2/fs/proc/proc_misc.c.old	2007-02-25 19:51:44.000000000 +0100
+++ linux-2.6.20-mm2/fs/proc/proc_misc.c	2007-02-25 19:52:17.000000000 +0100
@@ -400,8 +400,6 @@
 #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);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux