From: Andrew Morton <akpm@osdl.org>

lib/preempt.c: In function `add_preempt_count':
lib/preempt.c:44: warning: passing arg 1 of `in_lock_functions' makes integer from pointer without a cast
lib/preempt.c:46: warning: passing arg 1 of `in_lock_functions' makes integer from pointer without a cast

Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 lib/preempt.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff -puN lib/preempt.c~debug-preempt-tracing-fix lib/preempt.c
--- devel/lib/preempt.c~debug-preempt-tracing-fix	2005-08-06 15:48:15.000000000 -0700
+++ devel-akpm/lib/preempt.c	2005-08-06 15:48:15.000000000 -0700
@@ -37,13 +37,14 @@ void fastcall add_preempt_count(int val)
 	 * constant overhead per preempt-disable.
 	 */
 	if (idx < MAX_PREEMPT_TRACE) {
-		void *caller = __builtin_return_address(0), *parent = NULL;
+		void *caller = __builtin_return_address(0);
+		void *parent = NULL;
 
 #ifdef CONFIG_FRAME_POINTER
 		parent = __builtin_return_address(1);
-		if (in_lock_functions(parent)) {
+		if (in_lock_functions((unsigned long)parent)) {
 			parent = __builtin_return_address(2);
-			if (in_lock_functions(parent))
+			if (in_lock_functions((unsigned long)parent))
 				parent = __builtin_return_address(3);
 		}
 #endif
_