[PATCH] mm: Make INVALID_PHYS_ADDR a generic macro
Alexander Gordeev
agordeev at linux.ibm.com
Tue Oct 21 01:48:20 PDT 2025
On Tue, Oct 21, 2025 at 03:56:38AM +0100, Anshuman Khandual wrote:
> INVALID_PHYS_ADDR has very similar definitions across the code base. Hence
> just move that inside header <liux/mm.h> for more generic usage. Also drop
> the now redundant ones which are no longer required.
>
> Cc: linux-kernel at vger.kernel.org
> Cc: linux-mm at kvack.org
> Cc: iommu at lists.linux.dev
> Cc: linux-s390 at vger.kernel.org
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: virtualization at lists.linux.dev
> Signed-off-by: Anshuman Khandual <anshuman.khandual at arm.com>
> ---
> arch/arm64/mm/mmu.c | 2 --
> arch/s390/boot/vmem.c | 1 -
> drivers/vdpa/vdpa_user/iova_domain.h | 2 --
> include/linux/mm.h | 2 ++
> kernel/dma/swiotlb.c | 2 --
> 5 files changed, 2 insertions(+), 7 deletions(-)
...
> diff --git a/arch/s390/boot/vmem.c b/arch/s390/boot/vmem.c
> index cea3de4dce8c..fbe64ffdfb96 100644
> --- a/arch/s390/boot/vmem.c
> +++ b/arch/s390/boot/vmem.c
> @@ -16,7 +16,6 @@
> #include "decompressor.h"
> #include "boot.h"
>
> -#define INVALID_PHYS_ADDR (~(phys_addr_t)0)
> struct ctlreg __bootdata_preserved(s390_invalid_asce);
>
> #ifdef CONFIG_PROC_FS
Acked-by: Alexander Gordeev <agordeev at linux.ibm.com> # s390
Thanks!
More information about the linux-arm-kernel
mailing list