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>
This commit is contained in:
parent
fb2eca315d
commit
6f8f3570f2
|
@ -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 BIT(31)
|
||||
#define ARMV7_EXCLUDE_USER BIT(30)
|
||||
#define ARMV7_INCLUDE_HYP BIT(27)
|
||||
|
||||
/*
|
||||
* Secure debug enable reg
|
||||
|
|
Loading…
Reference in New Issue