]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ftrace: build fix with gcc 4.3
authorIngo Molnar <mingo@elte.hu>
Tue, 17 Jun 2008 15:43:02 +0000 (17:43 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 17 Jun 2008 15:43:53 +0000 (17:43 +0200)
fix:

arch/x86/kernel/ftrace.c: Assembler messages:
arch/x86/kernel/ftrace.c:82: Error: bad register name `%sil'
make[1]: *** [arch/x86/kernel/ftrace.o] Error 1

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/ftrace.c

index bc5cf8d46742fb476c6d330dcc9dd737e15fe5cf..55828149e01e90fccf6ac2f9f4fd677b496c8766 100644 (file)
@@ -88,7 +88,7 @@ ftrace_modify_code(unsigned long ip, unsigned char *old_code,
                ".previous\n"
                _ASM_EXTABLE(1b, 3b)
                : "=r"(faulted), "=a"(replaced)
-               : "r"(ip), "r"(new), "r"(newch),
+               : "r"(ip), "r"(new), "c"(newch),
                  "0"(faulted), "a"(old)
                : "memory");
        sync_core();