From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 931D83858425 for ; Fri, 23 Dec 2022 03:37:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 931D83858425 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 1C1E5341186; Fri, 23 Dec 2022 03:37:07 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 2/2] sim: endian: move bfd.h from header to source Date: Thu, 22 Dec 2022 22:37:01 -0500 Message-Id: <20221223033701.2884-2-vapier@gentoo.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221223033701.2884-1-vapier@gentoo.org> References: <20221223033701.2884-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The bfd APIs are used only by sim-n-endian.h which is only included by sim-endian.c, so move the bfd.h include there and out of sim-endian.h which is included by many other modules. --- sim/common/sim-endian.c | 2 ++ sim/common/sim-endian.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/common/sim-endian.c b/sim/common/sim-endian.c index 647795b37e4e..92c661829165 100644 --- a/sim/common/sim-endian.c +++ b/sim/common/sim-endian.c @@ -26,6 +26,8 @@ /* This must come before any other includes. */ #include "defs.h" +#include "bfd.h" + #include "sim-basics.h" #include "sim-assert.h" diff --git a/sim/common/sim-endian.h b/sim/common/sim-endian.h index 9d46db2b18f7..b6d97f5c1440 100644 --- a/sim/common/sim-endian.h +++ b/sim/common/sim-endian.h @@ -23,8 +23,6 @@ #ifndef SIM_ENDIAN_H #define SIM_ENDIAN_H -#include "bfd.h" - /* C byte conversion functions */ INLINE_SIM_ENDIAN(unsigned_1) endian_h2t_1(unsigned_1 x); -- 2.39.0