From patchwork Wed Jan 31 11:55:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 768487 Delivered-To: patch@linaro.org Received: by 2002:adf:ee41:0:b0:33a:e5bd:fedd with SMTP id w1csp1819113wro; Wed, 31 Jan 2024 04:00:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkfY6+ECCKsKrVZ2oMwP9iTJabAd4sfJvZuorrC3h3T7SCFWYwgT9w60EX4e/skPaQOjTY X-Received: by 2002:a05:6214:e81:b0:68c:72f2:44e9 with SMTP id hf1-20020a0562140e8100b0068c72f244e9mr280538qvb.49.1706702410905; Wed, 31 Jan 2024 04:00:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706702410; cv=none; d=google.com; s=arc-20160816; b=XXAyk6msZJ7bo56CY8uNATQNUglsFiO2ZU7WYfLeQC8dCzSS7qwlnxNgX+zkvPNoMv 5s751XpgJS3ihX8iMEmnVRYsGEAbX0028YJGKoC5ognF+oPGbt+bLWs7UgHYMGWzCPWa 17DmcqKSSYIZ63J3WfcnfzADj5Bgf9Fjd4c8ZVycxWlPdBhZq2yEQxKiBEL45Uzpf4FI O6GsR0czkjqvX/RMt6IaHL3SWVcT6K5n5YSO6e6a9lGYRMHhvcyYnDQSB+DymrFPRhu5 s5Av7FMVGgUN8C0+D68ytGANdwgvvQ9PmAfnVjP2sZ5xFnaflHaj+crkETW+v0dV1cO7 +CMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=6ZMUUKdTs/af8MFt+YZ9cWBk4sWTG8f8xeNT163kjEU=; fh=OR20w+Wj1ZKq3M9NSLnfIVrPAY4Tx8tshEtNuklVjzo=; b=eT2JcRF1dG+W9CkqqphniEs4s0qp2XRAqmbDCg0zhIiY9NWE851DeuMmfSBBlit+V+ Kosa7fo0yebcflC9es+wxDD9lAy/eVqbbzMnwUKIw+ZBpEJJReKwlNHJymDcBCUPNnuK WeywULp/CtwVAdRO0LuK9TqE8lkZVmO6QYLykpF7WWOabGojXJqEfqg6ZNTriVfS5ZBx UQsdBCafwCv1C9ZyIVHOZLOuL1R18gde0A5RIT4qKcX5M4l2cTPu6UmcOrTIFC+g+GHG dSRPt7Rnrsp2ISltiDdaVWbGVic8+rYKHz32W2mW9bGbdU1CgaQ/wk6lr/qdP43sOzIQ 8e9w==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" X-Forwarded-Encrypted: i=0; AJvYcCU6TcwBqb4rscYCGUjnOE8kpVSyUvBFThL7fveS/Vf8CLoUlLIbkxLMCMfI1CT/YU1nFkk2jD9zyBrljiYlvgNR Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id kk15-20020a056214508f00b0068453fd0eadsi7046846qvb.5.2024.01.31.04.00.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jan 2024 04:00:10 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rV9CJ-0008GV-Cr; Wed, 31 Jan 2024 06:56:07 -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 1rV9CI-0008GI-Bn; Wed, 31 Jan 2024 06:56:06 -0500 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rV9CG-0003we-OR; Wed, 31 Jan 2024 06:56:06 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 401D9490C6; Wed, 31 Jan 2024 14:56:47 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 76E9C7026F; Wed, 31 Jan 2024 14:55:50 +0300 (MSK) Received: (nullmailer pid 2263936 invoked by uid 1000); Wed, 31 Jan 2024 11:55:49 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-trivial@nongnu.org, Michael Tokarev Subject: [PULL 08/21] disas/riscv: Clean up includes Date: Wed, 31 Jan 2024 14:55:36 +0300 Message-Id: <20240131115549.2263854-9-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131115549.2263854-1-mjt@tls.msk.ru> References: <20240131115549.2263854-1-mjt@tls.msk.ru> MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Peter Maydell This commit was created with scripts/clean-includes: ./scripts/clean-includes --git disas/riscv disas/riscv*[ch] 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é Reviewed-by: Zhao Liu Reviewed-by: Richard Henderson Signed-off-by: Michael Tokarev --- disas/riscv-xthead.c | 1 + disas/riscv-xventana.c | 1 + disas/riscv.h | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/disas/riscv-xthead.c b/disas/riscv-xthead.c index 99da679d16..fcca326d1c 100644 --- a/disas/riscv-xthead.c +++ b/disas/riscv-xthead.c @@ -4,6 +4,7 @@ * SPDX-License-Identifier: GPL-2.0-or-later */ +#include "qemu/osdep.h" #include "disas/riscv.h" #include "disas/riscv-xthead.h" diff --git a/disas/riscv-xventana.c b/disas/riscv-xventana.c index a0224d1fb3..cd694f15f3 100644 --- a/disas/riscv-xventana.c +++ b/disas/riscv-xventana.c @@ -4,6 +4,7 @@ * SPDX-License-Identifier: GPL-2.0-or-later */ +#include "qemu/osdep.h" #include "disas/riscv.h" #include "disas/riscv-xventana.h" diff --git a/disas/riscv.h b/disas/riscv.h index 19e5ed2ce6..16a08e4895 100644 --- a/disas/riscv.h +++ b/disas/riscv.h @@ -7,7 +7,6 @@ #ifndef DISAS_RISCV_H #define DISAS_RISCV_H -#include "qemu/osdep.h" #include "target/riscv/cpu_cfg.h" /* types */