From: Christoph Hellwig Date: Mon, 11 Dec 2023 16:37:37 +0000 (+0100) Subject: libxfs: mark libxfs_device_{open,close} static X-Git-Tag: v6.6.0~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f112cb17c0ddcc670cb4df07d3f32f6846ff430;p=thirdparty%2Fxfsprogs-dev.git 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 Reviewed-by: Darrick J. Wong Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- diff --git a/include/libxfs.h b/include/libxfs.h index 9ee3dd979..68efe9caa 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 87193c3a6..13ad7899c 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;