Skip to contentSkip to conversation

mm/mmu_context: Remove asm/mmu_context.h include directive

PATCH New Borislav Petkov 1 participant 1 message Dec 14, 2017 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/mmu_context: Remove asm/mmu_context.h include directive

From: Borislav Petkov <[email protected]>

The header linux/mmu_context.h includes it already. Otherwise, you get warnings like below with some configs.

In file included from mm/mmu_context.c:11:0:
./arch/x86/include/asm/mmu_context.h:129:0: warning: "switch_mm_irqs_off" redefined [enabled by default]
#define switch_mm_irqs_off switch_mm_irqs_off
^
In file included from mm/mmu_context.c:8:0:
include/linux/mmu_context.h:15:0: note: this is the location of the previous definition

   # define switch_mm_irqs_off switch_mm
   ^
---
 mm/mmu_context.c | 2 --
 1 file changed, 2 deletions(-)
mm/mmu_context.c +0 -2
index 3e612ae748e9..50c556e19383 100644
@@ -10,8 +10,6 @@
 #include <linux/mmu_context.h>
 #include <linux/export.h>
 
-#include <asm/mmu_context.h>
-
 /*
  * use_mm
  *	Makes the calling kernel thread take on the specified
Signature · 7 lines
2.13.0

--
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>