[PATCH] 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); ^ Signed-off-by: Chen Gang --- arch/h8300/include/asm/page.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/h8300/include/asm/page.h b/arch/h8300/include/asm/page.h index 837381a..6af8b0d 100644 --- a/arch/h8300/include/asm/page.h +++ b/arch/h8300/include/asm/page.h @@ -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 #include -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] 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); ^ Signed-off-by: Chen Gang gang.c...@asianux.com --- arch/h8300/include/asm/page.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/h8300/include/asm/page.h b/arch/h8300/include/asm/page.h index 837381a..6af8b0d 100644 --- a/arch/h8300/include/asm/page.h +++ b/arch/h8300/include/asm/page.h @@ -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 -- 1.7.7.6 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/