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 <behlendorf1@llnl.gov>
Signed-off-by: Aidan Harris <me@aidanharr.is>
Closes #13421
This commit is contained in:
Aidan Harris
2022-05-06 18:57:37 +00:00
committed by Brian Behlendorf
parent 2c5c8bb0a6
commit eee389ba2e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);