Skip to content

Commit 8c1b2bf

Browse files
Christoph Hellwigborkmann
authored andcommitted
bpf, cgroup: Remove unused exports
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 <hch@lst.de> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrey Ignatov <rdna@fb.com> Link: https://lore.kernel.org/bpf/20200424064338.538313-2-hch@lst.de
1 parent e411eb2 commit 8c1b2bf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel/bpf/cgroup.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,6 @@ int __cgroup_bpf_check_dev_permission(short dev_type, u32 major, u32 minor,
10541054

10551055
return !allow;
10561056
}
1057-
EXPORT_SYMBOL(__cgroup_bpf_check_dev_permission);
10581057

10591058
static const struct bpf_func_proto *
10601059
cgroup_base_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
@@ -1207,7 +1206,6 @@ int __cgroup_bpf_run_filter_sysctl(struct ctl_table_header *head,
12071206

12081207
return ret == 1 ? 0 : -EPERM;
12091208
}
1210-
EXPORT_SYMBOL(__cgroup_bpf_run_filter_sysctl);
12111209

12121210
#ifdef CONFIG_NET
12131211
static bool __cgroup_bpf_prog_array_is_empty(struct cgroup *cgrp,
@@ -1312,7 +1310,6 @@ int __cgroup_bpf_run_filter_setsockopt(struct sock *sk, int *level,
13121310
sockopt_free_buf(&ctx);
13131311
return ret;
13141312
}
1315-
EXPORT_SYMBOL(__cgroup_bpf_run_filter_setsockopt);
13161313

13171314
int __cgroup_bpf_run_filter_getsockopt(struct sock *sk, int level,
13181315
int optname, char __user *optval,
@@ -1399,7 +1396,6 @@ int __cgroup_bpf_run_filter_getsockopt(struct sock *sk, int level,
13991396
sockopt_free_buf(&ctx);
14001397
return ret;
14011398
}
1402-
EXPORT_SYMBOL(__cgroup_bpf_run_filter_getsockopt);
14031399
#endif
14041400

14051401
static ssize_t sysctl_cpy_dir(const struct ctl_dir *dir, char **bufp,

0 commit comments

Comments
 (0)