Re: [PATCH] x86/bugs: Get rid of the forward declarations

Josh Poimboeuf
2025-11-14T19:19:54Z

On Fri, Nov 14, 2025 at 06:14:14PM +0100, Borislav Petkov wrote:
> On Wed, Nov 05, 2025 at 09:04:47PM +0100, Borislav Petkov wrote:
> > > We should put cpu_select_mitigations() at the bottom too, then all those
> > > existing forward declarations can go away.
> >
> > That's a good idea. We should, if it doesn't get too hairy.
>
> That was easier than I expected. Only build-tested.
>
> ---
> From: "Borislav Petkov (AMD)" <bp@alien8.de>
> Date: Fri, 14 Nov 2025 18:10:04 +0100
>
> Get rid of the forward declarations of the mitigation functions by
> moving their single caller below them.
>
> No functional changes.
>
> Suggested-by: Josh Poimboeuf <jpoimboe@kernel.org>
> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>

Nice!

Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>

--
Josh