From: rric@kernel.org (Robert Richter)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] GICv3: Fixing 32 bit compatibility
Date: Mon, 8 Sep 2014 16:11:19 +0200 [thread overview]
Message-ID: <1410185480-5153-1-git-send-email-rric@kernel.org> (raw)
From: Robert Richter <rrichter@cavium.com>
Fixing 32 bit compatibility by using ULL for u64 constants.
Signed-off-by: Robert Richter <rrichter@cavium.com>
---
drivers/irqchip/irq-gic-v3.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
index 57eaa5a0b1e3..9e13c87c7dfe 100644
--- a/drivers/irqchip/irq-gic-v3.c
+++ b/drivers/irqchip/irq-gic-v3.c
@@ -441,7 +441,7 @@ static u16 gic_compute_target_list(int *base_cpu, const struct cpumask *mask,
mpidr = cpu_logical_map(cpu);
- if (cluster_id != (mpidr & ~0xffUL)) {
+ if (cluster_id != (mpidr & ~0xffULL)) {
cpu--;
goto out;
}
@@ -479,7 +479,7 @@ static void gic_raise_softirq(const struct cpumask *mask, unsigned int irq)
smp_wmb();
for_each_cpu_mask(cpu, *mask) {
- u64 cluster_id = cpu_logical_map(cpu) & ~0xffUL;
+ u64 cluster_id = cpu_logical_map(cpu) & ~0xffULL;
u16 tlist;
tlist = gic_compute_target_list(&cpu, mask, cluster_id);
--
2.0.1
WARNING: multiple messages have this Message-ID (diff)
From: Robert Richter <rric@kernel.org>
To: Thomas Gleixner <tglx@linutronix.de>,
Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>,
linux-arm-kernel@lists.infradead.org,
Robert Richter <rrichter@cavium.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH] GICv3: Fixing 32 bit compatibility
Date: Mon, 8 Sep 2014 16:11:19 +0200 [thread overview]
Message-ID: <1410185480-5153-1-git-send-email-rric@kernel.org> (raw)
From: Robert Richter <rrichter@cavium.com>
Fixing 32 bit compatibility by using ULL for u64 constants.
Signed-off-by: Robert Richter <rrichter@cavium.com>
---
drivers/irqchip/irq-gic-v3.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
index 57eaa5a0b1e3..9e13c87c7dfe 100644
--- a/drivers/irqchip/irq-gic-v3.c
+++ b/drivers/irqchip/irq-gic-v3.c
@@ -441,7 +441,7 @@ static u16 gic_compute_target_list(int *base_cpu, const struct cpumask *mask,
mpidr = cpu_logical_map(cpu);
- if (cluster_id != (mpidr & ~0xffUL)) {
+ if (cluster_id != (mpidr & ~0xffULL)) {
cpu--;
goto out;
}
@@ -479,7 +479,7 @@ static void gic_raise_softirq(const struct cpumask *mask, unsigned int irq)
smp_wmb();
for_each_cpu_mask(cpu, *mask) {
- u64 cluster_id = cpu_logical_map(cpu) & ~0xffUL;
+ u64 cluster_id = cpu_logical_map(cpu) & ~0xffULL;
u16 tlist;
tlist = gic_compute_target_list(&cpu, mask, cluster_id);
--
2.0.1
next reply other threads:[~2014-09-08 14:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-08 14:11 Robert Richter [this message]
2014-09-08 14:11 ` [PATCH] GICv3: Fixing 32 bit compatibility Robert Richter
2014-09-08 14:24 ` Marc Zyngier
2014-09-08 14:24 ` Marc Zyngier
2014-09-14 5:55 ` Jason Cooper
2014-09-14 5:55 ` Jason Cooper
2014-09-08 14:31 ` [PATCH] ITS: " Robert Richter
2014-09-08 14:31 ` Robert Richter
2014-09-09 8:00 ` [PATCH] GICv3: " Uwe Kleine-König
2014-09-09 8:00 ` Uwe Kleine-König
2014-09-09 9:12 ` Robert Richter
2014-09-09 9:12 ` Robert Richter
2014-09-09 9:19 ` Uwe Kleine-König
2014-09-09 9:19 ` Uwe Kleine-König
2014-09-09 9:26 ` Robert Richter
2014-09-09 9:26 ` Robert Richter
2014-09-09 9:43 ` Uwe Kleine-König
2014-09-09 9:43 ` Uwe Kleine-König
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=1410185480-5153-1-git-send-email-rric@kernel.org \
--to=rric@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.