arm64: Fix build error for init_new_context()
diff mbox series

Message ID 1603850167-22652-1-git-send-email-hayashi.kunihiko@socionext.com
State New, archived
Headers show
Series
  • arm64: Fix build error for init_new_context()
Related show

Commit Message

Kunihiko Hayashi Oct. 28, 2020, 1:56 a.m. UTC
After init_new_context() in arch/arm64/include/asm/mmu_context.h changed to
inline, asm-generic/mmu_context.h inclusion was added. This should be defined.

Fixes these build error:

../include/asm-generic/mmu_context.h:34:19: error: redefinition of 'init_new_context'
   34 | static inline int init_new_context(struct task_struct *tsk,
      |                   ^~~~~~~~~~~~~~~~

Cc: Nicholas Piggin <npiggin@gmail.com>
Fixes: 4c792ad103f3 ("arm64: use asm-generic/mmu_context.h for no-op implementations")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
 arch/arm64/include/asm/mmu_context.h | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h
index da5f146..cd5c33a 100644
--- a/arch/arm64/include/asm/mmu_context.h
+++ b/arch/arm64/include/asm/mmu_context.h
@@ -176,6 +176,7 @@  static inline void cpu_replace_ttbr1(pgd_t *pgdp)
  */
 void check_and_switch_context(struct mm_struct *mm);
 
+#define init_new_context init_new_context
 static inline int
 init_new_context(struct task_struct *tsk, struct mm_struct *mm)
 {