[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8ef6bea9-5905-4d15-be77-f58645d967d0-agordeev@linux.ibm.com>
Date: Tue, 21 Oct 2025 10:48:20 +0200
From: Alexander Gordeev <agordeev@...ux.ibm.com>
To: Anshuman Khandual <anshuman.khandual@....com>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org, iommu@...ts.linux.dev,
linux-s390@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
virtualization@...ts.linux.dev
Subject: Re: [PATCH] mm: Make INVALID_PHYS_ADDR a generic macro
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@...r.kernel.org
> Cc: linux-mm@...ck.org
> Cc: iommu@...ts.linux.dev
> Cc: linux-s390@...r.kernel.org
> Cc: linux-arm-kernel@...ts.infradead.org
> Cc: virtualization@...ts.linux.dev
> Signed-off-by: Anshuman Khandual <anshuman.khandual@....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@...ux.ibm.com> # s390
Thanks!
Powered by blists - more mailing lists