Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxxxx> --- kpartx/gpt.c | 1 - kpartx/kpartx.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kpartx/gpt.c b/kpartx/gpt.c index 3511886..6ef20f9 100644 --- a/kpartx/gpt.c +++ b/kpartx/gpt.c @@ -504,7 +504,6 @@ compare_gpts(gpt_header *pgpt, gpt_header *agpt, uint64_t lastlba) static int find_valid_gpt(int fd, gpt_header ** gpt, gpt_entry ** ptes) { - extern int force_gpt; int good_pgpt = 0, good_agpt = 0, good_pmbr = 0; gpt_header *pgpt = NULL, *agpt = NULL; gpt_entry *pptes = NULL, *aptes = NULL; diff --git a/kpartx/kpartx.h b/kpartx/kpartx.h index a55c211..52920e4 100644 --- a/kpartx/kpartx.h +++ b/kpartx/kpartx.h @@ -39,6 +39,8 @@ struct slice { typedef int (ptreader)(int fd, struct slice all, struct slice *sp, int ns); +extern int force_gpt; + extern ptreader read_dos_pt; extern ptreader read_bsd_pt; extern ptreader read_solaris_pt; -- 2.10.1 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel