Skip to content

Commit

Permalink
crypto/riscvcap: fix function declaration for hwprobe_to_cap
Browse files Browse the repository at this point in the history
error: function declaration isn't a prototype [-Werror=strict-prototypes]

Fixes: 66ad636 ("riscv: use hwprobe syscall for capability detection")
  • Loading branch information
ZenithalHourlyRate committed May 12, 2024
1 parent 87314d2 commit 52aba34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/riscvcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static long riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count,
return syscall(__NR_riscv_hwprobe, pairs, pair_count, cpu_count, cpus, flags);
}

static void hwprobe_to_cap()
static void hwprobe_to_cap(void)
{
long ret;
struct riscv_hwprobe pairs[OSSL_RISCV_HWPROBE_PAIR_COUNT] = {
Expand Down

0 comments on commit 52aba34

Please sign in to comment.