aboutsummaryrefslogtreecommitdiff
path: root/tools/fdt_add_pubkey.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-04-07 10:44:19 -0400
committerTom Rini <trini@konsulko.com>2023-04-07 10:44:19 -0400
commit340bebf9c799793affefd166875d5776744988bd (patch)
tree193a646521cf659f333c5e1c11745116259b0477 /tools/fdt_add_pubkey.c
parentb0b77fdf3d7d2c1a5e48c3971a677f14e372c164 (diff)
parenta554ee7edee8e10b38c6899ad8556daf58ca3afe (diff)
Merge branch '2023-04-06-assorted-updates'
- Make use of the semi-formal "fallthrough" mechanism, update env tools to use /run for lockfile, add 2048 game (as a way to test console changes), update some CONFIG option logic in Kconfig, have lmb command show regions in use, remove some duplicate serial code, add __gnu_thumb1_case_si code and fix m68k custodian email address.
Diffstat (limited to 'tools/fdt_add_pubkey.c')
-rw-r--r--tools/fdt_add_pubkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/fdt_add_pubkey.c b/tools/fdt_add_pubkey.c
index 999f5a7e83..5582d7a8ef 100644
--- a/tools/fdt_add_pubkey.c
+++ b/tools/fdt_add_pubkey.c
@@ -10,7 +10,7 @@ static const char *keyname = "key"; /* -n <keyname> */
static const char *require_keys; /* -r <conf|image> */
static const char *keydest; /* argv[n] */
-static void print_usage(const char *msg)
+static void __attribute__((__noreturn__)) print_usage(const char *msg)
{
fprintf(stderr, "Error: %s\n", msg);
fprintf(stderr, "Usage: %s [-a <algo>] [-k <keydir>] [-n <keyname>] [-r <conf|image>]"
@@ -19,7 +19,7 @@ static void print_usage(const char *msg)
exit(EXIT_FAILURE);
}
-static void print_help(void)
+static void __attribute__((__noreturn__)) print_help(void)
{
fprintf(stderr, "Options:\n"
"\t-a <algo> Cryptographic algorithm. Optional parameter, default value: sha1,rsa2048\n"