diff mbox series

coresight: Constify static attribute_group struct

Message ID 1622542581-19607-1-git-send-email-zhangshaokun@hisilicon.com (mailing list archive)
State New, archived
Headers show
Series coresight: Constify static attribute_group struct | expand

Commit Message

Shaokun Zhang June 1, 2021, 10:16 a.m. UTC
Make 'coresight_conns_group' const to allow the compiler to put it
in read-only memory.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 drivers/hwtracing/coresight/coresight-sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/hwtracing/coresight/coresight-sysfs.c b/drivers/hwtracing/coresight/coresight-sysfs.c
index 34d2a2d31d00..34e944efc357 100644
--- a/drivers/hwtracing/coresight/coresight-sysfs.c
+++ b/drivers/hwtracing/coresight/coresight-sysfs.c
@@ -28,7 +28,7 @@  static struct attribute *coresight_conns_attrs[] = {
 	NULL,
 };
 
-static struct attribute_group coresight_conns_group = {
+static const struct attribute_group coresight_conns_group = {
 	.attrs = coresight_conns_attrs,
 	.name = "connections",
 };