Re: (subset) [PATCH 06/22] [RESEND] stackleak: add declarations for global functions

From: Kees Cook
Date: Wed Nov 08 2023 - 14:08:08 EST


On Wed, 08 Nov 2023 13:58:27 +0100, Arnd Bergmann wrote:
> With -Wmissing-prototypes enabled, the stackleak code produces a couple of
> warnings that have no declarations because they are only called from assembler:
>
> stackleak.c:127:25: error: no previous prototype for 'stackleak_erase' [-Werror=missing-prototypes]
> stackleak.c:139:25: error: no previous prototype for 'stackleak_erase_on_task_stack' [-Werror=missing-prototypes]
> stackleak.c:151:25: error: no previous prototype for 'stackleak_erase_off_task_stack' [-Werror=missing-prototypes]
> stackleak.c:159:49: error: no previous prototype for 'stackleak_track_stack' [-Werror=missing-prototypes]
>
> [...]

Applied to for-next/hardening, thanks!

[06/22] stackleak: add declarations for global functions
https://git.kernel.org/kees/c/65120498aaf8

Take care,

--
Kees Cook