mm/slab.c: proper prototypes
Subsystems (2)
PATCH 1/1 mm/slab.c: proper prototypes
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(-)
include/linux/slab.h renamed from include/linux/slab.h.old +3 -0
@@ -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 */
fs/proc/proc_misc.c renamed from fs/proc/proc_misc.c.old +0 -2
@@ -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);