diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-04-25 14:29:35 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-05-03 01:20:23 +1000 |
commit | 43ed7909d70a61c621cadb5d808dc392ad537e5a (patch) | |
tree | ecac84464264ea089a5da5d94a5ebdf1fa3accf7 /arch/powerpc/include/asm/slice.h | |
parent | 33f128c64919736164e70eb024da3ae5e5768cd6 (diff) | |
download | linux-43ed7909d70a61c621cadb5d808dc392ad537e5a.tar.bz2 |
powerpc/mm: define get_slice_psize() all the time
get_slice_psize() can be defined regardless of CONFIG_PPC_MM_SLICES
to avoid ifdefs
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/slice.h')
-rw-r--r-- | arch/powerpc/include/asm/slice.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/slice.h b/arch/powerpc/include/asm/slice.h index be8af667098f..c6f466f4c241 100644 --- a/arch/powerpc/include/asm/slice.h +++ b/arch/powerpc/include/asm/slice.h @@ -36,6 +36,11 @@ void slice_setup_new_exec(void); static inline void slice_init_new_context_exec(struct mm_struct *mm) {} +static inline unsigned int get_slice_psize(struct mm_struct *mm, unsigned long addr) +{ + return 0; +} + #endif /* CONFIG_PPC_MM_SLICES */ #endif /* __ASSEMBLY__ */ |