git: 6467d28c78cd - stable/13 - Adjust function definition in powerpc's dtrace_subr.c to avoid clang 15 warning

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 21 Aug 2022 11:29:02 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=6467d28c78cda81aa88d48e9167fd52d96c4452b

commit 6467d28c78cda81aa88d48e9167fd52d96c4452b
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-14 18:57:59 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-21 11:10:50 +0000

    Adjust function definition in powerpc's dtrace_subr.c to avoid clang 15 warning
    
    With clang 15, the following -Werror warning is produced:
    
        sys/cddl/dev/dtrace/powerpc/dtrace_subr.c:237:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        dtrace_gethrtime()
                        ^
                         void
    
    This is because dtrace_gethrtime() is declared with a (void) argument
    list, but defined with an empty argument list. Make the definition match
    the declaration.
    
    MFC after:      3 days
    
    (cherry picked from commit 7701f3015948f4ff25d4d26586c64847289325b2)
---
 sys/cddl/dev/dtrace/powerpc/dtrace_subr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c b/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c
index ed171f1135e9..0707a40aa22e 100644
--- a/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c
+++ b/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c
@@ -234,7 +234,7 @@ SYSINIT(dtrace_gethrtime_init, SI_SUB_SMP, SI_ORDER_ANY, dtrace_gethrtime_init,
  * Returns nanoseconds since boot.
  */
 uint64_t
-dtrace_gethrtime()
+dtrace_gethrtime(void)
 {
 	uint64_t timebase;
 	uint32_t lo;