Commit ec89de32 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Attribute definitions in cpufreq core should be static.

Signed-off-by: default avatarDominik Brodowski <linux@brodo.de>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 645538a4
......@@ -366,19 +366,19 @@ static ssize_t show_scaling_available_governors (struct cpufreq_policy * policy,
#define define_one_ro(_name) \
struct freq_attr _name = { \
static struct freq_attr _name = { \
.attr = { .name = __stringify(_name), .mode = 0444 }, \
.show = show_##_name, \
}
#define define_one_ro0400(_name) \
struct freq_attr _name = { \
static struct freq_attr _name = { \
.attr = { .name = __stringify(_name), .mode = 0400 }, \
.show = show_##_name, \
}
#define define_one_rw(_name) \
struct freq_attr _name = { \
static struct freq_attr _name = { \
.attr = { .name = __stringify(_name), .mode = 0644 }, \
.show = show_##_name, \
.store = store_##_name, \
......
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