]> git.proxmox.com Git - qemu.git/commitdiff
Fix undeclared symbol warnings from sparse
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 26 Oct 2008 13:43:07 +0000 (13:43 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 26 Oct 2008 13:43:07 +0000 (13:43 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5539 c046a42c-6fe2-441c-8c8c-71466251a162

37 files changed:
audio/sdlaudio.c
block-vmdk.c
feature_to_c.sh
fpu/softfloat-specialize.h
hw/bt-hci.c
hw/cbus.c
hw/gt64xxx.c
hw/mst_fpga.c
hw/musicpal.c
hw/nand.c
hw/omap2.c
hw/omap_clk.c
hw/openpic.c
hw/pc.h
hw/pckbd.c
hw/piix_pci.c
hw/ppc.c
hw/ppc.h
hw/ppc_prep.c
hw/rtl8139.c
hw/soc_dma.c
hw/tc58128.c
hw/tsc2005.c
hw/tsc210x.c
hw/tusb6010.c
hw/zaurus.c
linux-user/flatload.c
linux-user/main.c
linux-user/syscall.c
monitor.c
qemu-nbd.c
sparc-dis.c
target-arm/op_helper.c
target-arm/translate.c
target-i386/op_helper.c
target-sh4/translate.c
tcg/tcg.c

index 71d15d5a42028142c040bf819ff388957d0c7409..8bd6b56539ba077d3269eddd98cfc57062689b3c 100644 (file)
@@ -51,7 +51,7 @@ static struct {
     1024
 };
 
-struct SDLAudioState {
+static struct SDLAudioState {
     int exit;
     SDL_mutex *mutex;
     SDL_sem *sem;
index 2a257b6f3e30a0d7074f71bb852d31ee3669a3d1..b8ecdb739a22459c1e7c308eb352373d0f8d38c9 100644 (file)
@@ -322,7 +322,7 @@ static void vmdk_parent_close(BlockDriverState *bs)
         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;
index e36638d18d6813ea34ef98e615bc8ec42a09cccd..bce77b6f523723238b3aca7579ea7a3146dc6838 100644 (file)
@@ -65,6 +65,7 @@ for input; do
 done
 
 echo >> $output
+echo "extern const char *const xml_builtin[][2];" >> $output
 echo "const char *const xml_builtin[][2] = {" >> $output
 
 for input; do
index 93fe06ec0b0fb32bdedfc2d9ba6e14f2e0ff83df..e7f09d1a9bf1c517b100622f6b50aa9ba5fcc288 100644 (file)
@@ -36,12 +36,6 @@ these four paragraphs for those parts of this code that are retained.
 #define SNAN_BIT_IS_ONE                0
 #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
index 2562f21f63c9db8db576a930e243b24c7fdaa06f..121fabf45376cc2077ad57f8035dcc5cdd70f354 100644 (file)
@@ -87,6 +87,7 @@ struct bt_hci_link_s {
 };
 
 /* 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 @@ static void bt_submit_lmp(struct bt_device_s *bt, int length, uint8_t *data)
     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 @@ void bt_submit_raw_acl(struct bt_piconet_s *net, int length, uint8_t *data)
         break;
     }
 }
+#endif
 
 /* HCI layer emulation */
 
@@ -1118,7 +1120,7 @@ static void bt_hci_mode_tick(void *opaque)
     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;
index c84de0533608962a46518c381478153701e06f46..03218b4450854bf8c5f302baa236bc26367feb61 100644 (file)
--- a/hw/cbus.c
+++ b/hw/cbus.c
@@ -435,7 +435,8 @@ void retu_key_event(void *retu, int state)
         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 @@ void retu_head_event(void *retu, int state)
         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 @@ void retu_hook_event(void *retu, int state)
     else
         s->result[retu_adc_hook_det] = 123;
 }
+#endif
 
 /* Tahvo/Betty */
 struct cbus_tahvo_s {
index 8e8adadd25e7e48d8393b96d139e333f5bd15531..b6cd9714ff7a5ce55d1872f7d0c4a5fc8f6a2d0c 100644 (file)
@@ -891,7 +891,6 @@ static int pci_gt64120_map_irq(PCIDevice *pci_dev, int irq_num)
     }
 }
 
-extern PCIDevice *piix4_dev;
 static int pci_irq_levels[4];
 
 static void pci_gt64120_set_irq(qemu_irq *pic, int irq_num, int level)
index e2f0a9a59a3acd3fe5c6a76b68b3e1d5bf664631..2d5ac5ae8d1e83d7d7d734be77bb55ab4ed6cb00 100644 (file)
@@ -168,12 +168,12 @@ mst_fpga_writeb(void *opaque, target_phys_addr_t addr, uint32_t value)
        }
 }
 
-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,
index cee34680544a6114e158af02b93619d35e5c95ef..ffd59faf66d7398a32a1703e8c9ffce1bfecc9e9 100644 (file)
@@ -236,7 +236,7 @@ static i2c_interface *mixer_i2c;
 /* 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;
index 294a83f85f0c8238f4e9746b664bb7c1ddbae40d..11f8efca282f73c296c3663a91e661b913ddc223 100644 (file)
--- a/hw/nand.c
+++ b/hw/nand.c
@@ -106,7 +106,7 @@ struct nand_flash_s {
 # 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;
index a5003834dd55fbccd2edc975311fcaeebf21ffea..5add05938fc641665107dad744100b2f77b8341f 100644 (file)
@@ -2174,7 +2174,7 @@ static CPUWriteMemoryFunc *omap_sti_fifo_writefn[] = {
     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)
 {
index 13d74118388041fe373442b257faeb831ccb8b3c..3a681300b8a9af712092f3caeed4b0f4ed05f68d 100644 (file)
@@ -1101,7 +1101,7 @@ void omap_clk_adduser(struct clk *clk, qemu_irq user)
 
 /* 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;
 
index 32cf54e48db0477579def2d86fb00550351e98a5..def20eb4c866e52ca2de04064d376766b825f5e5 100644 (file)
@@ -128,7 +128,7 @@ enum {
     IRQ_INTERNAL = 0x02,
     IRQ_TIMER    = 0x04,
     IRQ_SPECIAL  = 0x08,
-} IRQ_src_type;
+};
 
 typedef struct IRQ_queue_t {
     uint32_t queue[BF_WIDTH(MAX_IRQ)];
diff --git a/hw/pc.h b/hw/pc.h
index e2da853715f41de84ace21dcee45a96b94165e67..d64d8a64319ad83068274c58bdfb70537ccf1938 100644 (file)
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -105,6 +105,7 @@ void i440fx_set_smm(PCIDevice *d, int val);
 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 */
index 0845c9649729cc44259efaae402ad5acc6cf084e..2176b833299c3764c17055e948a2f91e1b4dcba4 100644 (file)
@@ -129,7 +129,7 @@ typedef struct KBDState {
     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
index 90cb3a6394f8e2bc9a4291126337ae7edbf6be21..1d6bf2017336d2a7cbce2f2e82e5999f58bff428 100644 (file)
@@ -210,7 +210,7 @@ PCIBus *i440fx_init(PCIDevice **pi440fx_state, qemu_irq *pic)
 
 /* PIIX3 PCI to ISA bridge */
 
-PCIDevice *piix3_dev;
+static PCIDevice *piix3_dev;
 PCIDevice *piix4_dev;
 
 /* just used for simpler irq handling. */
index c1bc486e053660917e0cfdd2d8fb0c923a43d5ef..60d6e86cf015e1b5010f573a316f56d289d133cf 100644 (file)
--- a/hw/ppc.c
+++ b/hw/ppc.c
@@ -806,10 +806,12 @@ clk_setup_cb cpu_ppc_tb_init (CPUState *env, uint32_t freq)
 }
 
 /* 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 @@ static uint16_t NVRAM_crc_update (uint16_t prev, uint16_t value)
     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;
index 0a3d4ff06b4ededc294706d46e7c9916e225f85b..297f55060f7fb25cdf770a2467a2d4542ae04a4a 100644 (file)
--- a/hw/ppc.h
+++ b/hw/ppc.h
@@ -29,3 +29,7 @@ void PREP_debug_write (void *opaque, uint32_t addr, uint32_t val);
 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);
index 944935d2988e855c3af17d900a31946f12cd09e2..0180bbb045dc3e32df1be34dc3b95c4cc431b36d 100644 (file)
@@ -84,9 +84,11 @@ static int ne2000_irq[NE2000_NB_MAX] = { 9, 10, 11, 3, 4, 5 };
 /* 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 @@ static uint32_t PPC_prep_io_readl (void *opaque, target_phys_addr_t addr)
     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,
index cae8788586ae3d6f66c754ff58db07b364c3fc9a..feffa9c33b1c41ed63f885d80f756b9dbb16e1cc 100644 (file)
@@ -1255,7 +1255,7 @@ static void rtl8139_reset(RTL8139State *s)
     RTL8139TallyCounters_clear(&s->tally_counters);
 }
 
-void RTL8139TallyCounters_clear(RTL8139TallyCounters* counters)
+static void RTL8139TallyCounters_clear(RTL8139TallyCounters* counters)
 {
     counters->TxOk = 0;
     counters->RxOk = 0;
index 4c87c8b9bdeef05fc271a262c5dffaae3884ef98..54804221f34a9217b7c18a3f923d1a4cf4abdfde 100644 (file)
 #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 @@ void transfer_fifo2mem(struct soc_dma_ch_s *ch)
  * 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);
index 37f541958216aa7a60bac0ed7b125fa0827cfaca..2f1b305d47b5b9892c847e42b08daaf0d93ca27c 100644 (file)
@@ -58,7 +58,7 @@ static void init_dev(tc58128_dev * dev, const char *filename)
     }
 }
 
-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_command(tc58128_dev * dev, uint8_t command)
     }
 }
 
-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 @@ void handle_address(tc58128_dev * dev, uint8_t data)
     }
 }
 
-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 @@ uint8_t handle_read(tc58128_dev * dev)
 /* 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;
 
index f7a35b2d9d62b4521d441506f0f2cce9d618a995..293d716cd1e31bf999e0c2f1fdf782cc9d490f17 100644 (file)
@@ -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 @@ static void tsc2005_reset(struct tsc2005_state_s *s)
     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;
index 61e101d628f9b838867f5046e69fbae504bfd863..0ae48f73b040e38bc830da6f773eb0c027f402f0 100644 (file)
@@ -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
index 8318c46b7326796bb23939bc5e009d45f9e50ef8..6f37779135e92ce2f6f4c0ac124034e0ae5dd653 100644 (file)
@@ -25,6 +25,7 @@
 #include "usb.h"
 #include "omap.h"
 #include "irq.h"
+#include "devices.h"
 
 struct tusb_s {
     int iomemtype[2];
index 7b8f1520c30b968e8fd02456e9330467c80e9c1b..c475eaa6130c18cfe60b9e47ce1cb93d66d721a2 100644 (file)
@@ -155,12 +155,12 @@ static void scoop_writeb(void *opaque, target_phys_addr_t addr, uint32_t value)
     }
 }
 
-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 @@ struct scoop_info_s *scoop_init(struct pxa2xx_state_s *cpu,
 
 #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;
 
index 29664b1447ba6e564a57ec801ebabecf2b95200d..ea810d5966d39226e3d8f6d55ded63d91e91f65d 100644 (file)
@@ -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*" };
index fef4bf70d147a9ec3bfea2ce3b6e43f598f2d0ae..a5aefce3dc244d1b3aa8c646d49f7e4a633ac37e 100644 (file)
@@ -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)
index 29254a2705739dfe3045ba8670f2db419b685a29..44fbc7ca624e4288646a2b6429e1caed36c1661c 100644 (file)
@@ -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)
 {
index f0a0bc32213e284ca142f7e574d2f0d9a799ee4d..01a177ade8da322e21ef94fdfb51eea88390b573 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -75,7 +75,7 @@ static int term_outbuf_index;
 
 static void monitor_start_input(void);
 
-CPUState *mon_cpu = NULL;
+static CPUState *mon_cpu = NULL;
 
 void term_flush(void)
 {
index fa618165c85c7248c8d3aee91ecf6417b5cad52a..c466ccecaac6e226e9fcda9e0e320eafb72dfe09 100644 (file)
@@ -36,7 +36,7 @@
 
 #define NBD_BUFFER_SIZE (1024*1024)
 
-int verbose;
+static int verbose;
 
 static void usage(const char *name)
 {
index dea6b11d78196c1c78057df81d67c7efb3686258..7e304602b861f6c1286571f8a33b07fb7f53d05a 100644 (file)
@@ -2181,7 +2181,7 @@ static const arg membar_table[] =
 
 /* 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 @@ static const arg prefetch_table[] =
 
 /* 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 @@ static const arg sparclet_cpreg_table[] =
 
 /* 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;
 {
index 9a384ebe1d064bbe34426a3be1486386657264a6..84a3d157d4c8713d3c3ae904f674cfba8d00c77e 100644 (file)
@@ -31,7 +31,7 @@ void raise_exception(int tt)
 
 /* thread support */
 
-spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED;
 
 void cpu_lock(void)
 {
index ce3509d452adf4b8f0b64849fc237f18a0360150..e6c1e4614905f198c1649f355294a1f7126a5038 100644 (file)
@@ -756,7 +756,7 @@ static void gen_test_cc(int cc, int label)
     dead_tmp(tmp);
 }
 
-const uint8_t table_logic_cc[16] = {
+static const uint8_t table_logic_cc[16] = {
     1, /* and */
     1, /* xor */
     0, /* sub */
index ebb5824544b84c1fcc2983807f73a1b70e45c813..d0919d95ffdb122b463ed9761e782a4b2db9db21 100644 (file)
@@ -96,7 +96,7 @@ const CPU86_LDouble f15rk[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)
 {
index 0eeb294356d35fe1d34c2207177bfa4b818d1b41..0f22f198085beec34623adff0218ed32e4d2c949 100644 (file)
@@ -459,7 +459,7 @@ static inline void gen_store_fpr64 (TCGv t, int reg)
       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 @@ void _decode_opc(DisasContext * ctx)
     ctx->bstate = BS_EXCP;
 }
 
-void decode_opc(DisasContext * ctx)
+static void decode_opc(DisasContext * ctx)
 {
     uint32_t old_flags = ctx->flags;
 
index 9d090f70daab6a08bca7f7e144f0400109c047e7..3d4d408c1d0edddf8da2d01c397687e57731e0f1 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -63,8 +63,8 @@ TCGOpDef tcg_op_defs[] = {
 #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;