diff options
author | Benjamin Thiel <b.thiel@posteo.de> | 2020-05-16 14:38:16 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-05-19 18:03:07 +0200 |
commit | 0e5e3d4461a22d739fb2284a6e313fb6cecf2871 (patch) | |
tree | 7d7484aa380b6e083933c449e534677f19b5e29c /arch/x86/kernel/audit_64.c | |
parent | x86/nmi: Remove edac.h include leftover (diff) | |
download | linux-0e5e3d4461a22d739fb2284a6e313fb6cecf2871.tar.xz linux-0e5e3d4461a22d739fb2284a6e313fb6cecf2871.zip |
x86/audit: Fix a -Wmissing-prototypes warning for ia32_classify_syscall()
Lift the prototype of ia32_classify_syscall() into its own header.
Signed-off-by: Benjamin Thiel <b.thiel@posteo.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200516123816.2680-1-b.thiel@posteo.de
Diffstat (limited to 'arch/x86/kernel/audit_64.c')
-rw-r--r-- | arch/x86/kernel/audit_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/audit_64.c b/arch/x86/kernel/audit_64.c index e1efe44ebefc..83d9cad4e68b 100644 --- a/arch/x86/kernel/audit_64.c +++ b/arch/x86/kernel/audit_64.c @@ -3,6 +3,7 @@ #include <linux/types.h> #include <linux/audit.h> #include <asm/unistd.h> +#include <asm/audit.h> static unsigned dir_class[] = { #include <asm-generic/audit_dir_write.h> @@ -41,7 +42,6 @@ int audit_classify_arch(int arch) int audit_classify_syscall(int abi, unsigned syscall) { #ifdef CONFIG_IA32_EMULATION - extern int ia32_classify_syscall(unsigned); if (abi == AUDIT_ARCH_I386) return ia32_classify_syscall(syscall); #endif |