Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2322656imu; Tue, 6 Nov 2018 12:37:00 -0800 (PST) X-Google-Smtp-Source: AJdET5cX3x0cN9kD6mwRFmHjbyQnX47PuGkZklaW/oJqllqTIeAyQB5pd9vlm/9oZMhaKR4DyIbO X-Received: by 2002:a17:902:16a4:: with SMTP id h33-v6mr27601966plh.141.1541536620831; Tue, 06 Nov 2018 12:37:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541536620; cv=none; d=google.com; s=arc-20160816; b=di8inLoMIuaQmzi1uTYPzNq8Y1ODRcdcc/XjU1XvJMHMtaMBQxLH92zL3FUMmcBy3F q5HYaejpdq+iCrPLYPS/lwr5IO463Ok87YZve58+XQAQggxArM1afw1Y4fzuGNTcJIpm CNPhXhwteBkKKBmC6RVXVkUg0jUlQPE12TGRaFTsEkSPkhf0FuX80IP23gj3sKKRRWo2 miG1mnCEYMTfU6vbILXPMPBMTPQscCbca7oxB3vgDBTarK8TsxOihLnnRT6ByVNcDjct F1UQZYo+TooGkk4t7z+Eq7IhDlVIN0C4Kxn1cw67ZQm/KX0IE7AfIiwIeH63RqtuKsYN qX+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=LW7xK8vbzdZDZM2JpM/90mWhIwAwhqyeiKl1hJFRG9o=; b=j7VcSiY7QH6yjn70SaScXJl2uoH5DBlYoPGrnO6Y/EhmVhP2Jgf4kBYsAdGFbBE1OP kB8+BwbhE/0PhO9D+6LZf1tghwoivPS+tYmVHuFwgyAbpjV0nZMyF7tlcohOh6T83p3s 0SGtKgql8falGEDjjaWVbYgEZFC/NJxooqKR0ui23FWZ2D9D35hfMplQmsOKen/577kO 1xSFLCKDzZLS2x0dTjkMeTYXAqkROhMebopsTrIQ7bbdWprx0b4BMIHRw3Be7AdJhW8G b+bvqdwjoDWCm3RayJVDNg7CB+Cd/BWhyeL7z87jmd9GJDvvw7dceXYmBnGFK9Lp3p3j aw/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 e33-v6si49587035pld.314.2018.11.06.12.36.45; Tue, 06 Nov 2018 12:37:00 -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 S2388396AbeKGGCs convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Nov 2018 01:02:48 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:33889 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726955AbeKGGCs (ORCPT ); Wed, 7 Nov 2018 01:02:48 -0500 Received: by mail-ot1-f65.google.com with SMTP id t5so9129035otk.1 for ; Tue, 06 Nov 2018 12:35:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=T6HUuE2/8GG90Ndl8cZ2SLuqHmoLPm9aHgvMMjeqolY=; b=ZUTU2gXFgY4/FSDEYvChCqOphBM55XdusBg9qnMEOfh2IHMAsLr2wuA5QYu7Li3aW9 GPUj0cTZZTRfhEFvHkIgrmlag+q8hWUe1Cmp+I1KKGoKKjmAnMfYqYHLIkeC773cj+EI 5UY1DpkAHejcST0l0VSlqClGGYyHaAHIZA9efolcrbcS6CBxjknyOXPR21uV96mdYxbB hT6rldRZMVOeL/LNJ5dK5cBB/EjxcpHoxZFlPv9GzDYT5sP/TdPLM3UjOnb7O6qxWrrv RQytq8U1QujjpANDGIeEvEJhr0WyVJInQXc1HqpWDsUjNVYVMWoEJlaiLxx1u2WJDFFi aeaw== X-Gm-Message-State: AGRZ1gItmfu9BrhNJPUE3fgkAd2CNwCc1c1kk6gZVyImNdi5q8VytQUz Zzp05vMSWLS3+bB0E50UvprCcNzQ/aPKMD6ujEQ= X-Received: by 2002:a9d:56db:: with SMTP id b27mr17602801otj.365.1541536547423; Tue, 06 Nov 2018 12:35:47 -0800 (PST) MIME-Version: 1.0 References: <20180606194232.17653-1-malat@debian.org> In-Reply-To: <20180606194232.17653-1-malat@debian.org> From: Mathieu Malaterre Date: Tue, 6 Nov 2018 21:35:35 +0100 Message-ID: Subject: Re: [PATCH] kernel/watchdog: add missing prototypes for weak functions To: Thomas Gleixner Cc: LKML , Babu Moger Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping ? On Wed, Jun 6, 2018 at 9:42 PM Mathieu Malaterre wrote: > > In commit 73ce0511c436 ("kernel/watchdog.c: move hardlockup detector to > separate file") two new functions were added ‘watchdog_nmi_enable’ and > ‘watchdog_nmi_disable’ the functions were changed from static to weak. > In which case expose the function declarations in header file. > > Silence the following gcc warnings: > > 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] > > Cc: Babu Moger > Signed-off-by: Mathieu Malaterre > --- > include/linux/nmi.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/nmi.h b/include/linux/nmi.h > index b8d868d23e79..50d143995338 100644 > --- a/include/linux/nmi.h > +++ b/include/linux/nmi.h > @@ -113,6 +113,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. > -- > 2.11.0 >