Commit 143aa5c5 authored by Mike Travis's avatar Mike Travis Committed by Thomas Gleixner

cpu: change some globals to statics in drivers/base/cpu.c v2

This patch makes the following needlessly global code static:
- attr_online_map
- attr_possible_map
- attr_present_map

- cpu_state_attr [v2]
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarMike Travis <travis@sgi.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent a953e459
...@@ -119,14 +119,14 @@ static ssize_t print_cpus_##type(struct sysdev_class *class, char *buf) \ ...@@ -119,14 +119,14 @@ static ssize_t print_cpus_##type(struct sysdev_class *class, char *buf) \
{ \ { \
return print_cpus_map(buf, &cpu_##type##_map); \ return print_cpus_map(buf, &cpu_##type##_map); \
} \ } \
struct sysdev_class_attribute attr_##type##_map = \ static struct sysdev_class_attribute attr_##type##_map = \
_SYSDEV_CLASS_ATTR(type, 0444, print_cpus_##type, NULL) _SYSDEV_CLASS_ATTR(type, 0444, print_cpus_##type, NULL)
print_cpus_func(online); print_cpus_func(online);
print_cpus_func(possible); print_cpus_func(possible);
print_cpus_func(present); print_cpus_func(present);
struct sysdev_class_attribute *cpu_state_attr[] = { static struct sysdev_class_attribute *cpu_state_attr[] = {
&attr_online_map, &attr_online_map,
&attr_possible_map, &attr_possible_map,
&attr_present_map, &attr_present_map,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment