summaryrefslogtreecommitdiffstats
path: root/fs/ramfs
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-04-29 00:58:51 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 08:06:00 -0700
commit4488c59c942bd6004fc97f0c2a7603a2f5dd80e0 (patch)
tree83da32b510c78920035f84b2cba6b3d015da839f /fs/ramfs
parentf7b16c108fd044adc422ff21b5d6c16022462fd0 (diff)
downloadblackbird-op-linux-4488c59c942bd6004fc97f0c2a7603a2f5dd80e0.tar.gz
blackbird-op-linux-4488c59c942bd6004fc97f0c2a7603a2f5dd80e0.zip
fs/ramfs/ extern cleanup
- 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 <bunk@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ramfs')
-rw-r--r--fs/ramfs/file-mmu.c3
-rw-r--r--fs/ramfs/internal.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/ramfs/file-mmu.c b/fs/ramfs/file-mmu.c
index b41a514b0976..9590b9024300 100644
--- a/fs/ramfs/file-mmu.c
+++ b/fs/ramfs/file-mmu.c
@@ -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,
diff --git a/fs/ramfs/internal.h b/fs/ramfs/internal.h
index af7cc074a476..6b330639b51d 100644
--- a/fs/ramfs/internal.h
+++ b/fs/ramfs/internal.h
@@ -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;
OpenPOWER on IntegriCloud