diff options
-rw-r--r-- | fs/proc/proc_misc.c | 2 | ||||
-rw-r--r-- | include/linux/slab.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index e2c4c0a5c90d..75ec6523d29a 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -398,8 +398,6 @@ static const struct file_operations proc_modules_operations = { | |||
398 | #endif | 398 | #endif |
399 | 399 | ||
400 | #ifdef CONFIG_SLAB | 400 | #ifdef CONFIG_SLAB |
401 | extern struct seq_operations slabinfo_op; | ||
402 | extern ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *); | ||
403 | static int slabinfo_open(struct inode *inode, struct file *file) | 401 | static int slabinfo_open(struct inode *inode, struct file *file) |
404 | { | 402 | { |
405 | return seq_open(file, &slabinfo_op); | 403 | return seq_open(file, &slabinfo_op); |
diff --git a/include/linux/slab.h b/include/linux/slab.h index 2f8f60ff294a..f9ed9346bfd6 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h | |||
@@ -219,6 +219,9 @@ extern void *__kmalloc_node_track_caller(size_t, gfp_t, int, void *); | |||
219 | 219 | ||
220 | #endif /* DEBUG_SLAB */ | 220 | #endif /* DEBUG_SLAB */ |
221 | 221 | ||
222 | extern const struct seq_operations slabinfo_op; | ||
223 | ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *); | ||
224 | |||
222 | #endif /* __KERNEL__ */ | 225 | #endif /* __KERNEL__ */ |
223 | #endif /* _LINUX_SLAB_H */ | 226 | #endif /* _LINUX_SLAB_H */ |
224 | 227 | ||