Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbe2d361 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Borislav Petkov
Browse files

EDAC: Make sysfs functions static



Fixes lots of sparse warnings here.

Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent 6dbe51c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -143,7 +143,7 @@ static const char *edac_caps[] = {
 * and the per-dimm/per-rank one
 * and the per-dimm/per-rank one
 */
 */
#define DEVICE_ATTR_LEGACY(_name, _mode, _show, _store) \
#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 dev_ch_attribute {
	struct device_attribute attr;
	struct device_attribute attr;