aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/mtd-tests/flash_readtest.c2
-rw-r--r--tests/mtd-tests/flash_speed.c3
-rw-r--r--tests/mtd-tests/flash_stress.c2
-rw-r--r--tests/mtd-tests/flash_torture.c2
-rw-r--r--tests/mtd-tests/nandbiterrs.c2
-rw-r--r--tests/mtd-tests/nandpagetest.c2
-rw-r--r--tests/mtd-tests/nandsubpagetest.c2
7 files changed, 7 insertions, 8 deletions
diff --git a/tests/mtd-tests/flash_readtest.c b/tests/mtd-tests/flash_readtest.c
index bc6874a..c5fabc9 100644
--- a/tests/mtd-tests/flash_readtest.c
+++ b/tests/mtd-tests/flash_readtest.c
@@ -54,7 +54,7 @@ static const struct option options[] = {
{ NULL, 0, NULL, 0 },
};
-static void usage(int status)
+static NORETURN void usage(int status)
{
fputs(
"Usage: "PROGRAM_NAME" [OPTIONS] <device>\n\n"
diff --git a/tests/mtd-tests/flash_speed.c b/tests/mtd-tests/flash_speed.c
index d5cedba..0058269 100644
--- a/tests/mtd-tests/flash_speed.c
+++ b/tests/mtd-tests/flash_speed.c
@@ -60,7 +60,7 @@ static const struct option options[] = {
{ NULL, 0, NULL, 0 },
};
-static void usage(int status)
+static NORETURN void usage(int status)
{
fputs(
"Usage: "PROGRAM_NAME" [OPTIONS] <device>\n\n"
@@ -100,7 +100,6 @@ static void process_options(int argc, char **argv)
switch (c) {
case 'h':
usage(EXIT_SUCCESS);
- break;
case 'b':
if (peb >= 0)
goto failmulti;
diff --git a/tests/mtd-tests/flash_stress.c b/tests/mtd-tests/flash_stress.c
index f50c664..249d8cb 100644
--- a/tests/mtd-tests/flash_stress.c
+++ b/tests/mtd-tests/flash_stress.c
@@ -63,7 +63,7 @@ static const struct option options[] = {
{ NULL, 0, NULL, 0 },
};
-static void usage(int status)
+static NORETURN void usage(int status)
{
fputs(
"Usage: "PROGRAM_NAME" [OPTIONS] <device>\n\n"
diff --git a/tests/mtd-tests/flash_torture.c b/tests/mtd-tests/flash_torture.c
index 21cedf4..5aad8e0 100644
--- a/tests/mtd-tests/flash_torture.c
+++ b/tests/mtd-tests/flash_torture.c
@@ -67,7 +67,7 @@ static void sighandler(int sig)
flags &= ~RUN_FOREVER;
}
-static void usage(int status)
+static NORETURN void usage(int status)
{
fputs(
"Usage: "PROGRAM_NAME" [OPTIONS] <device>\n\n"
diff --git a/tests/mtd-tests/nandbiterrs.c b/tests/mtd-tests/nandbiterrs.c
index 200fe1c..ef987dc 100644
--- a/tests/mtd-tests/nandbiterrs.c
+++ b/tests/mtd-tests/nandbiterrs.c
@@ -85,7 +85,7 @@ static const struct option options[] = {
{ NULL, 0, NULL, 0 },
};
-static void usage(int status)
+static NORETURN void usage(int status)
{
fputs(
"Usage: "PROGRAM_NAME" [OPTIONS] <device>\n\n"
diff --git a/tests/mtd-tests/nandpagetest.c b/tests/mtd-tests/nandpagetest.c
index 86c9005..2b16cc9 100644
--- a/tests/mtd-tests/nandpagetest.c
+++ b/tests/mtd-tests/nandpagetest.c
@@ -58,7 +58,7 @@ static const struct option options[] = {
{ NULL, 0, NULL, 0 },
};
-static void usage(int status)
+static NORETURN void usage(int status)
{
fputs(
"Usage: "PROGRAM_NAME" [OPTIONS] <device>\n\n"
diff --git a/tests/mtd-tests/nandsubpagetest.c b/tests/mtd-tests/nandsubpagetest.c
index 04f6c8c..cd7e4e8 100644
--- a/tests/mtd-tests/nandsubpagetest.c
+++ b/tests/mtd-tests/nandsubpagetest.c
@@ -57,7 +57,7 @@ static const struct option options[] = {
{ NULL, 0, NULL, 0 },
};
-static void usage(int status)
+static NORETURN void usage(int status)
{
fputs(
"Usage: "PROGRAM_NAME" [OPTIONS] <device>\n\n"