[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 9/9] pc-bios: s390x: Make u32 ptr check explicit
From: |
Thomas Huth |
Subject: |
Re: [PATCH v2 9/9] pc-bios: s390x: Make u32 ptr check explicit |
Date: |
Thu, 21 May 2020 08:03:08 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 14/05/2020 14.37, Janosch Frank wrote:
> Let's make it a bit more clear that we check the full 64 bits to fit
> into the 32 we return.
>
> Signed-off-by: Janosch Frank <address@hidden>
> Suggested-by: David Hildenbrand <address@hidden>
> Reviewed-by: David Hildenbrand <address@hidden>
> ---
> pc-bios/s390-ccw/helper.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/pc-bios/s390-ccw/helper.h b/pc-bios/s390-ccw/helper.h
> index 78d5bc7442..8a50ec91bb 100644
> --- a/pc-bios/s390-ccw/helper.h
> +++ b/pc-bios/s390-ccw/helper.h
> @@ -18,7 +18,7 @@
> /* Avoids compiler warnings when casting a pointer to a u32 */
> static inline uint32_t ptr2u32(void *ptr)
> {
> - IPL_assert((uint64_t)ptr <= 0xffffffff, "ptr2u32: ptr too large");
> + IPL_assert((uint64_t)ptr <= 0xffffffffull, "ptr2u32: ptr too large");
> return (uint32_t)(uint64_t)ptr;
> }
>
>
Reviewed-by: Thomas Huth <address@hidden>
- Re: [PATCH v2 4/9] pc-bios: s390x: Rename and use PSW_MASK_ZMODE constant, (continued)
[PATCH v2 2/9] pc-bios: s390x: Consolidate timing functions into time.h, Janosch Frank, 2020/05/14
Re: [PATCH v2 2/9] pc-bios: s390x: Consolidate timing functions into time.h, Thomas Huth, 2020/05/20
[PATCH v2 9/9] pc-bios: s390x: Make u32 ptr check explicit, Janosch Frank, 2020/05/14
- Re: [PATCH v2 9/9] pc-bios: s390x: Make u32 ptr check explicit,
Thomas Huth <=
Re: [PATCH v2 0/9] pc-bios: s390x: Cleanup part 1, no-reply, 2020/05/14
Re: [PATCH v2 0/9] pc-bios: s390x: Cleanup part 1, Cornelia Huck, 2020/05/20