Building with W=1 reveals some bitrot: CC kernel/bpf/cgroup.o kernel/bpf/cgroup.c:238: warning: Function parameter or member 'flags' not described in '__cgroup_bpf_attach' kernel/bpf/cgroup.c:367: warning: Function parameter or member 'unused_flags' not described in '__cgroup_bpf_detach' Add a kerneldoc line for 'flags'. Fixing the warning for 'unused_flags' is best approached by removing the unused parameter on the function call.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -78,7 +78,7 @@ int cgroup_bpf_inherit(struct cgroup *cgrp); · 77 unmodified lines | ||
| 78 | 78 | int __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog, |
| 79 | 79 | enum bpf_attach_type type, u32 flags); |
| 80 | 80 | int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, |
| 81 | − enum bpf_attach_type type, u32 flags); | |
| 81 | + enum bpf_attach_type type); | |
| 82 | 82 | int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, |
| 83 | 83 | union bpf_attr __user *uattr); |
| 84 | 84 | |