aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan Harris <[email protected]>2022-05-06 18:57:37 +0000
committerGitHub <[email protected]>2022-05-06 11:57:37 -0700
commit493b6e56077842de05a91563760c2055b3ddba79 (patch)
tree3fee2b557f42b078c163dbd8598aac393872602f
parente77d59ebb2fc4394f5e7ddc85d849ec8c4f0a0d2 (diff)
Fix functions without a prototype
clang-15 emits the following error message for functions without a prototype: fs/zfs/os/linux/spl/spl-kmem-cache.c:1423:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Aidan Harris <[email protected]> Closes #13421
-rw-r--r--module/icp/algs/modes/gcm.c2
-rw-r--r--module/os/linux/spl/spl-kmem-cache.c2
-rw-r--r--module/zfs/dbuf.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/module/icp/algs/modes/gcm.c b/module/icp/algs/modes/gcm.c
index e666b45b5..ee2100b7f 100644
--- a/module/icp/algs/modes/gcm.c
+++ b/module/icp/algs/modes/gcm.c
@@ -806,7 +806,7 @@ static gcm_impl_ops_t *gcm_supp_impl[ARRAY_SIZE(gcm_all_impl)];
* fallback to the fastest generic implementation.
*/
const gcm_impl_ops_t *
-gcm_impl_get_ops()
+gcm_impl_get_ops(void)
{
if (!kfpu_allowed())
return (&gcm_generic_impl);
diff --git a/module/os/linux/spl/spl-kmem-cache.c b/module/os/linux/spl/spl-kmem-cache.c
index bb2b56880..33aaad653 100644
--- a/module/os/linux/spl/spl-kmem-cache.c
+++ b/module/os/linux/spl/spl-kmem-cache.c
@@ -1420,7 +1420,7 @@ EXPORT_SYMBOL(spl_kmem_cache_reap_now);
* it should do no harm.
*/
int
-spl_kmem_cache_reap_active()
+spl_kmem_cache_reap_active(void)
{
return (0);
}
diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c
index 8892c2d5a..9a273b010 100644
--- a/module/zfs/dbuf.c
+++ b/module/zfs/dbuf.c
@@ -3947,7 +3947,7 @@ dmu_buf_get_user(dmu_buf_t *db_fake)
}
void
-dmu_buf_user_evict_wait()
+dmu_buf_user_evict_wait(void)
{
taskq_wait(dbu_evict_taskq);
}