From: David Howells <dhowells@redhat.com>
To: torvalds@osdl.org, akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Make pud_alloc() and pmd_alloc() non-existant on !MMU
Date: Wed, 05 Jan 2005 14:35:16 +0000 [thread overview]
Message-ID: <28616.1104935716@redhat.com> (raw)
The attached patch makes the general pud_alloc() and pmd_alloc() inline
functions unavailable if CONFIG_MMU is not defined.
Signed-Off-By: David Howells <dhowells@redhat.com>
---
warthog>diffstat nommu-pudpmd-alloc-2610bk8.diff
mm.h | 2 ++
1 files changed, 2 insertions(+)
diff -uNrp /warthog/kernels/linux-2.6.10-bk8/include/linux/mm.h linux-2.6.10-bk8-frv/include/linux/mm.h
--- /warthog/kernels/linux-2.6.10-bk8/include/linux/mm.h 2005-01-05 13:21:46.701484684 +0000
+++ linux-2.6.10-bk8-frv/include/linux/mm.h 2005-01-05 13:51:04.063609425 +0000
@@ -659,6 +659,7 @@ extern void remove_shrinker(struct shrin
* The following ifdef needed to get the 4level-fixup.h header to work.
* Remove it when 4level-fixup.h has been removed.
*/
+#ifdef CONFIG_MMU
#ifndef __ARCH_HAS_4LEVEL_HACK
static inline pud_t *pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address)
{
@@ -674,6 +675,7 @@ static inline pmd_t *pmd_alloc(struct mm
return pmd_offset(pud, address);
}
#endif
+#endif /* CONFIG_MMU */
extern void free_area_init(unsigned long * zones_size);
extern void free_area_init_node(int nid, pg_data_t *pgdat,
reply other threads:[~2005-01-05 14:35 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=28616.1104935716@redhat.com \
--to=dhowells@redhat.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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