Skip to content

Commit 1608e4c

Browse files
anadavIngo Molnar
authored andcommitted
x86/mm/tlb: Remove unnecessary uses of the inline keyword
The compiler is smart enough without these hints. Suggested-by: Dave Hansen <[email protected]> Signed-off-by: Nadav Amit <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Dave Hansen <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 291c401 commit 1608e4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/x86/mm/tlb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void switch_mm(struct mm_struct *prev, struct mm_struct *next,
316316
local_irq_restore(flags);
317317
}
318318

319-
static inline unsigned long mm_mangle_tif_spec_ib(struct task_struct *next)
319+
static unsigned long mm_mangle_tif_spec_ib(struct task_struct *next)
320320
{
321321
unsigned long next_tif = task_thread_info(next)->flags;
322322
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);
880880
static DEFINE_PER_CPU(unsigned int, flush_tlb_info_idx);
881881
#endif
882882

883-
static inline struct flush_tlb_info *get_flush_tlb_info(struct mm_struct *mm,
883+
static struct flush_tlb_info *get_flush_tlb_info(struct mm_struct *mm,
884884
unsigned long start, unsigned long end,
885885
unsigned int stride_shift, bool freed_tables,
886886
u64 new_tlb_gen)
@@ -907,7 +907,7 @@ static inline struct flush_tlb_info *get_flush_tlb_info(struct mm_struct *mm,
907907
return info;
908908
}
909909

910-
static inline void put_flush_tlb_info(void)
910+
static void put_flush_tlb_info(void)
911911
{
912912
#ifdef CONFIG_DEBUG_VM
913913
/* Complete reentrency prevention checks */

0 commit comments

Comments
 (0)