From b0bc882395ed37f60cf9612250cb99b1322cd458 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Wed, 12 Oct 2022 18:47:39 -0400 Subject: [PATCH] kcfpool_alloc() should have its argument list marked void This error occurred when building on Gentoo with debugging enabled: zfs-kmod-2.1.6/work/zfs-2.1.6/module/icp/core/kcf_sched.c:1277:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] kcfpool_alloc() ^ void 1 error generated. This function is not present in master. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: Richard Yao Closes #14023 --- module/icp/core/kcf_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/icp/core/kcf_sched.c b/module/icp/core/kcf_sched.c index 81fd15f8ea..fa44a4dbf8 100644 --- a/module/icp/core/kcf_sched.c +++ b/module/icp/core/kcf_sched.c @@ -1274,7 +1274,7 @@ kcf_aop_done(kcf_areq_node_t *areq, int error) * Allocate the thread pool and initialize all the fields. */ static void -kcfpool_alloc() +kcfpool_alloc(void) { kcfpool = kmem_alloc(sizeof (kcf_pool_t), KM_SLEEP);