diff options
| author | David Howells <dhowells@redhat.com> | 2005-01-05 00:12:09 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-05 00:12:09 -0800 |
| commit | adb81933ea39896b5637d4baf90b176fc6c9212e (patch) | |
| tree | 1961d43596c83232c5d11ec1b9282262e54ee161 /include/linux | |
| parent | 13768e75f6fedcec916df2ed8d237259291eca76 (diff) | |
[PATCH] Make pud_alloc() and pmd_alloc() non-existant on !MMU
This 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>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 93302390a475..3995937c714d 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -659,6 +659,7 @@ extern void remove_shrinker(struct shrinker *shrinker); * 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_struct *mm, pud_t *pud, unsigned long a 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, |
