[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/5] spapr: Use appropriate getter for PC_DIMM_ADDR_PROP
From: |
David Gibson |
Subject: |
Re: [PATCH 2/5] spapr: Use appropriate getter for PC_DIMM_ADDR_PROP |
Date: |
Thu, 22 Oct 2020 15:07:31 +1100 |
On Mon, Oct 19, 2020 at 10:48:16AM +0200, Greg Kurz wrote:
> The PC_DIMM_ADDR_PROP property is defined as:
>
> DEFINE_PROP_UINT64(PC_DIMM_ADDR_PROP, PCDIMMDevice, addr, 0),
>
> Use object_property_get_uint() instead of object_property_get_int().
>
> Signed-off-by: Greg Kurz <groug@kaod.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
> ---
> hw/ppc/spapr.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> index 4edd31b86915..115fc52e3b06 100644
> --- a/hw/ppc/spapr.c
> +++ b/hw/ppc/spapr.c
> @@ -3572,8 +3572,8 @@ static SpaprDimmState
> *spapr_recover_pending_dimm_state(SpaprMachineState *ms,
> uint64_t addr_start, addr;
> int i;
>
> - addr_start = object_property_get_int(OBJECT(dimm), PC_DIMM_ADDR_PROP,
> - &error_abort);
> + addr_start = object_property_get_uint(OBJECT(dimm), PC_DIMM_ADDR_PROP,
> + &error_abort);
>
> addr = addr_start;
> for (i = 0; i < nr_lmbs; i++) {
>
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- [PATCH 0/5] spapr: Error handling fixes and cleanups (round 3), Greg Kurz, 2020/10/19
- [PATCH 1/5] pc-dimm: Drop @errp argument of pc_dimm_plug(), Greg Kurz, 2020/10/19
- [PATCH 2/5] spapr: Use appropriate getter for PC_DIMM_ADDR_PROP, Greg Kurz, 2020/10/19
- [PATCH 3/5] spapr: Use appropriate getter for PC_DIMM_SLOT_PROP, Greg Kurz, 2020/10/19
- [PATCH 4/5] spapr: Pass &error_abort when getting some PC DIMM properties, Greg Kurz, 2020/10/19
- Re: [PATCH 4/5] spapr: Pass &error_abort when getting some PC DIMM properties, Igor Mammedov, 2020/10/23
- Re: [PATCH 4/5] spapr: Pass &error_abort when getting some PC DIMM properties, Greg Kurz, 2020/10/25
- Re: [PATCH 4/5] spapr: Pass &error_abort when getting some PC DIMM properties, Igor Mammedov, 2020/10/27
- Re: [PATCH 4/5] spapr: Pass &error_abort when getting some PC DIMM properties, Greg Kurz, 2020/10/27
- Re: [PATCH 4/5] spapr: Pass &error_abort when getting some PC DIMM properties, Igor Mammedov, 2020/10/28
- Re: [PATCH 4/5] spapr: Pass &error_abort when getting some PC DIMM properties, Greg Kurz, 2020/10/30