aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-12-11 17:37:37 +0100
committerCarlos Maiolino <cem@kernel.org>2023-12-18 14:57:49 +0100
commit4f112cb17c0ddcc670cb4df07d3f32f6846ff430 (patch)
tree2df2765ba9f66443b2aca35f47274f73e472daf4
parentf735961188fce99ac70a605bd7f5046accb5da2b (diff)
downloadxfsprogs-dev-4f112cb17c0ddcc670cb4df07d3f32f6846ff430.tar.gz
libxfs: mark libxfs_device_{open,close} static
libxfs_device_open and libxfs_device_close are only used in init.c. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r--include/libxfs.h2
-rw-r--r--libxfs/init.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/include/libxfs.h b/include/libxfs.h
index 9ee3dd979b..68efe9caa8 100644
--- a/include/libxfs.h
+++ b/include/libxfs.h
@@ -148,8 +148,6 @@ int libxfs_init(struct libxfs_init *);
void libxfs_destroy(struct libxfs_init *li);
extern int libxfs_device_to_fd (dev_t);
-extern dev_t libxfs_device_open (char *, int, int, int);
-extern void libxfs_device_close (dev_t);
extern int libxfs_device_alignment (void);
extern void libxfs_report(FILE *);
diff --git a/libxfs/init.c b/libxfs/init.c
index 87193c3a62..13ad7899c7 100644
--- a/libxfs/init.c
+++ b/libxfs/init.c
@@ -92,7 +92,7 @@ libxfs_device_to_fd(dev_t device)
/* libxfs_device_open:
* open a device and return its device number
*/
-dev_t
+static dev_t
libxfs_device_open(char *path, int creat, int xflags, int setblksize)
{
dev_t dev;
@@ -161,7 +161,7 @@ retry:
/* NOTREACHED */
}
-void
+static void
libxfs_device_close(dev_t dev)
{
int d;