]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
x86/hvm: Swap parameter names of hvm_copy_context_and_params() declaration
authorFederico Serafini <federico.serafini@bugseng.com>
Thu, 29 Jun 2023 15:55:29 +0000 (17:55 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 30 Jun 2023 13:18:28 +0000 (14:18 +0100)
Swap parameter names 'src' and 'dst' of hvm_copy_context_and_params()
declaration for consistency with the corresponding definition and the
uses of such function.
Also, this fixes a violation of MISRA C:2012 Rule 8.3.

Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/include/asm/hvm/hvm.h

index 04cbd4ff24bd4cf46efc86dafe9fe7be0b83583d..9555b4c41fef80288c7eb6ec3767ac0533ddf589 100644 (file)
@@ -366,7 +366,7 @@ const char *hvm_efer_valid(const struct vcpu *v, uint64_t value,
                            signed int cr0_pg);
 unsigned long hvm_cr4_guest_valid_bits(const struct domain *d);
 
-int hvm_copy_context_and_params(struct domain *src, struct domain *dst);
+int hvm_copy_context_and_params(struct domain *dst, struct domain *src);
 
 int hvm_get_param(struct domain *d, uint32_t index, uint64_t *value);