[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5539] Fix undeclared symbol warnings from sparse
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [5539] Fix undeclared symbol warnings from sparse |
Date: |
Sun, 26 Oct 2008 13:43:08 +0000 |
Revision: 5539
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5539
Author: blueswir1
Date: 2008-10-26 13:43:07 +0000 (Sun, 26 Oct 2008)
Log Message:
-----------
Fix undeclared symbol warnings from sparse
Modified Paths:
--------------
trunk/audio/sdlaudio.c
trunk/block-vmdk.c
trunk/feature_to_c.sh
trunk/fpu/softfloat-specialize.h
trunk/hw/bt-hci.c
trunk/hw/cbus.c
trunk/hw/gt64xxx.c
trunk/hw/mst_fpga.c
trunk/hw/musicpal.c
trunk/hw/nand.c
trunk/hw/omap2.c
trunk/hw/omap_clk.c
trunk/hw/openpic.c
trunk/hw/pc.h
trunk/hw/pckbd.c
trunk/hw/piix_pci.c
trunk/hw/ppc.c
trunk/hw/ppc.h
trunk/hw/ppc_prep.c
trunk/hw/rtl8139.c
trunk/hw/soc_dma.c
trunk/hw/tc58128.c
trunk/hw/tsc2005.c
trunk/hw/tsc210x.c
trunk/hw/tusb6010.c
trunk/hw/zaurus.c
trunk/linux-user/flatload.c
trunk/linux-user/main.c
trunk/linux-user/syscall.c
trunk/monitor.c
trunk/qemu-nbd.c
trunk/sparc-dis.c
trunk/target-arm/op_helper.c
trunk/target-arm/translate.c
trunk/target-i386/op_helper.c
trunk/target-sh4/translate.c
trunk/tcg/tcg.c
Modified: trunk/audio/sdlaudio.c
===================================================================
--- trunk/audio/sdlaudio.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/audio/sdlaudio.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -51,7 +51,7 @@
1024
};
-struct SDLAudioState {
+static struct SDLAudioState {
int exit;
SDL_mutex *mutex;
SDL_sem *sem;
Modified: trunk/block-vmdk.c
===================================================================
--- trunk/block-vmdk.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/block-vmdk.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -322,7 +322,7 @@
bdrv_close(bs->backing_hd);
}
-int parent_open = 0;
+static int parent_open = 0;
static int vmdk_parent_open(BlockDriverState *bs, const char * filename)
{
BDRVVmdkState *s = bs->opaque;
Modified: trunk/feature_to_c.sh
===================================================================
--- trunk/feature_to_c.sh 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/feature_to_c.sh 2008-10-26 13:43:07 UTC (rev 5539)
@@ -65,6 +65,7 @@
done
echo >> $output
+echo "extern const char *const xml_builtin[][2];" >> $output
echo "const char *const xml_builtin[][2] = {" >> $output
for input; do
Modified: trunk/fpu/softfloat-specialize.h
===================================================================
--- trunk/fpu/softfloat-specialize.h 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/fpu/softfloat-specialize.h 2008-10-26 13:43:07 UTC (rev 5539)
@@ -37,12 +37,6 @@
#endif
/*----------------------------------------------------------------------------
-| Underflow tininess-detection mode, statically initialized to default value.
-| (The declaration in `softfloat.h' must match the `int8' type here.)
-*----------------------------------------------------------------------------*/
-int8 float_detect_tininess = float_tininess_after_rounding;
-
-/*----------------------------------------------------------------------------
| Raises the exceptions specified by `flags'. Floating-point traps can be
| defined here if desired. It is currently not possible for such a trap
| to substitute a result value. If traps are not implemented, this routine
Modified: trunk/hw/bt-hci.c
===================================================================
--- trunk/hw/bt-hci.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/bt-hci.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -87,6 +87,7 @@
};
/* LMP layer emulation */
+#if 0
static void bt_submit_lmp(struct bt_device_s *bt, int length, uint8_t *data)
{
int resp, resplen, error, op, tr;
@@ -386,7 +387,7 @@
respdata[0] |= tr;
}
-void bt_submit_raw_acl(struct bt_piconet_s *net, int length, uint8_t *data)
+static void bt_submit_raw_acl(struct bt_piconet_s *net, int length, uint8_t
*data)
{
struct bt_device_s *slave;
if (length < 1)
@@ -411,6 +412,7 @@
break;
}
}
+#endif
/* HCI layer emulation */
@@ -1118,7 +1120,7 @@
bt_hci_lmp_mode_change_master(hci, link, acl_active, 0);
}
-void bt_hci_reset(struct bt_hci_s *hci)
+static void bt_hci_reset(struct bt_hci_s *hci)
{
hci->acl_len = 0;
hci->last_cmd = 0;
Modified: trunk/hw/cbus.c
===================================================================
--- trunk/hw/cbus.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/cbus.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -435,7 +435,8 @@
s->status |= 1 << 5;
}
-void retu_head_event(void *retu, int state)
+#if 0
+static void retu_head_event(void *retu, int state)
{
struct cbus_slave_s *slave = (struct cbus_slave_s *) retu;
struct cbus_retu_s *s = (struct cbus_retu_s *) slave->opaque;
@@ -452,7 +453,7 @@
s->result[retu_adc_head_det] = 123;
}
-void retu_hook_event(void *retu, int state)
+static void retu_hook_event(void *retu, int state)
{
struct cbus_slave_s *slave = (struct cbus_slave_s *) retu;
struct cbus_retu_s *s = (struct cbus_retu_s *) slave->opaque;
@@ -468,6 +469,7 @@
else
s->result[retu_adc_hook_det] = 123;
}
+#endif
/* Tahvo/Betty */
struct cbus_tahvo_s {
Modified: trunk/hw/gt64xxx.c
===================================================================
--- trunk/hw/gt64xxx.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/gt64xxx.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -891,7 +891,6 @@
}
}
-extern PCIDevice *piix4_dev;
static int pci_irq_levels[4];
static void pci_gt64120_set_irq(qemu_irq *pic, int irq_num, int level)
Modified: trunk/hw/mst_fpga.c
===================================================================
--- trunk/hw/mst_fpga.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/mst_fpga.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -168,12 +168,12 @@
}
}
-CPUReadMemoryFunc *mst_fpga_readfn[] = {
+static CPUReadMemoryFunc *mst_fpga_readfn[] = {
mst_fpga_readb,
mst_fpga_readb,
mst_fpga_readb,
};
-CPUWriteMemoryFunc *mst_fpga_writefn[] = {
+static CPUWriteMemoryFunc *mst_fpga_writefn[] = {
mst_fpga_writeb,
mst_fpga_writeb,
mst_fpga_writeb,
Modified: trunk/hw/musicpal.c
===================================================================
--- trunk/hw/musicpal.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/musicpal.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -236,7 +236,7 @@
/* Wolfson 8750 I2C address */
#define MP_WM_ADDR 0x34
-const char audio_name[] = "mv88w8618";
+static const char audio_name[] = "mv88w8618";
typedef struct musicpal_audio_state {
uint32_t base;
Modified: trunk/hw/nand.c
===================================================================
--- trunk/hw/nand.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/nand.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -106,7 +106,7 @@
# include "nand.c"
/* Information based on Linux drivers/mtd/nand/nand_ids.c */
-struct nand_info_s {
+static const struct nand_info_s {
int size;
int width;
int page_shift;
Modified: trunk/hw/omap2.c
===================================================================
--- trunk/hw/omap2.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/omap2.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -2174,7 +2174,7 @@
omap_badwidth_write8,
};
-struct omap_sti_s *omap_sti_init(struct omap_target_agent_s *ta,
+static struct omap_sti_s *omap_sti_init(struct omap_target_agent_s *ta,
target_phys_addr_t channel_base, qemu_irq irq, omap_clk clk,
CharDriverState *chr)
{
Modified: trunk/hw/omap_clk.c
===================================================================
--- trunk/hw/omap_clk.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/omap_clk.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -1101,7 +1101,7 @@
/* If a clock is allowed to idle, it is disabled automatically when
* all of clock domains using it are disabled. */
-int omap_clk_is_idle(struct clk *clk)
+static int omap_clk_is_idle(struct clk *clk)
{
struct clk *chld;
Modified: trunk/hw/openpic.c
===================================================================
--- trunk/hw/openpic.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/openpic.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -128,7 +128,7 @@
IRQ_INTERNAL = 0x02,
IRQ_TIMER = 0x04,
IRQ_SPECIAL = 0x08,
-} IRQ_src_type;
+};
typedef struct IRQ_queue_t {
uint32_t queue[BF_WIDTH(MAX_IRQ)];
Modified: trunk/hw/pc.h
===================================================================
--- trunk/hw/pc.h 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/pc.h 2008-10-26 13:43:07 UTC (rev 5539)
@@ -105,6 +105,7 @@
int piix3_init(PCIBus *bus, int devfn);
void i440fx_init_memory_mappings(PCIDevice *d);
+extern PCIDevice *piix4_dev;
int piix4_init(PCIBus *bus, int devfn);
/* vga.c */
Modified: trunk/hw/pckbd.c
===================================================================
--- trunk/hw/pckbd.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/pckbd.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -129,7 +129,7 @@
int it_shift;
} KBDState;
-KBDState kbd_state;
+static KBDState kbd_state;
/* update irq and KBD_STAT_[MOUSE_]OBF */
/* XXX: not generating the irqs if KBD_MODE_DISABLE_KBD is set may be
Modified: trunk/hw/piix_pci.c
===================================================================
--- trunk/hw/piix_pci.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/piix_pci.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -210,7 +210,7 @@
/* PIIX3 PCI to ISA bridge */
-PCIDevice *piix3_dev;
+static PCIDevice *piix3_dev;
PCIDevice *piix4_dev;
/* just used for simpler irq handling. */
Modified: trunk/hw/ppc.c
===================================================================
--- trunk/hw/ppc.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/ppc.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -806,10 +806,12 @@
}
/* Specific helpers for POWER & PowerPC 601 RTC */
-clk_setup_cb cpu_ppc601_rtc_init (CPUState *env)
+#if 0
+static clk_setup_cb cpu_ppc601_rtc_init (CPUState *env)
{
return cpu_ppc_tb_init(env, 7812500);
}
+#endif
void cpu_ppc601_store_rtcu (CPUState *env, uint32_t value)
{
@@ -1343,7 +1345,7 @@
return tmp;
}
-uint16_t NVRAM_compute_crc (nvram_t *nvram, uint32_t start, uint32_t count)
+static uint16_t NVRAM_compute_crc (nvram_t *nvram, uint32_t start, uint32_t
count)
{
uint32_t i;
uint16_t crc = 0xFFFF;
Modified: trunk/hw/ppc.h
===================================================================
--- trunk/hw/ppc.h 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/ppc.h 2008-10-26 13:43:07 UTC (rev 5539)
@@ -29,3 +29,7 @@
extern CPUWriteMemoryFunc *PPC_io_write[];
extern CPUReadMemoryFunc *PPC_io_read[];
void PPC_debug_write (void *opaque, uint32_t addr, uint32_t val);
+
+void ppc40x_irq_init (CPUState *env);
+void ppc6xx_irq_init (CPUState *env);
+void ppc970_irq_init (CPUState *env);
Modified: trunk/hw/ppc_prep.c
===================================================================
--- trunk/hw/ppc_prep.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/ppc_prep.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -84,9 +84,11 @@
/* ISA IO ports bridge */
#define PPC_IO_BASE 0x80000000
+#if 0
/* Speaker port 0x61 */
-int speaker_data_on;
-int dummy_refresh_clock;
+static int speaker_data_on;
+static int dummy_refresh_clock;
+#endif
static void speaker_ioport_write (void *opaque, uint32_t addr, uint32_t val)
{
@@ -518,13 +520,13 @@
return ret;
}
-CPUWriteMemoryFunc *PPC_prep_io_write[] = {
+static CPUWriteMemoryFunc *PPC_prep_io_write[] = {
&PPC_prep_io_writeb,
&PPC_prep_io_writew,
&PPC_prep_io_writel,
};
-CPUReadMemoryFunc *PPC_prep_io_read[] = {
+static CPUReadMemoryFunc *PPC_prep_io_read[] = {
&PPC_prep_io_readb,
&PPC_prep_io_readw,
&PPC_prep_io_readl,
Modified: trunk/hw/rtl8139.c
===================================================================
--- trunk/hw/rtl8139.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/rtl8139.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -1255,7 +1255,7 @@
RTL8139TallyCounters_clear(&s->tally_counters);
}
-void RTL8139TallyCounters_clear(RTL8139TallyCounters* counters)
+static void RTL8139TallyCounters_clear(RTL8139TallyCounters* counters)
{
counters->TxOk = 0;
counters->RxOk = 0;
Modified: trunk/hw/soc_dma.c
===================================================================
--- trunk/hw/soc_dma.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/soc_dma.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -23,20 +23,20 @@
#include "qemu-timer.h"
#include "soc_dma.h"
-void transfer_mem2mem(struct soc_dma_ch_s *ch)
+static void transfer_mem2mem(struct soc_dma_ch_s *ch)
{
memcpy(ch->paddr[0], ch->paddr[1], ch->bytes);
ch->paddr[0] += ch->bytes;
ch->paddr[1] += ch->bytes;
}
-void transfer_mem2fifo(struct soc_dma_ch_s *ch)
+static void transfer_mem2fifo(struct soc_dma_ch_s *ch)
{
ch->io_fn[1](ch->io_opaque[1], ch->paddr[0], ch->bytes);
ch->paddr[0] += ch->bytes;
}
-void transfer_fifo2mem(struct soc_dma_ch_s *ch)
+static void transfer_fifo2mem(struct soc_dma_ch_s *ch)
{
ch->io_fn[0](ch->io_opaque[0], ch->paddr[1], ch->bytes);
ch->paddr[1] += ch->bytes;
@@ -47,7 +47,7 @@
* oprating systems may not need to use them. */
static void *fifo_buf;
static int fifo_size;
-void transfer_fifo2fifo(struct soc_dma_ch_s *ch)
+static void transfer_fifo2fifo(struct soc_dma_ch_s *ch)
{
if (ch->bytes > fifo_size)
fifo_buf = qemu_realloc(fifo_buf, fifo_size = ch->bytes);
Modified: trunk/hw/tc58128.c
===================================================================
--- trunk/hw/tc58128.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/tc58128.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -58,7 +58,7 @@
}
}
-void handle_command(tc58128_dev * dev, uint8_t command)
+static void handle_command(tc58128_dev * dev, uint8_t command)
{
switch (command) {
case 0xff:
@@ -86,7 +86,7 @@
}
}
-void handle_address(tc58128_dev * dev, uint8_t data)
+static void handle_address(tc58128_dev * dev, uint8_t data)
{
switch (dev->state) {
case READ1:
@@ -119,7 +119,7 @@
}
}
-uint8_t handle_read(tc58128_dev * dev)
+static uint8_t handle_read(tc58128_dev * dev)
{
#if 0
if (dev->address % 0x100000 == 0)
@@ -131,9 +131,9 @@
/* We never mark the device as busy, so interrupts cannot be triggered
XXXXX */
-int tc58128_cb(uint16_t porta, uint16_t portb,
- uint16_t * periph_pdtra, uint16_t * periph_portadir,
- uint16_t * periph_pdtrb, uint16_t * periph_portbdir)
+static int tc58128_cb(uint16_t porta, uint16_t portb,
+ uint16_t * periph_pdtra, uint16_t * periph_portadir,
+ uint16_t * periph_pdtrb, uint16_t * periph_portbdir)
{
int dev;
Modified: trunk/hw/tsc2005.c
===================================================================
--- trunk/hw/tsc2005.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/tsc2005.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -23,6 +23,7 @@
#include "hw.h"
#include "qemu-timer.h"
#include "console.h"
+#include "devices.h"
#define TSC_CUT_RESOLUTION(value, p) ((value) >> (16 - (p ? 12 : 10)))
@@ -319,7 +320,7 @@
tsc2005_pin_update(s);
}
-uint8_t tsc2005_txrx_word(void *opaque, uint8_t value)
+static uint8_t tsc2005_txrx_word(void *opaque, uint8_t value)
{
struct tsc2005_state_s *s = opaque;
uint32_t ret = 0;
Modified: trunk/hw/tsc210x.c
===================================================================
--- trunk/hw/tsc210x.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/tsc210x.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -26,6 +26,7 @@
#include "qemu-timer.h"
#include "console.h"
#include "omap.h" /* For struct i2s_codec_s and struct uwire_slave_s */
+#include "devices.h"
#define TSC_DATA_REGISTERS_PAGE 0x0
#define TSC_CONTROL_REGISTERS_PAGE 0x1
Modified: trunk/hw/tusb6010.c
===================================================================
--- trunk/hw/tusb6010.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/tusb6010.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -25,6 +25,7 @@
#include "usb.h"
#include "omap.h"
#include "irq.h"
+#include "devices.h"
struct tusb_s {
int iomemtype[2];
Modified: trunk/hw/zaurus.c
===================================================================
--- trunk/hw/zaurus.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/hw/zaurus.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -155,12 +155,12 @@
}
}
-CPUReadMemoryFunc *scoop_readfn[] = {
+static CPUReadMemoryFunc *scoop_readfn[] = {
scoop_readb,
scoop_readb,
scoop_readb,
};
-CPUWriteMemoryFunc *scoop_writefn[] = {
+static CPUWriteMemoryFunc *scoop_writefn[] = {
scoop_writeb,
scoop_writeb,
scoop_writeb,
@@ -252,7 +252,7 @@
#define MAGIC_CHG(a, b, c, d) ((d << 24) | (c << 16) | (b << 8) | a)
-struct __attribute__ ((__packed__)) sl_param_info {
+static struct __attribute__ ((__packed__)) sl_param_info {
uint32_t comadj_keyword;
int32_t comadj;
Modified: trunk/linux-user/flatload.c
===================================================================
--- trunk/linux-user/flatload.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/linux-user/flatload.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -102,8 +102,8 @@
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 @@
/****************************************************************************/
/* ??? 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*" };
Modified: trunk/linux-user/main.c
===================================================================
--- trunk/linux-user/main.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/linux-user/main.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -283,7 +283,7 @@
}
#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 @@
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)
Modified: trunk/linux-user/syscall.c
===================================================================
--- trunk/linux-user/syscall.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/linux-user/syscall.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -2500,7 +2500,7 @@
#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)
{
Modified: trunk/monitor.c
===================================================================
--- trunk/monitor.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/monitor.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -75,7 +75,7 @@
static void monitor_start_input(void);
-CPUState *mon_cpu = NULL;
+static CPUState *mon_cpu = NULL;
void term_flush(void)
{
Modified: trunk/qemu-nbd.c
===================================================================
--- trunk/qemu-nbd.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/qemu-nbd.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -36,7 +36,7 @@
#define NBD_BUFFER_SIZE (1024*1024)
-int verbose;
+static int verbose;
static void usage(const char *name)
{
Modified: trunk/sparc-dis.c
===================================================================
--- trunk/sparc-dis.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/sparc-dis.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -2181,7 +2181,7 @@
/* Return the name for membar value VALUE or NULL if not found. */
-const char *
+static const char *
sparc_decode_membar (value)
int value;
{
@@ -2203,7 +2203,7 @@
/* Return the name for prefetch value VALUE or NULL if not found. */
-const char *
+static const char *
sparc_decode_prefetch (value)
int value;
{
@@ -2226,7 +2226,7 @@
/* Return the name for sparclet cpreg value VALUE or NULL if not found. */
-const char *
+static const char *
sparc_decode_sparclet_cpreg (value)
int value;
{
Modified: trunk/target-arm/op_helper.c
===================================================================
--- trunk/target-arm/op_helper.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/target-arm/op_helper.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -31,7 +31,7 @@
/* thread support */
-spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED;
void cpu_lock(void)
{
Modified: trunk/target-arm/translate.c
===================================================================
--- trunk/target-arm/translate.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/target-arm/translate.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -756,7 +756,7 @@
dead_tmp(tmp);
}
-const uint8_t table_logic_cc[16] = {
+static const uint8_t table_logic_cc[16] = {
1, /* and */
1, /* xor */
0, /* sub */
Modified: trunk/target-i386/op_helper.c
===================================================================
--- trunk/target-i386/op_helper.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/target-i386/op_helper.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -96,7 +96,7 @@
/* broken thread support */
-spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED;
void helper_lock(void)
{
Modified: trunk/target-sh4/translate.c
===================================================================
--- trunk/target-sh4/translate.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/target-sh4/translate.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -459,7 +459,7 @@
return; \
}
-void _decode_opc(DisasContext * ctx)
+static void _decode_opc(DisasContext * ctx)
{
#if 0
fprintf(stderr, "Translating opcode 0x%04x\n", ctx->opcode);
@@ -1762,7 +1762,7 @@
ctx->bstate = BS_EXCP;
}
-void decode_opc(DisasContext * ctx)
+static void decode_opc(DisasContext * ctx)
{
uint32_t old_flags = ctx->flags;
Modified: trunk/tcg/tcg.c
===================================================================
--- trunk/tcg/tcg.c 2008-10-26 10:22:11 UTC (rev 5538)
+++ trunk/tcg/tcg.c 2008-10-26 13:43:07 UTC (rev 5539)
@@ -63,8 +63,8 @@
#undef DEF2
};
-TCGRegSet tcg_target_available_regs[2];
-TCGRegSet tcg_target_call_clobber_regs;
+static TCGRegSet tcg_target_available_regs[2];
+static TCGRegSet tcg_target_call_clobber_regs;
/* XXX: move that inside the context */
uint16_t *gen_opc_ptr;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [5539] Fix undeclared symbol warnings from sparse,
Blue Swirl <=