diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-02 10:40:33 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-11-08 18:35:41 -0500 |
commit | 3e87ead41224fca9dbc3c8646b5cff8168348aba (patch) | |
tree | 21f30ff96173147331ef9a0b4e7a677825b8ccb5 | |
parent | 39dae59d66acd86d1de24294bd2f343fd5e7a625 (diff) |
ACPI / sysfs: Make function param_set_trace_method_name() static
The function param_set_trace_method_name is local to the source and does
not need to be in global scope, so make it static.
Cleans up sparse warning:
symbol 'param_set_trace_method_name' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index 0fd57bf33524..bc303df60d5d 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c | |||
@@ -169,7 +169,8 @@ module_param_cb(debug_level, ¶m_ops_debug_level, &acpi_dbg_level, 0644); | |||
169 | 169 | ||
170 | static char trace_method_name[1024]; | 170 | static char trace_method_name[1024]; |
171 | 171 | ||
172 | int param_set_trace_method_name(const char *val, const struct kernel_param *kp) | 172 | static int param_set_trace_method_name(const char *val, |
173 | const struct kernel_param *kp) | ||
173 | { | 174 | { |
174 | u32 saved_flags = 0; | 175 | u32 saved_flags = 0; |
175 | bool is_abs_path = true; | 176 | bool is_abs_path = true; |