hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/powerpc/include/asm/slice.h
....@@ -4,11 +4,11 @@
44
55 #ifdef CONFIG_PPC_BOOK3S_64
66 #include <asm/book3s/64/slice.h>
7
-#elif defined(CONFIG_PPC64)
8
-#include <asm/nohash/64/slice.h>
9
-#elif defined(CONFIG_PPC_MMU_NOHASH)
10
-#include <asm/nohash/32/slice.h>
117 #endif
8
+
9
+#ifndef __ASSEMBLY__
10
+
11
+struct mm_struct;
1212
1313 #ifdef CONFIG_PPC_MM_SLICES
1414
....@@ -17,10 +17,6 @@
1717 #endif
1818 #define HAVE_ARCH_UNMAPPED_AREA
1919 #define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
20
-
21
-#ifndef __ASSEMBLY__
22
-
23
-struct mm_struct;
2420
2521 unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len,
2622 unsigned long flags, unsigned int psize,
....@@ -32,9 +28,19 @@
3228 unsigned long len, unsigned int psize);
3329
3430 void slice_init_new_context_exec(struct mm_struct *mm);
31
+void slice_setup_new_exec(void);
3532
36
-#endif /* __ASSEMBLY__ */
33
+#else /* CONFIG_PPC_MM_SLICES */
34
+
35
+static inline void slice_init_new_context_exec(struct mm_struct *mm) {}
36
+
37
+static inline unsigned int get_slice_psize(struct mm_struct *mm, unsigned long addr)
38
+{
39
+ return 0;
40
+}
3741
3842 #endif /* CONFIG_PPC_MM_SLICES */
3943
44
+#endif /* __ASSEMBLY__ */
45
+
4046 #endif /* _ASM_POWERPC_SLICE_H */