From patchwork Thu Oct 29 22:52:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 55801 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp833505lbr; Thu, 29 Oct 2015 15:53:11 -0700 (PDT) X-Received: by 10.50.178.145 with SMTP id cy17mr12496526igc.1.1446159191140; Thu, 29 Oct 2015 15:53:11 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c103si5024414ioj.141.2015.10.29.15.53.10; Thu, 29 Oct 2015 15:53:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030328AbbJ2WxI (ORCPT + 28 others); Thu, 29 Oct 2015 18:53:08 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:33447 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965926AbbJ2WxF (ORCPT ); Thu, 29 Oct 2015 18:53:05 -0400 Received: by wijp11 with SMTP id p11so299718058wij.0 for ; Thu, 29 Oct 2015 15:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=d6U6PNfNy6qj+dM7ZByMCQwmWe+XVvbccvSPZmPpQN4=; b=KlzHsjLP6TtEK3eJ5LdSqrFi6U/jGrhS34Mk/1DU5M7BC8A21BaVhrTVCDy3awPqlB o1nMJunN7VFjq0SyRnG2GWpCVmTH8Ib+PlofUtZRIf3vKaZnn1Q/jxaGTYGnYPzc8boB jq3pKtyVA8LAiT+4Y0qPH8FDek5Ea9TgaF4H888ih71+Z2EWMKMJsk+qEKN2xoMrNZR/ v8s1d5BwuHxUv0/oHAR5tfg+EsbMtIZOAq3xXd7wolppXFTwyXARtMVVMj7mkUHoiaHL D/9teadqLjT8jJ4B26hETN+7CuaAkg4NCS+QJs3IvPlktiwTbKPMyyRifiTbi4kLnzma 7JLA== 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; bh=d6U6PNfNy6qj+dM7ZByMCQwmWe+XVvbccvSPZmPpQN4=; b=O4mMdRrvk1KxWEH49uZTwnsQlUtFfbgFozVJw4gAzypCrH8kS0mlIQ1jqwdQuGdx+i hqB4+7mBplzS+5GTFCfi+4ploEKwNvbobZZH0Cy2NX7s+pR9xGLmod3koUC8gqRbvReZ Pit5u/rhyGHn97Ju5MLLd2bMugQa9+H7vIENVEhaVH9UGLymN6AO33NFxuZ7AXFMIf6R uSlb6L3jRrAZBiP5ak395jD5w+Wc/sBh+zBbMIDsYRy4bvD5LRsbvE+woX0rjNEH8UWg 83uKk5zODpb3G45i7dptOHIr+6jabWeW7eudSBb1ge3LRJ8DbXEQXv2jDlvccq8PD1t1 a49g== X-Gm-Message-State: ALoCoQkaZQZp8E9wXcMZtqdfU0nOI0XFN83ywxhkTAKAoLrNBMzyAsu6+oTGiTG3zhuEdi7Hm6uC X-Received: by 10.194.78.35 with SMTP id y3mr5023362wjw.3.1446159183947; Thu, 29 Oct 2015 15:53:03 -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 jh4sm4005701wjb.33.2015.10.29.15.53.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Oct 2015 15:53:03 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: john.stultz@linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] time: Define dummy functions for the generic sched clock Date: Thu, 29 Oct 2015 23:52:37 +0100 Message-Id: <1446159166-20384-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When we try to compile a clocksource driver with the COMPILE_TEST option, we can't select the GENERIC_SCHED_CLOCK because the sched_clock() symbol will be duplicated with the one defined for the x86. In order to fix that, we don't select the GENERIC_SCHED_CLOCK in the driver Kconfig's file but we define some empty functions for the different symbols in order to prevent the unresolved ones. This patch fixes the COMPILE_TEST option for the compile test coverage for the clocksource drivers. Without this patch, we can't add the COMPILE_TEST option for the clocksource drivers using the GENERIC_SCHED_CLOCK. Signed-off-by: Daniel Lezcano --- include/linux/sched_clock.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/include/linux/sched_clock.h b/include/linux/sched_clock.h index efa931c..b2ec7bb 100644 --- a/include/linux/sched_clock.h +++ b/include/linux/sched_clock.h @@ -10,11 +10,17 @@ #ifdef CONFIG_GENERIC_SCHED_CLOCK extern void sched_clock_postinit(void); + +extern void sched_clock_register(u64 (*read)(void), int bits, + unsigned long rate); #else static inline void sched_clock_postinit(void) { } -#endif -extern void sched_clock_register(u64 (*read)(void), int bits, - unsigned long rate); +static inline void sched_clock_register(u64 (*read)(void), int bits, + unsigned long rate) +{ + ; +} +#endif #endif