From patchwork Fri Dec 18 14:17:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 58691 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp1057879lbb; Fri, 18 Dec 2015 06:22:21 -0800 (PST) X-Received: by 10.66.66.1 with SMTP id b1mr5573934pat.27.1450448540947; Fri, 18 Dec 2015 06:22:20 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id zm10si24337454pac.26.2015.12.18.06.22.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Dec 2015 06:22:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9vuL-0001Uz-Vb; Fri, 18 Dec 2015 14:21:21 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9vs3-00077Z-Ct for linux-arm-kernel@lists.infradead.org; Fri, 18 Dec 2015 14:19:01 +0000 Received: by mail-wm0-x22b.google.com with SMTP id p187so66802762wmp.0 for ; Fri, 18 Dec 2015 06:18:38 -0800 (PST) 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=bJUDhwtkpwgICQ7LxBL5+D7ghrtscW2F02cwhtvou/E=; b=cpUs4Yz58n55spuXq6P/9IfkelwCEmlXGJFB8IIKMq5NzfxGKPPratz+UvXzgE0D6S xHmzcsD849rxKOo56PjOi9YzGgbDj43nPLs6jZVW5wUpUxzrL3OKRDZUnUu2QiRrXkIH cplae8FwaYq+pJ8h1frQDJxCpILv80jreYetw= 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=bJUDhwtkpwgICQ7LxBL5+D7ghrtscW2F02cwhtvou/E=; b=O+Ee6L0RoXT3PtP4cDNQBPb2XjPYZg12iw8fcQVl7OS6JfEMEWZTorXodwnZLZf+Rb 4+nIZU7FE+agaIW9XB+1JWdmqLzUB+32sGgM+wDPrw0t/EXgafnOnEzQavmfDJZfWZ22 friec9wC5J4N/eCP261RYnmrJOJ/XxN2i2PgxzCUoVtTGXFAaS6ocfymghhTm9SL0Dvu 4Btk+xEcRwJadwi3UipyETYqkGhIyx+5ek+kjfy/F8tPq8/n+H0QM3BPGamN9HHAyf3d uLnCW71zFcchD25F7EYKaSMUXG2im+xfGdncfv+KHZ39/xsqTgKI490w7La6whsB+W8v 6VGA== X-Gm-Message-State: ALoCoQlUHaqfND6HwoWcRxoenP6K1IfMb5MKDFmYugdRLIzaFCfGtSbWuIDxfOMZl6ozXqXSaKY+yRZ0lHKqwI9ozhef/3OAWQ== X-Received: by 10.28.111.151 with SMTP id c23mr3586820wmi.28.1450448317742; Fri, 18 Dec 2015 06:18:37 -0800 (PST) Received: from localhost.localdomain ([78.210.255.2]) by smtp.gmail.com with ESMTPSA id ql10sm15010027wjc.23.2015.12.18.06.18.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Dec 2015 06:18:37 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Subject: [PATCH 06/69] time: Define dummy functions for the generic sched clock Date: Fri, 18 Dec 2015 15:17:19 +0100 Message-Id: <1450448302-27429-6-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450448302-27429-1-git-send-email-daniel.lezcano@linaro.org> References: <5672CB9E.7090707@linaro.org> <1450448302-27429-1-git-send-email-daniel.lezcano@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151218_061859_780107_8EFF5A97 X-CRM114-Status: GOOD ( 12.80 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:22b listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, mingo@kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/include/linux/sched_clock.h b/include/linux/sched_clock.h index efa931c..411b52e 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); -#else -static inline void sched_clock_postinit(void) { } -#endif extern void sched_clock_register(u64 (*read)(void), int bits, unsigned long rate); +#else +static inline void sched_clock_postinit(void) { } + +static inline void sched_clock_register(u64 (*read)(void), int bits, + unsigned long rate) +{ + ; +} +#endif #endif