Messages in this thread Patch in this message | | | From | Yi Wang <> | Subject | [PATCH 2/3] x86/cpu: fix prototype warning in scattered.c | Date | Wed, 7 Nov 2018 16:54:36 +0800 |
| |
Missing include file causes warning: arch/x86/kernel/cpu/scattered.c:37:6: warning: no previous prototype for ‘init_scattered_cpuid_features’ [-Wmissing-prototypes] arch/x86/kernel/cpu/scattered.c:60:5: warning: no previous prototype for ‘get_scattered_cpuid_leaf’ [-Wmissing-prototypes]
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn> --- arch/x86/kernel/cpu/scattered.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattered.c index 772c219..5b6866f 100644 --- a/arch/x86/kernel/cpu/scattered.c +++ b/arch/x86/kernel/cpu/scattered.c @@ -9,6 +9,8 @@ #include <asm/apic.h> +#include "cpu.h" + struct cpuid_bit { u16 feature; u8 reg; -- 1.8.3.1
| |