Commit 0ed5f5d6 authored by Alexandru Elisei's avatar Alexandru Elisei Committed by Marc Zyngier

KVM: arm/arm64: vgic: Make function comments match function declarations

Since commit 503a6286 ("KVM: arm/arm64: vgic: Rely on the GIC driver to
parse the firmware tables"), the vgic_v{2,3}_probe functions stopped using
a DT node. Commit 90977732 ("KVM: arm/arm64: vgic-new: vgic_init:
implement kvm_vgic_hyp_init") changed the functions again, and now they
require exactly one argument, a struct gic_kvm_info populated by the GIC
driver. Unfortunately the comments regressed and state that a DT node is
used instead. Change the function comments to reflect the current
prototypes.
Signed-off-by: default avatarAlexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent 363de99b
...@@ -354,10 +354,11 @@ int vgic_v2_map_resources(struct kvm *kvm) ...@@ -354,10 +354,11 @@ int vgic_v2_map_resources(struct kvm *kvm)
DEFINE_STATIC_KEY_FALSE(vgic_v2_cpuif_trap); DEFINE_STATIC_KEY_FALSE(vgic_v2_cpuif_trap);
/** /**
* vgic_v2_probe - probe for a GICv2 compatible interrupt controller in DT * vgic_v2_probe - probe for a VGICv2 compatible interrupt controller
* @node: pointer to the DT node * @info: pointer to the GIC description
* *
* Returns 0 if a GICv2 has been found, returns an error code otherwise * Returns 0 if the VGICv2 has been probed successfully, returns an error code
* otherwise
*/ */
int vgic_v2_probe(const struct gic_kvm_info *info) int vgic_v2_probe(const struct gic_kvm_info *info)
{ {
......
...@@ -570,10 +570,11 @@ static int __init early_gicv4_enable(char *buf) ...@@ -570,10 +570,11 @@ static int __init early_gicv4_enable(char *buf)
early_param("kvm-arm.vgic_v4_enable", early_gicv4_enable); early_param("kvm-arm.vgic_v4_enable", early_gicv4_enable);
/** /**
* vgic_v3_probe - probe for a GICv3 compatible interrupt controller in DT * vgic_v3_probe - probe for a VGICv3 compatible interrupt controller
* @node: pointer to the DT node * @info: pointer to the GIC description
* *
* Returns 0 if a GICv3 has been found, returns an error code otherwise * Returns 0 if the VGICv3 has been probed successfully, returns an error code
* otherwise
*/ */
int vgic_v3_probe(const struct gic_kvm_info *info) int vgic_v3_probe(const struct gic_kvm_info *info)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment