]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definitions in mmu_radix.c to avoid clang 15 warnings
authorDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:37:14 +0000 (20:37 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:48:34 +0000 (20:48 +0200)
commitfb203abd9d399c23cd34361d78f956642e1f6567
tree257bebf7ee71ef30139f6c3c8b27f7968f846148
parent7a98c884f20f7835763d09f2edaccc874d5ee698
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
sys/powerpc/aim/mmu_radix.c