lkml.org 
[lkml]   [2017]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
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
\
 
 \ /
  Last update: 2017-06-22 20:02    [W:0.046 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site