* [PATCH] h8300: include: asm: add marco VM_DATA_DEFAULT_FLAGS in page.h
@ 2013-08-27 3:43 Chen Gang
0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-08-27 3:43 UTC (permalink / raw)
To: Yoshinori Sato, Geert Uytterhoeven; +Cc: linux-kernel@vger.kernel.org
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.chen@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-27 3:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-27 3:43 [PATCH] h8300: include: asm: add marco VM_DATA_DEFAULT_FLAGS in page.h Chen Gang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox