Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1919178imm; Tue, 10 Jul 2018 10:00:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfedII/H6emULrEgRqpgRl0K15Jjb1rADs03RtmbqMInnzyeodGxTgnsEDuUU4ZH1r6ygj+ X-Received: by 2002:a17:902:599b:: with SMTP id p27-v6mr25143724pli.191.1531242037754; Tue, 10 Jul 2018 10:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531242037; cv=none; d=google.com; s=arc-20160816; b=AG/ECf/peUAmHmR0zR8qvTs5IAbGH/06RTMnkfYi+vZa3aUmdKVeHv0YIWwdgw0HzP Zv0jzqNiz9bMzjhddzB983v7dnx+GBRZqSswhuZobHeRMBDWgda2EAyC1gmxfZxWHWMo w7I8PUoOrlYZNespA2T/fUT/Suskte+txYvNI+wAYKe0PnqDvenF1vfjBRp04wwbhIAN 0rD6GZl05UZBhzOs6utDHwFUPXUIocRPJ8S3a/8mD7GBGUIjvqyCUY+KpJ1Sy6d8xqnt 4Q6a910s1GpZ5/pl1iZqLrj0uGJeTUnfXgZT5Arnr5weEmdkL97IxZH1FId3xFm/9DLn wAVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=GF178dYZjHQo5Rt/iHah/Ig2gsrRilIJHbt0oW+enuE=; b=F1RFaKlITgzsg5v1xoynEQPcVwvTIOnMK49btPFEdU1U3TYMxO7Yfz5K51x8ceVdOW krtQFtcGaWP3n2FloCAZhc810cL8QsTEt7dvsYhHHEIrwz8KxinFaDjLO4XATvS9g9a6 VtKxDLP9e0Ir1NYhJy3yLbdf09Xj6ePF1w4aZ6XRVDIUzdy5qSdWylTiOJHqzGNc7zrD B5eXGT4azCQFMpHsL2aa/dXfvE5w6gcPTW89HrXOIS2sthnvNMhtXuIjlMpLgPnXTJuD a0LlY9UHNTbnrcIXmNNvwhIkqvTKHA75rsmIsWp2/bPCViCKHUsd4gEjj+D9VqA324C7 2dhA== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1-v6si17760461pll.416.2018.07.10.10.00.21; Tue, 10 Jul 2018 10:00:37 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934408AbeGJQCE (ORCPT + 99 others); Tue, 10 Jul 2018 12:02:04 -0400 Received: from terminus.zytor.com ([198.137.202.136]:48809 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934062AbeGJQCC (ORCPT ); Tue, 10 Jul 2018 12:02:02 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w6AG0tQH3196546 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 10 Jul 2018 09:00:56 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w6AG0tnN3196543; Tue, 10 Jul 2018 09:00:55 -0700 Date: Tue, 10 Jul 2018 09:00:55 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Peter Zijlstra Message-ID: Cc: mingo@kernel.org, hpa@zytor.com, torvalds@linux-foundation.org, peterz@infradead.org, sfr@canb.auug.org.au, sachinp@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, mpe@ellerman.id.au, tglx@linutronix.de, linuxppc-dev@lists.ozlabs.org, abdhalee@linux.vnet.ibm.com Reply-To: mpe@ellerman.id.au, linux-next@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, abdhalee@linux.vnet.ibm.com, tglx@linutronix.de, hpa@zytor.com, torvalds@linux-foundation.org, peterz@infradead.org, mingo@kernel.org, sachinp@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, sfr@canb.auug.org.au In-Reply-To: <20180710114210.GI2476@hirez.programming.kicks-ass.net> References: <20180710114210.GI2476@hirez.programming.kicks-ass.net> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] watchdog/softlockup: Fix the SOFTLOCKUP_DETECTOR=n build Git-Commit-ID: aef92a8bed25d03b8f03ce499a56e8e8e5e2c05e 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 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: aef92a8bed25d03b8f03ce499a56e8e8e5e2c05e Gitweb: https://git.kernel.org/tip/aef92a8bed25d03b8f03ce499a56e8e8e5e2c05e Author: Peter Zijlstra AuthorDate: Tue, 10 Jul 2018 13:42:10 +0200 Committer: Ingo Molnar CommitDate: Tue, 10 Jul 2018 17:56:22 +0200 watchdog/softlockup: Fix the SOFTLOCKUP_DETECTOR=n build I got confused by all the various CONFIG options here about and conflated CONFIG_LOCKUP_DETECTOR and CONFIG_SOFTLOCKUP_DETECTOR. This results in a build failure for: CONFIG_LOCKUP_DETECTOR=y && CONFIG_SOFTLOCKUP_DETECTOR=n As reported by Abdul. Reported-and-tested-by: Abdul Haleem Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-next Cc: linuxppc-dev Cc: mpe Cc: sachinp Cc: stephen Rothwell Fixes: 9cf57731b63e ("watchdog/softlockup: Replace "watchdog/%u" threads with cpu_stop_work") Link: http://lkml.kernel.org/r/20180710114210.GI2476@hirez.programming.kicks-ass.net Signed-off-by: Ingo Molnar --- include/linux/nmi.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/linux/nmi.h b/include/linux/nmi.h index 80664bbeca43..08f9247e9827 100644 --- a/include/linux/nmi.h +++ b/include/linux/nmi.h @@ -33,15 +33,10 @@ extern int sysctl_hardlockup_all_cpu_backtrace; #define sysctl_hardlockup_all_cpu_backtrace 0 #endif /* !CONFIG_SMP */ -extern int lockup_detector_online_cpu(unsigned int cpu); -extern int lockup_detector_offline_cpu(unsigned int cpu); - #else /* CONFIG_LOCKUP_DETECTOR */ static inline void lockup_detector_init(void) { } static inline void lockup_detector_soft_poweroff(void) { } static inline void lockup_detector_cleanup(void) { } -#define lockup_detector_online_cpu NULL -#define lockup_detector_offline_cpu NULL #endif /* !CONFIG_LOCKUP_DETECTOR */ #ifdef CONFIG_SOFTLOCKUP_DETECTOR @@ -50,12 +45,18 @@ extern void touch_softlockup_watchdog(void); extern void touch_softlockup_watchdog_sync(void); extern void touch_all_softlockup_watchdogs(void); extern unsigned int softlockup_panic; -#else + +extern int lockup_detector_online_cpu(unsigned int cpu); +extern int lockup_detector_offline_cpu(unsigned int cpu); +#else /* CONFIG_SOFTLOCKUP_DETECTOR */ static inline void touch_softlockup_watchdog_sched(void) { } static inline void touch_softlockup_watchdog(void) { } static inline void touch_softlockup_watchdog_sync(void) { } static inline void touch_all_softlockup_watchdogs(void) { } -#endif + +#define lockup_detector_online_cpu NULL +#define lockup_detector_offline_cpu NULL +#endif /* CONFIG_SOFTLOCKUP_DETECTOR */ #ifdef CONFIG_DETECT_HUNG_TASK void reset_hung_task_detector(void);