As reported by lkp:
arch/powerpc/mm/book3s64/radix_tlb.c:646:6: warning: no previous
prototype for function 'exit_lazy_flush_tlb'
Fix it by moving the prototype into the existing header.
Fixes: 032b7f0893
("powerpc/64s/radix: serialize_against_pte_lookup IPIs trim mm_cpumask")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210210130804.3190952-2-mpe@ellerman.id.au
20 lines
483 B
C
20 lines
483 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H
|
|
#define ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H
|
|
|
|
#include <linux/jump_label.h>
|
|
|
|
extern bool stress_slb_enabled;
|
|
|
|
DECLARE_STATIC_KEY_FALSE(stress_slb_key);
|
|
|
|
static inline bool stress_slb(void)
|
|
{
|
|
return static_branch_unlikely(&stress_slb_key);
|
|
}
|
|
|
|
void slb_setup_new_exec(void);
|
|
|
|
void exit_lazy_flush_tlb(struct mm_struct *mm, bool always_flush);
|
|
|
|
#endif /* ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H */
|