[RFC][PATCH 2/2] selftests: timers: freq-step: Fix build warning

From: John Stultz
Date: Mon Aug 14 2017 - 17:01:53 EST


Fixes the following build warning:
freq-step.c: In function âmainâ:
freq-step.c:271:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^

By returning zero at the end of main.

Cc: Shuah Khan <shuahkh@xxxxxxxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>
Cc: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
Cc: linux-kselftest@xxxxxxxxxxxxxxx
Signed-off-by: John Stultz <john.stultz@xxxxxxxxxx>
---
tools/testing/selftests/timers/freq-step.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/timers/freq-step.c b/tools/testing/selftests/timers/freq-step.c
index f0d1323..51fcf7c 100644
--- a/tools/testing/selftests/timers/freq-step.c
+++ b/tools/testing/selftests/timers/freq-step.c
@@ -268,4 +268,6 @@ int main(int argc, char **argv)
ksft_exit_fail();

ksft_exit_pass();
+
+ return 0;
}
--
2.7.4