From: John Stultz Date: Mon, 14 Aug 2017 20:57:34 +0000 (-0700) Subject: kselftests: timers: freq-step: Fix build warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6cc636614e144b7cb4c6578bce5cc9b76b7c11e7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git kselftests: timers: freq-step: Fix build warning 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 the return values from ksft_success/fail. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Miroslav Lichvar Cc: Richard Cochran Cc: Prarit Bhargava Cc: Stephen Boyd Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Signed-off-by: John Stultz --- diff --git a/tools/testing/selftests/timers/freq-step.c b/tools/testing/selftests/timers/freq-step.c index 934a308ee686..926828ea84d1 100644 --- a/tools/testing/selftests/timers/freq-step.c +++ b/tools/testing/selftests/timers/freq-step.c @@ -266,7 +266,7 @@ int main(int argc, char **argv) set_frequency(0.0); if (fails) - ksft_exit_fail(); + return ksft_exit_fail(); - ksft_exit_pass(); + return ksft_exit_pass(); }