Commit 3180e66d authored by Hannes Eder's avatar Hannes Eder Committed by Felix Blyakher

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: default avatarHannes Eder <hannes@hanneseder.net>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarFelix Blyakher <felixb@sgi.com>
parent 24418492
...@@ -633,7 +633,7 @@ xfs_max_file_offset( ...@@ -633,7 +633,7 @@ xfs_max_file_offset(
return (((__uint64_t)pagefactor) << bitshift) - 1; return (((__uint64_t)pagefactor) << bitshift) - 1;
} }
int STATIC int
xfs_blkdev_get( xfs_blkdev_get(
xfs_mount_t *mp, xfs_mount_t *mp,
const char *name, const char *name,
...@@ -650,7 +650,7 @@ xfs_blkdev_get( ...@@ -650,7 +650,7 @@ xfs_blkdev_get(
return -error; return -error;
} }
void STATIC void
xfs_blkdev_put( xfs_blkdev_put(
struct block_device *bdev) struct block_device *bdev)
{ {
...@@ -871,7 +871,7 @@ xfsaild_wakeup( ...@@ -871,7 +871,7 @@ xfsaild_wakeup(
wake_up_process(ailp->xa_task); wake_up_process(ailp->xa_task);
} }
int STATIC int
xfsaild( xfsaild(
void *data) void *data)
{ {
......
...@@ -6204,7 +6204,7 @@ xfs_bmap_get_bp( ...@@ -6204,7 +6204,7 @@ xfs_bmap_get_bp(
return(bp); return(bp);
} }
void STATIC void
xfs_check_block( xfs_check_block(
struct xfs_btree_block *block, struct xfs_btree_block *block,
xfs_mount_t *mp, xfs_mount_t *mp,
......
...@@ -549,7 +549,7 @@ xfs_dir2_leaf_addname( ...@@ -549,7 +549,7 @@ xfs_dir2_leaf_addname(
* Check the internal consistency of a leaf1 block. * Check the internal consistency of a leaf1 block.
* Pop an assert if something is wrong. * Pop an assert if something is wrong.
*/ */
void STATIC void
xfs_dir2_leaf_check( xfs_dir2_leaf_check(
xfs_inode_t *dp, /* incore directory inode */ xfs_inode_t *dp, /* incore directory inode */
xfs_dabuf_t *bp) /* leaf's buffer */ xfs_dabuf_t *bp) /* leaf's buffer */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment