From 3f1de6eabc7e85f12c04f8b374a37d5d2bde3146 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 12 Jul 2021 15:22:44 -0700 Subject: [PATCH] mkfs: move mkfs/proto.c declarations to mkfs/proto.h These functions are only used by mkfs, so move them to a separate header file that isn't in an internal library. Signed-off-by: Darrick J. Wong --- include/xfs_multidisk.h | 5 ----- mkfs/proto.c | 1 + mkfs/xfs_mkfs.c | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/xfs_multidisk.h b/include/xfs_multidisk.h index abfb50ce2..a16a9fe27 100644 --- a/include/xfs_multidisk.h +++ b/include/xfs_multidisk.h @@ -42,9 +42,4 @@ #define XFS_NOMULTIDISK_AGLOG 2 /* 4 AGs */ #define XFS_MULTIDISK_AGCOUNT (1 << XFS_MULTIDISK_AGLOG) -/* proto.c */ -extern char *setup_proto (char *fname); -extern void parse_proto (xfs_mount_t *mp, struct fsxattr *fsx, char **pp); -extern void res_failed (int err); - #endif /* __XFS_MULTIDISK_H__ */ diff --git a/mkfs/proto.c b/mkfs/proto.c index 6b22cc6a9..ef130ed62 100644 --- a/mkfs/proto.c +++ b/mkfs/proto.c @@ -7,6 +7,7 @@ #include "libxfs.h" #include #include "libfrog/convert.h" +#include "proto.h" /* * Prototypes for internal functions. diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 9c14c04ea..16e347e5b 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -11,6 +11,7 @@ #include "libfrog/fsgeom.h" #include "libfrog/topology.h" #include "libfrog/convert.h" +#include "proto.h" #include #define TERABYTES(count, blog) ((uint64_t)(count) << (40 - (blog))) -- 2.47.3