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:
parent
8cf59e97c4
commit
b0bc882395
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue