Date: Sun, 21 Aug 2022 11:29:16 GMT From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 32065e949f25 - stable/13 - Adjust function definitions in mmu_radix.c to avoid clang 15 warnings Message-ID: <202208211129.27LBTG02004567@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=32065e949f254f90561aa904b35b4cab15a03aad commit 32065e949f254f90561aa904b35b4cab15a03aad Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-08-15 18:37:14 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-08-21 11:16:43 +0000 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 (cherry picked from commit fb203abd9d399c23cd34361d78f956642e1f6567) --- sys/powerpc/aim/mmu_radix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/powerpc/aim/mmu_radix.c b/sys/powerpc/aim/mmu_radix.c index 097cc4be23dc..77d15b086527 100644 --- a/sys/powerpc/aim/mmu_radix.c +++ b/sys/powerpc/aim/mmu_radix.c @@ -777,7 +777,7 @@ mmu_radix_tlbiel_flush(int scope) } static void -mmu_radix_tlbie_all() +mmu_radix_tlbie_all(void) { /* TODO: LPID invalidate */ mmu_radix_tlbiel_flush(TLB_INVAL_SCOPE_GLOBAL); @@ -3575,7 +3575,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; @@ -6048,7 +6048,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__);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208211129.27LBTG02004567>