提交 1608e4cf 编写于 作者: N Nadav Amit 提交者: Ingo Molnar

x86/mm/tlb: Remove unnecessary uses of the inline keyword

The compiler is smart enough without these hints.
Suggested-by: NDave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: NNadav Amit <namit@vmware.com>
Signed-off-by: NIngo Molnar <mingo@kernel.org>
Reviewed-by: NDave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20210220231712.2475218-9-namit@vmware.com
上级 291c4011
无相关合并请求
...@@ -316,7 +316,7 @@ void switch_mm(struct mm_struct *prev, struct mm_struct *next, ...@@ -316,7 +316,7 @@ void switch_mm(struct mm_struct *prev, struct mm_struct *next,
local_irq_restore(flags); local_irq_restore(flags);
} }
static inline unsigned long mm_mangle_tif_spec_ib(struct task_struct *next) static unsigned long mm_mangle_tif_spec_ib(struct task_struct *next)
{ {
unsigned long next_tif = task_thread_info(next)->flags; unsigned long next_tif = task_thread_info(next)->flags;
unsigned long ibpb = (next_tif >> TIF_SPEC_IB) & LAST_USER_MM_IBPB; unsigned long ibpb = (next_tif >> TIF_SPEC_IB) & LAST_USER_MM_IBPB;
...@@ -880,7 +880,7 @@ static DEFINE_PER_CPU_SHARED_ALIGNED(struct flush_tlb_info, flush_tlb_info); ...@@ -880,7 +880,7 @@ static DEFINE_PER_CPU_SHARED_ALIGNED(struct flush_tlb_info, flush_tlb_info);
static DEFINE_PER_CPU(unsigned int, flush_tlb_info_idx); static DEFINE_PER_CPU(unsigned int, flush_tlb_info_idx);
#endif #endif
static inline struct flush_tlb_info *get_flush_tlb_info(struct mm_struct *mm, static struct flush_tlb_info *get_flush_tlb_info(struct mm_struct *mm,
unsigned long start, unsigned long end, unsigned long start, unsigned long end,
unsigned int stride_shift, bool freed_tables, unsigned int stride_shift, bool freed_tables,
u64 new_tlb_gen) u64 new_tlb_gen)
...@@ -907,7 +907,7 @@ static inline struct flush_tlb_info *get_flush_tlb_info(struct mm_struct *mm, ...@@ -907,7 +907,7 @@ static inline struct flush_tlb_info *get_flush_tlb_info(struct mm_struct *mm,
return info; return info;
} }
static inline void put_flush_tlb_info(void) static void put_flush_tlb_info(void)
{ {
#ifdef CONFIG_DEBUG_VM #ifdef CONFIG_DEBUG_VM
/* Complete reentrency prevention checks */ /* Complete reentrency prevention checks */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部