]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
build: [linux-user] Rename "syscall.h" to "target_syscall.h" in target directories
authorLluís Vilanova <vilanova@ac.upc.edu>
Mon, 1 Feb 2016 18:38:42 +0000 (19:38 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 23 Feb 2016 19:25:09 +0000 (21:25 +0200)
This fixes double-definitions in linux-user builds when using the UST
tracing backend (which indirectly includes the system's "syscall.h").

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
19 files changed:
linux-user/aarch64/target_syscall.h [moved from linux-user/aarch64/syscall.h with 80% similarity]
linux-user/alpha/target_syscall.h [moved from linux-user/alpha/syscall.h with 98% similarity]
linux-user/arm/target_syscall.h [moved from linux-user/arm/syscall.h with 93% similarity]
linux-user/cris/target_syscall.h [moved from linux-user/cris/syscall.h with 100% similarity]
linux-user/i386/target_syscall.h [moved from linux-user/i386/syscall.h with 97% similarity]
linux-user/m68k/target_syscall.h [moved from linux-user/m68k/syscall.h with 87% similarity]
linux-user/microblaze/target_syscall.h [moved from linux-user/microblaze/syscall.h with 100% similarity]
linux-user/mips/target_syscall.h [moved from linux-user/mips/syscall.h with 99% similarity]
linux-user/mips64/target_syscall.h [moved from linux-user/mips64/syscall.h with 99% similarity]
linux-user/openrisc/target_syscall.h [moved from linux-user/openrisc/syscall.h with 90% similarity]
linux-user/ppc/target_syscall.h [moved from linux-user/ppc/syscall.h with 96% similarity]
linux-user/qemu.h
linux-user/s390x/target_syscall.h [moved from linux-user/s390x/syscall.h with 89% similarity]
linux-user/sh4/target_syscall.h [moved from linux-user/sh4/syscall.h with 83% similarity]
linux-user/sparc/target_syscall.h [moved from linux-user/sparc/syscall.h with 87% similarity]
linux-user/sparc64/target_syscall.h [moved from linux-user/sparc64/syscall.h with 87% similarity]
linux-user/tilegx/target_syscall.h [moved from linux-user/tilegx/syscall.h with 100% similarity]
linux-user/unicore32/target_syscall.h [moved from linux-user/unicore32/syscall.h with 100% similarity]
linux-user/x86_64/target_syscall.h [moved from linux-user/x86_64/syscall.h with 96% similarity]

similarity index 80%
rename from linux-user/aarch64/syscall.h
rename to linux-user/aarch64/target_syscall.h
index dc72a15c5e2ae55267c64bbb549abb579adcbc39..f45801804897ed7be54169a24917eaf5b7879ae9 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 struct target_pt_regs {
     uint64_t        regs[31];
     uint64_t        sp;
@@ -11,3 +14,5 @@ struct target_pt_regs {
 #define TARGET_MINSIGSTKSZ       2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1
 #define TARGET_MLOCKALL_MCL_FUTURE  2
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 98%
rename from linux-user/alpha/syscall.h
rename to linux-user/alpha/target_syscall.h
index 245cff2545bceb3d66df1a14c5939391a1aa8415..3db4b16f6b5394edf5f33f9013a89a3ebe7e8564 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 /* default linux values for the selectors */
 #define __USER_DS      (1)
 
@@ -255,3 +258,5 @@ struct target_pt_regs {
 #define TARGET_MINSIGSTKSZ              4096
 #define TARGET_MLOCKALL_MCL_CURRENT     0x2000
 #define TARGET_MLOCKALL_MCL_FUTURE      0x4000
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 93%
rename from linux-user/arm/syscall.h
rename to linux-user/arm/target_syscall.h
index 3844a961121e3f086923864277062d3f114ebbec..ea863db0b9fe2c8aefef35340a6d254df0666369 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
 
 /* this struct defines the way the registers are stored on the
    stack during a system call. */
@@ -48,3 +50,5 @@ struct target_pt_regs {
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1
 #define TARGET_MLOCKALL_MCL_FUTURE  2
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 97%
rename from linux-user/i386/syscall.h
rename to linux-user/i386/target_syscall.h
index 906aaac0b1c6941dd4e329c525b7eb0220228dd9..0ac84dc02fe0dab7396245ebefdc877104157c02 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 /* default linux values for the selectors */
 #define __USER_CS      (0x23)
 #define __USER_DS      (0x2B)
@@ -150,3 +153,5 @@ struct target_vm86plus_struct {
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1
 #define TARGET_MLOCKALL_MCL_FUTURE  2
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 87%
rename from linux-user/m68k/syscall.h
rename to linux-user/m68k/target_syscall.h
index 9218493a44ba375c27d6f23b135bf8fdc9e86009..97a4cc0cbd43cb25819331d196ee1af7d8c93378 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
 
 /* this struct defines the way the registers are stored on the
    stack during a system call. */
@@ -23,3 +25,5 @@ struct target_pt_regs {
 #define TARGET_MLOCKALL_MCL_FUTURE  2
 
 void do_m68k_simcall(CPUM68KState *, int);
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 99%
rename from linux-user/mips/syscall.h
rename to linux-user/mips/target_syscall.h
index 35ca23b1661c2d41954b921c73fab208a45c019f..68db160e535639736d8da3a824bee687dd7faef1 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
 
 /* this struct defines the way the registers are stored on the
    stack during a system call. */
@@ -231,3 +233,5 @@ struct target_pt_regs {
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1
 #define TARGET_MLOCKALL_MCL_FUTURE  2
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 99%
rename from linux-user/mips64/syscall.h
rename to linux-user/mips64/target_syscall.h
index 6733107ddbf5fa209c466c86a7a50d765c8e79f2..0e0c2d232f97c015c5510107ec7d61632e219b29 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
 
 /* this struct defines the way the registers are stored on the
    stack during a system call. */
@@ -228,3 +230,5 @@ struct target_pt_regs {
 #define TARGET_MINSIGSTKSZ      2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1
 #define TARGET_MLOCKALL_MCL_FUTURE  2
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 90%
rename from linux-user/openrisc/syscall.h
rename to linux-user/openrisc/target_syscall.h
index 8ac03656d4b1a1fc115811f8a2435978e1f39b49..19aeffc95d087dfc24e1fcfafddfb2b7c2fb06b0 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 struct target_pt_regs {
     union {
         struct {
@@ -27,3 +30,5 @@ struct target_pt_regs {
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1
 #define TARGET_MLOCKALL_MCL_FUTURE  2
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 96%
rename from linux-user/ppc/syscall.h
rename to linux-user/ppc/target_syscall.h
index 0daf5cd2df0dfc34e76954680fb16cdb73d095c2..35cab5946257aa49432b0257d0a38211dc3a2511 100644 (file)
@@ -17,6 +17,9 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 /* XXX: ABSOLUTELY BUGGY:
  * for now, this is quite just a cut-and-paste from i386 target...
  */
@@ -73,3 +76,5 @@ struct target_revectored_struct {
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MLOCKALL_MCL_CURRENT 0x2000
 #define TARGET_MLOCKALL_MCL_FUTURE  0x4000
+
+#endif  /* TARGET_SYSCALL_H */
index ba5b433d998bce45ca8e1477915cea5dec1b3710..26b0ba2736f53b27b803f93b37e47398442087b1 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "exec/user/thunk.h"
 #include "syscall_defs.h"
-#include "syscall.h"
+#include "target_syscall.h"
 #include "exec/gdbstub.h"
 #include "qemu/queue.h"
 
similarity index 89%
rename from linux-user/s390x/syscall.h
rename to linux-user/s390x/target_syscall.h
index 35f170af252846fc2c0b0fbe0844133a0ab3b703..02061efc780a33786f2f4f696b8c6b6c0a3f8a8d 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 /* this typedef defines how a Program Status Word looks like */
 typedef struct {
     abi_ulong mask;
@@ -27,3 +30,5 @@ struct target_pt_regs {
 #define TARGET_MINSIGSTKSZ        2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1
 #define TARGET_MLOCKALL_MCL_FUTURE  2
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 83%
rename from linux-user/sh4/syscall.h
rename to linux-user/sh4/target_syscall.h
index 7aa4f239c51e74547215a44a9e236a2855637688..9f3381bc9b73e21a8deeed5a76cc0e2a53ed7de5 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 struct target_pt_regs {
         unsigned long regs[16];
         unsigned long pc;
@@ -15,3 +18,5 @@ struct target_pt_regs {
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1
 #define TARGET_MLOCKALL_MCL_FUTURE  2
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 87%
rename from linux-user/sparc/syscall.h
rename to linux-user/sparc/target_syscall.h
index 58573b92ea635df4d7634193169b650d34a8f42f..a73fa6dae14771a03b48f3b573a39593a38c2869 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 struct target_pt_regs {
        abi_ulong psr;
        abi_ulong pc;
@@ -18,3 +21,5 @@ struct target_pt_regs {
 #define TARGET_MINSIGSTKSZ      4096
 #define TARGET_MLOCKALL_MCL_CURRENT 0x2000
 #define TARGET_MLOCKALL_MCL_FUTURE  0x4000
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 87%
rename from linux-user/sparc64/syscall.h
rename to linux-user/sparc64/target_syscall.h
index 8398d3f4636cad92b1764a0a242bb6ba8cdaee0f..eb827fcac16d17b0767246a2697ffe93822b8c0b 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 struct target_pt_regs {
        abi_ulong u_regs[16];
        abi_ulong tstate;
@@ -19,3 +22,5 @@ struct target_pt_regs {
 #define TARGET_MINSIGSTKSZ      4096
 #define TARGET_MLOCKALL_MCL_CURRENT 0x2000
 #define TARGET_MLOCKALL_MCL_FUTURE  0x4000
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 96%
rename from linux-user/x86_64/syscall.h
rename to linux-user/x86_64/target_syscall.h
index 88b3c3fe3165f24e37aca2845823eb1c6c88bd76..feecd32d50462738ee42b8b2d333114b5feb9b0c 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 #define __USER_CS      (0x33)
 #define __USER_DS      (0x2B)
 
@@ -100,3 +103,5 @@ struct target_msqid64_ds {
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1
 #define TARGET_MLOCKALL_MCL_FUTURE  2
+
+#endif  /* TARGET_SYSCALL_H */