Skip to contentSkip to conversation

mm: fremap use linux header

PATCH In review Paul McQuade 2 participants 2 messages Oct 2, 2014 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: fremap use linux header

Use #include <linux/mmu_context.h> instead of <asm/mmu_context.h>

---
 mm/fremap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/fremap.c +2 -2
index 72b8fa3..d614f1c 100644
@@ -1,6 +1,6 @@
 /*
  *   linux/mm/fremap.c
- * 
+ *
  * Explicit pagetable population and nonlinear (random) mappings support.
  *
  * started by Ingo Molnar, Copyright (C) 2002, 2003
@@ -16,8 +16,8 @@
 #include <linux/rmap.h>
 #include <linux/syscalls.h>
 #include <linux/mmu_notifier.h>
+#include <linux/mmu_context.h>
 
-#include <asm/mmu_context.h>
 #include <asm/cacheflush.h>
 #include <asm/tlbflush.h>
 
Signature · 7 lines
1.9.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#1 lore raw
Quoted 1 line · Paul McQuade

Use #include <linux/mmu_context.h> instead of <asm/mmu_context.h>

linux/mmu_context.h does not include asm/mmu_context.h

This leads me to believe that either fremap.c does not use any definitions from either mmu_context.h file, or after your change the code that fremap.c needs is no longer directly included (but only imported indirectly due to sheer luck).

Could you verify which of these is the case?

If fremap.c is not using any code from mmu_context.h, we are better off simply removing that line, instead of replacing it with an unnecessary include...

Quoted 23 lines
mm/fremap.c +2 -2
index 72b8fa3..d614f1c 100644
@@ -1,6 +1,6 @@
 /*
  *   linux/mm/fremap.c
- * 
+ *
  * Explicit pagetable population and nonlinear (random) mappings support.
  *
  * started by Ingo Molnar, Copyright (C) 2002, 2003
@@ -16,8 +16,8 @@
 #include <linux/rmap.h>
 #include <linux/syscalls.h>
 #include <linux/mmu_notifier.h>
+#include <linux/mmu_context.h>
 
-#include <asm/mmu_context.h>
 #include <asm/cacheflush.h>
 #include <asm/tlbflush.h>