[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] xen/arm: remove unused dt_device_node parameter
commit c21df76199aba0d2a6654d56c8e93e31c1f03975 Author: Viktor Mitin <viktor.mitin.19@xxxxxxxxx> AuthorDate: Tue Jun 18 11:58:51 2019 +0300 Commit: Julien Grall <julien.grall@xxxxxxx> CommitDate: Tue Jul 23 12:41:56 2019 +0100 xen/arm: remove unused dt_device_node parameter Some of the function generating nodes (e.g make_timer_node) take in a dt_device_node parameter, but never used it. It is actually misused when creating DT for DomU. So it is the best to remove the parameter. Suggested-by: Julien Grall <julien.grall@xxxxxxx> Signed-off-by: Viktor Mitin <viktor_mitin@xxxxxxxx> Reviewed-by: Julien Grall <julien.grall@xxxxxxx> --- xen/arch/arm/domain_build.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index c1981836a6..4c8404155a 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -742,8 +742,7 @@ static int __init make_hypervisor_node(struct domain *d, return res; } -static int __init make_psci_node(void *fdt, - const struct dt_device_node *parent) +static int __init make_psci_node(void *fdt) { int res; const char compat[] = @@ -779,8 +778,7 @@ static int __init make_psci_node(void *fdt, return res; } -static int __init make_cpus_node(const struct domain *d, void *fdt, - const struct dt_device_node *parent) +static int __init make_cpus_node(const struct domain *d, void *fdt) { int res; const struct dt_device_node *cpus = dt_find_node_by_path("/cpus"); @@ -962,8 +960,7 @@ static int __init make_gic_node(const struct domain *d, void *fdt, return res; } -static int __init make_timer_node(const struct domain *d, void *fdt, - const struct dt_device_node *node) +static int __init make_timer_node(const struct domain *d, void *fdt) { static const struct dt_device_match timer_ids[] __initconst = { @@ -1380,7 +1377,7 @@ static int __init handle_node(struct domain *d, struct kernel_info *kinfo, if ( device_get_class(node) == DEVICE_GIC ) return make_gic_node(d, kinfo->fdt, node); if ( dt_match_node(timer_matches, node) ) - return make_timer_node(d, kinfo->fdt, node); + return make_timer_node(d, kinfo->fdt); /* Skip nodes used by Xen */ if ( dt_device_used_by(node) == DOMID_XEN ) @@ -1472,11 +1469,11 @@ static int __init handle_node(struct domain *d, struct kernel_info *kinfo, if ( res ) return res; - res = make_psci_node(kinfo->fdt, node); + res = make_psci_node(kinfo->fdt); if ( res ) return res; - res = make_cpus_node(d, kinfo->fdt, node); + res = make_cpus_node(d, kinfo->fdt); if ( res ) return res; @@ -1731,11 +1728,11 @@ static int __init prepare_dtb_domU(struct domain *d, struct kernel_info *kinfo) if ( ret ) goto err; - ret = make_psci_node(kinfo->fdt, NULL); + ret = make_psci_node(kinfo->fdt); if ( ret ) goto err; - ret = make_cpus_node(d, kinfo->fdt, NULL); + ret = make_cpus_node(d, kinfo->fdt); if ( ret ) goto err; -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |