mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: vapier@gentoo.org
Cc: linux-kernel@vger.kernel.org, uclinux-dev@uclinux.org,
	konrad.wilk@oracle.com, dgdegra@tycho.nsa.gov, hugh@veritas.com,
	airlied@linux.ie, davej@redhat.com,
	David Howells <dhowells@redhat.com>
Subject: [PATCH] NOMMU: Stub out vm_get_page_prot() if there's no MMU
Date: Tue, 24 Aug 2010 23:22:38 +0100	[thread overview]
Message-ID: <20100824222238.6372.8897.stgit@warthog.procyon.org.uk> (raw)

Stub out vm_get_page_prot() if there's no MMU.

This was added by commit:

	commit 804af2cf6e7af31d2e664b54e657dddd9b531dbd
	Author: Hugh Dickins <hugh@veritas.com>
	Date:   Wed Jul 26 21:39:49 2006 +0100
	Subject: [AGPGART] remove private page protection map

and is used in commit:

	commit c07fbfd17e614a76b194f371c5331e21e6cffb54
	Author: Daniel De Graaf <dgdegra@tycho.nsa.gov>
	Date:   Tue Aug 10 18:02:45 2010 -0700
	Subject: fbmem: VM_IO set, but not propagated

in the fbmem video driver, but the function doesn't exist on NOMMU, resulting
in an undefined symbol at link time.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 include/linux/mm.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index 709f672..6b258c5 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1357,7 +1357,15 @@ static inline unsigned long vma_pages(struct vm_area_struct *vma)
 	return (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
 }
 
+#ifdef CONFIG_MMU
 pgprot_t vm_get_page_prot(unsigned long vm_flags);
+#else
+static inline pgprot_t vm_get_page_prot(unsigned long vm_flags)
+{
+	return __pgprot(0);
+}
+#endif
+
 struct vm_area_struct *find_extend_vma(struct mm_struct *, unsigned long addr);
 int remap_pfn_range(struct vm_area_struct *, unsigned long addr,
 			unsigned long pfn, unsigned long size, pgprot_t);


             reply	other threads:[~2010-08-24 22:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-24 22:22 David Howells [this message]
2010-08-25 14:15 ` Konrad Rzeszutek Wilk
  -- strict thread matches above, loose matches on Subject: below --
2010-08-26 15:00 David Howells
2010-08-24 22:21 David Howells

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=20100824222238.6372.8897.stgit@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=airlied@linux.ie \
    --cc=davej@redhat.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=hugh@veritas.com \
    --cc=konrad.wilk@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=uclinux-dev@uclinux.org \
    --cc=vapier@gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome