Skip to content

Commit de0ce7c

Browse files
authored
riscv-hw.c: match kernel type in syscall(). (#292)
syscall() doesn't care about these types at all, and the kernel uses cpu_set_t, so we're better off just removing the cast entirely.
1 parent 957b852 commit de0ce7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/riscv/linux/riscv-hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void cpuinfo_riscv_linux_decode_vendor_uarch_from_hwprobe(
112112
*
113113
* for more details.
114114
*/
115-
int ret = syscall(NR_riscv_hwprobe, pairs, pairs_count, cpu_set_size, (unsigned long*)cpu_set, 0 /* flags */);
115+
int ret = syscall(NR_riscv_hwprobe, pairs, pairs_count, cpu_set_size, cpu_set, 0 /* flags */);
116116
#else
117117
int ret = __riscv_hwprobe(pairs, pairs_count, cpu_set_size, (unsigned long*)cpu_set, 0 /* flags */);
118118
#endif

0 commit comments

Comments
 (0)