aboutsummaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorGravatar Alexander Gordeev <agordeev@linux.ibm.com> 2020-10-29 15:29:23 +0100
committerGravatar Alexander Gordeev <agordeev@linux.ibm.com> 2023-07-03 11:19:40 +0200
commitb492425c7073c308503eea9a1eec4b03d6e42ef0 (patch)
treeb221bd37c6ac990cbff9f899bfd3656321c0bafb /arch/s390
parents390: include linux/io.h instead of asm/io.h (diff)
downloadlinux-b492425c7073c308503eea9a1eec4b03d6e42ef0.tar.gz
linux-b492425c7073c308503eea9a1eec4b03d6e42ef0.tar.bz2
linux-b492425c7073c308503eea9a1eec4b03d6e42ef0.zip
s390/mm: fence off VM macros from asm and linker
Prevent assembler and linker scripts compilation errors by fencing it off with __ASSEMBLY__ define. Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/asm/page.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/include/asm/page.h b/arch/s390/include/asm/page.h
index 5ceee81e8b2d..a9c138fcd2ad 100644
--- a/arch/s390/include/asm/page.h
+++ b/arch/s390/include/asm/page.h
@@ -179,8 +179,6 @@ int arch_make_page_accessible(struct page *page);
#define HAVE_ARCH_MAKE_PAGE_ACCESSIBLE
#endif
-#endif /* !__ASSEMBLY__ */
-
#define __PAGE_OFFSET 0x0UL
#define PAGE_OFFSET 0x0UL
@@ -204,6 +202,8 @@ int arch_make_page_accessible(struct page *page);
#define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_NON_EXEC
+#endif /* !__ASSEMBLY__ */
+
#include <asm-generic/memory_model.h>
#include <asm-generic/getorder.h>