On Thu, Mar 12, 2020 at 01:39:14PM -0700, Andrii Nakryiko wrote: > Instead of requiring users to do three steps for cleaning up bpf_link, its > anon_inode file, and unused fd, abstract that away into bpf_link_cleanup() > helper. bpf_link_defunct() is removed, as it shouldn't be needed as an > individual operation anymore. > > Signed-off-by: Andrii Nakryiko <andriin@xxxxxx> > --- > include/linux/bpf.h | 3 ++- > kernel/bpf/syscall.c | 18 +++++++++++------- Changes are only in syscall.c. Should bpf_link_cleanup() be static?