Received: by 10.223.185.116 with SMTP id b49csp2923655wrg; Sun, 25 Feb 2018 09:24:55 -0800 (PST) X-Google-Smtp-Source: AH8x227cullqMkiPIRKt+a9ru7X05IpuukHOFZunwbQ2+OBN8kInT/LQU3WPpW2Rc2mrU++fklC5 X-Received: by 10.101.85.71 with SMTP id t7mr6390639pgr.386.1519579495804; Sun, 25 Feb 2018 09:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519579495; cv=none; d=google.com; s=arc-20160816; b=OOfvPsclC7zCwku+OoAJgtrjYi3d8m6Grv3nzzkvbbtP4rcvYxSs0RUue2Rmc81ooR HCTDPjiq+VYeWrW7og3T8yTAj+RNsMsGAysY7iTZplecH8A5c4/JYturCNantYS6nqfI qp5lo4LXz8AXdUvk6P8Gl+F3wPnHZeyzq3yHdJGiUnpxUCghMba9UcM7sSKyP9jL4uV9 1YCfnP+ow2sWvqcib4s9XvsSXxS/bOWL9bGVZZHtkzntzrTxLm6zaG5zKkzGDnBYc01B /jI3+zXCoi2aJfI6VqEXL3RGHxbzCGHsbGh8e4aMjcT5y0Y7cAoO0Lc/RU50y6hjyj/o 5CWA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=0PKSRsXBuaAF85lFOZOBDku34x5bbkIbb23+yCBiy7A=; b=oQVebgpEym79/Ol3KLE5ek/jIW5d0O0a9v7vnKkQmR3uDEdHtHz4bcNOv2Cd9SeFlP fl/qT3BcXu8zKn72gDvCHYmV/2Jco8gMbiJB5L/84xY7OXBnA6zE/jWbAV116oGQMQCn IjkLOzlTUXkhEPlecU8YSBpc+oZw/fexn/e6g61AV0dQ41FPexzU0lMT42L03y8tIOiM Ggvjr8sklOtSGyPH+L4FUedbQXFeYKn+sPsft0KTyBwEhS/DYS0AEoHXsuf5zi+A3M4N QrzY5bE6wsXiVnEaDAyZFpG0QfAiUEFTHarm1tUI+ha6Uz6+UR5wyHfA4pzhmuU2nG0Y RI8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=q6oZYt+z; 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 m75si2758309pfg.64.2018.02.25.09.24.41; Sun, 25 Feb 2018 09:24: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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=q6oZYt+z; 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 S1751982AbeBYRXW (ORCPT + 99 others); Sun, 25 Feb 2018 12:23:22 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:53868 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751899AbeBYRXM (ORCPT ); Sun, 25 Feb 2018 12:23:12 -0500 Received: by mail-wm0-f67.google.com with SMTP id t74so13320561wme.3 for ; Sun, 25 Feb 2018 09:23:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0PKSRsXBuaAF85lFOZOBDku34x5bbkIbb23+yCBiy7A=; b=q6oZYt+zHEeF/rFiYthTSSF17SE+ydb2/HVvymUs6vHsLgQBUfV0YJDIz7fzwQFPIC +otHtVHiycEn9pCCRlpZYdCBFQHTNIrJQAjayxPElgaZJ0pkl18Ma1gObFiyD/IR2CkS 42uFXFKqLN41WX8Y0xXyaj9UsRtrRjRt4cZLuuvPPvj/r/uBqlRnx0PYzrh6yJT/dB5J xo5ZfvnrVAD9JjbA29mLYZv1/4S4GOJcHSTRP65wRA5Q9JCZjwLv2HcZcBxZqnztoqpQ 9XoFEd/xipj4xkdF7pENOwJATt05Fau7Il4lKkQrWw0mJNqWDoOEtpWNF9EkXu/GRMHM M/hA== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=0PKSRsXBuaAF85lFOZOBDku34x5bbkIbb23+yCBiy7A=; b=Z1pcY8zz8plJU+D+vWko+PUY4/DoZTaW5tBo9kJI8GK13eC+uKKEeuiGjpwe/d7Je7 bgpTWh8qhqk4j87cDITin9f1YmBwI8kgbGCEmWpYfEKVhs5x1TaxmL6VOU32LDyDtbwX rfAU+S57SX4VmHm4JIUrU8Wau+mYHc/Tfi4nXSI306rRvhyTCHWSiVTI7oWCdY/nNd9U 8OEiIsFHg3bdhdmANYzuYWbjcjSg40NmjQkwYhTQoIxgoRWK/UbAAmJU2zTB+h3v1Woj i0iLJritn2gXXJVVPh8OWq/fS2bj2QYOWioPRys0nHq+wfHhYhMcY+wy/RcJH0ti0p2H yL3w== X-Gm-Message-State: APf1xPAwoTmlTfzMfuc7WekhZy/pURZQCnn5qj7ru567JR3vL0IGFg93 px3lPb845N/OvylIE7EN57E= X-Received: by 10.28.183.195 with SMTP id h186mr6403345wmf.66.1519579390684; Sun, 25 Feb 2018 09:23:10 -0800 (PST) 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 p21sm5218929wmc.28.2018.02.25.09.23.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Feb 2018 09:23:09 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id B4B6A10C0507; Sun, 25 Feb 2018 18:23:05 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Cc: Benjamin Herrenschmidt , Paul Mackerras , Jiri Slaby , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Mathieu Malaterre Subject: [PATCH 19/21] powerpc: Add missing prototypes for hw_breakpoint_handler & arch_unregister_hw_breakpoint Date: Sun, 25 Feb 2018 18:22:34 +0100 Message-Id: <20180225172236.29650-20-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180225172236.29650-1-malat@debian.org> References: <20180225172236.29650-1-malat@debian.org> 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 5aae8a537080 ("powerpc, hw_breakpoints: Implement hw_breakpoints for 64-bit server processors") function hw_breakpoint_handler and arch_unregister_hw_breakpoint were added without function prototypes in hw_breakpoint.h header. Fix the following warning(s) (treated as error in W=1): AR init/built-in.o arch/powerpc/kernel/hw_breakpoint.c:106:6: error: no previous prototype for ‘arch_unregister_hw_breakpoint’ [-Werror=missing-prototypes] void arch_unregister_hw_breakpoint(struct perf_event *bp) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/kernel/hw_breakpoint.c:209:5: error: no previous prototype for ‘hw_breakpoint_handler’ [-Werror=missing-prototypes] int hw_breakpoint_handler(struct die_args *args) ^~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/include/asm/hw_breakpoint.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/include/asm/hw_breakpoint.h b/arch/powerpc/include/asm/hw_breakpoint.h index ac6432d9be46..90c708e5e7c4 100644 --- a/arch/powerpc/include/asm/hw_breakpoint.h +++ b/arch/powerpc/include/asm/hw_breakpoint.h @@ -66,6 +66,7 @@ extern int hw_breakpoint_exceptions_notify(struct notifier_block *unused, unsigned long val, void *data); int arch_install_hw_breakpoint(struct perf_event *bp); void arch_uninstall_hw_breakpoint(struct perf_event *bp); +void arch_unregister_hw_breakpoint(struct perf_event *bp); void hw_breakpoint_pmu_read(struct perf_event *bp); extern void flush_ptrace_hw_breakpoint(struct task_struct *tsk); @@ -82,6 +83,7 @@ static inline void hw_breakpoint_disable(void) __set_breakpoint(&brk); } extern void thread_change_pc(struct task_struct *tsk, struct pt_regs *regs); +int hw_breakpoint_handler(struct die_args *args); #else /* CONFIG_HAVE_HW_BREAKPOINT */ static inline void hw_breakpoint_disable(void) { } -- 2.11.0