From: Hongren Zheng Date: Sun, 12 May 2024 07:18:44 +0000 (+0800) Subject: crypto/riscvcap: fix function declaration for hwprobe_to_cap X-Git-Tag: openssl-3.4.0-alpha1~563 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f94d773f9455a7b48158738106c5b676f1fd04ff;p=thirdparty%2Fopenssl.git 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 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/24373) --- diff --git a/crypto/riscvcap.c b/crypto/riscvcap.c index 7683bf0fb86..30875a5892f 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] = {