cpufreq: intel_pstate: fix intel_pstate_use_acpi_profile helper
Subsystems (2)
PATCH 1/1 cpufreq: intel_pstate: fix intel_pstate_use_acpi_profile helper
The newly added function uses two different prototypes depending on configuration, and one of them does not match the caller:
drivers/cpufreq/intel_pstate.c: In function ‘copy_cpu_funcs’:drivers/cpufreq/intel_pstate.c:1798:2: error: too few arguments to function ‘intel_pstate_use_acpi_profile’
This changes it to look like the other one.
--- drivers/cpufreq/intel_pstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/intel_pstate.c +1 -1
@@ -1779,7 +1779,7 @@ static void intel_pstate_use_acpi_profile(void) get_target_pstate_use_cpu_load; }#else -static inline void intel_pstate_use_acpi_profile (struct pstate_funcs *funcs) +static inline void intel_pstate_use_acpi_profile (void ) { }#endif
Signature · 1 line
2.9.0
Quoted 8 lines · Arnd Bergmann
The newly added function uses two different prototypes depending on configuration, and one of them does not match the caller:
drivers/cpufreq/intel_pstate.c: In function ‘copy_cpu_funcs’:drivers/cpufreq/intel_pstate.c:1798:2: error: too few arguments to function ‘intel_pstate_use_acpi_profile’This changes it to look like the other one.
Sorry about that.
Quoted 4 lines
Fixes 3bea6a285476 ("cpufreq: intel_pstate: Use cpu load basedalgorithm for mobile class devices")
Signed-off-by Arnd Bergmann <[email protected]>
Quoted 19 lines
---
drivers/cpufreq/intel_pstate.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/intel_pstate.c +1
-1@@ -1779,7 +1779,7 @@ static void intel_pstate_use_acpi_profile(void) get_target_pstate_use_cpu_load; } #else -static inline void intel_pstate_use_acpi_profile (struct pstate_funcs *funcs) +static inline void intel_pstate_use_acpi_profile (void ) { }#endif
Quoted 11 lines · Srinivas Pandruvada
Quoted 9 lines · Arnd Bergmann
The newly added function uses two different prototypes depending on configuration, and one of them does not match the caller:
drivers/cpufreq/intel_pstate.c: In function ‘copy_cpu_funcs’:drivers/cpufreq/intel_pstate.c:1798:2: error: too few arguments to function ‘intel_pstate_use_acpi_profile’This changes it to look like the other one.
Sorry about that.
Since this is a compile issue for x86 non ACPI systems, which will be a problem for git bisect, it is better to resubmit my patch with the fix.
Thanks,
Srinivas