ACPI / processor: make function acpi_processor_check_duplicates() static
authorColin Ian King <colin.king@canonical.com>
Tue, 15 Aug 2017 09:46:30 +0000 (10:46 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Aug 2017 01:25:47 +0000 (03:25 +0200)
The function acpi_processor_check_duplicates() is local to the source
and does not need to be in global scope, so make it static.

Cleans up sparse warnings:
symbol 'acpi_processor_check_duplicates' 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>
drivers/acpi/acpi_processor.c

index f098e25b6b41142d2711d7d40dafe26c3b8ff4f3..86c10599d9f83e86517aa436d6d93f78839e0f5f 100644 (file)
@@ -670,7 +670,7 @@ err:
 
 }
 
-void __init acpi_processor_check_duplicates(void)
+static void __init acpi_processor_check_duplicates(void)
 {
        /* check the correctness for all processors in ACPI namespace */
        acpi_walk_namespace(ACPI_TYPE_PROCESSOR, ACPI_ROOT_OBJECT,