diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-29 12:49:25 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-07-04 22:35:19 +0300 |
commit | 5438bc573a2cd93f9e28acc71db50d89ce72eb64 (patch) | |
tree | c7d4610e09255cbb47df6c1e8620d917615dace1 /drivers/acpi | |
parent | 6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c (diff) | |
download | linux-5438bc573a2cd93f9e28acc71db50d89ce72eb64.tar.xz |
ACPI / osi: Make local function acpi_osi_dmi_linux() static
The function acpi_osi_dmi_linux() is local and does not need to be in
global scope, so make it static.
Cleans up sparse warning:
"symbol 'acpi_osi_dmi_linux' 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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/osi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/osi.c b/drivers/acpi/osi.c index 849f9d2245ca..723bee58bbcf 100644 --- a/drivers/acpi/osi.c +++ b/drivers/acpi/osi.c @@ -265,7 +265,8 @@ static void __init acpi_osi_dmi_darwin(bool enable, __acpi_osi_setup_darwin(enable); } -void __init acpi_osi_dmi_linux(bool enable, const struct dmi_system_id *d) +static void __init acpi_osi_dmi_linux(bool enable, + const struct dmi_system_id *d) { pr_notice("DMI detected to setup _OSI(\"Linux\"): %s\n", d->ident); osi_config.linux_dmi = 1; |