OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1020c1f
)
bpf: Remove unused new_flags in hierarchy_allows_attach()
author
Andrey Ignatov
<rdna@fb.com>
Thu, 19 Dec 2019 07:44:34 +0000
(23:44 -0800)
committer
Alexei Starovoitov
<ast@kernel.org>
Fri, 20 Dec 2019 05:22:25 +0000
(21:22 -0800)
new_flags is unused, remove it.
Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link:
https://lore.kernel.org/bpf/2c49b30ab750f93cfef04a1e40b097d70c3a39a1.1576741281.git.rdna@fb.com
kernel/bpf/cgroup.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/cgroup.c
b/kernel/bpf/cgroup.c
index
e8cbdd1
..
283efe3
100644
(file)
--- a/
kernel/bpf/cgroup.c
+++ b/
kernel/bpf/cgroup.c
@@
-103,8
+103,7
@@
static u32 prog_list_length(struct list_head *head)
* if parent has overridable or multi-prog, allow attaching
*/
static bool hierarchy_allows_attach(struct cgroup *cgrp,
- enum bpf_attach_type type,
- u32 new_flags)
+ enum bpf_attach_type type)
{
struct cgroup *p;
@@
-303,7
+302,7
@@
int __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog,
/* invalid combination */
return -EINVAL;
- if (!hierarchy_allows_attach(cgrp, type
, flags
))
+ if (!hierarchy_allows_attach(cgrp, type))
return -EPERM;
if (!list_empty(progs) && cgrp->bpf.flags[type] != flags)