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

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

    sys/dev/acpica/acpi_timer.c:402:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    acpi_timer_test()
                   ^
                    void

This is because acpi_timer_test() 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 21:35:07 +02:00
parent ed1d5f95a5
commit c45bc02560

View File

@ -399,7 +399,7 @@ SYSCTL_PROC(_machdep, OID_AUTO, acpi_timer_freq,
*/
#define N 2000
static int
acpi_timer_test()
acpi_timer_test(void)
{
uint32_t last, this;
int delta, max, max2, min, n;