From 4a9bbef086acdee02d9f013ccaf899d784e90d91 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Sat, 20 Nov 2021 10:27:34 +0100 Subject: [PATCH] [v1.01] Fix compiler warning --- src/x86/cpuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x86/cpuid.c b/src/x86/cpuid.c index 5547c28..17c391d 100644 --- a/src/x86/cpuid.c +++ b/src/x86/cpuid.c @@ -472,7 +472,7 @@ bool get_cache_topology_amd(struct cpuInfo* cpu, struct topology* topo) { return true; } -void get_topology_from_udev(struct cpuInfo* cpu, struct topology* topo) { +void get_topology_from_udev(struct topology* topo) { // TODO: To be improved in the future topo->total_cores = get_ncores_from_cpuinfo(); topo->logical_cores = topo->total_cores; @@ -515,7 +515,7 @@ struct topology* get_topology_info(struct cpuInfo* cpu, struct cache* cach) { if(!toporet) { #ifdef __linux__ printWarn("Failed to retrieve topology from APIC, using udev...\n"); - get_topology_from_udev(cpu, topo); + get_topology_from_udev(topo); #else printErr("Failed to retrieve topology from APIC, assumming default values...\n"); topo->logical_cores = UNKNOWN_DATA;