From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03D4CC4332F for ; Wed, 15 Dec 2021 02:31:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235251AbhLOCbw (ORCPT ); Tue, 14 Dec 2021 21:31:52 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:50968 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235193AbhLOCbv (ORCPT ); Tue, 14 Dec 2021 21:31:51 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 837886179F for ; Wed, 15 Dec 2021 02:31:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2545C3460B; Wed, 15 Dec 2021 02:31:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639535510; bh=iitfXktrLNP9o39lllAFXBBikGwWFAaW2/MflXzJ6i4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oaQrsHG37pIPsrM4rPdaC8Vda6jNFx9BFQG0IeRAdZD5yZH3lb12BpyQ9MtL6IunD NG1R2nOK1gwRrqljF7gyIh65qDKvUEj8bMzzwHqYVqLy+qmfTNsAAn1W3BfVu9WnF6 AJU7dzIisxKWJuZVnzV+b7/KCOadlAyNmH7z+OETOcHxflXyg/KvGbhUjNeiGsWAqd MUxcMJ7GpQQnE4BHPKTF8ayiTPqB6oUZR6PfyXzTTQScDmIhpHtnt0isXGrpCmuzll sOPAn+gyjePcWr9DXEVlxmTONVUOu7WmbiwC+kJDKcGUUG3cmlodkf2pvN1UNuokkW Tr+6S+KxDE4yQ== From: Jakub Kicinski To: daniel@iogearbox.net, ast@kernel.org, andrii@kernel.org Cc: bpf@vger.kernel.org, Jakub Kicinski Subject: [PATCH bpf-next v2 4/4] bpf: remove the cgroup -> bpf header dependecy Date: Tue, 14 Dec 2021 18:31:26 -0800 Message-Id: <20211215023126.659200-5-kuba@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211215023126.659200-1-kuba@kernel.org> References: <20211215023126.659200-1-kuba@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Now that the stage has been set and actors are in place remove the header dependency between cgroup and bpf.h. This reduces the incremental build size of x86 allmodconfig after bpf.h was touched from ~17k objects rebuilt to ~5k objects. bpf.h is 2.2kLoC and is modified relatively often. Signed-off-by: Jakub Kicinski --- include/linux/bpf-cgroup.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/bpf-cgroup.h b/include/linux/bpf-cgroup.h index 12474516e0be..4c932d47e7f2 100644 --- a/include/linux/bpf-cgroup.h +++ b/include/linux/bpf-cgroup.h @@ -2,7 +2,8 @@ #ifndef _BPF_CGROUP_H #define _BPF_CGROUP_H -#include +#include +#include #include #include #include @@ -16,6 +17,7 @@ struct cgroup; struct sk_buff; struct bpf_map; struct bpf_prog; +struct bpf_prog_aux; struct bpf_sock_ops_kern; struct bpf_cgroup_storage; struct ctl_table; -- 2.31.1