Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_POWERPC_SLICE_H
|
|
#define _ASM_POWERPC_SLICE_H
|
|
|
|
#ifdef CONFIG_PPC_BOOK3S_64
|
|
#include <asm/book3s/64/slice.h>
|
|
#elif defined(CONFIG_PPC64)
|
|
#include <asm/nohash/64/slice.h>
|
|
#elif defined(CONFIG_PPC_MMU_NOHASH)
|
|
#include <asm/nohash/32/slice.h>
|
|
#endif
|
|
|
|
#ifdef CONFIG_PPC_MM_SLICES
|
|
|
|
#ifdef CONFIG_HUGETLB_PAGE
|
|
#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA
|
|
#endif
|
|
#define HAVE_ARCH_UNMAPPED_AREA
|
|
#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
struct mm_struct;
|
|
|
|
unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len,
|
|
unsigned long flags, unsigned int psize,
|
|
int topdown);
|
|
|
|
unsigned int get_slice_psize(struct mm_struct *mm, unsigned long addr);
|
|
|
|
void slice_set_user_psize(struct mm_struct *mm, unsigned int psize);
|
|
void slice_set_range_psize(struct mm_struct *mm, unsigned long start,
|
|
unsigned long len, unsigned int psize);
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#else /* CONFIG_PPC_MM_SLICES */
|
|
|
|
#define slice_set_range_psize(mm, start, len, psize) \
|
|
slice_set_user_psize((mm), (psize))
|
|
#endif /* CONFIG_PPC_MM_SLICES */
|
|
|
|
#endif /* _ASM_POWERPC_SLICE_H */
|