Clean up includes
authorMarkus Armbruster <armbru@redhat.com>
Thu, 1 Feb 2018 11:18:29 +0000 (12:18 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 9 Feb 2018 04:05:11 +0000 (05:05 +0100)
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes, with the change
to target/s390x/gen-features.c manually reverted, and blank lines
around deletions collapsed.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180201111846.21846-3-armbru@redhat.com>

30 files changed:
block/parallels.h
hw/block/vhost-user-blk.c
hw/nvram/eeprom_at24c.c
hw/tpm/tpm_emulator.c
hw/tpm/tpm_int.h
hw/tpm/tpm_ioctl.h
hw/xtensa/xtensa_memory.h
include/exec/tb-lookup.h
include/hw/intc/xlnx-pmu-iomod-intc.h
include/hw/intc/xlnx-zynqmp-ipi.h
include/hw/nvram/fw_cfg.h
include/hw/pci-bridge/simba.h
include/hw/xtensa/xtensa-isa.h
include/qapi/clone-visitor.h
include/sysemu/hvf.h
include/ui/console.h
io/channel-websock.c
linux-user/syscall.c
scsi/pr-helper.h
target/i386/hvf/vmx.h
target/i386/hvf/x86hvf.c
target/xtensa/core-dc232b/xtensa-modules.c
target/xtensa/core-dc233c/xtensa-modules.c
target/xtensa/core-de212/xtensa-modules.c
target/xtensa/core-fsf/xtensa-modules.c
target/xtensa/core-sample_controller/xtensa-modules.c
target/xtensa/xtensa-isa.c
tests/migration/stress.c
tests/ptimer-test.c
trace/control-internal.h

index 4b044079ef8454e57ed474a962a694b8846cc799..5aa101cfc886d385adf0b8417bee4197f508b5eb 100644 (file)
@@ -32,7 +32,6 @@
 #ifndef BLOCK_PARALLELS_H
 #define BLOCK_PARALLELS_H
 #include "qemu/coroutine.h"
-#include "qemu/typedefs.h"
 
 #define HEADS_NUMBER 16
 #define SEC_IN_CYL 32
index b53b4c9c573306972cc25b0f1796ddc5c953dc25..f840f07dfecdc9797fa37b67d45ff986b654227f 100644 (file)
@@ -19,7 +19,6 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qemu/error-report.h"
-#include "qemu/typedefs.h"
 #include "qemu/cutils.h"
 #include "qom/object.h"
 #include "hw/qdev-core.h"
index efa3621ac6e5901217e2e2070d13e0cfeddcf04c..22183f53606b5650f3e23ccf757853f422c02f75 100644 (file)
@@ -7,9 +7,8 @@
  * the LICENSE file in the top-level directory.
  */
 
-#include <string.h>
-
 #include "qemu/osdep.h"
+
 #include "qapi/error.h"
 #include "hw/hw.h"
 #include "hw/i2c/i2c.h"
index 710a9ec71883c8b31d378186915420386659e2af..b787aee13bc6ea375d62aed4ae8ae67d2f5f6c79 100644 (file)
 #include "qapi/clone-visitor.h"
 #include "chardev/char-fe.h"
 
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <stdio.h>
-
 #define DEBUG_TPM 0
 
 #define DPRINTF(fmt, ...) do { \
index abbca5191a12ffb330066f7da08787ae3efb3959..a4c77fbd7e8304e48bf6191a686289ad02a9e388 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef TPM_TPM_INT_H
 #define TPM_TPM_INT_H
 
-#include "qemu/osdep.h"
-
 #define TPM_STANDARD_CMDLINE_OPTS \
     { \
         .name = "type", \
index 54c8d345ad8adb4bf0b6be8fae782258891e3f38..59a0b0595d6463e1987b3092ba426f1adab47a04 100644 (file)
@@ -8,9 +8,7 @@
 #ifndef _TPM_IOCTL_H_
 #define _TPM_IOCTL_H_
 
-#include <stdint.h>
 #include <sys/uio.h>
-#include <sys/types.h>
 #include <sys/ioctl.h>
 
 /*
index cab4d172d42a1481082e73d9c337a9f1340df892..e9aa08749dd7ca9027b2188167610dbb3e9cd55c 100644 (file)
@@ -28,7 +28,6 @@
 #ifndef _XTENSA_MEMORY_H
 #define _XTENSA_MEMORY_H
 
-#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "cpu.h"
 #include "exec/memory.h"
index 296138591a9d5ad759c6874631c96424304b8f59..492cb682894b28a856ff7dd72f3a296e8cf00483 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef EXEC_TB_LOOKUP_H
 #define EXEC_TB_LOOKUP_H
 
-#include "qemu/osdep.h"
-
 #ifdef NEED_CPU_H
 #include "cpu.h"
 #else
index 1fdba73b9f0413008cd49cddc9df02453eb89558..01c9d040b8fefbcfae75b1c58c2ff76498a94350 100644 (file)
@@ -25,7 +25,6 @@
 #ifndef XLNX_PMU_IO_INTC_H
 #define XLNX_PMU_IO_INTC_H
 
-#include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "hw/register.h"
 
index 4afa4ff313d6bb3b33eb18935ad2e98422405fba..866c719c6f3871bf9c68ed0e863640c02a1102cb 100644 (file)
@@ -25,7 +25,6 @@
 #ifndef XLNX_ZYNQMP_IPI_H
 #define XLNX_ZYNQMP_IPI_H
 
-#include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "hw/register.h"
 
index 7ccbae5fba6ea8e3fca1c43764c69bb3d6f9a033..b2259cc4a390862f00cd8c631afddb2df2de1abf 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef FW_CFG_H
 #define FW_CFG_H
 
-#include "qemu/typedefs.h"
 #include "exec/hwaddr.h"
 #include "hw/nvram/fw_cfg_keys.h"
 #include "hw/sysbus.h"
index fac56ab1cf43af9b437e802bcefac38fc0f16dd9..e13ba27d0bb23780744345de47026661979be634 100644 (file)
@@ -24,7 +24,6 @@
  * THE SOFTWARE.
  */
 
-#include "qemu/osdep.h"
 #include "hw/pci/pci_bridge.h"
 
 
index 353f82ba251e4221168556015b4392892437e8da..bd68ada640d215890f19bdff476e4ef49ee7075c 100644 (file)
@@ -25,8 +25,6 @@
 #ifndef XTENSA_LIBISA_H
 #define XTENSA_LIBISA_H
 
-#include <stdint.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
index a4915c7d57ee67d4264f6f286a345ac1c2bed987..b119d3daa99018fc4b6be233dab37125c2ecea8f 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef QAPI_CLONE_VISITOR_H
 #define QAPI_CLONE_VISITOR_H
 
-#include "qemu/typedefs.h"
 #include "qapi/visitor.h"
 #include "qapi-visit.h"
 
index e4e43f6468ef8887cf25ab2822c98f4ad39f4416..241118845c5245d9349334974c2764a16062cc60 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef _HVF_H
 #define _HVF_H
 
-#include "config-host.h"
-#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu/bitops.h"
 #include "exec/memory.h"
index de57e8363a4aab9ef858291de61c846e0a7a9f53..4c5d2102b602004b3917a98c5e0ae388b57c4f28 100644 (file)
@@ -5,7 +5,6 @@
 #include "qom/object.h"
 #include "qapi/qmp/qdict.h"
 #include "qemu/notify.h"
-#include "qemu/typedefs.h"
 #include "qapi-types.h"
 #include "qemu/error-report.h"
 #include "qapi/error.h"
index 87ebdebfc0b5b8c6c29b1925cfed9fd54dcd9892..7fd6bb68ba3f4c05f5f90fb69a9b6bedb72e4eba 100644 (file)
@@ -26,9 +26,6 @@
 #include "trace.h"
 #include "qemu/iov.h"
 
-#include <time.h>
-
-
 /* Max amount to allow in rawinput/encoutput buffers */
 #define QIO_CHANNEL_WEBSOCK_MAX_BUFFER 8192
 
index df1edf0cd34935aa92cae45899e30f69820be2bb..82b35a6bdff5a58c0cc6a82aacc43c10b60ac3ea 100644 (file)
@@ -44,7 +44,6 @@
 #include <sys/shm.h>
 #include <sys/sem.h>
 #include <sys/statfs.h>
-#include <time.h>
 #include <utime.h>
 #include <sys/sysinfo.h>
 #include <sys/signalfd.h>
index 96c50a9e5f24e9d1d406ea80dc38724ddbd9a6dc..096d1f1df6fe8b15b4067b60d81691b8de2b00d8 100644 (file)
@@ -26,8 +26,6 @@
 #ifndef QEMU_PR_HELPER_H
 #define QEMU_PR_HELPER_H 1
 
-#include <stdint.h>
-
 #define PR_HELPER_CDB_SIZE     16
 #define PR_HELPER_SENSE_SIZE   96
 #define PR_HELPER_DATA_SIZE    8192
index 162a7d51aed501bdc69550a8818c8b5f6cf5d24d..5dc52ecad6ea5c430633d1e2fffc096630923ec5 100644 (file)
@@ -25,7 +25,6 @@
 #ifndef VMX_H
 #define VMX_H
 
-#include <stdint.h>
 #include <Hypervisor/hv.h>
 #include <Hypervisor/hv_vmx.h>
 #include "vmcs.h"
index 7803e09a28955da95b2f3586cebbcc47cda0366e..6c88939b968be3addee488d2c3b45f3230eb635f 100644 (file)
 
 #include "hw/i386/apic_internal.h"
 
-#include <stdio.h>
-#include <stdlib.h>
 #include <Hypervisor/hv.h>
 #include <Hypervisor/hv_vmx.h>
-#include <stdint.h>
 
 void hvf_set_segment(struct CPUState *cpu, struct vmx_segment *vmx_seg,
                      SegmentCache *qseg, bool is_tr)
index 0af43c84bbf4f4374794f36667c0edf241417aa7..d322c3f52a824b2acac0bfbee6e3525425ce97d3 100644 (file)
@@ -18,6 +18,7 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    02110-1301, USA.  */
 
+#include "qemu/osdep.h"
 #include "xtensa-isa.h"
 #include "xtensa-isa-internal.h"
 
index 8a41e7365901f1802e796cbf8643aeda7366385a..7c20f8234998541cd8a66bf4e72eb9ee2a8f88bb 100644 (file)
@@ -21,6 +21,7 @@
    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
+#include "qemu/osdep.h"
 #include "xtensa-isa.h"
 #include "xtensa-isa-internal.h"
 
index 21f3bd87973c0852c76dd0ca17a04f50c6ccb327..ef7674de3a4ca8ce70276f584fe5e58ebe8c10f0 100644 (file)
@@ -21,6 +21,7 @@
    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
+#include "qemu/osdep.h"
 #include "xtensa-isa.h"
 #include "xtensa-isa-internal.h"
 
index 9621f5142a9a5d27655a42d560d9dcb7b2af41c1..f7de2dec15ea6784cbed7e7bb269b47bb6c45e5c 100644 (file)
@@ -18,6 +18,7 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    02110-1301, USA.  */
 
+#include "qemu/osdep.h"
 #include "xtensa-isa.h"
 #include "xtensa-isa-internal.h"
 
index 39810e532aada3537c842f5b0c60d7fe88e0c68c..fba41b99aeafb1c911a392f90138874d32fcd305 100644 (file)
@@ -21,6 +21,7 @@
    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
+#include "qemu/osdep.h"
 #include "xtensa-isa.h"
 #include "xtensa-isa-internal.h"
 
index e0076a694fe9bda285c93b0b6925a7c9755da95e..630b4f9da1b554190eaec13fd9dce0b915bf85c3 100644 (file)
@@ -22,9 +22,7 @@
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "qemu/osdep.h"
 #include "xtensa-isa.h"
 #include "xtensa-isa-internal.h"
 
index cf8ce8b16d0f7634cf5a20ba42b2013d0d70116d..49a03aab7b83a959eb078d9f9a0eaa7e922450e5 100644 (file)
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <stdio.h>
+#include "qemu/osdep.h"
 #include <getopt.h>
-#include <string.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <unistd.h>
 #include <sys/reboot.h>
 #include <sys/syscall.h>
 #include <linux/random.h>
-#include <sys/time.h>
 #include <pthread.h>
-#include <fcntl.h>
 #include <sys/mount.h>
-#include <sys/stat.h>
-#include <sys/mman.h>
 
 const char *argv0;
 
index 5d1a2a81887aefb689631ff42155f1da92741107..41488896f76744a85a669088b6362fdd9ad212ad 100644 (file)
@@ -8,9 +8,9 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include <glib/gprintf.h>
 
-#include "qemu/osdep.h"
 #include "qemu/main-loop.h"
 #include "hw/ptimer.h"
 
index a9d395a58705dbcd094c17e49436e88c1ecebccf..c7fbe2d3bfd373f8d7f22dd264fd1852c3e98faa 100644 (file)
@@ -10,8 +10,6 @@
 #ifndef TRACE__CONTROL_INTERNAL_H
 #define TRACE__CONTROL_INTERNAL_H
 
-#include <stddef.h>                     /* size_t */
-
 #include "qom/cpu.h"