From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <3o_IfYQgKDhgyz1I9FyG4CC492.0CA293IH69G-12J29GCIF02KyF2.CF4@flex--abdulras.bounces.google.com> Received: from mail-qt1-x84a.google.com (mail-qt1-x84a.google.com [IPv6:2607:f8b0:4864:20::84a]) by sourceware.org (Postfix) with ESMTPS id D361E3858026 for ; Fri, 20 Aug 2021 18:21:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D361E3858026 Received: by mail-qt1-x84a.google.com with SMTP id s39-20020a05622a1aa700b00298bbc58d2fso5262782qtc.12 for ; Fri, 20 Aug 2021 11:21:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=G7Tnj6L0T8rHRTjM2fwrR+oW+p49Wy51vAAxY4KFSnk=; b=hfjZYX28lD0mgad9gGWcUaVW+y47TA3nOIV/S2LAWwUNfkrlxno/75QaHrvu2Mc2iM sO5TSkKf8D4/WfPJRvJQFUCqpNIDk2P/U6Iyek2x07nCZ53YfKN/szMiFu6KgXNO3NFO 6lEwxZ7yjll6jU8F/pRxWJBNH8SNWSKz1AzmQnK4k5QCwPk1wSNjSqEBD1CiaRN+riS/ 01ig/agYqxW4ijgMVaXZaU88PZD6FIH0IrFcAr/nMovTYOKLPQTBq8rNH5UQ25xsg6w1 FOcWaj8nonTQ9lw+7i6DivorRuXA8Yz0VJOGhVG37s1GJEIggO1WyDGMotA7aji0opaI Rs/Q== X-Gm-Message-State: AOAM532Zri1GRj57n4klRN7FD+HhpIhv5oOsO1ptAk0CaruplH8hDlGl 1dfKBBPYrw0S+p6JYK+rQklitdD4KP5Gei6UM8VMXWdVCtJltgphePqRBKf18xpPQifHIc3mp+r 8kKFES2zRBv9Fsz8p4fd1i9sAO75lbxLjVf3aFI2axkZKQ0qv+GMB+MvRlTm5gJIsxRUsWRDLjt u5 X-Google-Smtp-Source: ABdhPJyvUisbkKoCWELJrVLyX6g/+G+pe1sNFDcqG27sgg1v146np2RFxAm6jBKOFDz92mtct4WaIGMO1h2pvA== X-Received: from abdulras-llvm.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:219b]) (user=abdulras job=sendgmr) by 2002:a0c:d647:: with SMTP id e7mr8969963qvj.48.1629483683483; Fri, 20 Aug 2021 11:21:23 -0700 (PDT) Date: Fri, 20 Aug 2021 18:21:20 +0000 Message-Id: <20210820182120.2841876-1-abdulras@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.rc2.250.ged5fa647cd-goog Subject: [PATCH] debuginfod, elfclassify: remove unnecessary header inclusion From: Saleem Abdulrasool To: elfutils-devel@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-21.4 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2021 18:21:24 -0000 `error.h`'s inclusion was centralised into the `system.h` header. As the implementation currently includes `system.h` already, the inclusion of `error.h` is unnecessary. This prepares for a future portability change to allow elfutil to build with alternate libc implementations. Signed-off-by: Saleem Abdulrasool --- debuginfod/debuginfod.cxx | 1 - src/elfclassify.c | 1 - 2 files changed, 2 deletions(-) diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index fca07f61..b560fdcb 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debuginfod.cxx @@ -46,7 +46,6 @@ extern "C" { #include #include -#include #include #include #include diff --git a/src/elfclassify.c b/src/elfclassify.c index fe7eeeed..2f70b29a 100644 --- a/src/elfclassify.c +++ b/src/elfclassify.c @@ -19,7 +19,6 @@ #include #include -#include #include #include #include -- 2.33.0.rc2.250.ged5fa647cd-goog