git: 55db31a62dfa - stable/13 - Adjust function definitions in mp_cpudep.c.c to avoid clang 15 warnings

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 21 Aug 2022 11:29:17 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=55db31a62dfa65812ac1c7b70e80ae905e8a780d

commit 55db31a62dfa65812ac1c7b70e80ae905e8a780d
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-15 18:46:44 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-21 11:16:43 +0000

    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
    
    (cherry picked from commit 02dd51c9bccedc2fc8d98c3892986232f6bacdab)
---
 sys/powerpc/booke/mp_cpudep.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/powerpc/booke/mp_cpudep.c b/sys/powerpc/booke/mp_cpudep.c
index 709578d8e1b4..b8b939a785ed 100644
--- a/sys/powerpc/booke/mp_cpudep.c
+++ b/sys/powerpc/booke/mp_cpudep.c
@@ -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)
 {
 }