Skip to content

Commit 08e9cc4

Browse files
Colin Ian Kingrafaeljw
authored andcommitted
cpufreq: ACPI: make function acpi_cpufreq_fast_switch() static
The acpi_cpufreq_fast_switch() function is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: drivers/cpufreq/acpi-cpufreq.c:468:14: warning: symbol 'acpi_cpufreq_fast_switch' was not declared. Should it be static? Signed-off-by: Colin Ian King <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent ac28927 commit 08e9cc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/cpufreq/acpi-cpufreq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy,
465465
return result;
466466
}
467467

468-
unsigned int acpi_cpufreq_fast_switch(struct cpufreq_policy *policy,
469-
unsigned int target_freq)
468+
static unsigned int acpi_cpufreq_fast_switch(struct cpufreq_policy *policy,
469+
unsigned int target_freq)
470470
{
471471
struct acpi_cpufreq_data *data = policy->driver_data;
472472
struct acpi_processor_performance *perf;

0 commit comments

Comments
 (0)