linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] [PATCH] Rename headers with the same name
@ 2004-02-16 18:21 BlaisorBlade
  0 siblings, 0 replies; only message in thread
From: BlaisorBlade @ 2004-02-16 18:21 UTC (permalink / raw)
  To: Jeff Dike, user-mode-linux-devel

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

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
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729



[-- Attachment #2: RenameModeHeaders.patch --]
[-- Type: text/x-diff, Size: 1967 bytes --]

--- ./arch/um/include/um_uaccess.h.fix	2004-02-05 16:45:10.000000000 +0100
+++ ./arch/um/include/um_uaccess.h	2004-02-08 17:36:00.000000000 +0100
@@ -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.fix	2003-12-20 17:20:03.000000000 +0100
+++ ./arch/um/include/mode_kern.h	2004-02-08 17:36:00.000000000 +0100
@@ -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.fix	2003-12-20 17:40:55.000000000 +0100
+++ ./arch/um/include/mode.h	2004-02-08 17:36:00.000000000 +0100
@@ -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.fix	2003-12-20 17:20:03.000000000 +0100
+++ ./arch/um/include/um_mmu.h	2004-02-08 17:36:00.000000000 +0100
@@ -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.fix	2003-12-20 17:20:03.000000000 +0100
+++ ./arch/um/kernel/skas/exec_kern.c	2004-02-08 18:08:57.000000000 +0100
@@ -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)

[-- Attachment #3: RenameModeHeaders.sh --]
[-- Type: application/x-shellscript, Size: 268 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-16 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-16 18:21 [uml-devel] [PATCH] Rename headers with the same name BlaisorBlade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox