]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
crypto/riscvcap: fix function declaration for hwprobe_to_cap
authorHongren Zheng <i@zenithal.me>
Sun, 12 May 2024 07:18:44 +0000 (15:18 +0800)
committerTomas Mraz <tomas@openssl.org>
Tue, 14 May 2024 13:24:26 +0000 (15:24 +0200)
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)

crypto/riscvcap.c

index 7683bf0fb86c013e660afb1a9ed9cd0dd2c480dc..30875a5892f8bf5228deeef4874af3dde33e7e42 100644 (file)
@@ -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] = {