Skip to contentSkip to conversation

arm64: Fix redefinition of init_new_context()

PATCH In review Qian Cai 2 participants 3 messages Oct 12, 2020 – Oct 27, 2020

Subsystems (3)
lore
Share & tools
lore

Qian Cai

author
#0 lore raw

PATCH 1/1 arm64: Fix redefinition of init_new_context()

The linux-next commit c870baeede75 ("asm-generic: add generic MMU versions of mmu context functions") missed a case in the arm64/for-next branch.

---
 arch/arm64/include/asm/mmu_context.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/include/asm/mmu_context.h +1 -0
index da5f146e665b..cd5c33a50469 100644
@@ -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)
 {
Signature · 1 line
2.28.0
author
#2 lore raw
In reply to Qian Cai
Quoted 5 lines · Qian Cai

The linux-next commit c870baeede75 ("asm-generic: add generic MMU versions of mmu context functions") missed a case in the arm64/for-next branch.

Arnd, Stephen, can you apply this patch? Those compiling errors are back again in next-20201027.

Quoted 17 lines
---
 arch/arm64/include/asm/mmu_context.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/include/asm/mmu_context.h +1 -0
index da5f146e665b..cd5c33a50469 100644
@@ -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)
 {