m68k: make syscall_trace_enter/leave exist for non-MMU classic m68k types
Subsystems (2)
PATCH 1/1 m68k: make syscall_trace_enter/leave exist for non-MMU classic m68k types
From: Greg Ungerer <[email protected]>
The assembler entry code calls directly to the syscall_trace_enter() and syscall_trace_leave() functions. But currently they are conditionaly compiled out for the non-MMU classic m68k CPU types (so 68328 for example), resulting in a link error:
LD vmlinux
arch/m68k/platform/68328/built-in.o: In function `do_trace':
(.text+0x1c): undefined reference to `syscall_trace_enter'
arch/m68k/platform/68328/built-in.o: In function `do_trace':
(.text+0x4c): undefined reference to `syscall_trace_leave'Change the conditional check that includes these functions to be true for the !defined(CONFIG_MMU) case as well.
--- arch/m68k/kernel/ptrace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/m68k/kernel/ptrace.c +1 -1
@@ -286,7 +286,7 @@ asmlinkage void syscall_trace(void) } } -#ifdef CONFIG_COLDFIRE +#if defined(CONFIG_COLDFIRE ) || !defined(CONFIG_MMU ) asmlinkage int syscall_trace_enter(void) {int ret =0 ;
Signature · 9 lines
1.7.0.4 _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
Quoted 13 lines · On Fri, Jun 8, 2012 at 7:28 AM, <[email protected]> wrote:
From: Greg Ungerer <[email protected]>
The assembler entry code calls directly to the
syscall_trace_enter()andsyscall_trace_leave()functions. But currently they are conditionaly compiled out for the non-MMU classic m68k CPU types (so 68328 for example), resulting in a link error:LD vmlinux
arch/m68k/platform/68328/built-in.o: In function `do_trace':
(.text+0x1c): undefined reference tosyscall_trace_enter' arch/m68k/platform/68328/built-in.o: In functiondo_trace':
(.text+0x4c): undefined reference to `syscall_trace_leave'
Quoted 4 lines
Change the conditional check that includes these functions to be true for the !defined(CONFIG_MMU) case as well.
Signed-off-by Greg Ungerer <[email protected]>
Hmm, should add syscall_trace support to M68KCLASSIC/MMU...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi Geert,
Quoted 14 lines · Geert Uytterhoeven
Quoted 13 lines · On Fri, Jun 8, 2012 at 7:28 AM,<[email protected]> wrote:
From: Greg Ungerer<[email protected]>
The assembler entry code calls directly to the
syscall_trace_enter()andsyscall_trace_leave()functions. But currently they are conditionaly compiled out for the non-MMU classic m68k CPU types (so 68328 for example), resulting in a link error:LD vmlinux arch/m68k/platform/68328/built-in.o: In function `do_trace': (.text+0x1c): undefined reference to `syscall_trace_enter' arch/m68k/platform/68328/built-in.o: In function `do_trace': (.text+0x4c): undefined reference to `syscall_trace_leave'
Quoted 8 lines
Quoted 4 lines
Change the conditional check that includes these functions to be true for the !defined(CONFIG_MMU) case as well.
Signed-off-by Greg Ungerer<[email protected]>Hmm, should add
syscall_tracesupport to M68KCLASSIC/MMU...
That would be nice :-)
Regards
Greg
Quoted 10 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html