Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1493597
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH RT 1/2] genirq: Fix pointer cast warning for randomness on 32-bit architectures |
| Date | 2016-09-29 19:10 +0200 |
| Message-ID | <smN0m-6UD-13@gated-at.bofh.it> (permalink) |
| References | <smMQF-6Co-1@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 --- 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 c4677795d7c8..b1683ba80c88 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 }
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH RT 0/2] Warning fixes for 3.2-rt (and other branches) Ben Hutchings <ben@decadent.org.uk> - 2016-09-29 19:00 +0200 [PATCH RT 1/2] genirq: Fix pointer cast warning for randomness on 32-bit architectures Ben Hutchings <ben@decadent.org.uk> - 2016-09-29 19:10 +0200 [PATCH RT 2/2] work-simple: Add missing #include <linux/export.h> Ben Hutchings <ben@decadent.org.uk> - 2016-09-30 11:10 +0200
csiph-web