[ARM] arch/arm/kernel/process.c: Fix warning
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 16 May 2006 10:33:15 +0000 (11:33 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 16 May 2006 10:39:32 +0000 (11:39 +0100)
arch/arm/kernel/process.c:314: warning: assignment makes integer from pointer without a cast

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/process.c

index 1a1539e3a9462eef17f949445f116356bee810de..7df6e1aaa323b83ae0cedad37a943404d106868f 100644 (file)
@@ -311,7 +311,7 @@ void free_thread_info(struct thread_info *thread)
                struct thread_info_list *th = &get_cpu_var(thread_info_list);
                if (th->nr < EXTRA_TASK_STRUCT) {
                        unsigned long *p = (unsigned long *)thread;
-                       p[0] = th->head;
+                       p[0] = (unsigned long)th->head;
                        th->head = p;
                        th->nr += 1;
                        put_cpu_var(thread_info_list);