From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id C7CEB3AA88AB for ; Sat, 17 Dec 2022 16:52:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C7CEB3AA88AB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x62f.google.com with SMTP id w23so5161801ply.12 for ; Sat, 17 Dec 2022 08:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TD5MdP0MU+ry7acB/LFG2Sj6RuLS9yDRrAS4Bcadpmc=; b=DXPh6JDRxr9bXDlJORmH7RpeocfbuWM4xTovir2banXUTR23YF2TtryNfEeN9HuKP0 wqzP97L6RNujbb16A35t/oO1MYnBRzpJh+2rsopcPJ7i5a3iT1Af2+rAiNQU9SSmaICs HRjZveS9dFa5v91MKek6eiQDtqwP9BzGda63+hXR9D5amzI0bGh/UFF183U71WdTZdFD QnjR++4DD1ofsATiOHNDnKOE+Iw01my+nQkY6F6nnM/ynJIhPut5YU7Y0dYU7eO0PRnJ Vr3epoLXa36SiJbb+j8HQZaYIgSiTSOg/DEey/7EtKW3R3YgtiynGsO5VZ2CRl9AL5O9 nkmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TD5MdP0MU+ry7acB/LFG2Sj6RuLS9yDRrAS4Bcadpmc=; b=2CaOf1NAqjWIyHL67i6iGL28MRuS+rP/2mm+252kejGHgvhzoHrih2IE2RSfkYtK6J vAAMjhS68boRZOPU50ugDxifGz7MwPqAAAAONifEgdQi5zOi5C/CX+MxsliptkD859de g47ZB26yVYvorl39U2JqZ9B7y1iJDihSWxa8FuqbKlzvdK4q5Ut2s6hTHGVjoSzHdglG HZmWoQ4LCn5l+Zq/1uJJUTOxOwnJy5dJxa9Soa3sk2X/2oyNafLsAAagnvDqU5ZxvVD4 MHJDx9RMiPeuvAU/ZfA+VOjXGJAlF/KhMzrmKe2PqufiaYiPBjzUy+VEBeXPR7mzdJu+ jJ0w== X-Gm-Message-State: ANoB5pn8qsuT/LED2SfvzIpUSxw/6XZC8apbRYFt76dqMZAW1h5Nh5df 2iWv58cSSPVlzCdgwbJsnA4nKW0zIN4= X-Google-Smtp-Source: AA0mqf59ccTQW5w1S/hTJWyxwuO8fhw7XW4uSWiDgRsVwQZRzrYPiYYgjlKY/Cd1EnfgDhQbRo/S0w== X-Received: by 2002:a17:90a:3b0c:b0:219:1a4e:3490 with SMTP id d12-20020a17090a3b0c00b002191a4e3490mr37668460pjc.37.1671295957578; Sat, 17 Dec 2022 08:52:37 -0800 (PST) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id s92-20020a17090a2f6500b002191873187dsm6643229pjd.33.2022.12.17.08.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Dec 2022 08:52:37 -0800 (PST) From: Yonggang Luo To: elfutils-devel@sourceware.org Cc: Yonggang Luo Subject: [PATCH v2 02/16] move platform depended include into system.h of libebl Date: Sun, 18 Dec 2022 00:51:59 +0800 Message-Id: <20221217165213.152-3-luoyonggang@gmail.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20221217165213.152-1-luoyonggang@gmail.com> References: <20221217165213.152-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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: Because all source in libebl #include , so #include in libeblP.h is enough, there is multiple memory-access.h file, so use relative path to include it properly, Signed-off-by: Yonggang Luo -#include -#include #include #include #include diff --git a/libebl/eblcorenote.c b/libebl/eblcorenote.c index 7fab3974..3d4c8a92 100644 --- a/libebl/eblcorenote.c +++ b/libebl/eblcorenote.c @@ -31,8 +31,6 @@ #endif #include -#include -#include #include #include #include diff --git a/libebl/ebldynamictagname.c b/libebl/ebldynamictagname.c index 5d4a3a58..7a430f49 100644 --- a/libebl/ebldynamictagname.c +++ b/libebl/ebldynamictagname.c @@ -34,7 +34,6 @@ #include #include #include -#include "system.h" const char * diff --git a/libebl/eblobjnote.c b/libebl/eblobjnote.c index 5a7c5c62..0bb56c02 100644 --- a/libebl/eblobjnote.c +++ b/libebl/eblobjnote.c @@ -37,10 +37,10 @@ #include #include -#include "common.h" -#include "libelfP.h" -#include "libdwP.h" -#include "memory-access.h" +#include "../libelf/common.h" +#include "../libelf/libelfP.h" +#include "../libdw/libdwP.h" +#include "../libdw/memory-access.h" void diff --git a/libebl/eblobjnotetypename.c b/libebl/eblobjnotetypename.c index 473a1f2f..2ee1b228 100644 --- a/libebl/eblobjnotetypename.c +++ b/libebl/eblobjnotetypename.c @@ -31,8 +31,6 @@ # include #endif -#include - #include #include #include diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c index 02f80653..6e884ea0 100644 --- a/libebl/eblopenbackend.c +++ b/libebl/eblopenbackend.c @@ -37,7 +37,6 @@ #include #include -#include #include Ebl *i386_init (Elf *, GElf_Half, Ebl *); diff --git a/libebl/libeblP.h b/libebl/libeblP.h index c408ed97..9dfd60de 100644 --- a/libebl/libeblP.h +++ b/libebl/libeblP.h @@ -33,6 +33,7 @@ #include #include +#include /* Backend handle. */ struct ebl -- 2.36.1.windows.1