Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2436314rwd; Fri, 2 Jun 2023 09:20:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Bck1vFe9weJZFxTC3lys0AC1ZF/Z1sHfZaPuZrjwp5r0sOXidofwznR2hPExsT6b5FM4x X-Received: by 2002:a05:6a20:3d85:b0:10e:457f:254c with SMTP id s5-20020a056a203d8500b0010e457f254cmr10976376pzi.2.1685722842787; Fri, 02 Jun 2023 09:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685722842; cv=none; d=google.com; s=arc-20160816; b=TvRVJRpl6wpHFhk7qMEvCkmwynkum3H5JrZvq9pc7nEt4jSF9yj2NLpFCwC4DIEId0 5Qw4Mq+5UYGxnIHIPkKEWLrKeAM9Vl4VHevIJddMQHbc17GGoj9eTDo8HMcizppkbXPQ ZQiH5ftf+HCPae1PpF7KKSJ1vcrY1eG1DMnj1E+8jcTEhzn06pce8lhYC1pn3LpPMUot sCuM0h6eL+olDkc8Xn0N6lA4Py7T+flH8YDYMIG5dOhKzdzeZJqzCQZJFhUgDdBdEeGc T4pAsMtpMUksnErF3rXkGzGXB8UdIeFsSCupKPnkPfdYprLRTgxUKnItEMHrx7qYGZoS CG6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=ftaj+c92Xn+0VrlPMhENnH3kgEcuY1Ij1rlG3ylIX94=; b=FLO5cZQyR1vvNnbEK5/5q3zhRuCfq7VohhVrXa2gM2oU4NWh4a+694GulbxtlyF3Ig cwCI6JdKpDfUJykjhkYyf+bFj6V26GrNUG9xwQ7yFL5bOMKVuly4HLQcjW0kUVEeX45D QqFX/HF/xpMFrs38SioK2PvAaM/KEVxTWYomaGsOzITr3MIw5vHf49E2c3kS+Hpkx9oF PCdatwHjZurlIj32TH3Ioqz0pTnMFw6OO3Y6FQT2YBLbliw4ysQJGK7JhKvFbBkoonmV Yoh/WW4vXN2uxACH/xWMbBVtzLBUP+V8NIA2mdD+qXdISy1/bKz4meky3J3aBVC0E2kN Sasg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="SbHV/raS"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y62-20020a638a41000000b00524ecf898a2si1172354pgd.359.2023.06.02.09.20.30; Fri, 02 Jun 2023 09:20:42 -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; dkim=pass header.i=@google.com header.s=20221208 header.b="SbHV/raS"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236565AbjFBQNy (ORCPT + 99 others); Fri, 2 Jun 2023 12:13:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236013AbjFBQNw (ORCPT ); Fri, 2 Jun 2023 12:13:52 -0400 Received: from mail-pf1-x449.google.com (mail-pf1-x449.google.com [IPv6:2607:f8b0:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D094CE4E for ; Fri, 2 Jun 2023 09:13:20 -0700 (PDT) Received: by mail-pf1-x449.google.com with SMTP id d2e1a72fcca58-653843401feso233184b3a.0 for ; Fri, 02 Jun 2023 09:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1685722337; x=1688314337; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=ftaj+c92Xn+0VrlPMhENnH3kgEcuY1Ij1rlG3ylIX94=; b=SbHV/raSAqNb/ugGPvUx1HpfrpuTKrN34pcklzYzOiTL0F5uRwrctM9lJlVjcPhTyu 3glByiMyzb2lNZVG7N3TkU67YWRAom6qiFJ3HwpdBGdq+7o0UzRsgDLA+mvenPfvIPZU +QjHcXFhlVKh81QqwlE54getp85UJALQXIroL6pIGM8IMdHFdfILNYGYn3IxK+BiCVKT J1nbKJkFdB3LsYb3eQGfdAfC/Vdn6HNCrTzp2mSOFIfAp3LSqXx0vC71IAjEICLagiaZ pDCoVvLs1fR5RlRMMP4ZPnjXRMiaurNZTh3CEuEA5xdhWHVToQCFKeIZ1O5CnFtxN2iM Sl+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685722337; x=1688314337; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ftaj+c92Xn+0VrlPMhENnH3kgEcuY1Ij1rlG3ylIX94=; b=JYcNing1+euWuHvqO3DM+N4Y1PzmKlH4jsR3Zq//CwQKNFS+JS1iGa9SkrVn5D43su a9MVLo5UV2LxjLOPet1z8LVIbeaMIGR7UoCwk4scl+tORLqUXkfcD6uhq83zpU8Ri6Sy opD56doINKW/F1qo/CkkwUtH0oWpLk1osW8ZjvcH9dZB9PS9UR2nxtZiHaZLisApD+kw kOvVXB8VFSI22qxts/vL+g4uN7j+NMo4ZE9Bq8Sl+WajN8oV2RcJT7bh7hBZp7JROK/X grY2JwRCsTDIcQBgwhpguB9LFmxKlAiaus6jr9SBUyOxWNMuxgSSxxXkPZXZO7+2IGy6 +viQ== X-Gm-Message-State: AC+VfDyehKx1sf4RySskaAn7R4kHBikrLY6yAG1y7iAlbYTj1HTKm8b5 haKGQwVNW1MziISoiW0eAE1Kj5k= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a05:6a00:234f:b0:643:92c0:5dd6 with SMTP id j15-20020a056a00234f00b0064392c05dd6mr4703194pfj.6.1685722337597; Fri, 02 Jun 2023 09:12:17 -0700 (PDT) Date: Fri, 2 Jun 2023 09:12:16 -0700 In-Reply-To: <20230602030842.279262-1-gongruiqi@huaweicloud.com> Mime-Version: 1.0 References: <20230602030842.279262-1-gongruiqi@huaweicloud.com> Message-ID: Subject: Re: [PATCH] bpf: cleanup unused function declaration From: Stanislav Fomichev To: gongruiqi@huaweicloud.com Cc: Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Wang Weiyang , Xiu Jianfeng , gongruiqi1@huawei.com Content-Type: text/plain; charset="utf-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham 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 On 06/02, GONG, Ruiqi wrote: > 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 Acked-by: Stanislav Fomichev > --- > 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 >