Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1649768rwd; Thu, 1 Jun 2023 20:16:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TKBVf0rO7+IMJLcKcOV1HBZmDtez6nkyl2jSwcZyUXbG0DmPKHQJd968hnHtEb0/h9EQr X-Received: by 2002:a05:6870:c783:b0:19f:9cb4:884d with SMTP id dy3-20020a056870c78300b0019f9cb4884dmr944133oab.21.1685675784717; Thu, 01 Jun 2023 20:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685675784; cv=none; d=google.com; s=arc-20160816; b=SVhLmG511heL3EpmXL2VaZeGa7IsuYyb7zlY1z+fhCZQEq/LMuH81a0e9cv0r3xpLE nLGrzrt6sTxWYdWAtZ9mlInxUQgEdzCnqpr7BcWj8wpeV0dyeBpMLlEXuGrHaJUxBtby 9Nh0qIERVrb/8sn1Zc0DhgGL0vVc4bVPPKAxxV00F7Qfc7Bndf1wh/EC4lwbp9zK2tSq pJkL1p5D9i00/tizYvK+LdMJOkGB8ovoLNtCLj1nqPHc3xrexXH8T3VgFD+/1MZDKYrc oN/UzPWUTACc21uN9HIt47hgWMpZFGk9SHMEL+rJGqs9sihFK5lEQcNDrnCcY3JBwJQ0 6urQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=lHYGJ98cSwyiQOa1lgFWWjqHScxmF+blUAQhjY9mo+Y=; b=Lj4tRvFEeAN82EWzuAKrqnQnLvzJcLEBnjPbX+lSDw4bhFW/a7lagt0PS7IQv42RK+ gfMs/ErX4QwLF+5xh5V3r5vlcj+UhzKxS8FeL05P9XDtfg0T9VtoJd7NcvPRnA8e2weg mQbqanLpj/LRFyCHfQa4SJXusKmMlgNUaVH8AOpWcreGSbFysc6x/BHHkU063lkZEGY2 Sj3fJjEJY8ETlGFbZ30NiZhoLP18QM/B44bGljW3Uzyzn4v9Clo2UjV/OLYFjmGvLf5u mUNzCtRwnf3dZcbd5mGDBoXh0i1DYXBOKx6A9tUpZa2bCY1/ucBgKWhp4udjc8DuWs3s 17Cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a170902eb4200b001ab13c7505asi195912pli.125.2023.06.01.20.16.10; Thu, 01 Jun 2023 20:16:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231628AbjFBDGV (ORCPT + 99 others); Thu, 1 Jun 2023 23:06:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjFBDGT (ORCPT ); Thu, 1 Jun 2023 23:06:19 -0400 Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04EFC18C; Thu, 1 Jun 2023 20:06:18 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4QXSZC3bTNz4f3khp; Fri, 2 Jun 2023 11:06:11 +0800 (CST) Received: from ubuntu20.huawei.com (unknown [10.67.174.33]) by APP2 (Coremail) with SMTP id Syh0CgD33NqPXHlk9z6WKg--.23187S2; Fri, 02 Jun 2023 11:06:13 +0800 (CST) From: "GONG, Ruiqi" To: Alexei Starovoitov , Daniel Borkmann Cc: John Fastabend , Andrii Nakryiko , Martin KaFai Lau , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Wang Weiyang , Xiu Jianfeng , gongruiqi1@huawei.com Subject: [PATCH] bpf: cleanup unused function declaration Date: Fri, 2 Jun 2023 11:08:42 +0800 Message-Id: <20230602030842.279262-1-gongruiqi@huaweicloud.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgD33NqPXHlk9z6WKg--.23187S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZw1xJw1xKr45WF4rKFW8Xrb_yoW3KrgEv3 4Fvr1xGr48WrWxAw1jvF9FqFn09w1rJr1fuF95WrZ3A3Z8GwsYkw1xA39rX3s7W3WDJFW3 K3WkX3Wftr13KjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb7AYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_JFC_Wr1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwV A0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x02 67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I 0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40E x7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x 0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1l42xK82IY c2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s 026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF 0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0x vE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2 jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU1zuWJUUUUU== X-CM-SenderInfo: pjrqw2pxltxq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: GONG, Ruiqi --- include/linux/filter.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/filter.h b/include/linux/filter.h index bbce89937fde..f69114083ec7 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -874,7 +874,6 @@ void bpf_prog_free(struct bpf_prog *fp); bool bpf_opcode_in_insntable(u8 code); -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); -- 2.25.1