summaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_mc_sysfs.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-02-21 21:44:17 -0800
committerBorislav Petkov <bp@suse.de>2013-03-05 11:33:57 +0100
commitfbe2d3616cee37418d832b30130811888c5aaf34 (patch)
tree2da32fb8f7f2afe32d62677db8e4be7918e1fb04 /drivers/edac/edac_mc_sysfs.c
parent6dbe51c251a327e012439c4772097a13df43c5b8 (diff)
downloadtalos-op-linux-fbe2d3616cee37418d832b30130811888c5aaf34.tar.gz
talos-op-linux-fbe2d3616cee37418d832b30130811888c5aaf34.zip
EDAC: Make sysfs functions static
Fixes lots of sparse warnings here. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/edac_mc_sysfs.c')
-rw-r--r--drivers/edac/edac_mc_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index 4f4b6137d74e..0cbf670efa23 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -143,7 +143,7 @@ static const char *edac_caps[] = {
* and the per-dimm/per-rank one
*/
#define DEVICE_ATTR_LEGACY(_name, _mode, _show, _store) \
- struct device_attribute dev_attr_legacy_##_name = __ATTR(_name, _mode, _show, _store)
+ static struct device_attribute dev_attr_legacy_##_name = __ATTR(_name, _mode, _show, _store)
struct dev_ch_attribute {
struct device_attribute attr;
OpenPOWER on IntegriCloud