Rename headers with the same name
PATCH 1/1 Rename headers with the same name
With the current uml patch I get:
$ ls arch/um/kernel/*/include arch/um/kernel/skas/include: mmu.h mode.h mode_kern.h proc_mm.h ptrace-skas.h skas.h uaccess.h
arch/um/kernel/tt/include:debug.h mmu.h mode.h mode_kern.h ptrace-tt.h tt.h uaccess.h and we see that mmu.h, mode.h, mode_kern.h and uaccess.h have the same name, so one cannot easily specify which one he wants to include. I'm attaching a script to rename all the files at once (revert its effect with -r switch) and a patch to correct references to them + fix any compile errors.
Bye
Signature · 2 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729
arch/um/include/um_uaccess.h renamed from arch/um/include/um_uaccess.h.fix +2 -2
@@ -10,11 +10,11 @@#include "choose-mode.h" #ifdef CONFIG_MODE_TT -#include "../kernel/tt/include/uaccess.h" +#include "uaccess-tt.h" #endif #ifdef CONFIG_MODE_SKAS -#include "../kernel/skas/include/uaccess.h" +#include "uaccess-skas.h" #endif #define access_ok (type, addr, size) \
arch/um/include/mode_kern.h renamed from arch/um/include/mode_kern.h.fix +2 -2
@@ -9,11 +9,11 @@#include "linux/config.h" #ifdef CONFIG_MODE_TT -#include "../kernel/tt/include/mode_kern.h" +#include "mode_kern-tt.h" #endif #ifdef CONFIG_MODE_SKAS -#include "../kernel/skas/include/mode_kern.h" +#include "mode_kern-skas.h" #endif #endif
arch/um/include/mode.h renamed from arch/um/include/mode.h.fix +2 -2
@@ -9,11 +9,11 @@#include "uml-config.h" #ifdef UML_CONFIG_MODE_TT -#include "../kernel/tt/include/mode.h" +#include "mode-tt.h" #endif #ifdef UML_CONFIG_MODE_SKAS -#include "../kernel/skas/include/mode.h" +#include "mode-skas.h" #endif #endif
arch/um/include/um_mmu.h renamed from arch/um/include/um_mmu.h.fix +2 -2
@@ -10,11 +10,11 @@#include "choose-mode.h" #ifdef CONFIG_MODE_TT -#include "../kernel/tt/include/mmu.h" +#include "mmu-tt.h" #endif #ifdef CONFIG_MODE_SKAS -#include "../kernel/skas/include/mmu.h" +#include "mmu-skas.h" #endif typedef union {
arch/um/kernel/skas/exec_kern.c renamed from arch/um/kernel/skas/exec_kern.c.fix +1 -1
@@ -12,7 +12,7 @@#include "asm/mmu_context.h" #include "tlb.h" #include "skas.h" -#include "mmu.h" +#include "um_mmu.h" #include "os.h" void flush_thread_skas (void )