Skip to contentSkip to conversation

x86: kprobes.c fix compilation warning

PATCH New Jaswinder Singh Rajput 1 participant 1 message Mar 18, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: kprobes.c fix compilation warning

Subject: [PATCH] x86: kprobes.c fix compilation warning

arch/x86/kernel/kprobes.c:196: warning: passing argument 1 of ‘search_exception_tables’ makes integer from pointer without a cast

---
 arch/x86/kernel/kprobes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/kprobes.c +1 -1
index cfb3d81..ea06096 100644
@@ -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:
Signature · 1 line
1.6.0.6