Files
linux-stable-mirror/kernel
Arnd BergmannandSasha Levin 990d2bab37 audit: avoid missing-prototype warnings
[ Upstream commit e455ca40db ]

Building with 'make W=1' reveals two function definitions without
a previous prototype in the audit code:

lib/compat_audit.c:32:5: error: no previous prototype for 'audit_classify_compat_syscall' [-Werror=missing-prototypes]
kernel/audit.c:1813:14: error: no previous prototype for 'audit_serial' [-Werror=missing-prototypes]

The first one needs a declaration from linux/audit.h but cannot
include that header without causing conflicting (compat) syscall number
definitions, so move the it into linux/audit_arch.h.

The second one is declared conditionally based on CONFIG_AUDITSYSCALL
but needed as a local function even when that option is disabled, so
move the declaration out of the #ifdef block.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Stable-dep-of: 76489955c6 ("audit: move the compat_xxx_class[] extern declarations to audit_arch.h")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:19:20 -05:00
..
2025-12-07 06:12:35 +09:00
2023-12-20 17:00:20 +01:00
2025-06-27 11:07:41 +01:00
2023-11-28 17:06:57 +00:00
2024-10-17 15:22:28 +02:00