Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756516AbcJPPTJ (ORCPT ); Sun, 16 Oct 2016 11:19:09 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:48017 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756493AbcJPPSt (ORCPT ); Sun, 16 Oct 2016 11:18:49 -0400 From: Vegard Nossum To: linux-kernel@vger.kernel.org, Greg Kroah-Hartman Cc: Jiri Slaby , Linus Torvalds , "Luis R . Rodriguez" , Vegard Nossum , Steven Rostedt Subject: [PATCH 06/12] tracing: declare __{start,stop}_ftrace_events as external array Date: Sun, 16 Oct 2016 17:16:10 +0200 Message-Id: <20161016151616.31451-7-vegard.nossum@oracle.com> X-Mailer: git-send-email 2.10.0.479.g221bd91 In-Reply-To: <20161016151616.31451-1-vegard.nossum@oracle.com> References: <20161016151616.31451-1-vegard.nossum@oracle.com> X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1181 Lines: 40 Cc: Steven Rostedt Signed-off-by: Vegard Nossum --- kernel/trace/trace_events.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 03c0a48..400162f 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -10,6 +10,7 @@ #define pr_fmt(fmt) fmt +#include #include #include #include @@ -2808,8 +2809,7 @@ static void __add_event_to_tracers(struct trace_event_call *call) __trace_add_new_event(call, tr); } -extern struct trace_event_call *__start_ftrace_events[]; -extern struct trace_event_call *__stop_ftrace_events[]; +DECLARE_EXTARRAY(struct trace_event_call *, ftrace_events) static char bootup_event_buf[COMMAND_LINE_SIZE] __initdata; @@ -2992,8 +2992,7 @@ static __init int event_trace_enable(void) if (!tr) return -ENODEV; - for_each_event(iter, __start_ftrace_events, __stop_ftrace_events) { - + ext_for_each(iter, ftrace_events) { call = *iter; ret = event_init(call); if (!ret) -- 2.10.0.479.g221bd91