From patchwork Mon Sep 8 14:11:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Richter X-Patchwork-Id: 4862621 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BDA92C0338 for ; Mon, 8 Sep 2014 14:14:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 277D320108 for ; Mon, 8 Sep 2014 14:14:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0CE85200E6 for ; Mon, 8 Sep 2014 14:14:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XQzfk-0006lP-So; Mon, 08 Sep 2014 14:12:00 +0000 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XQzfi-0006ew-NP for linux-arm-kernel@lists.infradead.org; Mon, 08 Sep 2014 14:11:59 +0000 Received: by mail-wg0-f43.google.com with SMTP id x12so2302288wgg.2 for ; Mon, 08 Sep 2014 07:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=fiTIShmbOT1+W7gBSR/GYoNbx6vV9ynn87zm9fBtNFk=; b=R84mL9o5qziV4WzQeIDMsQ7mhZWEQiha94NDEnkal2UB0GK+9Na0Pa8nIQz1XpYB+C FP75f63Gz8lO6/HKA1NhtQuVuFv1dIMAhsjKlI7IA69oQqXKusMBYPuDq7a7eURJXs/f 3UId8aX0be1PhEx/VE5cATtYvQerqj0Ge1VLv3zs1Q732qbvXMyndr05iVKpmIAZ4YkV LD3k/JgI5quB91loWYyWEvDnZpHin35VuiN4T1N7VWligLRnGiFc4V6LfNdlRynCOimW Xaz+lmLJqpI2H+3C+OaSXcM9Epc1BnsnjOdk8Xw05qatCNgBpa+zd63oKBa81MUnnLA6 5pSQ== X-Received: by 10.180.188.65 with SMTP id fy1mr5205483wic.21.1410185495938; Mon, 08 Sep 2014 07:11:35 -0700 (PDT) Received: from rric.localhost (f053085086.adsl.alicedsl.de. [78.53.85.86]) by mx.google.com with ESMTPSA id fe1sm2851369wib.1.2014.09.08.07.11.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Sep 2014 07:11:35 -0700 (PDT) From: Robert Richter To: Thomas Gleixner , Jason Cooper Subject: [PATCH] GICv3: Fixing 32 bit compatibility Date: Mon, 8 Sep 2014 16:11:19 +0200 Message-Id: <1410185480-5153-1-git-send-email-rric@kernel.org> X-Mailer: git-send-email 2.0.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140908_071158_927177_FB8F4735 X-CRM114-Status: GOOD ( 11.30 ) X-Spam-Score: 0.0 (/) Cc: Marc Zyngier , Robert Richter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Robert Richter Fixing 32 bit compatibility by using ULL for u64 constants. Signed-off-by: Robert Richter --- 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);