Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1324094ybb; Wed, 25 Mar 2020 21:18:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuVDEpU84YKhu4cHmuugUljAIUzqEOEl1FJEoGoosTXr3UA7yaDgHJqLBc2YZinLHVvQQrH X-Received: by 2002:a9d:4009:: with SMTP id m9mr4796646ote.132.1585196326073; Wed, 25 Mar 2020 21:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585196326; cv=none; d=google.com; s=arc-20160816; b=sw6nwEkw9WXNTflB11AFWdaCtGJYk/2rDNsO6VAJTK5YnGMqM5O/PsyJC8VHx1ihLd 3E1jRqxkx2HEf+WJzEYKcGL3sDAgVY9zm1cTSJaGO0QQ+9LwtwxtV35du28nGa/u0CRh peMMNUMSjpnSGotMn1B4JTIWtEkPmweT+anmSo4W8meCETHDcoOFEmmeDxs2BdFBUCV2 ElwEpWD3tBhKiqu/OuJ1wTilqBrcgDYzGxnZXWd7wgVgB0sGFe6+NGszy24dLwH3+twy 6Q04jZ+FK/ntDN6jqrChiDtsjSEZBWmioWgHwiqJcHHmOmWvkBLOqybhE40C6SHEz7Pp EhVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fHENaFwhjg8MWbs9vsqxRQSS59TKIMR/3p0Xb3bb18k=; b=TNVza4vrJWsOrINC9Q9/OP6dP9F04hCKfw0kvG8dVfjZAg0YKgqK5bl97x+omgSjnn ipkc+F8jp2r/FtIeGQ5h7r2DyXp5CZmdHOYbOPkviR334XEfdurbeoc8Hn4NLuT/bA1y 8qVAfouq0sxVOVKusLdkFbr3nSBb50Jw9kN1cl0u4yjLpxuZDQUcMo9DrhYzPRbOAkEJ QkkfBaTcG/r5VyoYMqYqlcrki5Cq4xF6po/EvpMeNMhtKeqCainxAVf+mH17TJLmBWPk hcyRc3K7a6POLMqmfLnPQuz7gaRjPjXZPQLJR5DnmnX2cI0cGKDaiS+Uu8KmNj2vEwkS zw8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NXJHsvIy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v130si515882oib.115.2020.03.25.21.18.15; Wed, 25 Mar 2020 21:18:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NXJHsvIy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726213AbgCZERo (ORCPT + 99 others); Thu, 26 Mar 2020 00:17:44 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:43185 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbgCZERo (ORCPT ); Thu, 26 Mar 2020 00:17:44 -0400 Received: by mail-qt1-f196.google.com with SMTP id a5so4232795qtw.10; Wed, 25 Mar 2020 21:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fHENaFwhjg8MWbs9vsqxRQSS59TKIMR/3p0Xb3bb18k=; b=NXJHsvIyKikoFaqS2xXynvDQ3DC3REU/yyiojhLAa9Vh7tA5nBu+PKWLD+LgkwWUa8 I8n30GSrOr04sbs6B/KIlZ68ilysIEh3KpBBo2C3nKrW91Hp+bjbw8flv4tL3AADcPgU 4BMYkYee/KRH7/TFWRnvn/nXm5vScqBwfAQUuLIvE2xHDbZPBWPg66w5tUpv8qG3rv0s mbUFnF0rdesdUD7fCBeuGkikL8w+W0dZ6iny2jUAjJNAoyYdWonRjSwEJ5MPp6xtlwD9 XgBXrEyXI0u8gMsV5M1mquiPJC+0m21BLJ6OGndGgetRn0oFnXZQB9pM9QW1XaRqxHDy wVNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fHENaFwhjg8MWbs9vsqxRQSS59TKIMR/3p0Xb3bb18k=; b=BEw6rP/KJuyR88pmMVvJtbr/Kwxhje5jNgCmjYSNzud34DhK0bzGRxJqSVdZluAuPj YsKy8OlIGJMzp7HYMRP0WLtxCbIlyPNKkQB55RCOlAaS8Cv4DTP9V7V8St+Ebpu41MUm pMxzU+x3wYkB5pRttzUcQfVAW4TGazqngYLCnOS94ktQhC+DxcWufPXWZgLHaniVcmPj 8wTUrzyihOFNUGjtd3+OH7r+MEB7tfRzF8JXIwOZeLWpiTRJXBydsMY/D/n2Cu5RGyd2 TWXIqeeOP9M+gKbgTIWNIoujQlfXrWdf8Ddy/ocj8f0wnY7jZO8edpVQ25Z57wph5I9g +Gqg== X-Gm-Message-State: ANhLgQ0Gqd76bNwLabPrhxBSADcWy4S5E5pPTIcQxKGV/Qn0cZc58Mgz XB1LDXvt9UXFKztJrjPl+DeuybEmZ4y4G+StMi8= X-Received: by 2002:ac8:1865:: with SMTP id n34mr6031028qtk.93.1585196262155; Wed, 25 Mar 2020 21:17:42 -0700 (PDT) MIME-Version: 1.0 References: <20200326031613.19372-1-yuehaibing@huawei.com> In-Reply-To: <20200326031613.19372-1-yuehaibing@huawei.com> From: Andrii Nakryiko Date: Wed, 25 Mar 2020 21:17:30 -0700 Message-ID: Subject: Re: [PATCH bpf-next] bpf: remove unused vairable 'bpf_xdp_link_lops' To: YueHaibing Cc: Alexei Starovoitov , Daniel Borkmann , Martin Lau , Song Liu , Yonghong Song , Andrii Nakryiko , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , john fastabend , Networking , bpf , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 25, 2020 at 8:16 PM YueHaibing wrote: > > kernel/bpf/syscall.c:2263:34: warning: 'bpf_xdp_link_lops' defined but not used [-Wunused-const-variable=] > static const struct bpf_link_ops bpf_xdp_link_lops; > ^~~~~~~~~~~~~~~~~ > > commit 70ed506c3bbc ("bpf: Introduce pinnable bpf_link abstraction") > involded this unused variable, remove it. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing > --- Yeah, I noticed this when I was adding bpf_cgroup_link (and replaced this declaration with bpf_cgroup_link_lops. But I guess we can fix it sooner. Acked-by: Andrii Nakryiko > kernel/bpf/syscall.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c > index 85567a6ea5f9..7774e55c9881 100644 > --- a/kernel/bpf/syscall.c > +++ b/kernel/bpf/syscall.c > @@ -2252,7 +2252,6 @@ static int bpf_link_release(struct inode *inode, struct file *filp) > #ifdef CONFIG_PROC_FS > static const struct bpf_link_ops bpf_raw_tp_lops; > static const struct bpf_link_ops bpf_tracing_link_lops; > -static const struct bpf_link_ops bpf_xdp_link_lops; > > static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp) > { > -- > 2.17.1 > >