Skip to content

Commit

Permalink
ACPI / osi: Make local function acpi_osi_dmi_linux() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Rafael J. Wysocki committed Jul 4, 2017
1 parent 6f7da29 commit 5438bc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/acpi/osi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5438bc5

Please sign in to comment.