diff options
| author | Helge Deller <deller@gmx.de> | 2023-06-30 12:18:45 +0200 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2023-06-30 17:14:14 +0200 |
| commit | 7d653ad4ce6afd8dacca9deb43a9a9ea9d665444 (patch) | |
| tree | 617ea08a1a8710a368ecb1c1702da300b7f9af6c /arch/parisc/kernel/compat_audit.c | |
| parent | parisc: sba_iommu: Fix kdoc warnings (diff) | |
| download | linux-7d653ad4ce6afd8dacca9deb43a9a9ea9d665444.tar.gz linux-7d653ad4ce6afd8dacca9deb43a9a9ea9d665444.zip | |
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 <deller@gmx.de>
Diffstat (limited to 'arch/parisc/kernel/compat_audit.c')
| -rw-r--r-- | arch/parisc/kernel/compat_audit.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/parisc/kernel/compat_audit.c b/arch/parisc/kernel/compat_audit.c index 539b16891bdf..3ac53f1ab860 100644 --- a/arch/parisc/kernel/compat_audit.c +++ b/arch/parisc/kernel/compat_audit.c @@ -26,19 +26,3 @@ unsigned int parisc32_signal_class[] = { #include <asm-generic/audit_signal.h> ~0U }; - -int parisc32_classify_syscall(unsigned syscall) -{ - switch (syscall) { - case __NR_open: - return AUDITSC_OPEN; - case __NR_openat: - return AUDITSC_OPENAT; - case __NR_execve: - return AUDITSC_EXECVE; - case __NR_openat2: - return AUDITSC_OPENAT2; - default: - return AUDITSC_COMPAT; - } -} |
