Adjust function definitions in mmu_radix.c to avoid clang 15 warnings

With clang 15, the following -Werror warnings are produced:

    sys/powerpc/aim/mmu_radix.c:786:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    mmu_radix_tlbie_all()
                       ^
                        void
    sys/powerpc/aim/mmu_radix.c:3615:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    mmu_radix_init()
                  ^
                   void
    sys/powerpc/aim/mmu_radix.c:6081:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    mmu_radix_scan_init()
                       ^
                        void

This is because mmu_radix_tlbie_all(), mmu_radix_init(), and
mmu_radix_scan_init() 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:
Dimitry Andric 2022-08-15 20:37:14 +02:00
parent 7a98c884f2
commit fb203abd9d

View File

@ -783,7 +783,7 @@ mmu_radix_tlbiel_flush(int scope)
}
static void
mmu_radix_tlbie_all()
mmu_radix_tlbie_all(void)
{
if (powernv_enabled)
mmu_radix_tlbiel_flush(TLB_INVAL_SCOPE_GLOBAL);
@ -3612,7 +3612,7 @@ radix_pgd_release(void *arg __unused, void **store, int count)
}
static void
mmu_radix_init()
mmu_radix_init(void)
{
vm_page_t mpte;
vm_size_t s;
@ -6078,7 +6078,7 @@ mmu_radix_dev_direct_mapped(vm_paddr_t pa, vm_size_t size)
}
static void
mmu_radix_scan_init()
mmu_radix_scan_init(void)
{
CTR1(KTR_PMAP, "%s()", __func__);