From nobody Mon Feb 9 14:02:33 2026 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 D5AF3C7EE23 for ; Tue, 6 Jun 2023 02:12:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232197AbjFFCMB (ORCPT ); Mon, 5 Jun 2023 22:12:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230121AbjFFCL7 (ORCPT ); Mon, 5 Jun 2023 22:11:59 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1691F7; Mon, 5 Jun 2023 19:11:58 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.169]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4QZv9k4WYTz4f3pBY; Tue, 6 Jun 2023 10:11:54 +0800 (CST) Received: from ubuntu1804.huawei.com (unknown [10.67.174.102]) by APP3 (Coremail) with SMTP id _Ch0CgDHrQvolX5kx5PMKA--.45351S2; Tue, 06 Jun 2023 10:11:53 +0800 (CST) From: Ruiqi Gong To: Andrii Nakryiko Cc: Stanislav Fomichev , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Martin KaFai Lau , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Wang Weiyang , Xiu Jianfeng , gongruiqi1@huawei.com Subject: [PATCH RESEND] bpf: cleanup unused function declaration Date: Tue, 6 Jun 2023 10:10:47 +0800 Message-Id: <20230606021047.170667-1-gongruiqi@huaweicloud.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: _Ch0CgDHrQvolX5kx5PMKA--.45351S2 X-Coremail-Antispam: 1UD129KBjvdX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ter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" All usage and the definition of `bpf_prog_free_linfo()` has been removed in commit e16301fbe183 ("bpf: Simplify freeing logic in linfo and jited_linfo"). Clean up its declaration in the header file. Signed-off-by: Ruiqi Gong Acked-by: Stanislav Fomichev Link: https://lore.kernel.org/all/20230602030842.279262-1-gongruiqi@huaweic= loud.com/ --- Resend: formatted from bpf-next/master. include/linux/filter.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/filter.h b/include/linux/filter.h index bbce89937..f69114083 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -874,7 +874,6 @@ void bpf_prog_free(struct bpf_prog *fp); =20 bool bpf_opcode_in_insntable(u8 code); =20 -void bpf_prog_free_linfo(struct bpf_prog *prog); void bpf_prog_fill_jited_linfo(struct bpf_prog *prog, const u32 *insn_to_jit_off); int bpf_prog_alloc_jited_linfo(struct bpf_prog *prog); --=20 2.17.1