diff options
author | Cédric Le Goater <clg@kaod.org> | 2021-01-04 15:31:56 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-01-30 11:39:29 +1100 |
commit | 11f9c1d2fb497f69f83d4fab6fb7fc8a6884eded (patch) | |
tree | 8f0c6f0e0734f9051ae1b95166fd597549c9a7aa /arch/powerpc/include | |
parent | cccaf1a10abf03d91321d29ff333d6d5d4cef542 (diff) | |
download | linux-11f9c1d2fb497f69f83d4fab6fb7fc8a6884eded.tar.bz2 |
powerpc/mm: Move hpte_insert_repeating() prototype
It fixes this W=1 compile error :
../arch/powerpc/mm/book3s64/hash_utils.c:1867:6: error: no previous prototype for ‘hpte_insert_repeating’ [-Werror=missing-prototypes]
1867 | long hpte_insert_repeating(unsigned long hash, unsigned long vpn,
| ^~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210104143206.695198-14-clg@kaod.org
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/book3s/64/mmu-hash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/book3s/64/mmu-hash.h b/arch/powerpc/include/asm/book3s/64/mmu-hash.h index cb95b16e9a7b..2bffc7a0fdb8 100644 --- a/arch/powerpc/include/asm/book3s/64/mmu-hash.h +++ b/arch/powerpc/include/asm/book3s/64/mmu-hash.h @@ -454,6 +454,8 @@ static inline unsigned long hpt_hash(unsigned long vpn, #define HPTE_NOHPTE_UPDATE 0x2 #define HPTE_USE_KERNEL_KEY 0x4 +long hpte_insert_repeating(unsigned long hash, unsigned long vpn, unsigned long pa, + unsigned long rlags, unsigned long vflags, int psize, int ssize); extern int __hash_page_4K(unsigned long ea, unsigned long access, unsigned long vsid, pte_t *ptep, unsigned long trap, unsigned long flags, int ssize, int subpage_prot); |