Re: [PATCH] tracing: fix a build error on alpha and m68k

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Friday, October 24, 2008 - 7:16 am

Ingo Molnar wrote:

I just testes my patch by building with a cross compiler on Alpha.
Before the patch:

kernel/trace/trace.c: In function 'tracing_generic_entry_update':
kernel/trace/trace.c:664: error: implicit declaration of function 'irqs_disabled_flags'
kernel/trace/trace.c: In function 'tracing_cpumask_write':
kernel/trace/trace.c:2150: error: implicit declaration of function 'raw_local_irq_disable'
kernel/trace/trace.c:2167: error: implicit declaration of function 'raw_local_irq_enable'
kernel/trace/trace.c: In function 'trace_die_handler':
kernel/trace/trace.c:3044: error: 'DIE_OOPS' undeclared (first use in this function)
kernel/trace/trace.c:3044: error: (Each undeclared identifier is reported only once
kernel/trace/trace.c:3044: error: for each function it appears in.)

After the patch:

kernel/trace/trace.c: In function 'tracing_generic_entry_update':
kernel/trace/trace.c:664: error: implicit declaration of function 'irqs_disabled_flags'
kernel/trace/trace.c: In function 'trace_die_handler':
kernel/trace/trace.c:3044: error: 'DIE_OOPS' undeclared (first use in this function)
kernel/trace/trace.c:3044: error: (Each undeclared identifier is reported only once
kernel/trace/trace.c:3044: error: for each function it appears in.)

So the raw_local_irq_* functions are defined in linux/irqflags.h, even for arch that doesn't have CONFIG_TRACE_IRQFLAGS_SUPPORT. They just do a local_irq_save/restore.
That's what we wanted. And we have to include it on trace.c for archs like alpha.

So this patch fixes it.

The DIE_OOPS should be fixed by a recent patch from Steven (ftrace: move nmi die handler to arch specific).

The last issue is irqs_disabled_flags. But it's one other problem which is in discussion.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for October 23, Stephen Rothwell, (Thu Oct 23, 3:36 am)
linux-next: kernel/trace/trace.c:658: error:, Alexey Dobriyan, (Thu Oct 23, 5:11 am)
linux-next: undefined reference to 'forbid_dac', Alexey Dobriyan, (Thu Oct 23, 5:26 am)
Re: linux-next: kernel/trace/trace.c:658: error:, Frédéric Weisbecker, (Thu Oct 23, 5:48 am)
linux-next: undefined reference to `nop_trace', Alexey Dobriyan, (Thu Oct 23, 5:57 am)
Re: linux-next: kernel/trace/trace.c:658: error:, Frédéric Weisbecker, (Thu Oct 23, 6:15 am)
Re: linux-next: undefined reference to 'forbid_dac', FUJITA Tomonori, (Thu Oct 23, 6:16 am)
linux-next: x86_64 UML broken, Alexey Dobriyan, (Thu Oct 23, 7:14 am)
Re: linux-next: kernel/trace/trace.c:658: error:, Geert Uytterhoeven, (Thu Oct 23, 7:37 am)
Re: linux-next: include/linux/mmzone.h:288: error: 'CONFIG ..., Geert Uytterhoeven, (Thu Oct 23, 7:38 am)
Re: linux-next: kernel/trace/trace.c:658: error:, Frederic Weisbecker, (Thu Oct 23, 7:41 am)
Re: linux-next: kernel/trace/trace.c:658: error:, Frédéric Weisbecker, (Thu Oct 23, 7:57 am)
Re: linux-next: kernel/trace/trace.c:658: error:, Geert Uytterhoeven, (Thu Oct 23, 8:30 am)
Re: linux-next: kernel/trace/trace.c:658: error:, Frédéric Weisbecker, (Thu Oct 23, 8:33 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Frédéric Weisbecker, (Thu Oct 23, 9:24 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Alexey Dobriyan, (Thu Oct 23, 9:34 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Frédéric Weisbecker, (Thu Oct 23, 9:35 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Frédéric Weisbecker, (Thu Oct 23, 9:51 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Frédéric Weisbecker, (Thu Oct 23, 10:06 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Steven Rostedt, (Thu Oct 23, 10:12 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Steven Rostedt, (Thu Oct 23, 10:14 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Frédéric Weisbecker, (Thu Oct 23, 10:25 am)
[PATCH] tracing: fix a build error on alpha and m68k, Frederic Weisbecker, (Thu Oct 23, 10:27 am)
Re: linux-next: Tree for October 23 (cx88), Randy Dunlap, (Thu Oct 23, 5:18 pm)
Re: linux-next: Tree for October 23, Randy Dunlap, (Thu Oct 23, 6:04 pm)
[PATCH] PCI hotplug printk format, Randy Dunlap, (Thu Oct 23, 6:14 pm)
[PATCH] nfsctl: credentials error, Randy Dunlap, (Thu Oct 23, 6:17 pm)
[PATCH] coda: credentials error, Randy Dunlap, (Thu Oct 23, 6:17 pm)
Re: [PATCH] ftrace: handle archs that do not support irqs_ ..., Frédéric Weisbecker, (Fri Oct 24, 6:54 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Frederic Weisbecker, (Fri Oct 24, 7:16 am)
Re: [PATCH] PCI hotplug printk format, Jesse Barnes, (Fri Oct 24, 10:42 am)
Re: [PATCH] PCI hotplug printk format, Jesse Barnes, (Fri Oct 24, 10:49 am)
Re: [PATCH] ftrace: handle archs that do not support irqs_ ..., Geert Uytterhoeven, (Sat Oct 25, 1:24 am)
Re: [ofa-general] Re: linux-next: Tree for October 23, Or Gerlitz, (Sun Oct 26, 12:19 am)
Re: [ofa-general] Re: linux-next: Tree for October 23, Randy Dunlap, (Sun Oct 26, 11:49 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Alexey Dobriyan, (Thu Oct 30, 2:49 pm)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Frédéric Weisbecker, (Thu Oct 30, 3:57 pm)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Geert Uytterhoeven, (Fri Oct 31, 1:50 am)
Re: [PATCH] tracing: fix a build error on alpha and m68k, Geert Uytterhoeven, (Sat Nov 1, 3:16 am)