]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
x86: change parameter name of hvm_monitor_msr() declaration
authorFederico Serafini <federico.serafini@bugseng.com>
Thu, 20 Jul 2023 08:04:17 +0000 (10:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 20 Jul 2023 08:04:17 +0000 (10:04 +0200)
Change the parameter name of hvm_monitor_msr() declaration from
'value' to 'new_value' to match the corresponding defintion.
This fixes a violation of MISRA C:2012 Rule 8.3 ("All declarations of
an object or function shall use the same names and type qualifiers").

Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/include/asm/hvm/monitor.h

index 5276b0af08164192027027389e987fe5bee4b487..02021be47b11c880dbc8b926d668a8efc95e260a 100644 (file)
@@ -25,7 +25,7 @@ bool hvm_monitor_cr(unsigned int index, unsigned long value,
                     unsigned long old);
 #define hvm_monitor_crX(cr, new, old) \
                         hvm_monitor_cr(VM_EVENT_X86_##cr, new, old)
-bool hvm_monitor_msr(unsigned int msr, uint64_t value, uint64_t old_value);
+bool hvm_monitor_msr(unsigned int msr, uint64_t new_value, uint64_t old_value);
 void hvm_monitor_descriptor_access(uint64_t exit_info,
                                    uint64_t vmx_exit_qualification,
                                    uint8_t descriptor, bool is_write);