diff options
author | Arvind Yadav <[email protected]> | 2017-06-29 17:40:47 +0530 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-06-30 09:34:39 +0200 |
commit | 993647a293814dd47ae41d38657fda6e4ab04e33 (patch) | |
tree | 3e6fff6e846f667761dd8e5c23901ef508f6cd40 /tools/perf/util/trace-event-scripting.c | |
parent | 3e401f7a2e5199151f735aee6a5c6b4776e6a35e (diff) |
cpu/hotplug: Constify attribute_group structures
attribute_groups are not supposed to change at runtime. All functions
working with attribute_groups provided by <linux/sysfs.h> work with const
attribute_group.
So mark the non-const structs as const:
File size before:
text data bss dec hex filename
12582 15361 20 27963 6d3b kernel/cpu.o
File size After adding 'const':
text data bss dec hex filename
12710 15265 20 27995 6d5b kernel/cpu.o
Signed-off-by: Arvind Yadav <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/f9079e94e12b36d245e7adbf67d312bc5d0250c6.1498737970.git.arvind.yadav.cs@gmail.com
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions