opnsense-src/sys/dev/xen
Dimitry Andric 158071c51a 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 a6c803048f)
2022-07-29 20:33:06 +02:00
..
balloon Convert vm_page_alloc() callers to use vm_page_alloc_noobj(). 2021-11-03 13:39:36 -04:00
blkback Fix unused variable warning in xen's blkback.c 2022-07-29 20:29:03 +02:00
blkfront Fix unused variable warning in xen's blkfront.c 2022-07-29 20:32:08 +02:00
console tty: convert tty_lock_assert to tty_assert_locked to hide lock type 2020-04-17 18:34:49 +00:00
control Adjust function definitions in xen's control.c to avoid clang 15 warnings 2022-07-29 20:33:06 +02:00
debug Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
evtchn dev/xenstore: fix return with locks held 2020-05-20 11:01:10 +00:00
gntdev Convert vm_page_alloc() callers to use vm_page_alloc_noobj(). 2021-11-03 13:39:36 -04:00
grant_table dev/xen: clean up empty lines in .c and .h files 2020-09-01 21:45:08 +00:00
netback xen/netback: do not attempt to connect in the Initialised state 2022-04-12 10:05:47 +02:00
netfront dev/xen: clean up empty lines in .c and .h files 2020-09-01 21:45:08 +00:00
pci
pcifront dev/xen: clean up empty lines in .c and .h files 2020-09-01 21:45:08 +00:00
privcmd xen/privcmd: implement the restrict ioctl 2021-01-11 16:33:27 +01:00
pvcpu xen: attach the PV CPU if no CPU device is present 2018-07-19 08:00:52 +00:00
timer Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
xenpci dev/xen: clean up empty lines in .c and .h files 2020-09-01 21:45:08 +00:00
xenstore xen: allow limiting the amount of duplicated pending xenstore watches 2020-12-30 11:18:26 +01:00