Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: cachetype: fix definitions of ICACHEF_* flags

test_bit and set_bit take the bit number to operate on, rather than a
mask. This patch fixes the ICACHEF_* definitions so that they represent
the bit index in __icache_flags as opposed to the mask returned by the
BIT macro.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Will Deacon and committed by
Catalin Marinas
59f24135 fde4a59f

+2 -2
+2 -2
arch/arm64/include/asm/cachetype.h
··· 34 34 35 35 #define CTR_L1IP(ctr) (((ctr) >> CTR_L1IP_SHIFT) & CTR_L1IP_MASK) 36 36 37 - #define ICACHEF_ALIASING BIT(0) 38 - #define ICACHEF_AIVIVT BIT(1) 37 + #define ICACHEF_ALIASING 0 38 + #define ICACHEF_AIVIVT 1 39 39 40 40 extern unsigned long __icache_flags; 41 41