]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
misc: add static to various sourcefile-local functions
authorDarrick J. Wong <djwong@kernel.org>
Wed, 23 Nov 2022 17:09:05 +0000 (09:09 -0800)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Dec 2022 09:18:19 +0000 (10:18 +0100)
These helper functions are not referenced outside the source file
they're defined in.  Mark them static.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
db/namei.c
io/pread.c
mkfs/xfs_mkfs.c
repair/xfs_repair.c
scrub/inodes.c

index 4186d262940bf1e8c5ff4d9e7834c6cdf73ad6b9..00e8c8dc6d52a43e88277347281858d9f010fbbd 100644 (file)
@@ -441,7 +441,7 @@ list_leafdir(
 }
 
 /* Read the directory, display contents. */
-int
+static int
 listdir(
        struct xfs_inode        *dp)
 {
index 458a78b83c3942f99863142176c16bca82d4387d..0f1d8b97b05da58873f0da71973ccdf60705df2f 100644 (file)
@@ -113,7 +113,7 @@ alloc_buffer(
        return 0;
 }
 
-void
+static void
 __dump_buffer(
        void            *buf,
        off64_t         offset,
index 9dd0e79c6baca9f13903415c122d045992356fa3..e219ec166da04eb236ec87ef225cc95816125acf 100644 (file)
@@ -3964,7 +3964,7 @@ cfgfile_parse_ini(
        return 1;
 }
 
-void
+static void
 cfgfile_parse(
        struct cli_params       *cli)
 {
index c94671d8d18721ad14fbbc083ded49bc0bcc6a0e..871b428d7def22b89f357689cd11f664dfd1f823 100644 (file)
@@ -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)
 {
index ffe7eb3344101f94c73730e9caf6e13160583693..78f0914b8d91b95150cfbca231120e96b386501c 100644 (file)
@@ -163,7 +163,7 @@ alloc_ichunk(
        return 0;
 }
 
-int
+static int
 render_ino_from_bulkstat(
        struct scrub_ctx        *ctx,
        char                    *buf,