u32 val;
for_each_of_cpu_node(node) {
- int hartid = riscv_of_processor_hartid(node);
+ unsigned long hartid;
int cbom_hartid;
+ ret = riscv_of_processor_hartid(node, &hartid);
+ if (ret)
+ continue;
+
if (hartid < 0)
continue;
cbom_hartid = hartid;
} else {
if (riscv_cbom_block_size != val)
- pr_warn("cbom-block-size mismatched between harts %d and %d\n",
+ pr_warn("cbom-block-size mismatched between harts %d and %lu\n",
cbom_hartid, hartid);
}
}