git: 158071c51a1f - stable/13 - Adjust function definitions in xen's control.c to avoid clang 15 warnings

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 29 Jul 2022 18:47:51 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=158071c51a1f3344f5160162e477ba42b0633267

commit 158071c51a1f3344f5160162e477ba42b0633267
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-26 12:11:09 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-29 18:33:06 +0000

    Adjust function definitions in xen's control.c to avoid clang 15 warnings
    
    With clang 15, the following -Werror warnings are produced:
    
        sys/dev/xen/control/control.c:188:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        xctrl_poweroff()
                      ^
                       void
        sys/dev/xen/control/control.c:194:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        xctrl_reboot()
                    ^
                     void
        sys/dev/xen/control/control.c:207:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        xctrl_suspend()
                     ^
                      void
        sys/dev/xen/control/control.c:344:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        xctrl_crash()
                   ^
                    void
    
    This is because xctrl_poweroff(), xctrl_reboot(), xctrl_suspend(), and
    xctrl_crash() 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 a6c803048fd8d4209fb1d52cd3c455a6752109b7)
---
 sys/dev/xen/control/control.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c
index a2a50fec48a3..82a9adaab494 100644
--- a/sys/dev/xen/control/control.c
+++ b/sys/dev/xen/control/control.c
@@ -183,19 +183,19 @@ struct xctrl_softc {
 
 /*------------------------------ Event Handlers ------------------------------*/
 static void
-xctrl_poweroff()
+xctrl_poweroff(void)
 {
 	shutdown_nice(RB_POWEROFF|RB_HALT);
 }
 
 static void
-xctrl_reboot()
+xctrl_reboot(void)
 {
 	shutdown_nice(0);
 }
 
 static void
-xctrl_suspend()
+xctrl_suspend(void)
 {
 #ifdef SMP
 	cpuset_t cpu_suspend_map;
@@ -329,7 +329,7 @@ xctrl_suspend()
 }
 
 static void
-xctrl_crash()
+xctrl_crash(void)
 {
 	panic("Xen directed crash");
 }