clocksource/drivers/arm_arch_timer: Mark hisi_161010101_oem_info const
authorStephen Boyd <swboyd@chromium.org>
Thu, 2 May 2024 23:34:46 +0000 (16:34 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 10 May 2024 08:43:21 +0000 (10:43 +0200)
This isn't modified at runtime. Mark it const so it can move to
read-only data.

Cc: dann frazier <dann.frazier@canonical.com>
Cc: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240502233447.420888-1-swboyd@chromium.org
drivers/clocksource/arm_arch_timer.c

index 8d4a52056684ee711fe510692a0841d795585079..5bb43cc1a8dfd5bc413c52cc645180d8e076e253 100644 (file)
@@ -331,7 +331,7 @@ static u64 notrace hisi_161010101_read_cntvct_el0(void)
        return __hisi_161010101_read_reg(cntvct_el0);
 }
 
-static struct ate_acpi_oem_info hisi_161010101_oem_info[] = {
+static const struct ate_acpi_oem_info hisi_161010101_oem_info[] = {
        /*
         * Note that trailing spaces are required to properly match
         * the OEM table information.