From: Ben Hutchings <ben@decadent.org.uk>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org, stable-rt@vger.kernel.org
Subject: [PATCH RT 1/2] genirq: Fix pointer cast warning for randomness on 32-bit architectures
Date: Thu, 29 Sep 2016 18:00:41 +0100 [thread overview]
Message-ID: <20160929170041.GW10601@decadent.org.uk> (raw)
In-Reply-To: <20160929165858.GV10601@decadent.org.uk>
[-- Attachment #1: Type: text/plain, Size: 803 bytes --]
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
}
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
next prev parent reply other threads:[~2016-09-29 17:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-29 16:58 [PATCH RT 0/2] Warning fixes for 3.2-rt (and other branches) Ben Hutchings
2016-09-29 17:00 ` Ben Hutchings [this message]
2016-09-30 9:05 ` [PATCH RT 2/2] work-simple: Add missing #include <linux/export.h> Ben Hutchings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160929170041.GW10601@decadent.org.uk \
--to=ben@decadent.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=stable-rt@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®