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

From: Josh Poimboeuf

Date: Fri Nov 14 2025 - 14:19:54 EST


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@xxxxxxxxx>
> 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@xxxxxxxxxx>
> Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>

Nice!

Acked-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>

--
Josh