From: Adrian Bunk Add proper extern declarations for two structs in fs/hfsplus/hfsplus_fs.h Signed-off-by: Adrian Bunk Cc: Roman Zippel Signed-off-by: Andrew Morton --- fs/hfsplus/hfsplus_fs.h | 4 ++++ fs/hfsplus/inode.c | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff -puN fs/hfsplus/hfsplus_fs.h~fs-hfsplus-proper-externs fs/hfsplus/hfsplus_fs.h --- a/fs/hfsplus/hfsplus_fs.h~fs-hfsplus-proper-externs +++ a/fs/hfsplus/hfsplus_fs.h @@ -311,6 +311,10 @@ int hfsplus_delete_cat(u32, struct inode int hfsplus_rename_cat(u32, struct inode *, struct qstr *, struct inode *, struct qstr *); +/* dir.c */ +extern const struct inode_operations hfsplus_dir_inode_operations; +extern const struct file_operations hfsplus_dir_operations; + /* extents.c */ int hfsplus_ext_cmp_key(const hfsplus_btree_key *, const hfsplus_btree_key *); void hfsplus_ext_write_extent(struct inode *); diff -puN fs/hfsplus/inode.c~fs-hfsplus-proper-externs fs/hfsplus/inode.c --- a/fs/hfsplus/inode.c~fs-hfsplus-proper-externs +++ a/fs/hfsplus/inode.c @@ -278,9 +278,6 @@ static int hfsplus_file_release(struct i return 0; } -extern const struct inode_operations hfsplus_dir_inode_operations; -extern struct file_operations hfsplus_dir_operations; - static const struct inode_operations hfsplus_file_inode_operations = { .lookup = hfsplus_file_lookup, .truncate = hfsplus_file_truncate, _