Skip to content

Commit cb571f9

Browse files
mszyprowtrini
authored andcommitted
disk: dos: make some functions static
Make functions not used outside this file static. Signed-off-by: Marek Szyprowski <[email protected]> [trini: Use __maybe_unused as there are cases they may not be used] Signed-off-by: Tom Rini <[email protected]>
1 parent 97163dd commit cb571f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

disk/part_dos.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <ide.h>
2020
#include <memalign.h>
2121
#include <asm/unaligned.h>
22+
#include <linux/compiler.h>
2223
#include "part_dos.h"
2324
#include <part.h>
2425

@@ -302,13 +303,13 @@ static int part_get_info_extended(struct blk_desc *dev_desc,
302303
return -1;
303304
}
304305

305-
void part_print_dos(struct blk_desc *dev_desc)
306+
static void __maybe_unused part_print_dos(struct blk_desc *dev_desc)
306307
{
307308
printf("Part\tStart Sector\tNum Sectors\tUUID\t\tType\n");
308309
print_partition_extended(dev_desc, 0, 0, 1, 0);
309310
}
310311

311-
int part_get_info_dos(struct blk_desc *dev_desc, int part,
312+
static int __maybe_unused part_get_info_dos(struct blk_desc *dev_desc, int part,
312313
struct disk_partition *info)
313314
{
314315
return part_get_info_extended(dev_desc, 0, 0, 1, part, info, 0);

0 commit comments

Comments
 (0)