Skip to content

Commit

Permalink
fs/ramfs/ extern cleanup
Browse files Browse the repository at this point in the history
- internal.h shouldn't duplicate the extern declaration for
  ramfs_file_operations already in include/linux/ramfs.h
- file-mmu.c needs two #include's for seeing the extern declarations
  of it's global struct's

Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AdrianBunk authored and torvalds committed Apr 29, 2008
1 parent f7b16c1 commit 4488c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions fs/ramfs/file-mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/ramfs.h>

#include "internal.h"

const struct address_space_operations ramfs_aops = {
.readpage = simple_readpage,
Expand Down
1 change: 0 additions & 1 deletion fs/ramfs/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@


extern const struct address_space_operations ramfs_aops;
extern const struct file_operations ramfs_file_operations;
extern const struct inode_operations ramfs_file_inode_operations;

0 comments on commit 4488c59

Please sign in to comment.