DORMANTno replies

[PATCH] coresight: Constify static attribute_group struct

From: Shaokun Zhang <hidden>
Date: 2021-06-01 10:17:56
Subsystem: arm/coresight framework and drivers, hardware tracing facilities, the rest · Maintainers: Suzuki K Poulose, Alexander Shishkin, Linus Torvalds

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 <redacted>
Cc: Leo Yan <redacted>
Signed-off-by: Shaokun Zhang <redacted>
---
 drivers/hwtracing/coresight/coresight-sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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",
 };
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help