* [PATCH] PM / CPU: constify *_attribute_group.
@ 2017-06-22 11:48 Arvind Yadav
0 siblings, 0 replies; only message in thread
From: Arvind Yadav @ 2017-06-22 11:48 UTC (permalink / raw)
To: gregkh, rafael.j.wysocki, daniel.lezcano; +Cc: linux-kernel
File size before:
text data bss dec hex filename
2280 776 4 3060 bf4 drivers/base/cpu.o
File size After adding 'const':
text data bss dec hex filename
2384 648 4 3036 bdc drivers/base/cpu.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
drivers/base/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 2c3b359..d61e96b 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -176,7 +176,7 @@ static ssize_t show_crash_notes_size(struct device *dev,
NULL
};
-static struct attribute_group crash_note_cpu_attr_group = {
+static const struct attribute_group crash_note_cpu_attr_group = {
.attrs = crash_note_cpu_attrs,
};
#endif
@@ -469,7 +469,7 @@ struct device *cpu_device_create(struct device *parent, void *drvdata,
NULL
};
-static struct attribute_group cpu_root_attr_group = {
+static const struct attribute_group cpu_root_attr_group = {
.attrs = cpu_root_attrs,
};
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-22 11:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-22 11:48 [PATCH] PM / CPU: constify *_attribute_group Arvind Yadav
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.