Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2430499imu; Tue, 6 Nov 2018 14:34:55 -0800 (PST) X-Google-Smtp-Source: AJdET5f6UtKXppVCkauSD7fhiMbJZbcKwn7E72LKu7mn7Yr8jrBlVVEsr9G5dXzTg3NdFPTAccP2 X-Received: by 2002:a62:2fc1:: with SMTP id v184-v6mr28080131pfv.115.1541543695224; Tue, 06 Nov 2018 14:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541543695; cv=none; d=google.com; s=arc-20160816; b=yWi8xyl0wEGAhcG7zOrGGKbvho5a1UV7D3cggFckzFcwaE/TEYA3YTLGxn3uQMee82 o4E3tOzf61EuHgSlykoaRNmz7wRw9O5Das5Rj59BdKNDYOgv1Txbqc7MSBZ4C7GOn2zd IA9Ws5jsqqgxXB5il1MlQJoEFllB07gBpVNqNTEXCkoJ7k2U0gzQGXiID8XenzFhrD3a 9gLlUdFS8qFoLBneKBpIqhWaHqsuVvRFKBKzQMHbVn7RReZAj00ppFmNmBZmgwgIAUGm 95RK+Zu0MihFLcXXTClUHqqAY8TT8OjUW0KJ6CWEaPk/WNJhvVcIxYyWyVUUyIlem/w3 lGYg== 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; bh=Ly8aGT4UyvHmdHY4fkTsRwbuRuGxwJFF717Z1pqOkYg=; b=KxhUDNRpuWhN0BmnqvxXlGZF3LyiYOKDZJ/MmXCDKI047qsEDE4Qm+tvmG6DgcA41u 7wM9AfCk5ZK9sNJr2IaaUJ7Kp5xH+N9f1qzzcv37vGIx7ginIzsFhJOik3avDPX2OmD1 nXn040PeiJAsa0bPGNKf3irTkJ9TUyqF/adZ1y4gFoFHS+YOLBhcrPiJS15c0AdQy1NT cPxQYpRJsB2YclrRCH5tn0kxE5Z+8z9/crco4AmRxuH43wT+rpRZ6EEBO5gEvBBwH60A wrTykDAU/7sHmSZ+ntI//OjC59PDO3CxzBmjruYrxEpNwPkXbmm+G2BleeByaxF/Bqzv 1d+w== 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 d5-v6si15615377pla.80.2018.11.06.14.34.39; Tue, 06 Nov 2018 14:34:55 -0800 (PST) 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 S1730888AbeKGHt3 (ORCPT + 99 others); Wed, 7 Nov 2018 02:49:29 -0500 Received: from terminus.zytor.com ([198.137.202.136]:44299 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726118AbeKGHt3 (ORCPT ); Wed, 7 Nov 2018 02:49:29 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wA6MLrU3983308 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 6 Nov 2018 14:21:53 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wA6MLqp7983305; Tue, 6 Nov 2018 14:21:52 -0800 Date: Tue, 6 Nov 2018 14:21:52 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Mathieu Malaterre Message-ID: Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, malat@debian.org, babu.moger@oracle.com, mingo@kernel.org, hpa@zytor.com Reply-To: tglx@linutronix.de, linux-kernel@vger.kernel.org, babu.moger@oracle.com, malat@debian.org, mingo@kernel.org, hpa@zytor.com In-Reply-To: <20180606194232.17653-1-malat@debian.org> References: <20180606194232.17653-1-malat@debian.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:core/urgent] watchdog/core: Add missing prototypes for weak functions Git-Commit-ID: 81bd415c91eb966118d773dddf254aebf3022411 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, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: 81bd415c91eb966118d773dddf254aebf3022411 Gitweb: https://git.kernel.org/tip/81bd415c91eb966118d773dddf254aebf3022411 Author: Mathieu Malaterre AuthorDate: Wed, 6 Jun 2018 21:42:32 +0200 Committer: Thomas Gleixner CommitDate: Tue, 6 Nov 2018 21:58:00 +0100 watchdog/core: Add missing prototypes for weak functions The split out of the hard lockup detector exposed two new weak functions, but no prototypes for them, which triggers the build warning: kernel/watchdog.c:109:12: warning: no previous prototype for ‘watchdog_nmi_enable’ [-Wmissing-prototypes] kernel/watchdog.c:115:13: warning: no previous prototype for ‘watchdog_nmi_disable’ [-Wmissing-prototypes] Add the prototypes. Fixes: 73ce0511c436 ("kernel/watchdog.c: move hardlockup detector to separate file") Signed-off-by: Mathieu Malaterre Signed-off-by: Thomas Gleixner Cc: Babu Moger Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20180606194232.17653-1-malat@debian.org --- include/linux/nmi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/nmi.h b/include/linux/nmi.h index 08f9247e9827..9003e29cde46 100644 --- a/include/linux/nmi.h +++ b/include/linux/nmi.h @@ -119,6 +119,8 @@ static inline int hardlockup_detector_perf_init(void) { return 0; } void watchdog_nmi_stop(void); void watchdog_nmi_start(void); int watchdog_nmi_probe(void); +int watchdog_nmi_enable(unsigned int cpu); +void watchdog_nmi_disable(unsigned int cpu); /** * touch_nmi_watchdog - restart NMI watchdog timeout.