x86: kprobes.c fix compilation warning
authorJaswinder Singh Rajput <jaswinder@kernel.org>
Wed, 18 Mar 2009 12:07:45 +0000 (17:37 +0530)
committerIngo Molnar <mingo@elte.hu>
Wed, 18 Mar 2009 12:21:01 +0000 (13:21 +0100)
arch/x86/kernel/kprobes.c:196: warning: passing argument 1 of ‘search_exception_tables’ makes integer from pointer without a cast

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference:<49BED952.2050809@redhat.com>
LKML-Reference: <1237378065.13488.2.camel@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/kprobes.c

index 4558dd3918cf3ec66263d7ac8e705acb4a5ea5a9..55b94614e34845cbab6e340754295e0d74462fa8 100644 (file)
@@ -193,7 +193,7 @@ static int __kprobes can_boost(kprobe_opcode_t *opcodes)
        kprobe_opcode_t opcode;
        kprobe_opcode_t *orig_opcodes = opcodes;
 
-       if (search_exception_tables(opcodes))
+       if (search_exception_tables((unsigned long)opcodes))
                return 0;       /* Page fault may occur on this address. */
 
 retry: