arm64: cpufeature: declare enable_cpu_capabilities as static
PATCH 1/2 arm64: cpufeature: declare enable_cpu_capabilities as static
enable_cpu_capabilities is only called from within cpufeature.c, so it can be declared static.
--- arch/arm64/kernel/cpufeature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/cpufeature.c +1 -1
@@ -732,7 +732,7 @@ void update_cpu_capabilities(const struct arm64_cpu_capabilities *caps,* Run through the enabled capabilities and enable() it on all active * CPUs */ -void enable_cpu_capabilities (const struct arm64_cpu_capabilities *caps) +static void enable_cpu_capabilities (const struct arm64_cpu_capabilities *caps) {int i;
Signature · 1 line
2.1.4
PATCH 2/2 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.
--- arch/arm64/include/asm/cachetype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/include/asm/cachetype.h +2 -2
@@ -34,8 +34,8 @@#define CTR_L1IP (ctr) (((ctr) >> CTR_L1IP_SHIFT) & CTR_L1IP_MASK) -#define ICACHEF_ALIASING BIT(0) -#define ICACHEF_AIVIVT BIT(1) +#define ICACHEF_ALIASING 0 +#define ICACHEF_AIVIVT 1extern unsigned long __icache_flags;
Signature · 1 line
2.1.4
Mark Rutland
reviewerPATCH 2/2 arm64: cachetype: fix definitions of ICACHEF_* flags
Quoted 6 lines · Will Deacon
test_bitandset_bittake 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_flagsas opposed to the mask returned by the BIT macro.Signed-off-by Will Deacon <[email protected]>
At least they were used consistently, so this is a cleanup rather than a fix.
Mark.
Quoted 28 lines
--- arch/arm64/include/asm/cachetype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm64/include/asm/cachetype.h +2
-2@@ -34,8 +34,8 @@#define CTR_L1IP (ctr) (((ctr) >> CTR_L1IP_SHIFT) & CTR_L1IP_MASK) -#define ICACHEF_ALIASING BIT(0) -#define ICACHEF_AIVIVT BIT(1) +#define ICACHEF_ALIASING 0 +#define ICACHEF_AIVIVT 1extern unsigned long __icache_flags;Signature · 7 lines
2.1.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Catalin Marinas
maintainerPATCH 1/2 arm64: cpufeature: declare enable_cpu_capabilities as static
In reply to Will DeaconQuoted 4 lines · Will Deacon
enable_cpu_capabilitiesis only called from withincpufeature.c, so it can be declared static.Signed-off-by Will Deacon <[email protected]>
Both patches queued for 4.4. Thanks.
Signature · 1 line
Catalin