Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1241608imm; Wed, 6 Jun 2018 12:43:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIUP+UL5wfWT+QaNP5oZ+FidrBN1NOglZBOQ/yzvCTRxt+YH72iWLzJ/PbdAFLu60C7ykJ7 X-Received: by 2002:a17:902:3181:: with SMTP id x1-v6mr4609654plb.198.1528314196031; Wed, 06 Jun 2018 12:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528314196; cv=none; d=google.com; s=arc-20160816; b=DtiBmagn4yOtBhAw3wxyTW5YjwUHrcIZ6QEQn/XbK/OPFeZcPBp8DpxpdWpyg4RRUE lIgRW4Kz8yfGUXuQbSaGnLrcx31YjoDcMuWhgVn9X6kFwwdtRMiRw98h4KGalGSO5gTe iYvfpZzDe6j7bTnZ67b1flSTIE0j4OXrGBRB6XDGzSbCAP7Ilab7RVVGOjOOKPH9Fgtz 7bxUnfGoTUAX0J7ts1b8pe1lbYQL9AmuBqlpFrdJcPPgnSZsO4XkOHCQ4ouSL++F9Igt OhmuCnkiCd7tb4Ef6A89loqmD2t5ISkbPMLZl/YO/uV/wW7QZVhBjpTmq/2c7dVfyQss IeGA== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=6SGdZx92oNd3YIFsxTGFVyPKnIH99jNr0SeD9U8bliw=; b=m0zcvwRr02KIHriac/usr5h8yTBXeEWdFdDyEgMjBgH179mAcOR5meg4cLClYVnYKA 9haTv1c87IobAGfk76BF5fjG1NKi1so8uj0flgXLSWP7D4LP7x71ko68ehl+/wa8SVQe 49fPZI++zN8Un6sXGZxZGADN1VvbXZXeaauHtE1+D5u4I9Vsqs37k8H2MTHPWh4R9ziR 5ympv6EDx3tzNutKsyT+T3n2/auPmQz/uU7O3eF5slV/U0CUn2xUrZQBfjA5nCfZilFe zlLxK7iVGEdaTHbUBNOqz68L+n+l+ZdToqob2yIu5x9cmjo/1eFXUlYXOrKqgdJMCpE/ tU3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZMQ2LGCS; 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 e1-v6si8787223pgr.318.2018.06.06.12.43.01; Wed, 06 Jun 2018 12:43:16 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZMQ2LGCS; 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 S1752631AbeFFTmh (ORCPT + 99 others); Wed, 6 Jun 2018 15:42:37 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36222 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752193AbeFFTmg (ORCPT ); Wed, 6 Jun 2018 15:42:36 -0400 Received: by mail-wm0-f68.google.com with SMTP id v131-v6so14222064wma.1 for ; Wed, 06 Jun 2018 12:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6SGdZx92oNd3YIFsxTGFVyPKnIH99jNr0SeD9U8bliw=; b=ZMQ2LGCSmr/LYzP/FJrJNpCIadLXQVBZal/tzmyu3GFT12pZajXdA8yQw9nrGkjD0x 42MhnuKiOKiys66/364AiG4ri2KZGvevuKG39AvoTyghy+tftZRfKf/2itAiNcelCUI0 HuRMyAEr4E2A1k/gnafD4yX8+dd1EhGhtSV7+13tYPYoSC+boiTgYo3bSx5DCTGVdJM9 BY78SoJlhmdB/rgauDGwBPwGlGWsqSOfLcBG3IJzgZl4heAFO/vdOFzWmfgWLQ4kIgWs Tt1jlMOtFkwiQ26Sc95F/Sw24luIMIuWA3nkKT/abKIP7iRUK3t9O7t5IbjL0I0jP5JV MORQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=6SGdZx92oNd3YIFsxTGFVyPKnIH99jNr0SeD9U8bliw=; b=R9aLv7bUd6jAeVAZt7QVms0Xu7kuvgqL81MJmubID3yfbyb6WeJm62rRGOPOIEV43S qPlAB+EuPaLYo0wlHpiIgmFETeUGCEuPFSTT+V5o3GH3zrkCD5qlCPop2VJitxsst4vm sEsNmFglAMs1TKrQnepKpFJ+VUKpIsYtSodifCD+PAKDUiyxNKPzrEuDgHe4OpNCUnC6 VgfaiVi/Qfk/DEh0tWw5fbg9loRQUwj63aaahVOgagEEGM2OWLOTckT3Blh5kmY6kZMW x6SgEvszrBwspfAKY+8BTKmbhE2B5PTHTfy3vJvkFDzwi1D0EWR+g6xxER1uZprKmZZW FVQA== X-Gm-Message-State: APt69E0guNaSrlDUVKBt3UhyoH3Ap2P29yytWeO7wcpI4cYjRJMWHiRe D9d9XuYV8C5nKWyPnwfhqWU= X-Received: by 2002:a1c:448b:: with SMTP id r133-v6mr2499328wma.55.1528314155147; Wed, 06 Jun 2018 12:42:35 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id b16-v6sm14743265wrm.15.2018.06.06.12.42.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Jun 2018 12:42:34 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 98FEC10C2B80; Wed, 6 Jun 2018 21:42:33 +0200 (CEST) From: Mathieu Malaterre To: Thomas Gleixner Cc: Mathieu Malaterre , Babu Moger , linux-kernel@vger.kernel.org Subject: [PATCH] kernel/watchdog: add missing prototypes for weak functions Date: Wed, 6 Jun 2018 21:42:32 +0200 Message-Id: <20180606194232.17653-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 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 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