]> git.baikalelectronics.ru Git - 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)
committerBorislav Petkov <bp@suse.de>
Thu, 28 Apr 2022 09:12:17 +0000 (11:12 +0200)
commit3994d3675ae5ecc9911e4ee7cc91f93a7b81be78
tree969c1b56b266ac79c98416db2a991059dd6f6362
parent10f102b71743ce3707c98c201dff3268cd0114cb
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: 79f0ad1017a7 ("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
include/linux/bpf.h