aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/flatload.c6
-rw-r--r--linux-user/main.c4
-rw-r--r--linux-user/syscall.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/linux-user/flatload.c b/linux-user/flatload.c
index 29664b1447..ea810d5966 100644
--- a/linux-user/flatload.c
+++ b/linux-user/flatload.c
@@ -102,8 +102,8 @@ static abi_ulong copy_strings(abi_ulong p, int n, char **s)
return p;
}
-int target_pread(int fd, abi_ulong ptr, abi_ulong len,
- abi_ulong offset)
+static int target_pread(int fd, abi_ulong ptr, abi_ulong len,
+ abi_ulong offset)
{
void *buf;
int ret;
@@ -336,7 +336,7 @@ failed:
/****************************************************************************/
/* ??? This does not handle endianness correctly. */
-void old_reloc(struct lib_info *libinfo, uint32_t rl)
+static void old_reloc(struct lib_info *libinfo, uint32_t rl)
{
#ifdef DEBUG
char *segment[] = { "TEXT", "DATA", "BSS", "*UNKNOWN*" };
diff --git a/linux-user/main.c b/linux-user/main.c
index fef4bf70d1..a5aefce3dc 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -283,7 +283,7 @@ static void write_dt(void *ptr, unsigned long addr, unsigned long limit,
}
#ifdef TARGET_X86_64
-uint64_t idt_table[512];
+static uint64_t idt_table[512];
static void set_gate64(void *ptr, unsigned int type, unsigned int dpl,
uint64_t addr, unsigned int sel)
@@ -303,7 +303,7 @@ static void set_idt(int n, unsigned int dpl)
set_gate64(idt_table + n * 2, 0, dpl, 0, 0);
}
#else
-uint64_t idt_table[256];
+static uint64_t idt_table[256];
static void set_gate(void *ptr, unsigned int type, unsigned int dpl,
uint32_t addr, unsigned int sel)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 29254a2705..44fbc7ca62 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2500,7 +2500,7 @@ static bitmask_transtbl fcntl_flags_tbl[] = {
#if defined(TARGET_I386)
/* NOTE: there is really one LDT for all the threads */
-uint8_t *ldt_table;
+static uint8_t *ldt_table;
static abi_long read_ldt(abi_ulong ptr, unsigned long bytecount)
{