linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] coresight: Constify static attribute_group struct
@ 2021-06-01 10:16 Shaokun Zhang
  0 siblings, 0 replies; only message in thread
From: Shaokun Zhang @ 2021-06-01 10:16 UTC (permalink / raw)
  To: coresight, linux-arm-kernel
  Cc: Shaokun Zhang, Mathieu Poirier, Suzuki K Poulose, Mike Leach, Leo Yan

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 --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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-01 10:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 10:16 [PATCH] coresight: Constify static attribute_group struct Shaokun Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).