From: Chen Gang <gang.chen@asianux.com>
To: Yoshinori Sato <ysato@users.sourceforge.jp>,
Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] h8300: include: asm: add marco VM_DATA_DEFAULT_FLAGS in page.h
Date: Tue, 27 Aug 2013 11:43:09 +0800 [thread overview]
Message-ID: <521C204D.9020909@asianux.com> (raw)
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
reply other threads:[~2013-08-27 3:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=521C204D.9020909@asianux.com \
--to=gang.chen@asianux.com \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ysato@users.sourceforge.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.