lkml.org 
[lkml]   [2020]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] arm64: Fix build error for init_new_context()
Date
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(+)

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)
{
--
2.7.4
\
 
 \ /
  Last update: 2020-10-28 23:29    [W:0.029 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site