Skip to contentSkip to conversation

h8300: include: asm: add marco VM_DATA_DEFAULT_FLAGS in page.h

PATCH New Chen Gang 1 participant 1 message Aug 27, 2013

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 h8300: include: asm: add marco VM_DATA_DEFAULT_FLAGS in page.h

Need add VM_DATA_DEFAULT_FLAGS definition just like another platforms has done (e.g. xtensa), or can not pass compiling.

The related error (allmodconfig for h8300):

CC security/selinux/hooks.o
security/selinux/hooks.c: In function 'selinux_init':
security/selinux/hooks.c:5866:21: error: 'VM_DATA_DEFAULT_FLAGS' undeclared (first use in this function)

    default_noexec = !(VM_DATA_DEFAULT_FLAGS & VM_EXEC);
                       ^
---
 arch/h8300/include/asm/page.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/h8300/include/asm/page.h +3 -0
index 837381a..6af8b0d 100644
@@ -72,6 +72,9 @@ extern unsigned long memory_end;
 
 #endif /* __ASSEMBLY__ */
 
+#define VM_DATA_DEFAULT_FLAGS	(VM_READ | VM_WRITE |   \
+				 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
+
 #include <asm-generic/memory_model.h>
 #include <asm-generic/getorder.h>
 
Signature · 1 line
1.7.7.6