Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbdHNVBn (ORCPT ); Mon, 14 Aug 2017 17:01:43 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:37506 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752159AbdHNVBm (ORCPT ); Mon, 14 Aug 2017 17:01:42 -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 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 30 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(+) 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; -- 2.7.4