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 <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14023
This commit is contained in:
Richard Yao 2022-10-12 18:47:39 -04:00 committed by GitHub
parent 8cf59e97c4
commit b0bc882395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1274,7 +1274,7 @@ kcf_aop_done(kcf_areq_node_t *areq, int error)
* Allocate the thread pool and initialize all the fields. * Allocate the thread pool and initialize all the fields.
*/ */
static void static void
kcfpool_alloc() kcfpool_alloc(void)
{ {
kcfpool = kmem_alloc(sizeof (kcf_pool_t), KM_SLEEP); kcfpool = kmem_alloc(sizeof (kcf_pool_t), KM_SLEEP);