treewide: use PHYS_ADDR_MAX to avoid type casting ULLONG_MAX
authorStefan Agner <stefan@agner.ch>
Thu, 14 Jun 2018 22:28:02 +0000 (15:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 14 Jun 2018 22:55:25 +0000 (07:55 +0900)
commitd7dc899abefb4412388a5d3ec690070197d07d20
tree2315f94208ffd0e87a1c62d8953c178f583e6b99
parent0825a6f98689d847ab8058c51b3a55f0abcc6563
treewide: use PHYS_ADDR_MAX to avoid type casting ULLONG_MAX

With PHYS_ADDR_MAX there is now a type safe variant for all bits set.
Make use of it.

Patch created using a semantic patch as follows:

// <smpl>
@@
typedef phys_addr_t;
@@
-(phys_addr_t)ULLONG_MAX
+PHYS_ADDR_MAX
// </smpl>

Link: http://lkml.kernel.org/r/20180419214204.19322-1-stefan@agner.ch
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com> [arm64]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm64/mm/init.c
arch/mips/kernel/setup.c
arch/powerpc/mm/mem.c
arch/sparc/mm/init_64.c
arch/x86/mm/init_32.c
arch/x86/mm/init_64.c
drivers/firmware/efi/arm-init.c
drivers/remoteproc/qcom_q6v5_pil.c
drivers/soc/qcom/mdt_loader.c