x86/audit: Fix a -Wmissing-prototypes warning for ia32_classify_syscall()
PATCH 1/1 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 <[email protected]>
--- arch/x86/ia32/audit.c | 1 + arch/x86/include/asm/audit.h | 7 +++++++ arch/x86/kernel/audit_64.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 arch/x86/include/asm/audit.h
arch/x86/ia32/audit.c +1 -0
@@ -1,5 +1,6 @@// SPDX-License-Identifier: GPL-2.0 #include <asm/unistd_32.h> +#include <asm/audit.h> unsigned ia32_dir_class[] = {#include <asm-generic/audit_dir_write.h>
arch/x86/include/asm/audit.h new file +7 -0
@@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_X86_AUDIT_H +#define _ASM_X86_AUDIT_H + +int ia32_classify_syscall (unsigned int syscall); + +#endif /* _ASM_X86_AUDIT_H */
arch/x86/kernel/audit_64.c +1 -1
@@ -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
Signature · 1 line
2.20.1
The following commit has been merged into the x86/cleanups branch of tip:
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: 0e5e3d4461a22d739fb2284a6e313fb6cecf2871 Gitweb: https://git.kernel.org/tip/0e5e3d4461a22d739fb2284a6e313fb6cecf2871 Author: Benjamin Thiel <[email protected]> AuthorDate: Sat, 16 May 2020 14:38:16 +02:00 Committer: Borislav Petkov <[email protected]> CommitterDate: Tue, 19 May 2020 18:03:07 +02:00
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 <[email protected]>
Signed-off-by Borislav Petkov <[email protected]>
--- arch/x86/ia32/audit.c | 1 + arch/x86/include/asm/audit.h | 7 +++++++ arch/x86/kernel/audit_64.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 arch/x86/include/asm/audit.h
arch/x86/ia32/audit.c +1 -0
@@ -1,5 +1,6 @@// SPDX-License-Identifier: GPL-2.0 #include <asm/unistd_32.h> +#include <asm/audit.h> unsigned ia32_dir_class[] = {#include <asm-generic/audit_dir_write.h>
arch/x86/include/asm/audit.h new file +7 -0
@@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_X86_AUDIT_H +#define _ASM_X86_AUDIT_H + +int ia32_classify_syscall (unsigned int syscall); + +#endif /* _ASM_X86_AUDIT_H */
arch/x86/kernel/audit_64.c +1 -1
@@ -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