Skip to content

Commit

Permalink
Fix warnings that would be caused by ld flag --warn-common
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5240 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
blueswir1 committed Sep 17, 2008
1 parent 5628a62 commit 7ee930d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions block.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion block_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion hw/arm-misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 2 additions & 0 deletions hw/armv7m_nvic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7ee930d

Please sign in to comment.