[v1.01] Fix compiler warning

This commit is contained in:
Dr-Noob
2021-11-20 10:27:34 +01:00
parent fe3bc6163c
commit 4a9bbef086

View File

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