mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 03:29:43 +00:00
write-threshold: deal with includes
"qemu/typedefs.h" is enough for include/block/write-threshold.h header with forward declaration of BlockDriverState. Also drop extra includes from block/write-threshold.c and tests/unit/test-write-threshold.c Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20210506090621.11848-9-vsementsov@virtuozzo.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
23357b93c7
commit
c61ebf362d
@ -12,9 +12,7 @@
|
|||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "block/block_int.h"
|
#include "block/block_int.h"
|
||||||
#include "qemu/coroutine.h"
|
|
||||||
#include "block/write-threshold.h"
|
#include "block/write-threshold.h"
|
||||||
#include "qemu/notify.h"
|
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qapi-commands-block-core.h"
|
#include "qapi/qapi-commands-block-core.h"
|
||||||
#include "qapi/qapi-events-block-core.h"
|
#include "qapi/qapi-events-block-core.h"
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#ifndef BLOCK_WRITE_THRESHOLD_H
|
#ifndef BLOCK_WRITE_THRESHOLD_H
|
||||||
#define BLOCK_WRITE_THRESHOLD_H
|
#define BLOCK_WRITE_THRESHOLD_H
|
||||||
|
|
||||||
#include "block/block_int.h"
|
#include "qemu/typedefs.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* bdrv_write_threshold_set:
|
* bdrv_write_threshold_set:
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "qapi/error.h"
|
|
||||||
#include "block/block_int.h"
|
#include "block/block_int.h"
|
||||||
#include "block/write-threshold.h"
|
#include "block/write-threshold.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user