Commit 9d494ccb authored by Russell King's avatar Russell King Committed by Russell King

[ARM] arch/arm/kernel/process.c: Fix warning

arch/arm/kernel/process.c:314: warning: assignment makes integer from pointer without a cast
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 478922c2
...@@ -311,7 +311,7 @@ void free_thread_info(struct thread_info *thread) ...@@ -311,7 +311,7 @@ void free_thread_info(struct thread_info *thread)
struct thread_info_list *th = &get_cpu_var(thread_info_list); struct thread_info_list *th = &get_cpu_var(thread_info_list);
if (th->nr < EXTRA_TASK_STRUCT) { if (th->nr < EXTRA_TASK_STRUCT) {
unsigned long *p = (unsigned long *)thread; unsigned long *p = (unsigned long *)thread;
p[0] = th->head; p[0] = (unsigned long)th->head;
th->head = p; th->head = p;
th->nr += 1; th->nr += 1;
put_cpu_var(thread_info_list); put_cpu_var(thread_info_list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment