[PATCH 2/3] x86/cpu: fix prototype warning in scattered.c

From: Yi Wang
Date: Wed Nov 07 2018 - 03:59:05 EST


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@xxxxxxxxxx>
---
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