public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Phong Tran <tranmanphong@gmail•com>
To: mark.rutland@arm•com, kstewart@linuxfoundation•org,
	songliubraving@fb•com, andrew@lunn•ch, peterz@infradead•org,
	nsekhar@ti•com, ast@kernel•org, jolsa@redhat•com,
	netdev@vger•kernel.org, gerg@uclinux•org,
	lorenzo.pieralisi@arm•com, will@kernel•org,
	linux-samsung-soc@vger•kernel.org, daniel@iogearbox•net,
	tranmanphong@gmail•com, festevam@gmail•com,
	gregory.clement@bootlin•com, allison@lohutok•net,
	linux@armlinux•org.uk, krzk@kernel•org, haojian.zhuang@gmail•com,
	bgolaszewski@baylibre•com, tony@atomide•com, mingo@redhat•com,
	linux-imx@nxp•com, yhs@fb•com, sebastian.hesselbarth@gmail•com,
	illusionist.neo@gmail•com, jason@lakedaemon•net,
	liviu.dudau@arm•com, s.hauer@pengutronix•de, acme@kernel•org,
	lkundrak@v3•sk, robert.jarzmik@free•fr, dmg@turingmachine•org,
	swinslow@gmail•com, namhyung@kernel•org, tglx@linutronix•de,
	linux-omap@vger•kernel.org, alexander.sverdlin@gmail•com,
	linux-arm-kernel@lists•infradead.org, info@metux•net,
	gregkh@linuxfoundation•org, linux-kernel@vger•kernel.org,
	alexander.shishkin@linux•intel.com, hsweeten@visionengravers•com,
	kgene@kernel•org, kernel@pengutronix•de, sudeep.holla@arm•com,
	bpf@vger•kernel.org, shawnguo@kernel•org, kafai@fb•com,
	daniel@zonque•org
Subject: [PATCH 01/15] arm: perf: cleanup cppcheck shifting error
Date: Sun, 23 Jun 2019 22:12:59 +0700	[thread overview]
Message-ID: <20190623151313.970-2-tranmanphong@gmail.com> (raw)
In-Reply-To: <20190623151313.970-1-tranmanphong@gmail.com>

fix "Shifting signed 32-bit value by 31 bits is undefined behaviour
errors"

[arch/arm/kernel/perf_event_v7.c:1080]: (error) Shifting signed 32-bit
value by 31 bits is undefined behaviour
[arch/arm/kernel/perf_event_v7.c:1436]: (error) Shifting signed 32-bit
value by 31 bits is undefined behaviour
[arch/arm/kernel/perf_event_v7.c:1783]: (error) Shifting signed 32-bit
value by 31 bits is undefined behaviour

Signed-off-by: Phong Tran <tranmanphong@gmail•com>
---
 arch/arm/kernel/perf_event_v7.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/kernel/perf_event_v7.c b/arch/arm/kernel/perf_event_v7.c
index a4fb0f8b8f84..83dc472a39b2 100644
--- a/arch/arm/kernel/perf_event_v7.c
+++ b/arch/arm/kernel/perf_event_v7.c
@@ -697,9 +697,9 @@ static struct attribute_group armv7_pmuv2_events_attr_group = {
 /*
  * Event filters for PMUv2
  */
-#define	ARMV7_EXCLUDE_PL1	(1 << 31)
-#define	ARMV7_EXCLUDE_USER	(1 << 30)
-#define	ARMV7_INCLUDE_HYP	(1 << 27)
+#define	ARMV7_EXCLUDE_PL1	(1U << 31)
+#define	ARMV7_EXCLUDE_USER	(1U << 30)
+#define	ARMV7_INCLUDE_HYP	(1U << 27)
 
 /*
  * Secure debug enable reg
-- 
2.11.0


  reply	other threads:[~2019-06-23 15:14 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-23 15:12 [PATCH 00/15] cleanup cppcheck signed shifting errors Phong Tran
2019-06-23 15:12 ` Phong Tran [this message]
2019-06-24  7:11   ` [PATCH 01/15] arm: perf: cleanup cppcheck shifting error Peter Zijlstra
2019-06-23 15:13 ` [PATCH 02/15] ARM: davinci: cleanup cppcheck shifting errors Phong Tran
2019-06-23 15:13 ` [PATCH 03/15] ARM: ep93xx: " Phong Tran
2019-06-23 15:23   ` Alexander Sverdlin
2019-06-23 15:13 ` [PATCH 04/15] ARM: exynos: cleanup cppcheck shifting error Phong Tran
2019-06-23 19:12   ` Krzysztof Kozlowski
2019-06-23 15:13 ` [PATCH 05/15] ARM: footbridge: " Phong Tran
2019-06-23 15:13 ` [PATCH 06/15] ARM: imx: cleanup cppcheck shifting errors Phong Tran
2019-06-24  3:16   ` Shawn Guo
2019-06-23 15:13 ` [PATCH 07/15] ARM: ks8695: cleanup cppcheck shifting error Phong Tran
2019-06-23 15:13 ` [PATCH 08/15] ARM: mmp: cleanup cppcheck shifting errors Phong Tran
2019-06-24  7:35   ` Lubomir Rintel
2019-06-23 15:13 ` [PATCH 09/15] ARM: omap2: cleanup cppcheck shifting error Phong Tran
2019-06-23 15:13 ` [PATCH 10/15] ARM: orion5x: cleanup cppcheck shifting errors Phong Tran
2019-06-23 15:23   ` Andrew Lunn
2019-06-24  7:31   ` Gregory CLEMENT
2019-06-23 15:13 ` [PATCH 11/15] ARM: pxa: " Phong Tran
2019-06-23 15:13 ` [PATCH 12/15] ARM: vexpress: cleanup cppcheck shifting error Phong Tran
2019-06-23 15:13 ` [PATCH 13/15] ARM: mm: cleanup cppcheck shifting errors Phong Tran
2019-06-23 15:13 ` [PATCH 14/15] ARM: bpf: cleanup cppcheck shifting error Phong Tran
2019-06-23 15:13 ` [PATCH 15/15] ARM: vfp: cleanup cppcheck shifting errors Phong Tran
2019-06-24 13:50 ` [PATCH V2 00/15] cleanup cppcheck signed " Phong Tran
2019-06-24 13:50   ` [PATCH V2 01/15] arm: perf: cleanup cppcheck shifting error Phong Tran
2019-06-24 13:50   ` [PATCH V2 02/15] ARM: davinci: cleanup cppcheck shifting errors Phong Tran
2019-06-24 13:50   ` [PATCH V2 03/15] ARM: ep93xx: " Phong Tran
2019-06-24 19:16     ` Alexander Sverdlin
2019-06-24 13:50   ` [PATCH V2 04/15] ARM: exynos: cleanup cppcheck shifting error Phong Tran
2019-06-24 13:58     ` Russell King - ARM Linux admin
2019-06-24 13:50   ` [PATCH V2 05/15] ARM: footbridge: " Phong Tran
2019-06-24 13:50   ` [PATCH V2 06/15] ARM: imx: cleanup cppcheck shifting errors Phong Tran
2019-06-24 13:50   ` [PATCH V2 07/15] ARM: ks8695: cleanup cppcheck shifting error Phong Tran
2019-06-24 13:50   ` [PATCH V2 08/15] ARM: mmp: cleanup cppcheck shifting errors Phong Tran
2019-06-24 13:59     ` Russell King - ARM Linux admin
2019-06-24 13:50   ` [PATCH V2 09/15] ARM: omap2: cleanup cppcheck shifting error Phong Tran
2019-06-24 13:51   ` [PATCH V2 10/15] ARM: orion5x: cleanup cppcheck shifting errors Phong Tran
2019-06-24 13:54     ` Andrew Lunn
2019-06-24 13:51   ` [PATCH V2 11/15] ARM: pxa: " Phong Tran
2019-06-24 13:51   ` [PATCH V2 12/15] ARM: vexpress: cleanup cppcheck shifting error Phong Tran
2019-06-24 13:57     ` Russell King - ARM Linux admin
2019-06-24 13:51   ` [PATCH V2 13/15] ARM: mm: cleanup cppcheck shifting errors Phong Tran
2019-06-24 13:51   ` [PATCH V2 14/15] ARM: bpf: cleanup cppcheck shifting error Phong Tran
2019-06-24 14:00     ` Russell King - ARM Linux admin
2019-06-24 13:51   ` [PATCH V2 15/15] ARM: vfp: cleanup cppcheck shifting errors Phong Tran
2019-06-24 14:02   ` [PATCH V2 00/15] cleanup cppcheck signed " Russell King - ARM Linux admin
2019-06-24 15:27   ` Peter Zijlstra
2019-06-24 15:28     ` Peter Zijlstra
2019-06-25  4:03   ` [PATCH V3 " Phong Tran
2019-06-25  4:03     ` [PATCH V3 01/15] arm: perf: cleanup cppcheck shifting error Phong Tran
2019-06-25 17:21       ` Will Deacon
2019-06-25  4:03     ` [PATCH V3 02/15] ARM: davinci: cleanup cppcheck shifting errors Phong Tran
2019-06-25  4:03     ` [PATCH V3 03/15] ARM: ep93xx: " Phong Tran
2019-06-25  4:03     ` [PATCH V3 04/15] ARM: exynos: cleanup cppcheck shifting error Phong Tran
2019-06-25 18:49       ` Krzysztof Kozlowski
2019-06-25  4:03     ` [PATCH V3 05/15] ARM: footbridge: " Phong Tran
2019-06-25  4:03     ` [PATCH V3 06/15] ARM: imx: cleanup cppcheck shifting errors Phong Tran
2019-06-25  4:03     ` [PATCH V3 07/15] ARM: ks8695: cleanup cppcheck shifting error Phong Tran
2019-06-25  4:03     ` [PATCH V3 08/15] ARM: mmp: cleanup cppcheck shifting errors Phong Tran
2019-06-25  4:03     ` [PATCH V3 09/15] ARM: omap2: cleanup cppcheck shifting error Phong Tran
2019-06-25  4:03     ` [PATCH V3 10/15] ARM: orion5x: cleanup cppcheck shifting errors Phong Tran
2019-06-25  4:03     ` [PATCH V3 11/15] ARM: pxa: " Phong Tran
2019-06-25  4:03     ` [PATCH V3 12/15] ARM: vexpress: cleanup cppcheck shifting error Phong Tran
2019-06-25 17:24       ` Sudeep Holla
2019-06-25  4:03     ` [PATCH V3 13/15] ARM: mm: cleanup cppcheck shifting errors Phong Tran
2019-06-25  4:03     ` [PATCH V3 14/15] ARM: bpf: cleanup cppcheck shifting error Phong Tran
2019-06-25  4:03     ` [PATCH V3 15/15] ARM: vfp: cleanup cppcheck shifting errors Phong Tran

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=20190623151313.970-2-tranmanphong@gmail.com \
    --to=tranmanphong@gmail$(echo .)com \
    --cc=acme@kernel$(echo .)org \
    --cc=alexander.shishkin@linux$(echo .)intel.com \
    --cc=alexander.sverdlin@gmail$(echo .)com \
    --cc=allison@lohutok$(echo .)net \
    --cc=andrew@lunn$(echo .)ch \
    --cc=ast@kernel$(echo .)org \
    --cc=bgolaszewski@baylibre$(echo .)com \
    --cc=bpf@vger$(echo .)kernel.org \
    --cc=daniel@iogearbox$(echo .)net \
    --cc=daniel@zonque$(echo .)org \
    --cc=dmg@turingmachine$(echo .)org \
    --cc=festevam@gmail$(echo .)com \
    --cc=gerg@uclinux$(echo .)org \
    --cc=gregkh@linuxfoundation$(echo .)org \
    --cc=gregory.clement@bootlin$(echo .)com \
    --cc=haojian.zhuang@gmail$(echo .)com \
    --cc=hsweeten@visionengravers$(echo .)com \
    --cc=illusionist.neo@gmail$(echo .)com \
    --cc=info@metux$(echo .)net \
    --cc=jason@lakedaemon$(echo .)net \
    --cc=jolsa@redhat$(echo .)com \
    --cc=kafai@fb$(echo .)com \
    --cc=kernel@pengutronix$(echo .)de \
    --cc=kgene@kernel$(echo .)org \
    --cc=krzk@kernel$(echo .)org \
    --cc=kstewart@linuxfoundation$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-imx@nxp$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-omap@vger$(echo .)kernel.org \
    --cc=linux-samsung-soc@vger$(echo .)kernel.org \
    --cc=linux@armlinux$(echo .)org.uk \
    --cc=liviu.dudau@arm$(echo .)com \
    --cc=lkundrak@v3$(echo .)sk \
    --cc=lorenzo.pieralisi@arm$(echo .)com \
    --cc=mark.rutland@arm$(echo .)com \
    --cc=mingo@redhat$(echo .)com \
    --cc=namhyung@kernel$(echo .)org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=nsekhar@ti$(echo .)com \
    --cc=peterz@infradead$(echo .)org \
    --cc=robert.jarzmik@free$(echo .)fr \
    --cc=s.hauer@pengutronix$(echo .)de \
    --cc=sebastian.hesselbarth@gmail$(echo .)com \
    --cc=shawnguo@kernel$(echo .)org \
    --cc=songliubraving@fb$(echo .)com \
    --cc=sudeep.holla@arm$(echo .)com \
    --cc=swinslow@gmail$(echo .)com \
    --cc=tglx@linutronix$(echo .)de \
    --cc=tony@atomide$(echo .)com \
    --cc=will@kernel$(echo .)org \
    --cc=yhs@fb$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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