xen/arm: vgic: change parameter name in 'init' and 'free' functions.

In the current versions of vcpu_vgic_init() and vcpu_vgic_free(),
the declarations (correctly) use the parameter name 'v' while the
corresponding definitions use the parameter name 'vcpu'.
Since it is common to use 'v' to denote a vCPU, change the parameter
name 'vcpu' of function definitions to 'v', thus fixing violations of
MISRA C:2012 Rule 8.3.

Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
This commit is contained in:
Federico Serafini authored and Stefano Stabellini committed 2023-06-28 15:54:16 -07:00
1 parent 31f54edf7e
commit 98ca99685d
1 file changed
+6 -6
+6 -6
View File
@@ -196,16 +196,16 @@ int domain_vgic_init(struct domain *d, unsigned int nr_spis)
* vcpu_vgic_init() - Register VCPU-specific KVM iodevs
* was: kvm_vgic_vcpu_init()
* Xen: adding vgic_vx_enable() call
* @vcpu: pointer to the VCPU being created and initialized
* @v: pointer to the VCPU being created and initialized
*/
int vcpu_vgic_init(struct vcpu *vcpu)
int vcpu_vgic_init(struct vcpu *v)
{
int ret = 0;
vgic_vcpu_early_init(vcpu);
vgic_vcpu_early_init(v);
if ( gic_hw_version() == GIC_V2 )
vgic_v2_enable(vcpu);
vgic_v2_enable(v);
else
ret = -ENXIO;
@@ -239,9 +239,9 @@ void domain_vgic_free(struct domain *d)
dist->nr_spis = 0;
}
int vcpu_vgic_free(struct vcpu *vcpu)
int vcpu_vgic_free(struct vcpu *v)
{
struct vgic_cpu *vgic_cpu = &vcpu->arch.vgic;
struct vgic_cpu *vgic_cpu = &v->arch.vgic;
INIT_LIST_HEAD(&vgic_cpu->ap_list_head);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.