mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Adjust function definitions in mp_cpudep.c.c to avoid clang 15 warnings
With clang 15, the following -Werror warnings are produced:
sys/powerpc/booke/mp_cpudep.c:54:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
cpudep_ap_bootstrap()
^
void
sys/powerpc/booke/mp_cpudep.c:97:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
cpudep_ap_setup()
^
void
This is because cpudep_ap_bootstrap() and cpudep_ap_setup() are declared
with (void) argument lists, but defined with empty argument lists. Make
the definitions match the declarations.
MFC after: 3 days
This commit is contained in:
parent
ff490346fd
commit
02dd51c9bc
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ extern void icache_inval(void);
|
|||
volatile void *ap_pcpu;
|
||||
|
||||
uintptr_t
|
||||
cpudep_ap_bootstrap()
|
||||
cpudep_ap_bootstrap(void)
|
||||
{
|
||||
uint32_t msr, csr;
|
||||
uintptr_t sp;
|
||||
|
|
@ -94,6 +94,6 @@ cpudep_ap_bootstrap()
|
|||
}
|
||||
|
||||
void
|
||||
cpudep_ap_setup()
|
||||
cpudep_ap_setup(void)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue