Message ID | 1503082262-29450-3-git-send-email-john.stultz@linaro.org |
---|---|
State | Accepted |
Commit | 6cc636614e144b7cb4c6578bce5cc9b76b7c11e7 |
Headers | show
Delivered-To: patches@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1287428qge; Fri, 18 Aug 2017 11:51:11 -0700 (PDT) X-Received: by 10.98.131.141 with SMTP id h135mr9565578pfe.271.1503082271349; Fri, 18 Aug 2017 11:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503082271; cv=none; d=google.com; s=arc-20160816; b=nC+uM5nNAeW4agW1f0vC6ZPkp/xfm0VntooCVymuXFHoSqkIntM0sDabQH1S2WrY3R BidbvrJsZndGfawIO0444omF2E02zoNgRzSSgGynx92yWl5JAIKKqqpXOnPq2vI6AXPv 0Ev2t4cOB61nrhUrE7/SKecdTK5JPeRzNA1x/02D+WpxLuVLTmf6Sfqr9Ns5YBz8k1qQ tdQHjABhmsTaIvX52+YhxQeddp/hGYM7wqex1X5Rndua+44L+d1B/FKKcY/vJbho0c0Z hFqFy0cONm0h7CJdHPn8V8bsAg/J5ZqRU2lJ8CEeU0eCys7rR5IxRBbKM/nOMOAN4mTP A/wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=0wuykVnSMaqmuux4u1xAbmZwEdeZJhObHMydbhKS71Q=; b=N+L40n94MVu3jaoNOibUYtq9V/OsNa/J0bgw6EMcAnIK/Yk3mH2xXjc7i1OGn7fjgg bCTLqfxdkyyrtVceUiBW0+oAmgJH8vNKgBuCUhLgZjxCpCciXJXzDl0R1ouzhzZJ2HTl tk6hnHMG6qbko2ML89bvEaO150wO0C+ohLtFJwByOQX+CfxnXROs5HqNk5AK7q1eq/mo DAT8ss84ZAuBe9l8X/IGPetrANXGxFzhM7I0wbdOw2c66lM5+RDVqRwjyxMdBKH/QQhV jh00MGI1ekffK/0ikENik3hAz/KU1zb0x96SHbTwh+jPGnG5fXKcIUhHRgr9210UJEn4 og6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IAqO/oqT; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::22b as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <john.stultz@linaro.org> Received: from mail-pg0-x22b.google.com (mail-pg0-x22b.google.com. [2607:f8b0:400e:c05::22b]) by mx.google.com with ESMTPS id y18si2250519pfj.15.2017.08.18.11.51.11 for <patches@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Aug 2017 11:51:11 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::22b as permitted sender) client-ip=2607:f8b0:400e:c05::22b; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IAqO/oqT; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::22b as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-pg0-x22b.google.com with SMTP id y129so69515520pgy.4 for <patches@linaro.org>; Fri, 18 Aug 2017 11:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0wuykVnSMaqmuux4u1xAbmZwEdeZJhObHMydbhKS71Q=; b=IAqO/oqTzhfWoedMcpYGUSZJKS+F9DGDIi6xB3ynSP2eryoruBSENlttEf+0JBlCSB Rdfjm3uKZ1zwEE02QkbpmOPJNG5o41wFB1NugSekhsawiqhGHGXWrFdZYY8LvwyGGw6S NkxZrFBEkbN9VGn0MBjNbgncPfQgyfRbFtHfg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0wuykVnSMaqmuux4u1xAbmZwEdeZJhObHMydbhKS71Q=; b=aPxiOdqnGXneFNUvCVmeA3f35b8TOMpA/Dh3yv7Dm6wz7zO49eelbpOIBhcVK4oD5M LnIXG8tRIvGyS8t8O7M6PCSsObsdNH7XJFP8a0vyC4pOQkSOdptI5XdYckcTwuZ++3AO FHMBOScBH7gtTryR/oQ2blODKFkyi355+gvsifHvTmKrFbndMNngD6We2FD0YfVMypaH KsERmrtHekA2gVZYsgfO+H3DesOgz0KU2VpyCKCJu4BXqOiMgHuZ54mEWflJ9ETVZcz+ WAvnksTWaMM0/bw28r98Kw9Gc/ZBg7a/0Fsr4EduiRhoY71PPc0qPCI0RZ3dGt5bOgd8 6aHA== X-Gm-Message-State: AHYfb5jmYCOWyhUIPRhK/8GhdXtOEV3vAmN7URvqObkpDKgN9qGc13lh fsXIQGvjNC+6ozDV8O8= X-Received: by 10.99.110.9 with SMTP id j9mr9131753pgc.236.1503082271087; Fri, 18 Aug 2017 11:51:11 -0700 (PDT) Return-Path: <john.stultz@linaro.org> Received: from localhost.localdomain ([2601:1c2:1002:83f0:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id l132sm12518790pfc.150.2017.08.18.11.51.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Aug 2017 11:51:10 -0700 (PDT) From: John Stultz <john.stultz@linaro.org> To: lkml <linux-kernel@vger.kernel.org> Cc: John Stultz <john.stultz@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@kernel.org>, Miroslav Lichvar <mlichvar@redhat.com>, Richard Cochran <richardcochran@gmail.com>, Prarit Bhargava <prarit@redhat.com>, Stephen Boyd <stephen.boyd@linaro.org>, Shuah Khan <shuah@kernel.org>, linux-kselftest@vger.kernel.org Subject: [PATCH 2/6] kselftests: timers: freq-step: Fix build warning Date: Fri, 18 Aug 2017 11:50:58 -0700 Message-Id: <1503082262-29450-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503082262-29450-1-git-send-email-john.stultz@linaro.org> References: <1503082262-29450-1-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
Series |
Timekeeping queue for 4.14
|
expand
|
diff --git a/tools/testing/selftests/timers/freq-step.c b/tools/testing/selftests/timers/freq-step.c index 934a308..926828e 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(); }
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 <tglx@linutronix.de> Cc: Ingo Molnar <mingo@kernel.org> Cc: Miroslav Lichvar <mlichvar@redhat.com> Cc: Richard Cochran <richardcochran@gmail.com> Cc: Prarit Bhargava <prarit@redhat.com> Cc: Stephen Boyd <stephen.boyd@linaro.org> Cc: Shuah Khan <shuah@kernel.org> Cc: linux-kselftest@vger.kernel.org Signed-off-by: John Stultz <john.stultz@linaro.org> --- tools/testing/selftests/timers/freq-step.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4