Skip to content

Commit

Permalink
mm/slab.c: proper prototypes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed May 7, 2007
1 parent 411f0f3 commit ac26772
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/proc/proc_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions include/linux/slab.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit ac26772

Please sign in to comment.