Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1240131
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH RT 3/4] genirq: Fix pointer cast warning for randomness on 32-bit architectures |
| Date | 2015-10-06 05:00 +0200 |
| Message-ID | <qgqDU-1vF-9@gated-at.bofh.it> (permalink) |
| References | <qgqud-1kk-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
gcc warns about casting directly from a 32-bit pointer to u64. In the current rt patch series we cast to unsigned long to avoid the warning, but this fix hasn't been backported to all versions. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Cc: <stable-rt@vger.kernel.org> # 3.2 3.4 --- kernel/irq/manage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index e4549b2..964cf41 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -897,7 +897,8 @@ 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 } -- Ben Hutchings All the simple programs have been written, and all the good names taken.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH RT 0/4] Warning fixes for PREEMPT_RT Ben Hutchings <ben@decadent.org.uk> - 2015-10-06 04:50 +0200 [PATCH RT 2/4] rtmutex: Fix rt_mutex_timed_fastlock() slowfn type mismatch up to 3.10 Ben Hutchings <ben@decadent.org.uk> - 2015-10-06 05:00 +0200 [PATCH RT 1/4] KVM: lapic: Fix name of timer handler before 3.7 Ben Hutchings <ben@decadent.org.uk> - 2015-10-06 05:00 +0200 [PATCH RT 4/4] work-simple: Add missing #include <linux/export.h> Ben Hutchings <ben@decadent.org.uk> - 2015-10-06 05:00 +0200 [PATCH RT 3/4] genirq: Fix pointer cast warning for randomness on 32-bit architectures Ben Hutchings <ben@decadent.org.uk> - 2015-10-06 05:00 +0200
csiph-web