Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f11135d8
Commit
f11135d8
authored
Jan 30, 2015
by
Borislav Petkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EDAC: edac_mc_sysfs: Make stuff static
Fix sparse warnings. Signed-off-by:
Borislav Petkov
<
bp@suse.de
>
parent
1bf1950c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
drivers/edac/edac_mc_sysfs.c
drivers/edac/edac_mc_sysfs.c
+11
-11
No files found.
drivers/edac/edac_mc_sysfs.c
View file @
f11135d8
...
...
@@ -157,7 +157,7 @@ struct dev_ch_attribute {
};
#define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \
struct dev_ch_attribute dev_attr_legacy_##_name = \
st
atic st
ruct dev_ch_attribute dev_attr_legacy_##_name = \
{ __ATTR(_name, _mode, _show, _store), (_var) }
#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 = {
#endif
/* default Control file */
DEVICE_ATTR
(
reset_counters
,
S_IWUSR
,
NULL
,
mci_reset_counters_store
);
static
DEVICE_ATTR
(
reset_counters
,
S_IWUSR
,
NULL
,
mci_reset_counters_store
);
/* default Attribute files */
DEVICE_ATTR
(
mc_name
,
S_IRUGO
,
mci_ctl_name_show
,
NULL
);
DEVICE_ATTR
(
size_mb
,
S_IRUGO
,
mci_size_mb_show
,
NULL
);
DEVICE_ATTR
(
seconds_since_reset
,
S_IRUGO
,
mci_seconds_show
,
NULL
);
DEVICE_ATTR
(
ue_noinfo_count
,
S_IRUGO
,
mci_ue_noinfo_show
,
NULL
);
DEVICE_ATTR
(
ce_noinfo_count
,
S_IRUGO
,
mci_ce_noinfo_show
,
NULL
);
DEVICE_ATTR
(
ue_count
,
S_IRUGO
,
mci_ue_count_show
,
NULL
);
DEVICE_ATTR
(
ce_count
,
S_IRUGO
,
mci_ce_count_show
,
NULL
);
DEVICE_ATTR
(
max_location
,
S_IRUGO
,
mci_max_location_show
,
NULL
);
static
DEVICE_ATTR
(
mc_name
,
S_IRUGO
,
mci_ctl_name_show
,
NULL
);
static
DEVICE_ATTR
(
size_mb
,
S_IRUGO
,
mci_size_mb_show
,
NULL
);
static
DEVICE_ATTR
(
seconds_since_reset
,
S_IRUGO
,
mci_seconds_show
,
NULL
);
static
DEVICE_ATTR
(
ue_noinfo_count
,
S_IRUGO
,
mci_ue_noinfo_show
,
NULL
);
static
DEVICE_ATTR
(
ce_noinfo_count
,
S_IRUGO
,
mci_ce_noinfo_show
,
NULL
);
static
DEVICE_ATTR
(
ue_count
,
S_IRUGO
,
mci_ue_count_show
,
NULL
);
static
DEVICE_ATTR
(
ce_count
,
S_IRUGO
,
mci_ce_count_show
,
NULL
);
static
DEVICE_ATTR
(
max_location
,
S_IRUGO
,
mci_max_location_show
,
NULL
);
/* memory scrubber attribute file */
DEVICE_ATTR
(
sdram_scrub_rate
,
0
,
NULL
,
NULL
);
static
DEVICE_ATTR
(
sdram_scrub_rate
,
0
,
NULL
,
NULL
);
static
struct
attribute
*
mci_attrs
[]
=
{
&
dev_attr_reset_counters
.
attr
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment