From: Darrick J. Wong <djwong@xxxxxxxxxx> These helper functions are not referenced outside the source file they're defined in. Mark them static. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- db/namei.c | 2 +- io/pread.c | 2 +- mkfs/xfs_mkfs.c | 2 +- repair/xfs_repair.c | 2 +- scrub/inodes.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/db/namei.c b/db/namei.c index f06ee3e959..6c57cc624e 100644 --- a/db/namei.c +++ b/db/namei.c @@ -441,7 +441,7 @@ list_leafdir( } /* Read the directory, display contents. */ -int +static int listdir( struct xfs_inode *dp) { diff --git a/io/pread.c b/io/pread.c index 458a78b83c..0f1d8b97b0 100644 --- a/io/pread.c +++ b/io/pread.c @@ -113,7 +113,7 @@ alloc_buffer( return 0; } -void +static void __dump_buffer( void *buf, off64_t offset, diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 9dd0e79c6b..e219ec166d 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -3964,7 +3964,7 @@ cfgfile_parse_ini( return 1; } -void +static void cfgfile_parse( struct cli_params *cli) { diff --git a/repair/xfs_repair.c b/repair/xfs_repair.c index c94671d8d1..871b428d7d 100644 --- a/repair/xfs_repair.c +++ b/repair/xfs_repair.c @@ -750,7 +750,7 @@ check_fs_vs_host_sectsize( } /* Clear needsrepair after a successful repair run. */ -void +static void clear_needsrepair( struct xfs_mount *mp) { diff --git a/scrub/inodes.c b/scrub/inodes.c index ffe7eb3344..78f0914b8d 100644 --- a/scrub/inodes.c +++ b/scrub/inodes.c @@ -163,7 +163,7 @@ alloc_ichunk( return 0; } -int +static int render_ino_from_bulkstat( struct scrub_ctx *ctx, char *buf,