From patchwork Tue Jun 28 10:51:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 9202831 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2EB6E6075F for ; Tue, 28 Jun 2016 10:54:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F2D027F99 for ; Tue, 28 Jun 2016 10:54:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13D13285F2; Tue, 28 Jun 2016 10:54:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1B3AC27F99 for ; Tue, 28 Jun 2016 10:54:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bHqdP-0006Sv-Od; Tue, 28 Jun 2016 10:52:51 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bHqdL-0006By-E1 for linux-arm-kernel@lists.infradead.org; Tue, 28 Jun 2016 10:52:49 +0000 Received: by mail-wm0-x232.google.com with SMTP id r190so26444898wmr.0 for ; Tue, 28 Jun 2016 03:52:27 -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; bh=v665U1XnARY1+RQBHw4fOqtT4Vo8K6S7V8SnsKo5BGQ=; b=AuGUEYeFyyP9Th9nk+Q1Cg7xzSXTt7YXUI8BXbB769uWqKz0tj0zghNYuRtIJ1POE8 hoNol+CuQh08I4Cmh//NJwurzGI8PSxnEv0jxvKuFE0X3VH3m+Zz2ZLdXoRh5RmEiNhT 2lAMYtW2TAIlPdAZbTF10vWvDDsIfPrORfOfA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=v665U1XnARY1+RQBHw4fOqtT4Vo8K6S7V8SnsKo5BGQ=; b=iMvUsv27UgaKI+x6KVtA3MjPFATSfWNfGyNCly/+/U+firb79uRnWnO+glS5h0W4TU S1vLXbyaYtf2phk+Orh7zOF8LW2KFN/ykJKPS+O9Vs1XpI6xT87ZZdZ2So9W2dYGHpip QzU1DQ13LSChC5+vZ0cvGGWqIzwignJIxnwf2Ob2KAEmXgHWQzHfdvmbFpMtItyRM/L5 rZkU4+iZxjQzeOgtAOMlQAy8gN+nEn3hWHdIN9QO4mTtNN018UqeKn3kmezTJteV2GbK qYcBvG9Bes7/LpIQVsVDXcEOJa5bawv1OvotG/buoXPfhhDt6ncqHUrEpSi8noO0FVJF gdjg== X-Gm-Message-State: ALyK8tKsv6/E1jTx/QL5z8nJGohXtqt0SEnC3cRdHI6FH9aer6AgpjNyubMRA2bJJnERpqlG X-Received: by 10.194.89.5 with SMTP id bk5mr2680257wjb.55.1467111144966; Tue, 28 Jun 2016 03:52:24 -0700 (PDT) Received: from localhost.localdomain (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id x194sm1577615wmf.13.2016.06.28.03.52.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 03:52:24 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, tglx@linutronix.de Subject: [PATCH 76/92] clocksource/drivers/armv7m_systick: Add the COMPILE_TEST option Date: Tue, 28 Jun 2016 12:51:34 +0200 Message-Id: <1467111111-12587-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <577251A4.7030508@linaro.org> References: <577251A4.7030508@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160628_035247_743826_24084625 X-CRM114-Status: GOOD ( 15.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In order to increase the compilation test coverage, add the COMPILE_TEST so the driver can be compiled even if it does not belong to the platform or the architecture. The io.h header inclusion is also added as it the driver does not compile on UM platform. Signed-off-by: Daniel Lezcano --- drivers/clocksource/Kconfig | 2 +- drivers/clocksource/armv7m_systick.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 0275b16..01ecd88 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -250,7 +250,7 @@ config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK Use ARM global timer clock source as sched_clock config ARMV7M_SYSTICK - bool + bool "Support for the ARMv7M system time" if COMPILE_TEST select CLKSRC_OF if OF select CLKSRC_MMIO help diff --git a/drivers/clocksource/armv7m_systick.c b/drivers/clocksource/armv7m_systick.c index e93af1f..a315491 100644 --- a/drivers/clocksource/armv7m_systick.c +++ b/drivers/clocksource/armv7m_systick.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include