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

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

    sys/powerpc/aim/mmu_oea64.c:1947:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    moea64_init()
               ^
                void
    sys/powerpc/aim/mmu_oea64.c:3257:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    moea64_scan_init()
                    ^
                     void

This is because moea64_init() and moea64_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:33:25 +02:00
parent 06fce030e7
commit 7a98c884f2

View File

@ -1944,7 +1944,7 @@ moea64_uma_page_alloc(uma_zone_t zone, vm_size_t bytes, int domain,
extern int elf32_nxstack;
void
moea64_init()
moea64_init(void)
{
CTR0(KTR_PMAP, "moea64_init");
@ -3254,7 +3254,7 @@ moea64_dumpsys_map(vm_paddr_t pa, size_t sz, void **va)
extern struct dump_pa dump_map[PHYS_AVAIL_SZ + 1];
void
moea64_scan_init()
moea64_scan_init(void)
{
struct pvo_entry *pvo;
vm_offset_t va;