History

bpf: Make bpf_link_fops static

Fix the following sparse warning: kernel/bpf/syscall.c:2289:30: warning: symbol 'bpf_link_fops' was not declared. Should it be static?

Zou Wei committed 6 years ago

Commit 6f302bf1 parent 32e4c6f1 file · +1 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/bpf/syscall.c+1−1
@@ -2283,7 +2283,7 @@ static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp) · 2282 unmodified lines
2283}2283}
2284#endif2284#endif
2285 2285
2286const struct file_operations bpf_link_fops = {2286static const struct file_operations bpf_link_fops = {
2287#ifdef CONFIG_PROC_FS2287#ifdef CONFIG_PROC_FS
2288 .show_fdinfo = bpf_link_show_fdinfo,2288 .show_fdinfo = bpf_link_show_fdinfo,
2289#endif2289#endif

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