[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 15/20] block: Clean up includes
From: |
Markus Armbruster |
Subject: |
[PATCH v6 15/20] block: Clean up includes |
Date: |
Thu, 2 Feb 2023 14:38:25 +0100 |
This commit was created with scripts/clean-includes.
All .c should include qemu/osdep.h first. The script performs three
related cleanups:
* Ensure .c files include qemu/osdep.h first.
* Including it in a .h is redundant, since the .c already includes
it. Drop such inclusions.
* Likewise, including headers qemu/osdep.h includes is redundant.
Drop these, too.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
---
include/block/graph-lock.h | 1 -
include/block/write-threshold.h | 2 --
block/qapi.c | 1 -
3 files changed, 4 deletions(-)
diff --git a/include/block/graph-lock.h b/include/block/graph-lock.h
index 3ab924d5e2..18cc14de22 100644
--- a/include/block/graph-lock.h
+++ b/include/block/graph-lock.h
@@ -20,7 +20,6 @@
#ifndef GRAPH_LOCK_H
#define GRAPH_LOCK_H
-#include "qemu/osdep.h"
#include "qemu/clang-tsa.h"
/**
diff --git a/include/block/write-threshold.h b/include/block/write-threshold.h
index f50f923e7e..63d1583887 100644
--- a/include/block/write-threshold.h
+++ b/include/block/write-threshold.h
@@ -13,8 +13,6 @@
#ifndef BLOCK_WRITE_THRESHOLD_H
#define BLOCK_WRITE_THRESHOLD_H
-#include "qemu/typedefs.h"
-
/*
* bdrv_write_threshold_set:
*
diff --git a/block/qapi.c b/block/qapi.c
index 9b4da12966..4f8df48cf4 100644
--- a/block/qapi.c
+++ b/block/qapi.c
@@ -40,7 +40,6 @@
#include "qapi/qmp/qstring.h"
#include "qemu/qemu-print.h"
#include "sysemu/block-backend.h"
-#include "qemu/cutils.h"
BlockDeviceInfo *bdrv_block_device_info(BlockBackend *blk,
BlockDriverState *bs,
--
2.39.0
- [PATCH v6 12/20] net: Clean up includes, (continued)
- [PATCH v6 12/20] net: Clean up includes, Markus Armbruster, 2023/02/02
- [PATCH v6 13/20] target/hexagon: Clean up includes, Markus Armbruster, 2023/02/02
- [PATCH v6 14/20] riscv: Clean up includes, Markus Armbruster, 2023/02/02
- [PATCH v6 17/20] Fix non-first inclusions of qemu/osdep.h, Markus Armbruster, 2023/02/02
- [PATCH v6 19/20] 9p: Drop superfluous include of linux/limits.h, Markus Armbruster, 2023/02/02
- [PATCH v6 02/20] scripts/clean-includes: Don't claim duplicate headers found when not, Markus Armbruster, 2023/02/02
- [PATCH v6 10/20] qga: Clean up includes, Markus Armbruster, 2023/02/02
- [PATCH v6 04/20] scripts/clean-includes: Improve --git commit message, Markus Armbruster, 2023/02/02
- [PATCH v6 07/20] hw/cxl: Clean up includes, Markus Armbruster, 2023/02/02
- [PATCH v6 15/20] block: Clean up includes,
Markus Armbruster <=
- [PATCH v6 18/20] Don't include headers already included by qemu/osdep.h, Markus Armbruster, 2023/02/02