Commit 856ae5c3324abb8fe6d905262e1cc9f4437e719f
1 parent
669b92ed
Fix a few Sparse warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7016 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
4 changed files
with
12 additions
and
14 deletions
block-raw-posix.c
... | ... | @@ -876,15 +876,15 @@ static void raw_flush(BlockDriverState *bs) |
876 | 876 | } |
877 | 877 | |
878 | 878 | BlockDriver bdrv_raw = { |
879 | - "raw", | |
880 | - sizeof(BDRVRawState), | |
881 | - NULL, /* no probe for protocols */ | |
882 | - raw_open, | |
883 | - NULL, | |
884 | - NULL, | |
885 | - raw_close, | |
886 | - raw_create, | |
887 | - raw_flush, | |
879 | + .format_name = "raw", | |
880 | + .instance_size = sizeof(BDRVRawState), | |
881 | + .bdrv_probe = NULL, /* no probe for protocols */ | |
882 | + .bdrv_open = raw_open, | |
883 | + .bdrv_read = raw_read, | |
884 | + .bdrv_write = raw_write, | |
885 | + .bdrv_close = raw_close, | |
886 | + .bdrv_create = raw_create, | |
887 | + .bdrv_flush = raw_flush, | |
888 | 888 | |
889 | 889 | #ifdef CONFIG_AIO |
890 | 890 | .bdrv_aio_read = raw_aio_read, |
... | ... | @@ -893,8 +893,6 @@ BlockDriver bdrv_raw = { |
893 | 893 | .aiocb_size = sizeof(RawAIOCB), |
894 | 894 | #endif |
895 | 895 | |
896 | - .bdrv_read = raw_read, | |
897 | - .bdrv_write = raw_write, | |
898 | 896 | .bdrv_truncate = raw_truncate, |
899 | 897 | .bdrv_getlength = raw_getlength, |
900 | 898 | }; | ... | ... |
cmd.c
cmd.h
dma-helpers.c