Skip to content

Commit

Permalink
Fix functions without a prototype
Browse files Browse the repository at this point in the history
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 <behlendorf1@llnl.gov>
Signed-off-by: Aidan Harris <me@aidanharr.is>
Closes #13421
  • Loading branch information
aidanharris authored and behlendorf committed May 20, 2022
1 parent 2c5c8bb commit eee389b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion module/icp/algs/modes/gcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,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);
Expand Down
2 changes: 1 addition & 1 deletion module/os/linux/spl/spl-kmem-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,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);
}
Expand Down
2 changes: 1 addition & 1 deletion module/zfs/dbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3884,7 +3884,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);
}
Expand Down

0 comments on commit eee389b

Please sign in to comment.