Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp280376ybz; Thu, 23 Apr 2020 23:45:40 -0700 (PDT) X-Google-Smtp-Source: APiQypLFp5dCO+W2pneMndjcw8ihlmmY44/edcu2gqLINkohZHDRDhzw6NM+nwQTwrCTk0DwINKK X-Received: by 2002:aa7:cf94:: with SMTP id z20mr5659406edx.302.1587710740194; Thu, 23 Apr 2020 23:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587710740; cv=none; d=google.com; s=arc-20160816; b=tnynetLTc44v2+C+GtjfKYEASCekqYESiMOD9o6VUjj4vTXOrvnQB0qoVebW8jAhHC lkRYV6G+v6smz1W1BDBX23oizpEjlUbD92Kvw9bnvXdiLgdHeoA3UZ0gcVOSzllydG+r 8BB6ncJOpV5hnLfB3jM40GRHpioLMgzsPieUwzJzFD4GUvG6+ZlseJCVKt/xcBxngrKC RkGBZklhdLzU5pDT7oinVh6JV8sYFeAQP56svWWU1XSbVyW+Kkaoktdr1XW4FisfkQzK gqQ3QZvyC5O4uAuE69EHBUHTNagQNo/BEaVyRqofNbxceTfsy0uMZv3J4t3+aVmMmQ31 ngDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vxsFou8rrk2i4aImkDGLe2hp4TY9OM8FfB5d04ygA10=; b=qUu7DBt+kA0ux1MViAssoQI2kbW5tcFhCQP8NndpfG+Es4EjLCW1/B5CaHr2vctebV 5qa2UJTdz5lmQspMlQqribXhpBP8LXa/6BrVweB2Z9XhRY7pKkDvwCHUP6nOc4lLL1cF S5rNxWc7BBIfeRs3mwgwy1mRUdjF4l+BbfoFfMYEP7INTziFSgLxVE16LAmWO5jxrYhA YW3vLjs4a1XUxPPWutfLlCC8xrq9WD6QbAgtV+5o0VWWaT1u2wfT8RgGGdpVyqzxwX/w TKdKx2LgZESHZuyC6O3AgMJl4JYycTJWqUcZ7uRxP3Mpfybs6LGbKtj8GPZcAxkc65HS Qn2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=YftgcwFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oq26si2431129ejb.105.2020.04.23.23.45.16; Thu, 23 Apr 2020 23:45:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=YftgcwFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726665AbgDXGns (ORCPT + 99 others); Fri, 24 Apr 2020 02:43:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726008AbgDXGnr (ORCPT ); Fri, 24 Apr 2020 02:43:47 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCD1C09B045; Thu, 23 Apr 2020 23:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=vxsFou8rrk2i4aImkDGLe2hp4TY9OM8FfB5d04ygA10=; b=YftgcwFz7d8ONI+QT9S8C9BcBT DpWnaoyIFNX6jRvDiVwT05PcMP8skiFyJx/FzZwevwrg40OCiz22twFpDdhfItJvpobrGSVVmGj/F YLKrbCL6P38Osml61A+M+jrYItN/t8FC1e4jeRJ5ELshvvTM7fbCMOYTXo+iyE/ZmAPwIQw7xRv9A qJr1ijaqL78DRppTer4H+iupe+jZPiXyLIsVvz0c5KgkOLGSafF/1LB6//1HdPLLq9B5fctqlfDFB AliDXe/7gvmRTBIEw8pczO4OTLV7vABvfklQntmAUcNZVgx0Gs97W2EWw6zVfvde568zLimfbGy+6 67Z3Tgzg==; Received: from [2001:4bb8:193:f203:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jRs3r-00012w-9R; Fri, 24 Apr 2020 06:43:43 +0000 From: Christoph Hellwig To: Kees Cook , Iurii Zaikin Cc: Alexei Starovoitov , Daniel Borkmann , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Andrey Ignatov Subject: [PATCH 1/5] bpf-cgroup: remove unused exports Date: Fri, 24 Apr 2020 08:43:34 +0200 Message-Id: <20200424064338.538313-2-hch@lst.de> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200424064338.538313-1-hch@lst.de> References: <20200424064338.538313-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Except for a few of the networking hooks called from modular ipv4 or ipv6 code, all of hooks are just called from guaranteed to be built-in code. Signed-off-by: Christoph Hellwig Acked-by: Andrey Ignatov --- kernel/bpf/cgroup.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c index cb305e71e7deb..929d9a7263da1 100644 --- a/kernel/bpf/cgroup.c +++ b/kernel/bpf/cgroup.c @@ -1054,7 +1054,6 @@ int __cgroup_bpf_check_dev_permission(short dev_type, u32 major, u32 minor, return !allow; } -EXPORT_SYMBOL(__cgroup_bpf_check_dev_permission); static const struct bpf_func_proto * cgroup_base_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) @@ -1221,7 +1220,6 @@ int __cgroup_bpf_run_filter_sysctl(struct ctl_table_header *head, return ret == 1 ? 0 : -EPERM; } -EXPORT_SYMBOL(__cgroup_bpf_run_filter_sysctl); #ifdef CONFIG_NET static bool __cgroup_bpf_prog_array_is_empty(struct cgroup *cgrp, @@ -1326,7 +1324,6 @@ int __cgroup_bpf_run_filter_setsockopt(struct sock *sk, int *level, sockopt_free_buf(&ctx); return ret; } -EXPORT_SYMBOL(__cgroup_bpf_run_filter_setsockopt); int __cgroup_bpf_run_filter_getsockopt(struct sock *sk, int level, int optname, char __user *optval, @@ -1413,7 +1410,6 @@ int __cgroup_bpf_run_filter_getsockopt(struct sock *sk, int level, sockopt_free_buf(&ctx); return ret; } -EXPORT_SYMBOL(__cgroup_bpf_run_filter_getsockopt); #endif static ssize_t sysctl_cpy_dir(const struct ctl_dir *dir, char **bufp, -- 2.26.1