disk: dos: make some functions static

Make functions not used outside this file static.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
[trini: Use __maybe_unused as there are cases they may not be used]
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Marek Szyprowski 2020-12-23 13:55:13 +01:00 committed by Tom Rini
parent 97163dd1ac
commit cb571f91c6
1 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@
#include <ide.h> #include <ide.h>
#include <memalign.h> #include <memalign.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
#include <linux/compiler.h>
#include "part_dos.h" #include "part_dos.h"
#include <part.h> #include <part.h>
@ -302,13 +303,13 @@ static int part_get_info_extended(struct blk_desc *dev_desc,
return -1; 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"); printf("Part\tStart Sector\tNum Sectors\tUUID\t\tType\n");
print_partition_extended(dev_desc, 0, 0, 1, 0); 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) struct disk_partition *info)
{ {
return part_get_info_extended(dev_desc, 0, 0, 1, part, info, 0); return part_get_info_extended(dev_desc, 0, 0, 1, part, info, 0);