summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnshuman Khandual <anshuman.khandual@arm.com>2025-10-21 05:56:38 +0300
committerAndrew Morton <akpm@linux-foundation.org>2025-11-17 04:28:26 +0300
commit272239dc8fcb109b9f1ec1a73bb85405dac92eda (patch)
tree5ee2cc5030e8aca2beec962799a87bedabb778a1 /include
parentb734b9d973ccd7ad1cfebc2e1f7db693824a37ef (diff)
downloadlinux-272239dc8fcb109b9f1ec1a73bb85405dac92eda.tar.xz
mm: make INVALID_PHYS_ADDR a generic macro
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. Link: https://lkml.kernel.org/r/20251021025638.2420216-1-anshuman.khandual@arm.com Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> [s390] Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index a6fd9f5aaf30..7bcd9e6fbc3c 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -105,6 +105,8 @@ extern int mmap_rnd_compat_bits __read_mostly;
# endif
#endif
+#define INVALID_PHYS_ADDR (~(phys_addr_t)0)
+
#include <asm/page.h>
#include <asm/processor.h>