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

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


Missing include file causes warning:
arch/x86/kernel/cpu/topology.c:25:5: warning: no previous prototype for âdetect_extended_topology_earlyâ [-Wmissing-prototypes]
arch/x86/kernel/cpu/topology.c:57:5: warning: no previous prototype for âdetect_extended_topologyâ [-Wmissing-prototypes]

Signed-off-by: Yi Wang <wang.yi59@xxxxxxxxxx>
---
arch/x86/kernel/cpu/topology.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/cpu/topology.c b/arch/x86/kernel/cpu/topology.c
index 71ca064..8f6c784 100644
--- a/arch/x86/kernel/cpu/topology.c
+++ b/arch/x86/kernel/cpu/topology.c
@@ -10,6 +10,8 @@
#include <asm/pat.h>
#include <asm/processor.h>

+#include "cpu.h"
+
/* leaf 0xb SMT level */
#define SMT_LEVEL 0

--
1.8.3.1