From: Arvind Yadav Date: Thu, 24 Aug 2017 16:36:00 +0000 (+0530) Subject: coresight: etm4x: constify amba_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5520c93c78ff30903422e9a8be8ef297bc6496f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git coresight: etm4x: constify amba_id amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c index ac77b4c973d8..cf364a514c12 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.c +++ b/drivers/hwtracing/coresight/coresight-etm4x.c @@ -1052,7 +1052,7 @@ err_arch_supported: return ret; } -static struct amba_id etm4_ids[] = { +static const struct amba_id etm4_ids[] = { { /* ETM 4.0 - Cortex-A53 */ .id = 0x000bb95d, .mask = 0x000fffff,