summaryrefslogtreecommitdiff
path: root/arch/arm64/mm/physaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/mm/physaddr.c')
-rw-r--r--arch/arm64/mm/physaddr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm64/mm/physaddr.c b/arch/arm64/mm/physaddr.c
index 91371daf397c..7d94e09b01b3 100644
--- a/arch/arm64/mm/physaddr.c
+++ b/arch/arm64/mm/physaddr.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
#include <linux/bug.h>
#include <linux/export.h>
#include <linux/types.h>
@@ -8,8 +9,8 @@
phys_addr_t __virt_to_phys(unsigned long x)
{
- WARN(!__is_lm_address(x),
- "virt_to_phys used for non-linear address: %pK (%pS)\n",
+ WARN(!__is_lm_address(__tag_reset(x)),
+ "virt_to_phys used for non-linear address: %p (%pS)\n",
(void *)x,
(void *)x);