From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933928AbdA0Rka (ORCPT ); Fri, 27 Jan 2017 12:40:30 -0500 Received: from mail5.windriver.com ([192.103.53.11]:52262 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933066AbdA0RjS (ORCPT ); Fri, 27 Jan 2017 12:39:18 -0500 From: Paul Gortmaker To: CC: Paul Gortmaker , Peter Zijlstra , Ingo Molnar Subject: [PATCH] sched/clock: add dummy clear_sched_clock_stable stub function Date: Fri, 27 Jan 2017 12:38:16 -0500 Message-ID: <20170127173816.22733-1-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit acb04058de49458010c44bb35b849d45113fd668 ("sched/clock: Fix hotplug crash") the parisc code gained a call to this function. However the prototype for it is within HAVE_UNSTABLE_SCHED_CLOCK 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. Fixes: acb04058de49 ("sched/clock: Fix hotplug crash") Cc: Peter Zijlstra (Intel) Cc: Ingo Molnar Signed-off-by: Paul Gortmaker --- include/linux/sched.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/sched.h b/include/linux/sched.h index 43c4840c0485..c8a257fde056 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2498,6 +2498,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) { } -- 2.11.0