[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190624135105.15579-12-tranmanphong@gmail.com>
Date: Mon, 24 Jun 2019 20:51:01 +0700
From: Phong Tran <tranmanphong@...il.com>
To: tranmanphong@...il.com
Cc: acme@...nel.org, alexander.shishkin@...ux.intel.com,
alexander.sverdlin@...il.com, allison@...utok.net, andrew@...n.ch,
ast@...nel.org, bgolaszewski@...libre.com, bpf@...r.kernel.org,
daniel@...earbox.net, daniel@...que.org, dmg@...ingmachine.org,
festevam@...il.com, gerg@...inux.org, gregkh@...uxfoundation.org,
gregory.clement@...tlin.com, haojian.zhuang@...il.com,
hsweeten@...ionengravers.com, illusionist.neo@...il.com,
info@...ux.net, jason@...edaemon.net, jolsa@...hat.com,
kafai@...com, kernel@...gutronix.de, kgene@...nel.org,
krzk@...nel.org, kstewart@...uxfoundation.org,
linux-arm-kernel@...ts.infradead.org, linux-imx@....com,
linux-kernel@...r.kernel.org, linux-omap@...r.kernel.org,
linux-samsung-soc@...r.kernel.org, linux@...linux.org.uk,
liviu.dudau@....com, lkundrak@...sk, lorenzo.pieralisi@....com,
mark.rutland@....com, mingo@...hat.com, namhyung@...nel.org,
netdev@...r.kernel.org, nsekhar@...com, peterz@...radead.org,
robert.jarzmik@...e.fr, s.hauer@...gutronix.de,
sebastian.hesselbarth@...il.com, shawnguo@...nel.org,
songliubraving@...com, sudeep.holla@....com, swinslow@...il.com,
tglx@...utronix.de, tony@...mide.com, will@...nel.org, yhs@...com
Subject: [PATCH V2 11/15] ARM: pxa: cleanup cppcheck shifting errors
[arch/arm/mach-pxa/irq.c:117]: (error) Shifting signed 32-bit value by
31 bits is undefined behaviour
[arch/arm/mach-pxa/irq.c:131]: (error) Shifting signed 32-bit value by
31 bits is undefined behaviour
Signed-off-by: Phong Tran <tranmanphong@...il.com>
---
arch/arm/mach-pxa/irq.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c
index 74efc3ab595f..cbbb5cfecb60 100644
--- a/arch/arm/mach-pxa/irq.c
+++ b/arch/arm/mach-pxa/irq.c
@@ -35,9 +35,9 @@
#define IPR(i) (((i) < 32) ? (0x01c + ((i) << 2)) : \
((i) < 64) ? (0x0b0 + (((i) - 32) << 2)) : \
(0x144 + (((i) - 64) << 2)))
-#define ICHP_VAL_IRQ (1 << 31)
+#define ICHP_VAL_IRQ BIT(31)
#define ICHP_IRQ(i) (((i) >> 16) & 0x7fff)
-#define IPR_VALID (1 << 31)
+#define IPR_VALID BIT(31)
#define MAX_INTERNAL_IRQS 128
--
2.11.0
Powered by blists - more mailing lists