Re: [PATCH] trivial: remove warning from arch/x86/kernel/kprobes.c

From: Ingo Molnar
Date: Wed Mar 25 2009 - 08:40:29 EST



* Frank Seidel <fseidel@xxxxxxxxxx> wrote:

> From: Frank Seidel <frank@xxxxxxxxxxx>
>
> Remove warning (makes integer from pointer without a cast)
> from build messages.
>
> Signed-off-by: Frank Seidel <frank@xxxxxxxxxxx>
> ---
> arch/x86/kernel/kprobes.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/arch/x86/kernel/kprobes.c
> +++ b/arch/x86/kernel/kprobes.c
> @@ -193,7 +193,7 @@ static int __kprobes can_boost(kprobe_op
> 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. */

fixed in the x86 tree:

http://people.redhat.com/mingo/tip.git/README

a couple of days ago. (see the commit below)

Ingo

---------->