arm: asm/tlb.h: Fix build error implicit func declaration
Subsystems (2)
PATCH 1/1 arm: asm/tlb.h: Fix build error implicit func declaration
Building on arm 32 with LPAE enabled we don't include asm-generic/tlb.h,
where we have tlb_flush_remove_tables_local and tlb_flush_remove_tables
defined.mm/memory.c: In function ?tlb_remove_table_smp_sync?:mm/memory.c:339:2: error: implicit declaration of function ?tlb_flush_remove_tables_local?; did you mean ?tlb_remove_table?? [-Werror=implicit-function-declaration]
tlb_flush_remove_tables_local(mm);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tlb_remove_tablemm/memory.c: In function ?tlb_table_flush?:mm/memory.c:372:2: error: implicit declaration of function ?tlb_flush_remove_tables?; did you mean ?tlb_remove_table?? [-Werror=implicit-function-declaration]
tlb_flush_remove_tables(tlb->mm);
^~~~~~~~~~~~~~~~~~~~~~~
tlb_remove_table
To fix this issue we define them in arm 32's specific asm/tlb.h file.
---
Ingo, would it make sense for you to pick it up into the x86 tree since that contains the bug ?
Cheers,
Anders
arch/arm/include/asm/tlb.h | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/include/asm/tlb.h +8 -0
@@ -292,5 +292,13 @@ static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb, { } +static inline void tlb_flush_remove_tables (struct mm_struct *mm) +{ +} + +static inline void tlb_flush_remove_tables_local (void *arg) +{ +} +#endif /* CONFIG_MMU */ #endif
Signature · 1 line
2.18.0
Quoted 14 lines · Anders Roxell
Building on arm 32 with LPAE enabled we don't include
asm-generic/tlb.h,
where we havetlb_flush_remove_tables_localandtlb_flush_remove_tables
defined.mm/memory.c: In function ?tlb_remove_table_smp_sync?:mm/memory.c:339:2: error: implicit declaration of function ?tlb_flush_remove_tables_local?; did you mean ?tlb_remove_table?? [-Werror=implicit-function-declaration]
tlb_flush_remove_tables_local(mm);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tlb_remove_tablemm/memory.c: In function ?tlb_table_flush?:mm/memory.c:372:2: error: implicit declaration of function ?tlb_flush_remove_tables?; did you mean ?tlb_remove_table?? [-Werror=implicit-function-declaration]
tlb_flush_remove_tables(tlb->mm);
^~~~~~~~~~~~~~~~~~~~~~~
tlb_remove_table
Quoted 8 lines
To fix this issue we define them in arm 32's specific
asm/tlb.hfile.Fixes 2ff6ddf19c0e ("x86/mm/tlb: Leave lazy TLB mode at page table free time")Signed-off-by Anders Roxell <[email protected]>---
Ingo, would it make sense for you to pick it up into the x86 tree since that contains the bug ?
Done and sorry about that! Will push your fix out to -next as well ASAP.
Thanks,
Ingo
tip-bot for Anders Roxell
merge bot[tip:x86/mm] arm/asm/tlb.h: Fix build error implicit func declaration
In reply to Anders Roxellarm/asm/tlb.h: Fix build error implicit func declaration
Commit-ID: 063daa8129f94d651c4d30a8333b577c5bbf8090 Gitweb: https://git.kernel.org/tip/063daa8129f94d651c4d30a8333b577c5bbf8090 Author: Anders Roxell <[email protected]> AuthorDate: Wed, 25 Jul 2018 11:55:57 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Wed, 25 Jul 2018 12:09:09 +0200
arm/asm/tlb.h: Fix build error implicit func declaration
Building on arm 32 with LPAE enabled we don't include asm-generic/tlb.h, where we have tlb_flush_remove_tables_local and tlb_flush_remove_tables defined.
The build fails with:
mm/memory.c: In function ‘tlb_remove_table_smp_sync’:
mm/memory.c:339:2: error: implicit declaration of function ‘tlb_flush_remove_tables_local’; did you mean ‘tlb_remove_table’? [-Werror=implicit-function-declaration]
...
This bug got introduced in:
2ff6ddf19c0e ("x86/mm/tlb: Leave lazy TLB mode at page table free time")
To fix this issue we define them in arm 32's specific asm/tlb.h file as well.
--- arch/arm/include/asm/tlb.h | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/include/asm/tlb.h +8 -0
@@ -292,5 +292,13 @@ static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb, { } +static inline void tlb_flush_remove_tables (struct mm_struct *mm) +{ +} + +static inline void tlb_flush_remove_tables_local (void *arg) +{ +} +#endif /* CONFIG_MMU */ #endif