From cb571f91c642af68a807a2f24e6146e8b77f5f93 Mon Sep 17 00:00:00 2001 From: Marek Szyprowski Date: Wed, 23 Dec 2020 13:55:13 +0100 Subject: [PATCH] disk: dos: make some functions static Make functions not used outside this file static. Signed-off-by: Marek Szyprowski [trini: Use __maybe_unused as there are cases they may not be used] Signed-off-by: Tom Rini --- disk/part_dos.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/disk/part_dos.c b/disk/part_dos.c index 3b79b9b1b8..c9c9c5fc28 100644 --- a/disk/part_dos.c +++ b/disk/part_dos.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "part_dos.h" #include @@ -302,13 +303,13 @@ static int part_get_info_extended(struct blk_desc *dev_desc, return -1; } -void part_print_dos(struct blk_desc *dev_desc) +static void __maybe_unused part_print_dos(struct blk_desc *dev_desc) { printf("Part\tStart Sector\tNum Sectors\tUUID\t\tType\n"); print_partition_extended(dev_desc, 0, 0, 1, 0); } -int part_get_info_dos(struct blk_desc *dev_desc, int part, +static int __maybe_unused part_get_info_dos(struct blk_desc *dev_desc, int part, struct disk_partition *info) { return part_get_info_extended(dev_desc, 0, 0, 1, part, info, 0); -- 2.39.5