Arnd Bergmann b925b4314c arm64: hide unused is_valid_bugaddr()
When generic BUG() support is disabled, this function has no declaration
and no callers but causes a W=1 warning:

arch/arm64/kernel/traps.c:950:5: error: no previous prototype for 'is_valid_bugaddr' [-Werror=missing-prototypes]

Add an #ifdef that matches the one around the declaration.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20230516160642.523862-10-arnd@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2023-05-25 17:44:02 +01:00
..
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-19 11:05:42 -07:00
2023-05-04 12:25:05 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-18 09:04:45 -07:00
2023-05-19 11:11:04 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-10 00:21:30 +02:00
2023-05-21 13:58:37 -07:00
2023-05-05 12:56:55 -07:00