mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-22 22:11:38 +08:00
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>
This commit is contained in:
parent
6dbe51c251
commit
fbe2d3616c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user