ACK: [PATCH] acpica/fwts_acpica: cast to uintptr_t before casting to ACPI_PHYSICAL_ADDRESS

ivanhu ivan.hu at canonical.com
Wed May 24 02:14:47 UTC 2017



On 05/23/2017 06:28 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Clean up a build warning on 32 bit builds with older versions of gcc
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   src/acpica/fwts_acpica.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/acpica/fwts_acpica.c b/src/acpica/fwts_acpica.c
> index 4272c646..b85e18d6 100644
> --- a/src/acpica/fwts_acpica.c
> +++ b/src/acpica/fwts_acpica.c
> @@ -426,7 +426,7 @@ MpSaveSerialInfo (
>    */
>   ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer(void)
>   {
> -	return (ACPI_PHYSICAL_ADDRESS)fwts_acpica_RSDP;
> +	return (ACPI_PHYSICAL_ADDRESS)(uintptr_t)fwts_acpica_RSDP;
>   }
>   
>   /*
> 

Acked-by: Ivan Hu <ivan.hu at canonical.com>



More information about the fwts-devel mailing list