Fix the following sparse warning: kernel/bpf/syscall.c:2289:30: warning: symbol 'bpf_link_fops' was not declared. Should it be static?
Unified · Split
| @@ -2283,7 +2283,7 @@ static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp) · 2282 unmodified lines | |||
| 2283 | } | 2283 | } |
| 2284 | #endif | 2284 | #endif |
| 2285 | 2285 | ||
| 2286 | const struct file_operations bpf_link_fops = { | 2286 | static const struct file_operations bpf_link_fops = { |
| 2287 | #ifdef CONFIG_PROC_FS | 2287 | #ifdef CONFIG_PROC_FS |
| 2288 | .show_fdinfo = bpf_link_show_fdinfo, | 2288 | .show_fdinfo = bpf_link_show_fdinfo, |
| 2289 | #endif | 2289 | #endif |