Fix warnings that would be caused by ld flag --warn-common
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 17 Sep 2008 19:04:14 +0000 (19:04 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 17 Sep 2008 19:04:14 +0000 (19:04 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5240 c046a42c-6fe2-441c-8c8c-71466251a162

block.c
block_int.h
hw/arm-misc.h
hw/armv7m_nvic.c

diff --git a/block.c b/block.c
index d85e27e43cef7118bf59063fbca0f5bf7cf2b58f..15f807a0cad19a234284045ea9470268ee24a49e 100644 (file)
--- a/block.c
+++ b/block.c
@@ -54,6 +54,8 @@ static int bdrv_read_em(BlockDriverState *bs, int64_t sector_num,
 static int bdrv_write_em(BlockDriverState *bs, int64_t sector_num,
                          const uint8_t *buf, int nb_sectors);
 
+BlockDriverState *bdrv_first;
+
 static BlockDriver *first_drv;
 
 int path_is_absolute(const char *path)
index 137000e14075fb2b1b2d55739a8a83a27c510e22..7f1a514063b38cf627b454686c0b85f98f3ca731 100644 (file)
@@ -145,6 +145,6 @@ void *qemu_aio_get(BlockDriverState *bs, BlockDriverCompletionFunc *cb,
                    void *opaque);
 void qemu_aio_release(void *p);
 
-BlockDriverState *bdrv_first;
+extern BlockDriverState *bdrv_first;
 
 #endif /* BLOCK_INT_H */
index f118edb3bdb79c6c86c62bf07ef33f5832bc6103..a147254287db88b80a951d619e3183eb828e84e1 100644 (file)
@@ -37,7 +37,7 @@ void arm_load_kernel(CPUState *env, struct arm_boot_info *info);
 
 /* Multiplication factor to convert from system clock ticks to qemu timer
    ticks.  */
-int system_clock_scale;
+extern int system_clock_scale;
 qemu_irq *armv7m_nvic_init(CPUState *env);
 
 /* stellaris_enent.c */
index c55c958718902db592607386d8bda633825f2ce7..86d0cf8f9ec3ab366e401d56668b93fce6ce7d16 100644 (file)
@@ -50,6 +50,8 @@ typedef struct {
 #define SYSTICK_CLKSOURCE (1 << 2)
 #define SYSTICK_COUNTFLAG (1 << 16)
 
+int system_clock_scale;
+
 /* Conversion factor from qemu timer to SysTick frequencies.  */
 static inline int64_t systick_scale(nvic_state *s)
 {