Adjust function definition in subr_autoconf.c to avoid clang 15 warnings

With clang 15, the following -Werror warning is produced:

    sys/kern/subr_autoconf.c:119:34: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    run_interrupt_driven_config_hooks()
                                     ^
                                      void

This is because run_interrupt_driven_config_hooks() is declared with a
(void) argument list, but defined with an empty argument list. Make the
definition match the declaration.

MFC after:	3 days
This commit is contained in:
Dimitry Andric 2022-07-26 17:27:54 +02:00
parent f2eb09b089
commit 3c8f0790dd

View File

@ -116,7 +116,7 @@ run_interrupt_driven_config_hooks_warning(int warned)
}
static void
run_interrupt_driven_config_hooks()
run_interrupt_driven_config_hooks(void)
{
static int running;
struct intr_config_hook *hook_entry;