Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752103AbaB0LfO (ORCPT ); Thu, 27 Feb 2014 06:35:14 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:49381 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155AbaB0LfM (ORCPT ); Thu, 27 Feb 2014 06:35:12 -0500 Date: Thu, 27 Feb 2014 17:05:05 +0530 From: Rashika Kheria To: linux-kernel@vger.kernel.org Cc: josh@joshtriplett.org Subject: [PATCH 09/46] kernel: Move prototype declaration to header file include/linux/hw_breakpoint.h Message-ID: References: <7b4a60c74ced00e0d65c38488f20dc4bd69f0dd2.1393493276.git.rashika.kheria@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7b4a60c74ced00e0d65c38488f20dc4bd69f0dd2.1393493276.git.rashika.kheria@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add prototype declaration of function to header file include/linux/hw_breakpoint.h because it is used by more than one file. This eliminates the following warning in kernel/events/hw_breakpoint.c: kernel/events/hw_breakpoint.c:231:13: warning: no previous prototype for ‘arch_unregister_hw_breakpoint’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett --- include/linux/hw_breakpoint.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h index 0464c85..9ff0155 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h @@ -67,6 +67,8 @@ register_wide_hw_breakpoint(struct perf_event_attr *attr, perf_overflow_handler_t triggered, void *context); +void arch_unregister_hw_breakpoint(struct perf_event *bp); + extern int register_perf_hw_breakpoint(struct perf_event *bp); extern int __register_perf_hw_breakpoint(struct perf_event *bp); extern void unregister_hw_breakpoint(struct perf_event *bp); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/