All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: cem@kernel.org, djwong@kernel.org
Cc: linux-xfs@vger.kernel.org
Subject: [PATCH 2/9] misc: add static to various sourcefile-local functions
Date: Wed, 23 Nov 2022 09:09:05 -0800	[thread overview]
Message-ID: <166922334592.1572664.17864426624261290357.stgit@magnolia> (raw)
In-Reply-To: <166922333463.1572664.2330601679911464739.stgit@magnolia>

From: Darrick J. Wong <djwong@kernel.org>

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>
---
 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 4186d262940..00e8c8dc6d5 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 458a78b83c3..0f1d8b97b05 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 9dd0e79c6ba..e219ec166da 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 c94671d8d18..871b428d7de 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 ffe7eb33441..78f0914b8d9 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,


  parent reply	other threads:[~2022-11-23 17:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <-I-A6mYlvGXZxmIaxIGm-2ZMrd2rhOOQruX8Y9AicksvGaoRMIwwd1VbgylGm0sx8N7VdVJNSuOmeXyLbGBIDw==@protonmail.internalid>
2022-11-23 17:08 ` [PATCHSET 0/9] xfsprogs: random fixes for 6.1 Darrick J. Wong
2022-11-23 17:09   ` [PATCH 1/9] libxfs: consume the xfs_warn mountpoint argument Darrick J. Wong
2022-11-23 17:09   ` Darrick J. Wong [this message]
2022-11-23 17:09   ` [PATCH 3/9] misc: add missing includes Darrick J. Wong
2022-11-23 17:09   ` [PATCH 4/9] xfs_db: fix octal conversion logic Darrick J. Wong
2022-11-23 17:09   ` [PATCH 5/9] xfs_db: fix printing of reverse mapping record blockcounts Darrick J. Wong
2022-11-23 17:09   ` [PATCH 6/9] xfs_repair: don't crash on unknown inode parents in dry run mode Darrick J. Wong
2022-11-23 17:09   ` [PATCH 7/9] xfs_repair: retain superblock buffer to avoid write hook deadlock Darrick J. Wong
2022-11-23 17:09   ` [PATCH 8/9] xfs_{db,repair}: fix XFS_REFC_COW_START usage Darrick J. Wong
2022-11-23 17:09   ` [PATCH 9/9] mkfs.xfs: add mkfs config file for the 6.1 LTS kernel Darrick J. Wong
2022-12-09  8:59   ` [PATCHSET 0/9] xfsprogs: random fixes for 6.1 Carlos Maiolino
2022-12-09 16:31     ` Darrick J. Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=166922334592.1572664.17864426624261290357.stgit@magnolia \
    --to=djwong@kernel.org \
    --cc=cem@kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.