]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen: use parameter name 'mcs' in arch_do_multicall_call()
authorFederico Serafini <federico.serafini@bugseng.com>
Wed, 26 Jul 2023 09:34:14 +0000 (11:34 +0200)
committerStefano Stabellini <stefano.stabellini@amd.com>
Wed, 26 Jul 2023 22:10:12 +0000 (15:10 -0700)
Make function declaration and definition consistent using the same
parameter name ('mcs' do denote a pointer to an 'mc_state').
This addresses 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>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c
xen/arch/x86/hypercall.c
xen/include/xen/multicall.h

index d1ef78763860e0760781e1b91a63c7d42276a711..eab2fcfc022ff8499a13432866ca36d78919d379 100644 (file)
@@ -1470,9 +1470,9 @@ static bool check_multicall_32bit_clean(struct multicall_entry *multi)
     return true;
 }
 
-enum mc_disposition arch_do_multicall_call(struct mc_state *state)
+enum mc_disposition arch_do_multicall_call(struct mc_state *mcs)
 {
-    struct multicall_entry *multi = &state->call;
+    struct multicall_entry *multi = &mcs->call;
 
     if ( multi->op >= ARRAY_SIZE(hypercall_args) )
     {
index cc9a6a9d59a0532a0d8f9adfc89b0f3e5d4745d8..01cd73040de91cfe8d4ade86ee3ee1546936346e 100644 (file)
@@ -203,15 +203,15 @@ int hypercall_xlat_continuation(unsigned int *id, unsigned int nr,
     return rc;
 }
 
-enum mc_disposition arch_do_multicall_call(struct mc_state *state)
+enum mc_disposition arch_do_multicall_call(struct mc_state *mcs)
 {
     const struct domain *currd = current->domain;
 
     if ( is_pv_domain(currd) )
-        return pv_do_multicall_call(state);
+        return pv_do_multicall_call(mcs);
 
     if ( is_hvm_domain(currd) )
-        return hvm_do_multicall_call(state);
+        return hvm_do_multicall_call(mcs);
 
     return mc_exit;
 }
index ac8238660ac57a3751175bd5ace6e29b58464934..5bebeca7b2ef7d7ea5edaf4675ede0093d32cd42 100644 (file)
@@ -25,6 +25,6 @@ enum mc_disposition {
     mc_continue,
     mc_exit,
     mc_preempt,
-} arch_do_multicall_call(struct mc_state *mc);
+} arch_do_multicall_call(struct mc_state *mcs);
 
 #endif /* __XEN_MULTICALL_H__ */