clocksource/arm_arch_timer: Add build-time guards for unhandled register accesses
authorMarc Zyngier <maz@kernel.org>
Sun, 17 Oct 2021 12:42:09 +0000 (13:42 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 17 Oct 2021 19:45:48 +0000 (21:45 +0200)
commit4775bc63f880001ee4fbd6456b12ab04674149e3
tree660ec3116a9962a02f58bcbab0ba3ba4938d5974
parentff1176468d368232b684f75e82563369208bc371
clocksource/arm_arch_timer: Add build-time guards for unhandled register accesses

As we are about to change the registers that are used by the driver,
start by adding build-time checks to ensure that we always handle
all registers and access modes.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211017124225.3018098-2-maz@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
arch/arm/include/asm/arch_timer.h
arch/arm64/include/asm/arch_timer.h
drivers/clocksource/arm_arch_timer.c