aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-10-31 17:06:19 +0100
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2013-06-06 21:28:22 -0400
commit6b6b131b2b244ad8efa1059039a86acaa594c14d (patch)
tree6a6a9acc6a5ede87e69fbb1e26d642384978cc23
parent9f0c935752bc6a1ef9daca164d733467ce4905b1 (diff)
genirq: Fix 32bit random changes fallout
On 32bit sytems pointers are surprisingly 32bit wide. So gcc complains correctly about a cast to a different size. Use an cast to unsigned long instead which handles this correctly for bioth 32 and 64 bit. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable-rt@vger.kernel.org
-rw-r--r--kernel/irq/manage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index bf3228b44c28..006556747a03 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -855,7 +855,7 @@ static int irq_thread(void *data)
#ifdef CONFIG_PREEMPT_RT_FULL
migrate_disable();
add_interrupt_randomness(action->irq, 0,
- desc->random_ip ^ (u64) action);
+ desc->random_ip ^ (unsigned long) action);
migrate_enable();
#endif
wake_threads_waitq(desc);