diff options
author | Hongren Zheng <i@zenithal.me> | 2024-05-12 15:18:44 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-05-14 15:24:26 +0200 |
commit | f94d773f9455a7b48158738106c5b676f1fd04ff (patch) | |
tree | 3a405c91c56ad21c09e243a512348525edcc6855 /crypto/riscvcap.c | |
parent | 7860bca22c404cfd763ae2648d708d5cc4df6c2f (diff) |
crypto/riscvcap: fix function declaration for hwprobe_to_cap
error: function declaration isn't a prototype [-Werror=strict-prototypes]
Fixes: 66ad636b9 ("riscv: use hwprobe syscall for capability detection")
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24373)
Diffstat (limited to 'crypto/riscvcap.c')
-rw-r--r-- | crypto/riscvcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/riscvcap.c b/crypto/riscvcap.c index 7683bf0fb8..30875a5892 100644 --- a/crypto/riscvcap.c +++ b/crypto/riscvcap.c @@ -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] = { |