x86/cpu: fix some prototype warning
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
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
@@ -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
PATCH 2/3 x86/cpu: fix prototype warning in scattered.c
In reply to Yi WangMissing 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
@@ -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
PATCH 3/3 x86/cpu: fix prototype warning in topology.c
In reply to Yi WangMissing 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
@@ -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
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 incacheinfo.c
x86/cpu: fix prototype warning inscattered.c
x86/cpu: fix prototype warning intopology.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