linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/tlb: fix allnoconfig building warning
@ 2012-07-20  1:18 Alex Shi
  2012-07-20  8:54 ` Borislav Petkov
  2012-07-20 22:34 ` [tip:x86/mm] x86/tlb: Fix build warning and crash when building for !SMP tip-bot for Alex Shi
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Shi @ 2012-07-20  1:18 UTC (permalink / raw)
  To: hpa
  Cc: tglx, mingo, alex.shi, tj, akpm, sfr, linux-kernel, bp, penguin-kernel

The incompatible parameter of flush_tlb_mm_range cause build warning.
Fix it by correct parameter.

Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Alex Shi <alex.shi@intel.com>
---
 arch/x86/include/asm/tlbflush.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h
index 621b959..4fc8faf 100644
--- a/arch/x86/include/asm/tlbflush.h
+++ b/arch/x86/include/asm/tlbflush.h
@@ -105,10 +105,10 @@ static inline void flush_tlb_range(struct vm_area_struct *vma,
 		__flush_tlb();
 }
 
-static inline void flush_tlb_mm_range(struct vm_area_struct *vma,
+static inline void flush_tlb_mm_range(struct mm_struct *mm,
 	   unsigned long start, unsigned long end, unsigned long vmflag)
 {
-	if (vma->vm_mm == current->active_mm)
+	if (mm == current->active_mm)
 		__flush_tlb();
 }
 
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-20 22:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-20  1:18 [PATCH] x86/tlb: fix allnoconfig building warning Alex Shi
2012-07-20  8:54 ` Borislav Petkov
2012-07-20 22:34 ` [tip:x86/mm] x86/tlb: Fix build warning and crash when building for !SMP tip-bot for Alex Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).