diff options
author | Mike Travis <travis@sgi.com> | 2008-05-12 15:21:13 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 12:23:13 -0400 |
commit | 143aa5c53bd3895d42d7c08753fe58293988a69d (patch) | |
tree | 04c7d05b644628c046c7886761b960b7c64089f7 /drivers/base/cpu.c | |
parent | a953e4597abd51b74c99e0e3b7074532a60fd031 (diff) |
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: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/base/cpu.c')
-rw-r--r-- | drivers/base/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index e38dfed41d80..5000402ae092 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c | |||
@@ -119,14 +119,14 @@ static ssize_t print_cpus_##type(struct sysdev_class *class, char *buf) \ | |||
119 | { \ | 119 | { \ |
120 | return print_cpus_map(buf, &cpu_##type##_map); \ | 120 | return print_cpus_map(buf, &cpu_##type##_map); \ |
121 | } \ | 121 | } \ |
122 | struct sysdev_class_attribute attr_##type##_map = \ | 122 | static struct sysdev_class_attribute attr_##type##_map = \ |
123 | _SYSDEV_CLASS_ATTR(type, 0444, print_cpus_##type, NULL) | 123 | _SYSDEV_CLASS_ATTR(type, 0444, print_cpus_##type, NULL) |
124 | 124 | ||
125 | print_cpus_func(online); | 125 | print_cpus_func(online); |
126 | print_cpus_func(possible); | 126 | print_cpus_func(possible); |
127 | print_cpus_func(present); | 127 | print_cpus_func(present); |
128 | 128 | ||
129 | struct sysdev_class_attribute *cpu_state_attr[] = { | 129 | static struct sysdev_class_attribute *cpu_state_attr[] = { |
130 | &attr_online_map, | 130 | &attr_online_map, |
131 | &attr_possible_map, | 131 | &attr_possible_map, |
132 | &attr_present_map, | 132 | &attr_present_map, |