From: Steven Rostedt <rostedt@goodmis.org>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>,
Oleg Nesterov <oleg@redhat.com>,
Frederic Weisbecker <fweisbec@gmail.com>,
Ingo Molnar <mingo@redhat.com>
Subject: Re: [PATCH] signals: move trace header #include to after all others.
Date: Thu, 18 Aug 2011 09:57:17 -0400 [thread overview]
Message-ID: <1313675838.15704.69.camel@gandalf.stny.rr.com> (raw)
In-Reply-To: <1313675198-7413-1-git-send-email-ian.campbell@citrix.com>
On Thu, 2011-08-18 at 14:46 +0100, Ian Campbell wrote:
> Steven Rostedt says:
> The trace events headers are suppose to be the last headers
> included.
> and this fixes a build error when another header already includes trace stuff,
> which I saw when adding a highmem.h include to skbuff.h e.g.:
> In file included from include/trace/ftrace.h:296:0,
> from include/trace/define_trace.h:96,
> from include/trace/events/irq.h:150,
> from include/linux/interrupt.h:23,
> from arch/x86/include/asm/highmem.h:23,
> from include/linux/highmem.h:33,
> from include/linux/skbuff.h:32,
> from kernel/audit.h:24,
> from kernel/signal.c:38:
> include/trace/events/irq.h: In function 'ftrace_raw_output_softirq':
> include/trace/events/irq.h:87:1: error: 'HI_SOFTIRQ' undeclared (first use in this function)
> include/trace/events/irq.h:87:1: note: each undeclared identifier is reported only once for each function it appears in
> include/trace/events/irq.h:87:1: error: 'TIMER_SOFTIRQ' undeclared (first use in this function)
> include/trace/events/irq.h:87:1: error: 'NET_TX_SOFTIRQ' undeclared (first use in this function)
> include/trace/events/irq.h:87:1: error: 'NET_RX_SOFTIRQ' undeclared (first use in this function)
> include/trace/events/irq.h:87:1: error: 'BLOCK_SOFTIRQ' undeclared (first use in this function)
> include/trace/events/irq.h:87:1: error: 'BLOCK_IOPOLL_SOFTIRQ' undeclared (first use in this function)
> include/trace/events/irq.h:87:1: error: 'TASKLET_SOFTIRQ' undeclared (first use in this function)
> include/trace/events/irq.h:87:1: error: 'SCHED_SOFTIRQ' undeclared (first use in this function)
> include/trace/events/irq.h:87:1: error: 'HRTIMER_SOFTIRQ' undeclared (first use in this function)
> include/trace/events/irq.h:87:1: error: 'RCU_SOFTIRQ' undeclared (first use in this function)
>
> See http://lkml.kernel.org/r/1313668307.5010.300.camel@zakaz.uk.xensource.com
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> Cc: Tejun Heo <tj@kernel.org>
> Cc: Oleg Nesterov <oleg@redhat.com>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Ingo Molnar <mingo@redhat.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
-- Steve
> ---
> kernel/signal.c | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/signal.c b/kernel/signal.c
> index 291c970..d3cd4e7 100644
> --- a/kernel/signal.c
> +++ b/kernel/signal.c
> @@ -28,8 +28,6 @@
> #include <linux/freezer.h>
> #include <linux/pid_namespace.h>
> #include <linux/nsproxy.h>
> -#define CREATE_TRACE_POINTS
> -#include <trace/events/signal.h>
>
> #include <asm/param.h>
> #include <asm/uaccess.h>
> @@ -37,6 +35,9 @@
> #include <asm/siginfo.h>
> #include "audit.h" /* audit_signal_info() */
>
> +#define CREATE_TRACE_POINTS
> +#include <trace/events/signal.h>
> +
> /*
> * SLAB caches for signal bits.
> */
prev parent reply other threads:[~2011-08-18 13:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-18 13:46 Ian Campbell
2011-08-18 13:57 ` Steven Rostedt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1313675838.15704.69.camel@gandalf.stny.rr.com \
--to=rostedt@goodmis.org \
--cc=fweisbec@gmail.com \
--cc=ian.campbell@citrix.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=oleg@redhat.com \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®