summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2024-10-26 11:05:53 +0300
committerTom Rini <trini@konsulko.com>2024-10-29 16:17:47 -0600
commit4ea1deb4bfdbda6e66cbb8a10967008a35cef1ef (patch)
tree15142d17c53045be5415f13eac835254738de67d
parentd4fa8da88c7b12d59c98347fb34827b0fdbe0f8b (diff)
disk: Mark static functions in part_efi.c
Mark all the functions that are only defined locally as static and quiesce W=1 warnings Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> [trini: Add __maybe_unused as it's now seen as unused in some cases] Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--disk/part_efi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/disk/part_efi.c b/disk/part_efi.c
index 7f04c6ecd69..bdcfcba5d51 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -216,7 +216,7 @@ int get_disk_guid(struct blk_desc *desc, char *guid)
return 0;
}
-void part_print_efi(struct blk_desc *desc)
+static void __maybe_unused part_print_efi(struct blk_desc *desc)
{
ALLOC_CACHE_ALIGN_BUFFER_PAD(gpt_header, gpt_head, 1, desc->blksz);
gpt_entry *gpt_pte = NULL;
@@ -258,8 +258,8 @@ void part_print_efi(struct blk_desc *desc)
return;
}
-int part_get_info_efi(struct blk_desc *desc, int part,
- struct disk_partition *info)
+static int __maybe_unused part_get_info_efi(struct blk_desc *desc, int part,
+ struct disk_partition *info)
{
ALLOC_CACHE_ALIGN_BUFFER_PAD(gpt_header, gpt_head, 1, desc->blksz);
gpt_entry *gpt_pte = NULL;