]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8873/1: perf: cleanup cppcheck shifting warning
authorPhong Tran <tranmanphong@gmail.com>
Thu, 27 Jun 2019 15:37:24 +0000 (16:37 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 23 Aug 2019 10:38:46 +0000 (11:38 +0100)
commit663a69ec58d656717eef04b771fb3ada54376e84
tree6d4955a7306e6308df60039400d16e9345ca7edc
parent4c376fc0850b4f18d0fd0fea3ea148dab66b0282
ARM: 8873/1: perf: cleanup cppcheck shifting warning

There is error from cppcheck tool.
"Shifting signed 32-bit value by 31 bits is undefined behaviour errors"

This error is false positive.
change to use BIT() macro for improvement.

Signed-off-by: Phong Tran <tranmanphong@gmail.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/perf_event_v7.c