Re: [PATCH] treewide: use PHYS_ADDR_MAX to avoid type casting ULLONG_MAX

From: Catalin Marinas
Date: Fri Apr 20 2018 - 05:49:55 EST


On Thu, Apr 19, 2018 at 11:42:04PM +0200, Stefan Agner wrote:
> With PHYS_ADDR_MAX there is now a type safe variant for all
> bits set. Make use of it.
>
> Patch created using a sematic patch as follows:
>
> // <smpl>
> @@
> typedef phys_addr_t;
> @@
> -(phys_addr_t)ULLONG_MAX
> +PHYS_ADDR_MAX
> // </smpl>
>
> Signed-off-by: Stefan Agner <stefan@xxxxxxxx>
> ---
> arch/arm64/mm/init.c | 6 +++---

For arm64:

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>