Commit 7ee930d03130e69282503949202b9e6812e8c1bd
1 parent
5628a626
Fix warnings that would be caused by ld flag --warn-common
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5240 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
4 changed files
with
6 additions
and
2 deletions
block.c
... | ... | @@ -54,6 +54,8 @@ static int bdrv_read_em(BlockDriverState *bs, int64_t sector_num, |
54 | 54 | static int bdrv_write_em(BlockDriverState *bs, int64_t sector_num, |
55 | 55 | const uint8_t *buf, int nb_sectors); |
56 | 56 | |
57 | +BlockDriverState *bdrv_first; | |
58 | + | |
57 | 59 | static BlockDriver *first_drv; |
58 | 60 | |
59 | 61 | int path_is_absolute(const char *path) | ... | ... |
block_int.h
hw/arm-misc.h
... | ... | @@ -37,7 +37,7 @@ void arm_load_kernel(CPUState *env, struct arm_boot_info *info); |
37 | 37 | |
38 | 38 | /* Multiplication factor to convert from system clock ticks to qemu timer |
39 | 39 | ticks. */ |
40 | -int system_clock_scale; | |
40 | +extern int system_clock_scale; | |
41 | 41 | qemu_irq *armv7m_nvic_init(CPUState *env); |
42 | 42 | |
43 | 43 | /* stellaris_enent.c */ | ... | ... |
hw/armv7m_nvic.c
... | ... | @@ -50,6 +50,8 @@ typedef struct { |
50 | 50 | #define SYSTICK_CLKSOURCE (1 << 2) |
51 | 51 | #define SYSTICK_COUNTFLAG (1 << 16) |
52 | 52 | |
53 | +int system_clock_scale; | |
54 | + | |
53 | 55 | /* Conversion factor from qemu timer to SysTick frequencies. */ |
54 | 56 | static inline int64_t systick_scale(nvic_state *s) |
55 | 57 | { | ... | ... |