]> xenbits.xensource.com Git - xen.git/commit
xen/x86: Remove the use of K&R functions
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 16 Feb 2023 22:14:12 +0000 (22:14 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 17 Feb 2023 11:01:54 +0000 (11:01 +0000)
commit22b2fa4766728c3057757c00e79da5f7803fff33
tree7481752ab266b37dec9fdec656e69f3436584675
parentf5c1a6374aae8be471b895a43359dcff355577f5
xen/x86: Remove the use of K&R functions

Clang-15 (as seen in the FreeBSD 14 tests) complains:

  arch/x86/time.c:1364:20: error: a function declaration without a
  prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
  s_time_t get_s_time()
                     ^
                      void

The error message is a bit confusing but appears to new as part of
-Wdeprecated-non-prototype which is part of supporting C2x which formally
removes K&R syntax.

Either way, fix the identified functions.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/time.c
xen/drivers/passthrough/iommu.c