From: Adrian Bunk Add proper prototypes in include/linux/slab.h. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- fs/proc/proc_misc.c | 2 -- include/linux/slab.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff -puN fs/proc/proc_misc.c~mm-slabc-proper-prototypes fs/proc/proc_misc.c --- a/fs/proc/proc_misc.c~mm-slabc-proper-prototypes +++ a/fs/proc/proc_misc.c @@ -398,8 +398,6 @@ static const struct file_operations proc #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); diff -puN include/linux/slab.h~mm-slabc-proper-prototypes include/linux/slab.h --- a/include/linux/slab.h~mm-slabc-proper-prototypes +++ a/include/linux/slab.h @@ -219,6 +219,9 @@ extern void *__kmalloc_node_track_caller #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 */ _