aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/mman.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/mman.h')
-rw-r--r--include/asm-powerpc/mman.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/asm-powerpc/mman.h b/include/asm-powerpc/mman.h
index f8a32e20ba04..9209f755763e 100644
--- a/include/asm-powerpc/mman.h
+++ b/include/asm-powerpc/mman.h
@@ -1,9 +1,7 @@
1#ifndef _ASM_POWERPC_MMAN_H 1#ifndef _ASM_POWERPC_MMAN_H
2#define _ASM_POWERPC_MMAN_H 2#define _ASM_POWERPC_MMAN_H
3 3
4#include <asm/cputable.h>
5#include <asm-generic/mman.h> 4#include <asm-generic/mman.h>
6#include <linux/mm.h>
7 5
8/* 6/*
9 * This program is free software; you can redistribute it and/or 7 * This program is free software; you can redistribute it and/or
@@ -28,7 +26,12 @@
28#define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ 26#define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */
29#define MAP_NONBLOCK 0x10000 /* do not block on IO */ 27#define MAP_NONBLOCK 0x10000 /* do not block on IO */
30 28
29#ifdef __KERNEL__
31#ifdef CONFIG_PPC64 30#ifdef CONFIG_PPC64
31
32#include <asm/cputable.h>
33#include <linux/mm.h>
34
32/* 35/*
33 * This file is included by linux/mman.h, so we can't use cacl_vm_prot_bits() 36 * This file is included by linux/mman.h, so we can't use cacl_vm_prot_bits()
34 * here. How important is the optimization? 37 * here. How important is the optimization?
@@ -56,4 +59,5 @@ static inline int arch_validate_prot(unsigned long prot)
56#define arch_validate_prot(prot) arch_validate_prot(prot) 59#define arch_validate_prot(prot) arch_validate_prot(prot)
57 60
58#endif /* CONFIG_PPC64 */ 61#endif /* CONFIG_PPC64 */
62#endif /* __KERNEL__ */
59#endif /* _ASM_POWERPC_MMAN_H */ 63#endif /* _ASM_POWERPC_MMAN_H */