]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/speculation: Add missing prototype for unpriv_ebpf_notify()
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 25 Apr 2022 23:40:02 +0000 (16:40 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:24:16 +0000 (09:24 +0200)
commitd7466b6ea8de5729832868dbc2dc476f21d088db
tree302424bc56d306ace264d09116d1198025377e39
parent51d813a859a1f37a3bc7dee713fe2c4dd6f5a39c
x86/speculation: Add missing prototype for unpriv_ebpf_notify()

BugLink: https://bugs.launchpad.net/bugs/1981864
[ Upstream commit 2147c438fde135d6c145a96e373d9348e7076f7f ]

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@intel.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/5689d065f739602ececaee1e05e68b8644009608.1650930000.git.jpoimboe@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/bpf.h