From: Chen Gang <gang.chen@asianux.com>
To: chris@zankel.net, Max Filippov <jcmvbkbc@gmail.com>
Cc: linux-xtensa@linux-xtensa.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Linux-Arch <linux-arch@vger.kernel.org>
Subject: [PATCH] arch: xtensa: include: asm: define '_PAGE_CHG_MASK' when 'NOMMU'
Date: Sat, 22 Jun 2013 15:40:36 +0800 [thread overview]
Message-ID: <51C554F4.8060704@asianux.com> (raw)
Define '_PAGE_CHG_MASK' when 'NOMMU' to pass compiling.
The related make:
make ARCH=xtensa allmodconfig
make ARCH=xtensa menuconfig
set "xtensa-linux-gnu-" for "Cross compilier tool prefix"
select "s6000" for "Processor type and features" -> "Xtensa Processor"
make ARCH=xtensa EXTRA_CFLAGS=-W
The related error:
arch/xtensa/include/asm/pgtable.h: In function ‘pte_modify’:
arch/xtensa/include/asm/pgtable.h:289:9: error: ‘_PAGE_CHG_MASK’ undeclared (first use in this function)
Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
arch/xtensa/include/asm/pgtable.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/xtensa/include/asm/pgtable.h b/arch/xtensa/include/asm/pgtable.h
index 7e09f70..a28c49b 100644
--- a/arch/xtensa/include/asm/pgtable.h
+++ b/arch/xtensa/include/asm/pgtable.h
@@ -149,9 +149,10 @@
#define _PAGE_DIRTY (1<<7) /* software: page dirty */
#define _PAGE_ACCESSED (1<<8) /* software: page accessed (read) */
+#define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY)
+
#ifdef CONFIG_MMU
-#define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY)
#define _PAGE_PRESENT (_PAGE_HW_VALID | _PAGE_CA_WB | _PAGE_ACCESSED)
#define PAGE_NONE __pgprot(_PAGE_NONE | _PAGE_USER)
--
1.7.7.6
next reply other threads:[~2013-06-22 7:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-22 7:40 Chen Gang [this message]
2013-06-22 7:46 ` [PATCH] arch: xtensa: include: asm: define '_PAGE_CHG_MASK' when 'NOMMU' Chen Gang
2013-06-22 7:46 ` Chen Gang
2013-06-22 9:29 ` Chris Zankel
2013-06-22 9:40 ` Chen Gang
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=51C554F4.8060704@asianux.com \
--to=gang.chen@asianux.com \
--cc=chris@zankel.net \
--cc=jcmvbkbc@gmail.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xtensa@linux-xtensa.org \
/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.