mirror of
https://github.com/opnsense/src.git
synced 2026-05-25 02:35:01 -04:00
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 ed1d5f95a5)
This commit is contained in:
parent
08329b98ab
commit
02a0b35b45
1 changed files with 2 additions and 2 deletions
|
|
@ -1300,7 +1300,7 @@ ufsdirhash_set_reclaimpercent(SYSCTL_HANDLER_ARGS)
|
|||
}
|
||||
|
||||
void
|
||||
ufsdirhash_init()
|
||||
ufsdirhash_init(void)
|
||||
{
|
||||
ufs_dirhashmaxmem = lmax(roundup(hibufspace / 64, PAGE_SIZE),
|
||||
2 * 1024 * 1024);
|
||||
|
|
@ -1316,7 +1316,7 @@ ufsdirhash_init()
|
|||
}
|
||||
|
||||
void
|
||||
ufsdirhash_uninit()
|
||||
ufsdirhash_uninit(void)
|
||||
{
|
||||
KASSERT(TAILQ_EMPTY(&ufsdirhash_list), ("ufsdirhash_uninit"));
|
||||
uma_zdestroy(ufsdirhash_zone);
|
||||
|
|
|
|||
Loading…
Reference in a new issue