aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/slice.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/slice.h')
-rw-r--r--arch/powerpc/include/asm/slice.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/powerpc/include/asm/slice.h b/arch/powerpc/include/asm/slice.h
index a595461c9cb0..44816cbc4198 100644
--- a/arch/powerpc/include/asm/slice.h
+++ b/arch/powerpc/include/asm/slice.h
@@ -10,6 +10,10 @@
10#include <asm/nohash/32/slice.h> 10#include <asm/nohash/32/slice.h>
11#endif 11#endif
12 12
13#ifndef __ASSEMBLY__
14
15struct mm_struct;
16
13#ifdef CONFIG_PPC_MM_SLICES 17#ifdef CONFIG_PPC_MM_SLICES
14 18
15#ifdef CONFIG_HUGETLB_PAGE 19#ifdef CONFIG_HUGETLB_PAGE
@@ -18,10 +22,6 @@
18#define HAVE_ARCH_UNMAPPED_AREA 22#define HAVE_ARCH_UNMAPPED_AREA
19#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN 23#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
20 24
21#ifndef __ASSEMBLY__
22
23struct mm_struct;
24
25unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len, 25unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len,
26 unsigned long flags, unsigned int psize, 26 unsigned long flags, unsigned int psize,
27 int topdown); 27 int topdown);
@@ -34,8 +34,12 @@ void slice_set_range_psize(struct mm_struct *mm, unsigned long start,
34void slice_init_new_context_exec(struct mm_struct *mm); 34void slice_init_new_context_exec(struct mm_struct *mm);
35void slice_setup_new_exec(void); 35void slice_setup_new_exec(void);
36 36
37#endif /* __ASSEMBLY__ */ 37#else /* CONFIG_PPC_MM_SLICES */
38
39static inline void slice_init_new_context_exec(struct mm_struct *mm) {}
38 40
39#endif /* CONFIG_PPC_MM_SLICES */ 41#endif /* CONFIG_PPC_MM_SLICES */
40 42
43#endif /* __ASSEMBLY__ */
44
41#endif /* _ASM_POWERPC_SLICE_H */ 45#endif /* _ASM_POWERPC_SLICE_H */