From patchwork Fri Oct 1 11:08:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Monnet X-Patchwork-Id: 12530301 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D99FC433F5 for ; Fri, 1 Oct 2021 11:09:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F0E661A82 for ; Fri, 1 Oct 2021 11:09:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353705AbhJALLI (ORCPT ); Fri, 1 Oct 2021 07:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353582AbhJALLI (ORCPT ); Fri, 1 Oct 2021 07:11:08 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAABCC06177B for ; Fri, 1 Oct 2021 04:09:23 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id u18so14888346wrg.5 for ; Fri, 01 Oct 2021 04:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=C6sdHrUdi9BDM1rYxYocEEgrTC9SSamTyBYNfJp2XuY=; b=TfR2ECMeIMEB4jKJmdANQyuA9XvSqRaRtg9g9hX1rmkNVhULUrtfpaluTnH9c1htJk qoSXyeeEh1koKk9Zo47+rBcwiSKE1/XmVVFLmiiv4+W64tYufacXtbGc+kLGCZ+fXQwe 2+eX9QDJtiaMAnG7VSrQwNOp5o19U8rziT2aPsycSIEMO93OT2W/shYTO9jao4OEBFLN n8LENfdDw+Yypky8vcEEobz/PCG32Lhall42NYyQxDL3Xg+pA7q3UsuaFCmqdsV8tr/8 hNHITaczwyNJ/MhZmemr0ViCa2XeCqz6r9bEeY6qs6GXC+4mbazu6NsZEi6q/fRUTbro aO/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=C6sdHrUdi9BDM1rYxYocEEgrTC9SSamTyBYNfJp2XuY=; b=N+pI5WZeFGItoZ0aH3AY82r04UNSmwCE8bdwjQ0Ohwf5KOhxPAReSL/UGTWAhS7M1b SOTG+vEAu2UiNb19Hb/bJ5X5YlNQDCDtjo7xWDX8ORNMorDz4iMYXqKFiDSqihlNL0It Kz3CmyKCBWjZqnZzX3RWoHBnHatDX6qWZde/OZFM1iSOHc2fGhHyhFDgeLAWFZnp+nTh jyvEZ/oCV9qmH/0LkD7wbQQJaZddi+CX2zSdxtlrAV1cgmh6RNXZfDU13gCzhXVYXLJX E1x+1tOwNf1FT+ZLIUIM49fuY/H9+0v9RAblQu1HYbOhB6a4yApsErII3s16KZZmYKlS 3AbQ== X-Gm-Message-State: AOAM5302OfFaRcuGJJw0Kwrjn0gPWNn20eGB5AC1PcI8EcD6gEwwAQt5 SNDTrLW1BDn0AJlg0kxptgSHIw== X-Google-Smtp-Source: ABdhPJy1ada11pnipFClBMI16iIRjtiTPaJQK/V9WOnFbkMqYdNAX39z5VvgD/ZyyY4ayfskSYNyzA== X-Received: by 2002:adf:fb89:: with SMTP id a9mr11578044wrr.164.1633086562462; Fri, 01 Oct 2021 04:09:22 -0700 (PDT) Received: from localhost.localdomain ([149.86.91.69]) by smtp.gmail.com with ESMTPSA id v17sm5903271wro.34.2021.10.01.04.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 04:09:22 -0700 (PDT) From: Quentin Monnet To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, Quentin Monnet Subject: [PATCH bpf-next v2 1/9] tools: bpftool: remove unused includes to Date: Fri, 1 Oct 2021 12:08:48 +0100 Message-Id: <20211001110856.14730-2-quentin@isovalent.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211001110856.14730-1-quentin@isovalent.com> References: <20211001110856.14730-1-quentin@isovalent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net It seems that the header file was never necessary to compile bpftool, and it is not part of the headers exported from libbpf. Let's remove the includes from prog.c and gen.c. Fixes: d510296d331a ("bpftool: Use syscall/loader program in "prog load" and "gen skeleton" command.") Signed-off-by: Quentin Monnet --- tools/bpf/bpftool/gen.c | 1 - tools/bpf/bpftool/prog.c | 1 - 2 files changed, 2 deletions(-) diff --git a/tools/bpf/bpftool/gen.c b/tools/bpf/bpftool/gen.c index cc835859465b..b2ffc18eafc1 100644 --- a/tools/bpf/bpftool/gen.c +++ b/tools/bpf/bpftool/gen.c @@ -18,7 +18,6 @@ #include #include #include -#include #include "json_writer.h" #include "main.h" diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c index 9c3e343b7d87..7323dd490873 100644 --- a/tools/bpf/bpftool/prog.c +++ b/tools/bpf/bpftool/prog.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include "cfg.h"