From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751459AbdBAKQ3 (ORCPT ); Wed, 1 Feb 2017 05:16:29 -0500 Received: from terminus.zytor.com ([65.50.211.136]:56602 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325AbdBAKQ1 (ORCPT ); Wed, 1 Feb 2017 05:16:27 -0500 Date: Wed, 1 Feb 2017 02:15:49 -0800 From: tip-bot for Paul Gortmaker Message-ID: Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, efault@gmx.de, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, paul.gortmaker@windriver.com Reply-To: paul.gortmaker@windriver.com, hpa@zytor.com, peterz@infradead.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org, efault@gmx.de In-Reply-To: <20170127173816.22733-1-paul.gortmaker@windriver.com> References: <20170127173816.22733-1-paul.gortmaker@windriver.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/clock: Add dummy clear_sched_clock_stable() stub function Git-Commit-ID: 733ce725aa4bfa9063be053bfe7f4597d76f0dd1 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 733ce725aa4bfa9063be053bfe7f4597d76f0dd1 Gitweb: http://git.kernel.org/tip/733ce725aa4bfa9063be053bfe7f4597d76f0dd1 Author: Paul Gortmaker AuthorDate: Fri, 27 Jan 2017 12:38:16 -0500 Committer: Ingo Molnar CommitDate: Wed, 1 Feb 2017 11:01:29 +0100 sched/clock: Add dummy clear_sched_clock_stable() stub function In commit: acb04058de494 ("sched/clock: Fix hotplug crash") the PARISC code gained a call to this function. However the prototype for it is within a CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y #ifdef/#endif. That, combined with this: arch/parisc/Kconfig: select HAVE_UNSTABLE_SCHED_CLOCK if SMP means that PARISC can have it either enabled or disabled, resulting in the following build fail: arch/parisc/kernel/setup.c:180:2: error: implicit declaration of function 'clear_sched_clock_stable' [-Werror=implicit-function-declaration] Add a no-op stub for the non-SMP case to prevent this. Signed-off-by: Paul Gortmaker Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner Fixes: acb04058de49 ("sched/clock: Fix hotplug crash") Link: http://lkml.kernel.org/r/20170127173816.22733-1-paul.gortmaker@windriver.com Signed-off-by: Ingo Molnar --- include/linux/sched.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/sched.h b/include/linux/sched.h index d176454..e2ed46d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2511,6 +2511,10 @@ static inline void sched_clock_tick(void) { } +static inline void clear_sched_clock_stable(void) +{ +} + static inline void sched_clock_idle_sleep_event(void) { }