diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-08-15 18:33:25 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-08-15 18:48:34 +0000 |
commit | 7a98c884f20f7835763d09f2edaccc874d5ee698 (patch) | |
tree | 6fcc83fd611a9de179234dd6c7633c0cf8daed0f | |
parent | 06fce030e79ecce57365bc537e38ee0f25861d70 (diff) | |
download | src-7a98c884f20f7835763d09f2edaccc874d5ee698.tar.gz src-7a98c884f20f7835763d09f2edaccc874d5ee698.zip |
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
-rw-r--r-- | sys/powerpc/aim/mmu_oea64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/aim/mmu_oea64.c b/sys/powerpc/aim/mmu_oea64.c index ba8e8bf23fb4..9eef508ef585 100644 --- a/sys/powerpc/aim/mmu_oea64.c +++ b/sys/powerpc/aim/mmu_oea64.c @@ -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; |