Skip to content

Commit 4a27aa9

Browse files
Lee Jonesrafaeljw
authored andcommitted
cpufreq: pasemi: Include header file for {check,restore}_astate prototypes
If function callers and providers do not share the same prototypes the compiler complains of missing prototypes. Fix this by including the correct platforms header file. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/pasemi-cpufreq.c:109:5: warning: no previous prototype for ‘check_astate’ [-Wmissing-prototypes] 109 | int check_astate(void) | ^~~~~~~~~~~~ drivers/cpufreq/pasemi-cpufreq.c:114:6: warning: no previous prototype for ‘restore_astate’ [-Wmissing-prototypes] 114 | void restore_astate(int cpu) | ^~~~~~~~~~~~~~ Suggested-by: Olof Johansson <[email protected]> Signed-off-by: Lee Jones <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent dd2e65f commit 4a27aa9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/cpufreq/pasemi-cpufreq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include <asm/time.h>
2323
#include <asm/smp.h>
2424

25+
#include <platforms/pasemi/pasemi.h>
26+
2527
#define SDCASR_REG 0x0100
2628
#define SDCASR_REG_STRIDE 0x1000
2729
#define SDCPWR_CFGA0_REG 0x0100

0 commit comments

Comments
 (0)