]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: mark libxfs_device_{open,close} static
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Dec 2023 16:37:37 +0000 (17:37 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 18 Dec 2023 13:57:49 +0000 (14:57 +0100)
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>
include/libxfs.h
libxfs/init.c

index 9ee3dd979bdb44c638333eec4abaf0e6e0919c7e..68efe9caa8b03b823cad9b0a858e6f40d09f2f1f 100644 (file)
@@ -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 *);
 
index 87193c3a62e4ff278b04bf2dbe7874e2dae2f0ef..13ad7899c7cbed375213049a7a7402faf2981fa9 100644 (file)
@@ -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;