From nobody Sun Jan 25 12:04:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1769181117; cv=none; d=zohomail.com; s=zohoarc; b=jVnmfaEcowgdGWolq63OThfPZxpD/h4uzb8mInAZQCqOkUgIc8Qx9NLP2zUtUOLbYvHULdse7vgIUZQQu95Rz4Bapdz65nX88jBrrpVei2czyF2OL/D9sx5uyb6M5rBIgGXOUNWi5/JGGFCM4LbhaoVo4km2jfi1CdB5rgeOQKk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769181117; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=lT9cpKsejMrXAad2lZ8Jg34cGKKa9EKIzdv2dgEDJFo=; b=JmHqHz0Sn4IC5rcV8fKwURoVrkvbemBiXN9yevAhuxu4NX5AnYfjy6Z66xugEEcV2xpu1qn0e+VcSYiMyvtjpg6Ah8SrgxF48vLVvtn4lcU/9Nk4ylfXXPxWm22olAGPK/NJsjHF/2U+Q8bc8j04Ik/zYc19o9E21WZ1u6ReioY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1769181117659410.27182521307714; Fri, 23 Jan 2026 07:11:57 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjIo6-0007es-9j; Fri, 23 Jan 2026 10:10:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vjInR-00077s-C8 for qemu-devel@nongnu.org; Fri, 23 Jan 2026 10:10:09 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vjInO-00035q-CD for qemu-devel@nongnu.org; Fri, 23 Jan 2026 10:10:01 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-47f3b7ef761so16493615e9.0 for ; Fri, 23 Jan 2026 07:09:57 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435b1e71503sm8255641f8f.25.2026.01.23.07.09.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jan 2026 07:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769180996; x=1769785796; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=lT9cpKsejMrXAad2lZ8Jg34cGKKa9EKIzdv2dgEDJFo=; b=aJTbYKhlv9av8OFfBIXQli/Efy0cyp+J8B72LiEfE/SgPDbhfFoVgmPKXRDv4vnNuR Dq32cgjH0xlKRV/kxJQ5mWr9NItjBpQa9JhLL5/y7ZJm+rYj9FNkitKc6+5y7ZTyj19m wCGpfdPgw20dJaQAPaFwBxrnHFjXm+Rijp3RmgaKZp0mszjQLgJW6TKLEn0aExb4eUDV D3UKjfvDLDckPNgpVexLQPeKknrA9KlGM6LXvV2lZR5PeYdvGq9n5YkBpGc5r1Mx19kb mX0mkDJhnDZGIDFmVAXzKIMEZ4X76+2ssFXHwluv4/ld7FQ4HwdZ8d7hODvtCZafsIPA RpUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769180996; x=1769785796; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=lT9cpKsejMrXAad2lZ8Jg34cGKKa9EKIzdv2dgEDJFo=; b=wYYvrDqVrsWMlr/3YuEIa7qsjHuz+MohYb9UIURS7hA0LQOIYn3pYIukGG/WZTs74x mcTVrkb3hYIc72zQWREbnAviZZeuvpzTgHGyRv90uUxD5nkVCZCueqWCbfX3DYzplBpk PGsFQZncdA0n4f38QDhN3r/UXZ1M4O6bukn1qKAcIyWcL68slDeZfWxXisL90PmvvJk1 1iPgW8s1PCebnm09lZwn7JL7gYrk/V2HyXCQUBlYWliX4g+vx0FLLMZMvrlOBnUIznaa Ab6mS0ka77OyZcnQRgvJR8qULZ+1NOiwstWk2jxD3lup28fQinBrznXwdRF11uVD6A2G 3Wew== X-Gm-Message-State: AOJu0YyLF9Qlg+a40SXMysJ1JooMeuLEq+i3Y6HIALcAElZ7ZVX60scz ypjnDWVO8OyK76vDsDM7OiyNNdsESb6ATkS2ZAg19WqTqcYwo/NOn/9O7XVdD2bp4P3rGd4rdRl kH1bRt0Q= X-Gm-Gg: AZuq6aIv7BTNhiGsl9G9scOq9ukFInkBLkvlBmX9+Jr/eSl3Ldz89ynSIoir53bNAuR kxEtZhJjZyKVqIfSkH9KwLGtBndso6iUKoZ8ZO58YhRRz7/4wGEfPFx8UalIxjhgeDKn3kABqHD HSw/rsW7WRm3PwekbXmPqG/COWUZkeG3zQK8hfmI10mYHF5kASt6uktVDhS3Qtdhjc/Kg1Zd/JA cZn/nyo5O0q16losuxQvVZwMtytefcF+WUux6aaJfDCd2+2j23ZTt9gKsHUEQ1omecuZfavfaDm /PblN88Evgzgqjm0iggEW2zxkYrQBZnSdJoWC8bFVq56f2KEwbNwzF0DQBeB/lgT/TDsNJTM1ZL aadI1VcNVSlxz3kyw/gGQ7uiM/kxoWP6Ineiahpnn7mmrfgy/CEBaybsCBKRSN0vELwTqzBkXQe 2dAD0Ujs/7Br380WmoxbDKCqjLYPiSWVQ+WcV4ReiS1d5+2hWr+GJN X-Received: by 2002:a05:600c:8707:b0:480:3338:292d with SMTP id 5b1f17b1804b1-4804c9b7c19mr55064795e9.31.1769180995834; Fri, 23 Jan 2026 07:09:55 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 14/22] all: Clean up includes Date: Fri, 23 Jan 2026 15:09:32 +0000 Message-ID: <20260123150941.1877768-15-peter.maydell@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260123150941.1877768-1-peter.maydell@linaro.org> References: <20260123150941.1877768-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1769181118669158500 This commit was created with scripts/clean-includes: ./scripts/clean-includes '--git' 'all' '--all' and manually edited to remove one change to hw/virtio/cbor-helpers.c. All these changes are header files that include osdep.h or some system header that osdep.h pulls in; they don't need to do this. 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: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20260116125830.926296-5-peter.maydell@linaro.org --- hw/scsi/lasi_ncr710.h | 1 - hw/scsi/ncr53c710.h | 1 - include/hw/core/loader.h | 1 - include/hw/i386/tdvf.h | 1 - include/hw/ppc/spapr_fadump.h | 1 - include/hw/riscv/iommu.h | 1 - include/system/accel-irq.h | 1 - linux-user/alpha/target_proc.h | 1 - qga/commands-windows-ssh.h | 1 - qga/vss-win32/vss-debug.h | 1 - target/i386/kvm/vmsr_energy.h | 2 -- 11 files changed, 12 deletions(-) diff --git a/hw/scsi/lasi_ncr710.h b/hw/scsi/lasi_ncr710.h index 99be001fc3..450fb7e1c3 100644 --- a/hw/scsi/lasi_ncr710.h +++ b/hw/scsi/lasi_ncr710.h @@ -15,7 +15,6 @@ #define HW_LASI_NCR710_H =20 #include "hw/core/sysbus.h" -#include "qemu/osdep.h" #include "exec/memattrs.h" #include "hw/scsi/scsi.h" #include "hw/scsi/ncr53c710.h" diff --git a/hw/scsi/ncr53c710.h b/hw/scsi/ncr53c710.h index a8dc92f4ef..00b6a01577 100644 --- a/hw/scsi/ncr53c710.h +++ b/hw/scsi/ncr53c710.h @@ -15,7 +15,6 @@ #ifndef HW_NCR53C710_H #define HW_NCR53C710_H =20 -#include "qemu/osdep.h" #include "hw/core/sysbus.h" #include "hw/scsi/scsi.h" #include "qemu/fifo8.h" diff --git a/include/hw/core/loader.h b/include/hw/core/loader.h index dd22cbb5e8..d9431e8a8d 100644 --- a/include/hw/core/loader.h +++ b/include/hw/core/loader.h @@ -1,7 +1,6 @@ #ifndef LOADER_H #define LOADER_H #include "hw/nvram/fw_cfg.h" -#include "qemu/typedefs.h" =20 /* loader.c */ /** diff --git a/include/hw/i386/tdvf.h b/include/hw/i386/tdvf.h index e75c8d1acc..4d7362ad65 100644 --- a/include/hw/i386/tdvf.h +++ b/include/hw/i386/tdvf.h @@ -9,7 +9,6 @@ #ifndef HW_I386_TDVF_H #define HW_I386_TDVF_H =20 -#include "qemu/osdep.h" =20 #define TDVF_SECTION_TYPE_BFV 0 #define TDVF_SECTION_TYPE_CFV 1 diff --git a/include/hw/ppc/spapr_fadump.h b/include/hw/ppc/spapr_fadump.h index fde2830e94..82681fb9a6 100644 --- a/include/hw/ppc/spapr_fadump.h +++ b/include/hw/ppc/spapr_fadump.h @@ -6,7 +6,6 @@ #ifndef PPC_SPAPR_FADUMP_H #define PPC_SPAPR_FADUMP_H =20 -#include "qemu/osdep.h" #include "cpu.h" =20 /* Fadump commands */ diff --git a/include/hw/riscv/iommu.h b/include/hw/riscv/iommu.h index 25f1a8b159..999384fc89 100644 --- a/include/hw/riscv/iommu.h +++ b/include/hw/riscv/iommu.h @@ -19,7 +19,6 @@ #ifndef HW_RISCV_IOMMU_H #define HW_RISCV_IOMMU_H =20 -#include "qemu/osdep.h" #include "qom/object.h" =20 #define TYPE_RISCV_IOMMU "riscv-iommu" diff --git a/include/system/accel-irq.h b/include/system/accel-irq.h index 671fb7dfdb..a2caa06f54 100644 --- a/include/system/accel-irq.h +++ b/include/system/accel-irq.h @@ -12,7 +12,6 @@ #ifndef SYSTEM_ACCEL_IRQ_H #define SYSTEM_ACCEL_IRQ_H #include "hw/pci/msi.h" -#include "qemu/osdep.h" #include "system/kvm.h" #include "system/mshv.h" =20 diff --git a/linux-user/alpha/target_proc.h b/linux-user/alpha/target_proc.h index 6b491ffa3a..71949d380d 100644 --- a/linux-user/alpha/target_proc.h +++ b/linux-user/alpha/target_proc.h @@ -6,7 +6,6 @@ #ifndef ALPHA_TARGET_PROC_H #define ALPHA_TARGET_PROC_H =20 -#include "qemu/osdep.h" #include "target/alpha/cpu.h" =20 static uint8_t alpha_phys_addr_space_bits(CPUAlphaState *env) diff --git a/qga/commands-windows-ssh.h b/qga/commands-windows-ssh.h index 40ac67c4d9..c35d945a89 100644 --- a/qga/commands-windows-ssh.h +++ b/qga/commands-windows-ssh.h @@ -11,7 +11,6 @@ */ =20 #include -#include typedef struct WindowsUserInfo { char *sshDirectory; char *authorizedKeyFile; diff --git a/qga/vss-win32/vss-debug.h b/qga/vss-win32/vss-debug.h index 7800457392..506cee6698 100644 --- a/qga/vss-win32/vss-debug.h +++ b/qga/vss-win32/vss-debug.h @@ -10,7 +10,6 @@ * See the COPYING file in the top-level directory. */ =20 -#include "qemu/osdep.h" #include =20 #ifndef VSS_DEBUG_H diff --git a/target/i386/kvm/vmsr_energy.h b/target/i386/kvm/vmsr_energy.h index 151bcbd642..415d64f51c 100644 --- a/target/i386/kvm/vmsr_energy.h +++ b/target/i386/kvm/vmsr_energy.h @@ -14,8 +14,6 @@ #ifndef VMSR_ENERGY_H #define VMSR_ENERGY_H =20 -#include -#include "qemu/osdep.h" #include "io/channel-socket.h" #include "hw/i386/topology.h" =20 --=20 2.47.3