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)
commit6f8f3570f27993226862681e3b0d88aaa8d7e5bf
tree6d4955a7306e6308df60039400d16e9345ca7edc
parentfb2eca315d92ab269e76be0595538a9ea0c93bc6
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