Adjust function definition in aim_machdep.c to avoid clang 15 warning

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

    sys/powerpc/aim/aim_machdep.c:750:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    mpc745x_sleep()
                 ^
                  void

This is because mpc745x_sleep() 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-08-15 20:27:56 +02:00
parent b33bfe6e15
commit 06fce030e7

View File

@ -747,7 +747,7 @@ flush_disable_caches(void)
#ifndef __powerpc64__
void
mpc745x_sleep()
mpc745x_sleep(void)
{
static u_quad_t timebase = 0;
static register_t sprgs[4];