diff options
author | Borislav Petkov <bp@suse.de> | 2015-01-30 08:49:04 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2015-01-30 08:49:04 -0500 |
commit | f11135d87daebacd12e7bfb3ea66037ac9a167aa (patch) | |
tree | 5a8ac259b29c0bad68190f7ec0aa6e749d197ff0 | |
parent | 1bf1950c4e3ab6f8dad6b1b8c609de4eccb095a8 (diff) |
EDAC: edac_mc_sysfs: Make stuff static
Fix sparse warnings.
Signed-off-by: Borislav Petkov <bp@suse.de>
-rw-r--r-- | drivers/edac/edac_mc_sysfs.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index 7952d25d0909..c84eecb191ef 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c | |||
@@ -157,7 +157,7 @@ struct dev_ch_attribute { | |||
157 | }; | 157 | }; |
158 | 158 | ||
159 | #define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \ | 159 | #define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \ |
160 | struct dev_ch_attribute dev_attr_legacy_##_name = \ | 160 | static struct dev_ch_attribute dev_attr_legacy_##_name = \ |
161 | { __ATTR(_name, _mode, _show, _store), (_var) } | 161 | { __ATTR(_name, _mode, _show, _store), (_var) } |
162 | 162 | ||
163 | #define to_channel(k) (container_of(k, struct dev_ch_attribute, attr)->channel) | 163 | #define to_channel(k) (container_of(k, struct dev_ch_attribute, attr)->channel) |
@@ -850,20 +850,20 @@ static const struct file_operations debug_fake_inject_fops = { | |||
850 | #endif | 850 | #endif |
851 | 851 | ||
852 | /* default Control file */ | 852 | /* default Control file */ |
853 | DEVICE_ATTR(reset_counters, S_IWUSR, NULL, mci_reset_counters_store); | 853 | static DEVICE_ATTR(reset_counters, S_IWUSR, NULL, mci_reset_counters_store); |
854 | 854 | ||
855 | /* default Attribute files */ | 855 | /* default Attribute files */ |
856 | DEVICE_ATTR(mc_name, S_IRUGO, mci_ctl_name_show, NULL); | 856 | static DEVICE_ATTR(mc_name, S_IRUGO, mci_ctl_name_show, NULL); |
857 | DEVICE_ATTR(size_mb, S_IRUGO, mci_size_mb_show, NULL); | 857 | static DEVICE_ATTR(size_mb, S_IRUGO, mci_size_mb_show, NULL); |
858 | DEVICE_ATTR(seconds_since_reset, S_IRUGO, mci_seconds_show, NULL); | 858 | static DEVICE_ATTR(seconds_since_reset, S_IRUGO, mci_seconds_show, NULL); |
859 | DEVICE_ATTR(ue_noinfo_count, S_IRUGO, mci_ue_noinfo_show, NULL); | 859 | static DEVICE_ATTR(ue_noinfo_count, S_IRUGO, mci_ue_noinfo_show, NULL); |
860 | DEVICE_ATTR(ce_noinfo_count, S_IRUGO, mci_ce_noinfo_show, NULL); | 860 | static DEVICE_ATTR(ce_noinfo_count, S_IRUGO, mci_ce_noinfo_show, NULL); |
861 | DEVICE_ATTR(ue_count, S_IRUGO, mci_ue_count_show, NULL); | 861 | static DEVICE_ATTR(ue_count, S_IRUGO, mci_ue_count_show, NULL); |
862 | DEVICE_ATTR(ce_count, S_IRUGO, mci_ce_count_show, NULL); | 862 | static DEVICE_ATTR(ce_count, S_IRUGO, mci_ce_count_show, NULL); |
863 | DEVICE_ATTR(max_location, S_IRUGO, mci_max_location_show, NULL); | 863 | static DEVICE_ATTR(max_location, S_IRUGO, mci_max_location_show, NULL); |
864 | 864 | ||
865 | /* memory scrubber attribute file */ | 865 | /* memory scrubber attribute file */ |
866 | DEVICE_ATTR(sdram_scrub_rate, 0, NULL, NULL); | 866 | static DEVICE_ATTR(sdram_scrub_rate, 0, NULL, NULL); |
867 | 867 | ||
868 | static struct attribute *mci_attrs[] = { | 868 | static struct attribute *mci_attrs[] = { |
869 | &dev_attr_reset_counters.attr, | 869 | &dev_attr_reset_counters.attr, |