提交 856ae5c3 编写于 作者: B blueswir1

Fix a few Sparse warnings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7016 c046a42c-6fe2-441c-8c8c-71466251a162
上级 669b92ed
...@@ -876,15 +876,15 @@ static void raw_flush(BlockDriverState *bs) ...@@ -876,15 +876,15 @@ static void raw_flush(BlockDriverState *bs)
} }
BlockDriver bdrv_raw = { BlockDriver bdrv_raw = {
"raw", .format_name = "raw",
sizeof(BDRVRawState), .instance_size = sizeof(BDRVRawState),
NULL, /* no probe for protocols */ .bdrv_probe = NULL, /* no probe for protocols */
raw_open, .bdrv_open = raw_open,
NULL, .bdrv_read = raw_read,
NULL, .bdrv_write = raw_write,
raw_close, .bdrv_close = raw_close,
raw_create, .bdrv_create = raw_create,
raw_flush, .bdrv_flush = raw_flush,
#ifdef CONFIG_AIO #ifdef CONFIG_AIO
.bdrv_aio_read = raw_aio_read, .bdrv_aio_read = raw_aio_read,
...@@ -893,8 +893,6 @@ BlockDriver bdrv_raw = { ...@@ -893,8 +893,6 @@ BlockDriver bdrv_raw = {
.aiocb_size = sizeof(RawAIOCB), .aiocb_size = sizeof(RawAIOCB),
#endif #endif
.bdrv_read = raw_read,
.bdrv_write = raw_write,
.bdrv_truncate = raw_truncate, .bdrv_truncate = raw_truncate,
.bdrv_getlength = raw_getlength, .bdrv_getlength = raw_getlength,
}; };
......
...@@ -212,8 +212,6 @@ command_loop(void) ...@@ -212,8 +212,6 @@ command_loop(void)
# include <histedit.h> # include <histedit.h>
#endif #endif
extern char *progname;
static char * static char *
get_prompt(void) get_prompt(void)
{ {
......
...@@ -75,4 +75,6 @@ enum { ...@@ -75,4 +75,6 @@ enum {
extern void timestr(struct timeval *tv, char *str, size_t sz, int flags); extern void timestr(struct timeval *tv, char *str, size_t sz, int flags);
extern char *progname;
#endif /* __COMMAND_H__ */ #endif /* __COMMAND_H__ */
...@@ -81,7 +81,7 @@ static void dma_bdrv_unmap(DMAAIOCB *dbs) ...@@ -81,7 +81,7 @@ static void dma_bdrv_unmap(DMAAIOCB *dbs)
} }
} }
void dma_bdrv_cb(void *opaque, int ret) static void dma_bdrv_cb(void *opaque, int ret)
{ {
DMAAIOCB *dbs = (DMAAIOCB *)opaque; DMAAIOCB *dbs = (DMAAIOCB *)opaque;
target_phys_addr_t cur_addr, cur_len; target_phys_addr_t cur_addr, cur_len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册