Skip to contentSkip to conversation

x86/cpu: fix some prototype warning

PATCH Superseded Yi Wang 2 participants 5 messages Nov 7, 2018 x86

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

cover x86/cpu: fix some prototype warning

This series of patch fix some prototype warning because of missing include file.

Yi Wang (3):
x86/cpu: fix prototype warning in cacheinfo.c
x86/cpu: fix prototype warning in scattered.c
x86/cpu: fix prototype warning in topology.c

 arch/x86/kernel/cpu/cacheinfo.c | 1 +
 arch/x86/kernel/cpu/scattered.c | 2 ++
 arch/x86/kernel/cpu/topology.c  | 2 ++
 3 files changed, 5 insertions(+)
Signature · 1 line
1.8.3.1
author
#1 lore raw

PATCH 1/3 x86/cpu: fix prototype warning in cacheinfo.c

Missing include file causes warning:
arch/x86/kernel/cpu/cacheinfo.c:647:6: warning: no previous prototype for ‘cacheinfo_amd_init_llc_id’ [-Wmissing-prototypes] arch/x86/kernel/cpu/cacheinfo.c:686:6: warning: no previous prototype for ‘cacheinfo_hygon_init_llc_id’ [-Wmissing-prototypes]

---
 arch/x86/kernel/cpu/cacheinfo.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/cpu/cacheinfo.c +1 -0
index dc1b934..5bafd93 100644
@@ -19,6 +19,7 @@
 #include <asm/cpufeature.h>
 #include <asm/amd_nb.h>
 #include <asm/smp.h>
+#include <asm/cacheinfo.h>
 
 #include "cpu.h"
 
Signature · 1 line
1.8.3.1
author
#2 lore raw

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

In reply to Yi Wang

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]

---
 arch/x86/kernel/cpu/scattered.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kernel/cpu/scattered.c +2 -0
index 772c219..5b6866f 100644
@@ -9,6 +9,8 @@
 
 #include <asm/apic.h>
 
+#include "cpu.h"
+
 struct cpuid_bit {
 	u16 feature;
 	u8 reg;
Signature · 1 line
1.8.3.1
author
#3 lore raw

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

In reply to Yi Wang

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]

---
 arch/x86/kernel/cpu/topology.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kernel/cpu/topology.c +2 -0
index 71ca064..8f6c784 100644
@@ -10,6 +10,8 @@
 #include <asm/pat.h>
 #include <asm/processor.h>
 
+#include "cpu.h"
+
 /* leaf 0xb SMT level */
 #define SMT_LEVEL	0
 
Signature · 1 line
1.8.3.1
#4 lore raw
In reply to Yi Wang
Quoted 8 lines · Yi Wang

This series of patch fix some prototype warning because of missing include file.

Yi Wang (3):
x86/cpu: fix prototype warning in cacheinfo.c
x86/cpu: fix prototype warning in scattered.c
x86/cpu: fix prototype warning in topology.c

Quoted 4 lines
 arch/x86/kernel/cpu/cacheinfo.c | 1 +
 arch/x86/kernel/cpu/scattered.c | 2 ++
 arch/x86/kernel/cpu/topology.c  | 2 ++
 3 files changed, 5 insertions(+)

Could you please submit this as a single patch?

Thanks,

Ingo