public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trivial: remove warning from arch/x86/kernel/kprobes.c
@ 2009-03-25 12:33 Frank Seidel
  2009-03-25 12:38 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Seidel @ 2009-03-25 12:33 UTC (permalink / raw)
  To: linux kernel
  Cc: akpm, Masami Hiramatsu, Arjan van de Ven, Jim Keniston, tglx,
	mingo, hpa, x86, Frank Seidel

From: Frank Seidel <frank@f-seidel.de>

Remove warning (makes integer from pointer without a cast)
from build messages.

Signed-off-by: Frank Seidel <frank@f-seidel.de>
---
 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. */
 
 retry:

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] trivial: remove warning from arch/x86/kernel/kprobes.c
  2009-03-25 12:33 [PATCH] trivial: remove warning from arch/x86/kernel/kprobes.c Frank Seidel
@ 2009-03-25 12:38 ` Ingo Molnar
  2009-03-25 12:43   ` Frank Seidel
  0 siblings, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2009-03-25 12:38 UTC (permalink / raw)
  To: Frank Seidel
  Cc: linux kernel, akpm, Masami Hiramatsu, Arjan van de Ven,
	Jim Keniston, tglx, mingo, hpa, x86, Frank Seidel


* Frank Seidel <fseidel@kernel.org> wrote:

> From: Frank Seidel <frank@f-seidel.de>
> 
> Remove warning (makes integer from pointer without a cast)
> from build messages.
> 
> Signed-off-by: Frank Seidel <frank@f-seidel.de>
> ---
>  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

---------->
>From cde5edbda8ba7d600154ce4171125a48e4d2a21b Mon Sep 17 00:00:00 2001
From: Jaswinder Singh Rajput <jaswinder@kernel.org>
Date: Wed, 18 Mar 2009 17:37:45 +0530
Subject: [PATCH] x86: kprobes.c fix compilation warning
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/kprobes.c b/arch/x86/kernel/kprobes.c
index 4558dd3..55b9461 100644
--- a/arch/x86/kernel/kprobes.c
+++ b/arch/x86/kernel/kprobes.c
@@ -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:

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] trivial: remove warning from arch/x86/kernel/kprobes.c
  2009-03-25 12:38 ` Ingo Molnar
@ 2009-03-25 12:43   ` Frank Seidel
  2009-03-25 13:15     ` Masami Hiramatsu
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Seidel @ 2009-03-25 12:43 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Frank Seidel, linux kernel, akpm, Masami Hiramatsu,
	Arjan van de Ven, Jim Keniston, tglx, mingo, hpa, x86

Ingo Molnar wrote.
> fixed in the x86 tree:

Oops, ok, sorry for the noise..

Frank

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] trivial: remove warning from arch/x86/kernel/kprobes.c
  2009-03-25 12:43   ` Frank Seidel
@ 2009-03-25 13:15     ` Masami Hiramatsu
  0 siblings, 0 replies; 4+ messages in thread
From: Masami Hiramatsu @ 2009-03-25 13:15 UTC (permalink / raw)
  To: Frank Seidel
  Cc: Ingo Molnar, linux kernel, akpm, Arjan van de Ven, Jim Keniston,
	tglx, mingo, hpa, x86

Frank Seidel wrote:
> Ingo Molnar wrote.
>> fixed in the x86 tree:
> 
> Oops, ok, sorry for the noise..

Anyway, thank you for fixing!


-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-25 13:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-25 12:33 [PATCH] trivial: remove warning from arch/x86/kernel/kprobes.c Frank Seidel
2009-03-25 12:38 ` Ingo Molnar
2009-03-25 12:43   ` Frank Seidel
2009-03-25 13:15     ` Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox