JFS: fix sparse warnings by moving extern declarations to headers
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
#include "jfs_incore.h"
|
||||
#include "jfs_filsys.h"
|
||||
#include "jfs_inode.h"
|
||||
#include "jfs_metapage.h"
|
||||
#include "jfs_superblock.h"
|
||||
#include "jfs_dmap.h"
|
||||
@@ -62,37 +63,6 @@ module_param(jfsloglevel, int, 0644);
|
||||
MODULE_PARM_DESC(jfsloglevel, "Specify JFS loglevel (0, 1 or 2)");
|
||||
#endif
|
||||
|
||||
/*
|
||||
* External declarations
|
||||
*/
|
||||
extern int jfs_mount(struct super_block *);
|
||||
extern int jfs_mount_rw(struct super_block *, int);
|
||||
extern int jfs_umount(struct super_block *);
|
||||
extern int jfs_umount_rw(struct super_block *);
|
||||
|
||||
extern int jfsIOWait(void *);
|
||||
extern int jfs_lazycommit(void *);
|
||||
extern int jfs_sync(void *);
|
||||
|
||||
extern void jfs_read_inode(struct inode *inode);
|
||||
extern void jfs_dirty_inode(struct inode *inode);
|
||||
extern void jfs_delete_inode(struct inode *inode);
|
||||
extern int jfs_write_inode(struct inode *inode, int wait);
|
||||
|
||||
extern struct dentry *jfs_get_parent(struct dentry *dentry);
|
||||
extern int jfs_extendfs(struct super_block *, s64, int);
|
||||
|
||||
extern struct dentry_operations jfs_ci_dentry_operations;
|
||||
|
||||
#ifdef PROC_FS_JFS /* see jfs_debug.h */
|
||||
extern void jfs_proc_init(void);
|
||||
extern void jfs_proc_clean(void);
|
||||
#endif
|
||||
|
||||
extern wait_queue_head_t jfs_IO_thread_wait;
|
||||
extern wait_queue_head_t jfs_commit_thread_wait;
|
||||
extern wait_queue_head_t jfs_sync_thread_wait;
|
||||
|
||||
static void jfs_handle_error(struct super_block *sb)
|
||||
{
|
||||
struct jfs_sb_info *sbi = JFS_SBI(sb);
|
||||
@@ -593,11 +563,6 @@ static struct file_system_type jfs_fs_type = {
|
||||
.fs_flags = FS_REQUIRES_DEV,
|
||||
};
|
||||
|
||||
extern int metapage_init(void);
|
||||
extern int txInit(void);
|
||||
extern void txExit(void);
|
||||
extern void metapage_exit(void);
|
||||
|
||||
static void init_once(void *foo, kmem_cache_t * cachep, unsigned long flags)
|
||||
{
|
||||
struct jfs_inode_info *jfs_ip = (struct jfs_inode_info *) foo;
|
||||
|
Reference in New Issue
Block a user