Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1285745ybb; Wed, 25 Mar 2020 20:17:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsD44Mv5QyhCiTopgN7V8mES+4XKzjou8VrMj7pOyJmoRlDqjOkM5P3gQm0eGQmXVijGro1 X-Received: by 2002:aca:dc08:: with SMTP id t8mr436852oig.135.1585192623849; Wed, 25 Mar 2020 20:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585192623; cv=none; d=google.com; s=arc-20160816; b=Wi36RU4To6wQ1TDFQFH80m/qRF4q62nHNP5kCQtKW2A0GvJB1NkeiCRKeqLgotn3I3 AGiLiJ9msy+StKD5DJ9Xy/ia2a1rIi0THHoK2iT3D0alhmG9h+ZSVRaDKi+aOahhEwAG hVweHoQTXjapxRJtKJ7CUGGuY3hxXrM8job2mhi6HEYf29t62xGXwLMiFNLsKAq4UflW 7991Hn0aVIqZH+OW1f0qc7WJkXV7KtEzIUwF+k8Mo/6//yitO4qaqAweeVro0EZfgMHG 6GBOTLRwIbYlGht/5+3RDeaGUeS94q3+1XRDyb1KOrr3rkwNfBsW3guPKZut0BsLkUZH wLDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=G1rHRDMrMnEqFZQD0rsOe8/HsnyPtArvDO4ieHfTWLk=; b=C6xkppLKL46zTmNYaxz/Kz3sqV5FdR9v/LkA5CA4N3Zs3Z6KVKCl21CQiWNHihTMe0 Mq+yOPFIBIsZTbgIHUaFf8cueUjuPU+K1iCfDCsQHef92jCEyDC28XsV+bKjF1hMlrya R/JygJmXAwm1kjbFee2/ecf05ylFURoCCzvKfEvu8fz6D8PlpEazjQXHuKLf8imDASan gy6C0e1uroC72hSjSVbE/HbI4o3fioj+cpisuT7x4kYAHWsBQYEDSoJcw9XD73aYmzw5 rn/x/W8XFwSVdjLn6biNnZ9pztWQESgzQMvrkA0iHWNIdljKz1xxj+qC/PXQiFx+Do1H F/TA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si372908ooj.58.2020.03.25.20.16.50; Wed, 25 Mar 2020 20:17:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727677AbgCZDQc (ORCPT + 99 others); Wed, 25 Mar 2020 23:16:32 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12135 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727575AbgCZDQc (ORCPT ); Wed, 25 Mar 2020 23:16:32 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 0A5A44BFD47746ECFF9B; Thu, 26 Mar 2020 11:16:29 +0800 (CST) Received: from localhost (10.173.223.234) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 26 Mar 2020 11:16:22 +0800 From: YueHaibing To: , , , , , , , , , CC: , , , YueHaibing Subject: [PATCH bpf-next] bpf: remove unused vairable 'bpf_xdp_link_lops' Date: Thu, 26 Mar 2020 11:16:13 +0800 Message-ID: <20200326031613.19372-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.173.223.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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