History

bpf, cgroups: clean up kerneldoc warnings

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.

Valdis Kletnieks committed 7 years ago

Commit 1832f4e1 parent 116bfa93 files · +4 −3Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/bpf-cgroup.h+1−1
@@ -78,7 +78,7 @@ int cgroup_bpf_inherit(struct cgroup *cgrp); · 77 unmodified lines
78int __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog,78int __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog,
79 enum bpf_attach_type type, u32 flags);79 enum bpf_attach_type type, u32 flags);
80int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog,80int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog,
81 enum bpf_attach_type type, u32 flags);81 enum bpf_attach_type type);
82int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,82int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
83 union bpf_attr __user *uattr);83 union bpf_attr __user *uattr);
84 84

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t