diff options
author | Helge Deller <[email protected]> | 2023-06-30 12:18:45 +0200 |
---|---|---|
committer | Helge Deller <[email protected]> | 2023-06-30 17:14:14 +0200 |
commit | 7d653ad4ce6afd8dacca9deb43a9a9ea9d665444 (patch) | |
tree | 617ea08a1a8710a368ecb1c1702da300b7f9af6c /arch/parisc/kernel/audit.c | |
parent | 226b8ab875e18375567fec4e1065a339b7b77c8e (diff) |
parisc: Fold 32-bit compat code into audit_classify_syscall()
No need to keep an extra 32-bit audit_classify_syscall() function.
Signed-off-by: Helge Deller <[email protected]>
Diffstat (limited to 'arch/parisc/kernel/audit.c')
-rw-r--r-- | arch/parisc/kernel/audit.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/parisc/kernel/audit.c b/arch/parisc/kernel/audit.c index f420b5552140..375cd73b5281 100644 --- a/arch/parisc/kernel/audit.c +++ b/arch/parisc/kernel/audit.c @@ -40,11 +40,6 @@ int audit_classify_arch(int arch) int audit_classify_syscall(int abi, unsigned syscall) { -#ifdef CONFIG_COMPAT - extern int parisc32_classify_syscall(unsigned); - if (abi == AUDIT_ARCH_PARISC) - return parisc32_classify_syscall(syscall); -#endif switch (syscall) { case __NR_open: return AUDITSC_OPEN; @@ -55,6 +50,10 @@ int audit_classify_syscall(int abi, unsigned syscall) case __NR_openat2: return AUDITSC_OPENAT2; default: +#ifdef CONFIG_COMPAT + if (abi == AUDIT_ARCH_PARISC) + return AUDITSC_COMPAT; +#endif return AUDITSC_NATIVE; } } |