Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

EDAC: edac_mc_sysfs: Make stuff static

Fix sparse warnings.

Signed-off-by: Borislav Petkov <bp@suse.de>

+11 -11
+11 -11
drivers/edac/edac_mc_sysfs.c
··· 157 157 }; 158 158 159 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 161 { __ATTR(_name, _mode, _show, _store), (_var) } 162 162 163 163 #define to_channel(k) (container_of(k, struct dev_ch_attribute, attr)->channel) ··· 850 850 #endif 851 851 852 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 855 /* default Attribute files */ 856 - DEVICE_ATTR(mc_name, S_IRUGO, mci_ctl_name_show, NULL); 857 - DEVICE_ATTR(size_mb, S_IRUGO, mci_size_mb_show, NULL); 858 - DEVICE_ATTR(seconds_since_reset, S_IRUGO, mci_seconds_show, NULL); 859 - 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); 861 - DEVICE_ATTR(ue_count, S_IRUGO, mci_ue_count_show, NULL); 862 - DEVICE_ATTR(ce_count, S_IRUGO, mci_ce_count_show, NULL); 863 - DEVICE_ATTR(max_location, S_IRUGO, mci_max_location_show, NULL); 856 + static DEVICE_ATTR(mc_name, S_IRUGO, mci_ctl_name_show, NULL); 857 + static DEVICE_ATTR(size_mb, S_IRUGO, mci_size_mb_show, NULL); 858 + static DEVICE_ATTR(seconds_since_reset, S_IRUGO, mci_seconds_show, NULL); 859 + static DEVICE_ATTR(ue_noinfo_count, S_IRUGO, mci_ue_noinfo_show, NULL); 860 + static DEVICE_ATTR(ce_noinfo_count, S_IRUGO, mci_ce_noinfo_show, NULL); 861 + static DEVICE_ATTR(ue_count, S_IRUGO, mci_ue_count_show, NULL); 862 + static DEVICE_ATTR(ce_count, S_IRUGO, mci_ce_count_show, NULL); 863 + static DEVICE_ATTR(max_location, S_IRUGO, mci_max_location_show, NULL); 864 864 865 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 868 static struct attribute *mci_attrs[] = { 869 869 &dev_attr_reset_counters.attr,