Add 'static' to please Sparse
authorBlue Swirl <blauwirbel@gmail.com>
Mon, 21 Sep 2009 18:39:26 +0000 (18:39 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Mon, 21 Sep 2009 18:39:26 +0000 (18:39 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/realview.c
target-alpha/op_helper.c
target-mips/op_helper.c

index a55fba7bcb777c7498b3813f6d9ea7e3a733d97c..a18e7735caea53b566a4555e63c3560bb0b72ae6 100644 (file)
@@ -196,7 +196,7 @@ static void realview_init(ram_addr_t ram_size,
     arm_load_kernel(first_cpu, &realview_binfo);
 }
 
-QEMUMachine realview_machine = {
+static QEMUMachine realview_machine = {
     .name = "realview",
     .desc = "ARM RealView Emulation Baseboard (ARM926EJ-S)",
     .init = realview_init,
index e9d2732dfb541f5b6bfb9d17788ab05d615f4f16..fe222dccd9570ba51a42c98b57a6432e23c162f6 100644 (file)
@@ -89,7 +89,7 @@ void helper_store_fpcr (uint64_t val)
     }
 }
 
-spinlock_t intr_cpu_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t intr_cpu_lock = SPIN_LOCK_UNLOCKED;
 
 uint64_t helper_rs(void)
 {
index 194414c74d1c829d43a0e7399ff01244fc232bc6..d3dab33a36a99abae781ce6abb84c028837ce756 100644 (file)
@@ -1868,7 +1868,7 @@ void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
 #define FLOAT_SNAN64 0x7fffffffffffffffULL
 
 /* convert MIPS rounding mode in FCR31 to IEEE library */
-unsigned int ieee_rm[] = {
+static unsigned int ieee_rm[] = {
     float_round_nearest_even,
     float_round_to_zero,
     float_round_up,