Skip to content

Commit 2147c43

Browse files
jpoimboesuryasaimadhu
authored andcommitted
x86/speculation: Add missing prototype for unpriv_ebpf_notify()
Fix the following warnings seen with "make W=1": kernel/sysctl.c:183:13: warning: no previous prototype for ‘unpriv_ebpf_notify’ [-Wmissing-prototypes] 183 | void __weak unpriv_ebpf_notify(int new_state) | ^~~~~~~~~~~~~~~~~~ arch/x86/kernel/cpu/bugs.c:659:6: warning: no previous prototype for ‘unpriv_ebpf_notify’ [-Wmissing-prototypes] 659 | void unpriv_ebpf_notify(int new_state) | ^~~~~~~~~~~~~~~~~~ Fixes: 44a3918 ("x86/speculation: Include unprivileged eBPF status in Spectre v2 mitigation reporting") Reported-by: kernel test robot <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lore.kernel.org/r/5689d065f739602ececaee1e05e68b8644009608.1650930000.git.jpoimboe@redhat.com
1 parent b0b592c commit 2147c43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/bpf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,6 +2085,8 @@ void bpf_offload_dev_netdev_unregister(struct bpf_offload_dev *offdev,
20852085
struct net_device *netdev);
20862086
bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev);
20872087

2088+
void unpriv_ebpf_notify(int new_state);
2089+
20882090
#if defined(CONFIG_NET) && defined(CONFIG_BPF_SYSCALL)
20892091
int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr);
20902092

0 commit comments

Comments
 (0)