From patchwork Mon Aug 14 21:01:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 110061 Delivered-To: patches@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4843377qge; Mon, 14 Aug 2017 14:01:42 -0700 (PDT) X-Received: by 10.99.51.142 with SMTP id z136mr25096382pgz.275.1502744502252; Mon, 14 Aug 2017 14:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502744502; cv=none; d=google.com; s=arc-20160816; b=brtwMFK6H/ip6NdS8ke1yKi3RBMCS4uIzKP2p/kfre0MrCFZjawNNpi49gvyvqPzMg KacgI5WfJI1KXpTc0lvhoB9eNJm/MOgAu/BR3Y4ZMy2mQNWrpxIQYemQec1TRIhlWXN/ JX15eI0upinkcwAtAWYJFOYXT55OJGjbDe81sHmSrnHICx6YNAbSrSgc4Y7zV4OH7RFc 6J/dTiBtJMuKg3hY2WqDe4gKJSKytwPNIB2HLLzxNg4AlBsL8Hc/nAdfAqunToAeOe2a 6Z+YDPWx+QuulSgqaLXoX1qYGW5P4Gi19zc/TZAIKzmaufMk3ayzkItxoybEDSYRSa// 5MxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=++chrhhd59F7YXl4xEo4Wa3MnSaycL70WQUIEbldInM=; b=hQ85zJPVUI2DuW4ywM6pAuDmCRgFrQITofl+jkRSOA+Dmk8nlbQY79/8aC8pVi98n/ 315ql7NIODOWPeA7/lW7JxMOF/H4qGXZ11Si6qCzZGwSGbUH6bp5yBnfP5UjYpVsxvkL vwqTezDcuOGYzEoJfutEfXK7ouzx2ZUL/E+ycZYFOssxlE8k58CWIzEWOzPyTDglFYqG ffNeF4MnSr0/dVSWH0yp3xLFKkzEAj4ybZ1coi7Y52rGPvXURO2Fdmi3FJutvXuOjbk2 g7tPLYv6oyXuTM/4XfuMWVNT1ZcFqNlA8yDN79v/GGljHSR775wtAauypkwx8ZA7xZuy ox6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d0x/vwJC; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::233 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-pg0-x233.google.com (mail-pg0-x233.google.com. [2607:f8b0:400e:c05::233]) by mx.google.com with ESMTPS id f87si4639042pfe.137.2017.08.14.14.01.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 14:01:42 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::233 as permitted sender) client-ip=2607:f8b0:400e:c05::233; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d0x/vwJC; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::233 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-x233.google.com with SMTP id i12so3619075pgr.3 for ; Mon, 14 Aug 2017 14:01:42 -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; bh=++chrhhd59F7YXl4xEo4Wa3MnSaycL70WQUIEbldInM=; b=d0x/vwJCN4no0S+FpQWT/5HQLPlXGIeNksCGlxvbtkSXjVtln+5dF8b5HIjCJKOVZJ KniS1XU+OtkwkofuuUxYBWAfndANA+H3sRtCX5g8+VJ/u9WqDd2LRYIieN8zyOdGP1/c iH997IkRnWI2i7OH2G8ffX23OyTnBJrq5vBAA= 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; bh=++chrhhd59F7YXl4xEo4Wa3MnSaycL70WQUIEbldInM=; b=WJWzKrYqMLQzeTWe+kjAe2tgDmfZAJH8Bup1p+hFkM1aeBdJIn/Ct3V21toaRDcELh gU2bTBt+mLDyHTzfyzhDMRKcuiPD1VSRGFnR0aovOWROAwtk6k9xOsqN/8bryKTbpQet WE9ehiAyt0VBeZPJX4CHxGmWD9gpGBvUqeOpCF77wKvzvlHwvUQGHHjLgfybhy0LsDeP wq7/YkqmX9gu5t2nuIElxEuWML3pvN62sk3ptfPyZ7SYn1peEEY6EpUTgHtNSXoY7ZMe Ktjc8FhJvJJxUXyRl09eBg2QKsik7A1sQgTh3/MAOmzNftfT+XgZIgx431QQw41JnAz0 NRTQ== X-Gm-Message-State: AHYfb5gXaV2HMpMCMVD9gWRhr0DJe7ETI4H6amT1LtUdaVrKOJYISgEl VyJwVwktf0KEEBZhzj0= X-Received: by 10.84.210.78 with SMTP id z72mr28998071plh.465.1502744501471; Mon, 14 Aug 2017 14:01:41 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:1002:83f0:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id b184sm14263491pfb.53.2017.08.14.14.01.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Aug 2017 14:01:40 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Shuah Khan , Thomas Gleixner , Stephen Boyd , Miroslav Lichvar , linux-kselftest@vger.kernel.org Subject: [RFC][PATCH 1/2] kselftests: timers: freq-step: Define ADJ_SETOFFSET if device has older kernel headers Date: Mon, 14 Aug 2017 14:01:35 -0700 Message-Id: <1502744496-17863-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 On some systems, the kernel headers haven't been updated to include ADJ_SETOFFSET, so define it in the test if needed. 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 | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 diff --git a/tools/testing/selftests/timers/freq-step.c b/tools/testing/selftests/timers/freq-step.c index 22312eb..f0d1323 100644 --- a/tools/testing/selftests/timers/freq-step.c +++ b/tools/testing/selftests/timers/freq-step.c @@ -33,6 +33,10 @@ #define MAX_FREQ_ERROR 10e-6 #define MAX_STDDEV 1000e-9 +#ifndef ADJ_SETOFFSET + #define ADJ_SETOFFSET 0x0100 +#endif + struct sample { double offset; double time; From patchwork Mon Aug 14 21:01:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 110062 Delivered-To: patches@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4843433qge; Mon, 14 Aug 2017 14:01:44 -0700 (PDT) X-Received: by 10.98.201.145 with SMTP id l17mr19981929pfk.145.1502744504763; Mon, 14 Aug 2017 14:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502744504; cv=none; d=google.com; s=arc-20160816; b=PWMK96BSNuFEOPLzguKFctdI/T4HkhJf/xGuVqIU++DXaAcGfLLRxShduLaTEqLNF2 UeY9HlNeopuUuWVx86B9xLBQOr8nHmvc1OEOUr6RJG2PQK+BVHirnHojdcHH4JW3RrVp m1Di1KUsgb9JhLpOx16+W2j76U353qOAjOXxj5xq/T2Yrq9ahMtgWGeKeeb5iMZYQga4 05nFWmvLTabFzCbsyXP89o6lH9kQc7/fgyj+jz8lykDczLmMOlJUWqHlwA7q0Evr7cMz aAlrnXY/dTuPc/e35VtNlz8EBr8V0C1sbxFuiOwPXPqohonZ0XpyMk4prruVTm6VKlf2 A9zQ== 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=aeRQknVN+QqybZAuipwNhbB2opVLIxN7ol0aXN9Qks4=; b=b7Ra3zM2WNbptQur9Jeo9CKCu/vijWHa2Lr+Y66XKHAwgICeb3CsnyRyy4kQ4rHhQY zwpN/QXOlznCPTjy+H2LpEbrO2j0BCiCnCb+nS2JkJR1hoQ6fd22tXSAoD5KLOIdzwpo suMACInV5EZshYNqqXcO1lICSIPskLuHXBTO3QcFHLht5L+/mLBBJO+3f2VfSrT2+1cB viufMJaAuJcFFgtcEByMFPZ8j4jpG8P1ycxsnKkblbDiABocUP7Ln43Rilt3dpFr0E5g J76g30G1AhJNaO2lYT4wQNLo1aK7+WtlFCRQVDDB0d0IjBar19NPwb/8WAxladLRmi8k u0RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ITqusjQu; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::230 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-pg0-x230.google.com (mail-pg0-x230.google.com. [2607:f8b0:400e:c05::230]) by mx.google.com with ESMTPS id 33si5108770plk.299.2017.08.14.14.01.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 14:01:44 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::230 as permitted sender) client-ip=2607:f8b0:400e:c05::230; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ITqusjQu; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::230 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-x230.google.com with SMTP id u185so54360753pgb.1 for ; Mon, 14 Aug 2017 14:01:44 -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=aeRQknVN+QqybZAuipwNhbB2opVLIxN7ol0aXN9Qks4=; b=ITqusjQu2+LGT+h06kLAkMdQd/THzf5PL++zOsB8OUYhWnGNkNG7HxgbVgup4vDq4/ wD43jG2URy8lc1Tqv0E/2WxBB35GdJ29w8zGAy1iD5aVmHDOJ/7t7QfM4CuzI51uN4E7 IM5SdhaFgNtZhGyhAoNeyK11w5kCXmlVRngEE= 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=aeRQknVN+QqybZAuipwNhbB2opVLIxN7ol0aXN9Qks4=; b=hCtqbd3/UOrLw8kdbf6cGjGklBh8tJtSswZTb0PSsEmSPul0G7K3aCvbHZfoGAf1rw oCECWNanhUZEFojtYScQeNxqZZYtjnUn1cTZeb/RT67PyVe+bfHcKiR7SnbgmY9F/APL 2d1RoMluKb6UtkrPQfNqBTXasZHrSd/MihOBiN/ynNiLd0cAsFVPMAjaTFV9v54t4Ujk VsyEYIcPTLwq1M0HMszzKkMoyqzPY0ELvxWPb87arvbd5Gbx/FpcxTvKUOrrlud4JGJ9 2RZcMttMUbvCLfC7VVaqqZ2HRdfbap9l6ZrCF/x0WAR4yWcLxBHchC8Qe3/YVxuvoLXM HtPA== X-Gm-Message-State: AHYfb5iFhiZ2K0hNUgbwYycXPFqAkN6ggqwqFgA6JeSUkgDxRHUIw8bV cgrtfrNoawA0kos55HM= X-Received: by 10.84.211.100 with SMTP id b91mr30191485pli.246.1502744503907; Mon, 14 Aug 2017 14:01:43 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:1002:83f0:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id b184sm14263491pfb.53.2017.08.14.14.01.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Aug 2017 14:01:42 -0700 (PDT) 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 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(+) -- 2.7.4 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; }