Skip to content

Commit a4bec6c

Browse files
committed
AOSCOS: audit: remove duplicate functions for MIPS
audit_classify_arch() and audit_classify_syscall() are already defined in arch/mips/kernel/audit-native.c, adding preprocessor directives to remove them from lib/audit.c on MIPS. Signed-off-by: Kexy Biscuit <[email protected]>
1 parent 696c35f commit a4bec6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/audit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ static unsigned signal_class[] = {
2929
~0U
3030
};
3131

32+
#if !defined(CONFIG_MIPS)
3233
int audit_classify_arch(int arch)
3334
{
3435
if (audit_is_compat(arch))
@@ -68,6 +69,7 @@ int audit_classify_syscall(int abi, unsigned syscall)
6869
return AUDITSC_NATIVE;
6970
}
7071
}
72+
#endif
7173

7274
static int __init audit_classes_init(void)
7375
{

0 commit comments

Comments
 (0)