diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c
index bca58c235ac0c788ea37e4e965fcf112b9cb842f..7626b802447128f4fc5ec789e24d9bb6d8e96a27 100644
--- a/kernel/bpf/syscall.c
+++ b/kernel/bpf/syscall.c
@@ -2283,7 +2283,7 @@ static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp)
 }
 #endif
 
-const struct file_operations bpf_link_fops = {
+static const struct file_operations bpf_link_fops = {
 #ifdef CONFIG_PROC_FS
 	.show_fdinfo	= bpf_link_show_fdinfo,
 #endif