Skip to content

Instantly share code, notes, and snippets.

@dileks
Created April 11, 2011 20:58
Show Gist options
  • Select an option

  • Save dileks/914329 to your computer and use it in GitHub Desktop.

Select an option

Save dileks/914329 to your computer and use it in GitHub Desktop.
x86_32: Breakage in arch/x86/kernel/ptrace.c
[ build.log ]
...
CC arch/x86/kernel/ptrace.o
clang: warning: argument unused during compilation: '-freg-struct-return'
clang: warning: argument unused during compilation: '-mpreferred-stack-boundary=2'
clang: warning: argument unused during compilation: '-fno-optimize-sibling-calls'
arch/x86/kernel/ptrace.c:1350:17: error: function declared with with regparm(3) attribute was previously declared without the regparm attribute
asmregparm long syscall_trace_enter(struct pt_regs *regs)
^
/home/sd/src/lll-project/kernel/arch/x86/include/asm/ptrace.h:146:13: note: previous declaration is here
extern long syscall_trace_enter(struct pt_regs *);
^
arch/x86/kernel/ptrace.c:1395:17: error: function declared with with regparm(3) attribute was previously declared without the regparm attribute
asmregparm void syscall_trace_leave(struct pt_regs *regs)
^
/home/sd/src/lll-project/kernel/arch/x86/include/asm/ptrace.h:147:13: note: previous declaration is here
extern void syscall_trace_leave(struct pt_regs *);
^
2 errors generated.
make[4]: *** [arch/x86/kernel/ptrace.o] Error 1
make[3]: *** [arch/x86/kernel] Error 2
make[2]: *** [arch/x86] Error 2
make[1]: *** [deb-pkg] Error 2
make: *** [deb-pkg] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment