git: af9cad92d698 - stable/12 - Adjust function definitions in ufs_dirhash.c to avoid clang 15 warnings

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 29 Jul 2022 18:48:44 UTC
The branch stable/12 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=af9cad92d6982ff749afa9b6ddf66befaf5fd436

commit af9cad92d6982ff749afa9b6ddf66befaf5fd436
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-26 19:32:20 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-29 18:44:39 +0000

    Adjust function definitions in ufs_dirhash.c to avoid clang 15 warnings
    
    With clang 15, the following -Werror warnings are produced:
    
        sys/ufs/ufs/ufs_dirhash.c:1303:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        ufsdirhash_init()
                       ^
                        void
        sys/ufs/ufs/ufs_dirhash.c:1319:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        ufsdirhash_uninit()
                         ^
                          void
    
    This is because ufsdirhash_init() and ufsdirhash_uninit() are declared
    with (void) argument lists, but defined with empty argument lists. Make
    the definitions match the declarations.
    
    MFC after:      3 days
    
    (cherry picked from commit ed1d5f95a599635e2af4a78ce96bfcdf8a3b7a47)
---
 sys/ufs/ufs/ufs_dirhash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/ufs/ufs/ufs_dirhash.c b/sys/ufs/ufs/ufs_dirhash.c
index a428e038d396..83be9faf1f00 100644
--- a/sys/ufs/ufs/ufs_dirhash.c
+++ b/sys/ufs/ufs/ufs_dirhash.c
@@ -1301,7 +1301,7 @@ ufsdirhash_set_reclaimpercent(SYSCTL_HANDLER_ARGS)
 }
 
 void
-ufsdirhash_init()
+ufsdirhash_init(void)
 {
 	ufs_dirhashmaxmem = lmax(roundup(hibufspace / 64, PAGE_SIZE),
 	    2 * 1024 * 1024);
@@ -1317,7 +1317,7 @@ ufsdirhash_init()
 }
 
 void
-ufsdirhash_uninit()
+ufsdirhash_uninit(void)
 {
 	KASSERT(TAILQ_EMPTY(&ufsdirhash_list), ("ufsdirhash_uninit"));
 	uma_zdestroy(ufsdirhash_zone);