diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-03-04 13:34:10 -0500 |
---|---|---|
committer | Felix Blyakher <felixb@sgi.com> | 2009-03-06 18:20:56 -0500 |
commit | 3180e66d77e3c34cb466188105eace05dfeb5681 (patch) | |
tree | dd65b99e465cdbf93675df02b2cfb5c55721eb8b /fs | |
parent | 24418492aa245e9812c425593883b9db52fd8d29 (diff) |
xfs: make symbols static
Instead of the keyword 'static' the macro 'STATIC' is used, so the
symbols are still global with CONFIG_XFS_DEBUG.
Fix this sparse warnings:
fs/xfs/linux-2.6/xfs_super.c:638:1: warning: symbol 'xfs_blkdev_get' was not declared. Should it be static?
fs/xfs/linux-2.6/xfs_super.c:655:1: warning: symbol 'xfs_blkdev_put' was not declared. Should it be static?
fs/xfs/linux-2.6/xfs_super.c:876:1: warning: symbol 'xfsaild' was not declared. Should it be static?
fs/xfs/xfs_bmap.c:6208:1: warning: symbol 'xfs_check_block' was not declared. Should it be static?
fs/xfs/xfs_dir2_leaf.c:553:1: warning: symbol 'xfs_dir2_leaf_check' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 6 | ||||
-rw-r--r-- | fs/xfs/xfs_bmap.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_leaf.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 8483b35821e0..9f974f4b3307 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -633,7 +633,7 @@ xfs_max_file_offset( | |||
633 | return (((__uint64_t)pagefactor) << bitshift) - 1; | 633 | return (((__uint64_t)pagefactor) << bitshift) - 1; |
634 | } | 634 | } |
635 | 635 | ||
636 | int | 636 | STATIC int |
637 | xfs_blkdev_get( | 637 | xfs_blkdev_get( |
638 | xfs_mount_t *mp, | 638 | xfs_mount_t *mp, |
639 | const char *name, | 639 | const char *name, |
@@ -650,7 +650,7 @@ xfs_blkdev_get( | |||
650 | return -error; | 650 | return -error; |
651 | } | 651 | } |
652 | 652 | ||
653 | void | 653 | STATIC void |
654 | xfs_blkdev_put( | 654 | xfs_blkdev_put( |
655 | struct block_device *bdev) | 655 | struct block_device *bdev) |
656 | { | 656 | { |
@@ -871,7 +871,7 @@ xfsaild_wakeup( | |||
871 | wake_up_process(ailp->xa_task); | 871 | wake_up_process(ailp->xa_task); |
872 | } | 872 | } |
873 | 873 | ||
874 | int | 874 | STATIC int |
875 | xfsaild( | 875 | xfsaild( |
876 | void *data) | 876 | void *data) |
877 | { | 877 | { |
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index c852cd65aaea..27062d0a879d 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -6204,7 +6204,7 @@ xfs_bmap_get_bp( | |||
6204 | return(bp); | 6204 | return(bp); |
6205 | } | 6205 | } |
6206 | 6206 | ||
6207 | void | 6207 | STATIC void |
6208 | xfs_check_block( | 6208 | xfs_check_block( |
6209 | struct xfs_btree_block *block, | 6209 | struct xfs_btree_block *block, |
6210 | xfs_mount_t *mp, | 6210 | xfs_mount_t *mp, |
diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c index ef805a374eec..6427ff11089f 100644 --- a/fs/xfs/xfs_dir2_leaf.c +++ b/fs/xfs/xfs_dir2_leaf.c | |||
@@ -549,7 +549,7 @@ xfs_dir2_leaf_addname( | |||
549 | * Check the internal consistency of a leaf1 block. | 549 | * Check the internal consistency of a leaf1 block. |
550 | * Pop an assert if something is wrong. | 550 | * Pop an assert if something is wrong. |
551 | */ | 551 | */ |
552 | void | 552 | STATIC void |
553 | xfs_dir2_leaf_check( | 553 | xfs_dir2_leaf_check( |
554 | xfs_inode_t *dp, /* incore directory inode */ | 554 | xfs_inode_t *dp, /* incore directory inode */ |
555 | xfs_dabuf_t *bp) /* leaf's buffer */ | 555 | xfs_dabuf_t *bp) /* leaf's buffer */ |