Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752562AbdHNVBs (ORCPT ); Mon, 14 Aug 2017 17:01:48 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:37519 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752479AbdHNVBp (ORCPT ); Mon, 14 Aug 2017 17:01:45 -0400 From: John Stultz To: lkml Cc: John Stultz , Shuah Khan , Thomas Gleixner , Stephen Boyd , Miroslav Lichvar , linux-kselftest@vger.kernel.org Subject: [RFC][PATCH 2/2] selftests: timers: freq-step: Fix build warning Date: Mon, 14 Aug 2017 14:01:36 -0700 Message-Id: <1502744496-17863-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502744496-17863-1-git-send-email-john.stultz@linaro.org> References: <1502744496-17863-1-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 31 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 Cc: Thomas Gleixner Cc: Stephen Boyd Cc: Miroslav Lichvar Cc: linux-kselftest@vger.kernel.org Signed-off-by: John Stultz --- 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