lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 28 Apr 2022 09:50:45 -0000 From: "tip-bot2 for Josh Poimboeuf" <tip-bot2@...utronix.de> To: linux-tip-commits@...r.kernel.org Cc: kernel test robot <lkp@...el.com>, Josh Poimboeuf <jpoimboe@...hat.com>, Borislav Petkov <bp@...e.de>, x86@...nel.org, linux-kernel@...r.kernel.org Subject: [tip: x86/cpu] x86/speculation: Add missing prototype for unpriv_ebpf_notify() The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 2147c438fde135d6c145a96e373d9348e7076f7f Gitweb: https://git.kernel.org/tip/2147c438fde135d6c145a96e373d9348e7076f7f Author: Josh Poimboeuf <jpoimboe@...hat.com> AuthorDate: Mon, 25 Apr 2022 16:40:02 -07:00 Committer: Borislav Petkov <bp@...e.de> CommitterDate: Thu, 28 Apr 2022 11:12:17 +02:00 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: 44a3918c8245 ("x86/speculation: Include unprivileged eBPF status in Spectre v2 mitigation reporting") Reported-by: kernel test robot <lkp@...el.com> Signed-off-by: Josh Poimboeuf <jpoimboe@...hat.com> Signed-off-by: Borislav Petkov <bp@...e.de> Link: https://lore.kernel.org/r/5689d065f739602ececaee1e05e68b8644009608.1650930000.git.jpoimboe@redhat.com --- include/linux/bpf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/bpf.h b/include/linux/bpf.h index bdb5298..ecc3d3e 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -2085,6 +2085,8 @@ void bpf_offload_dev_netdev_unregister(struct bpf_offload_dev *offdev, struct net_device *netdev); bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev); +void unpriv_ebpf_notify(int new_state); + #if defined(CONFIG_NET) && defined(CONFIG_BPF_SYSCALL) int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr);
Powered by blists - more mailing lists