Re: [PATCH] x86/cpu/amd: Correct the microcode table for Zenbleed

From: david laight

Date: Wed Nov 26 2025 - 09:43:21 EST


On Wed, 26 Nov 2025 13:44:53 +0100
Borislav Petkov <bp@xxxxxxxxx> wrote:

> On Wed, Nov 26, 2025 at 11:33:43AM +0000, Andrew Cooper wrote:
> > Sorry, this needs a {} terminator to be correct.  I'll send out a v2 in
> > a bit, assuming there are no other comments.
>
> I'm just glad that I'm not the only one to fall for this no-terminator shit.

Could you add an #define wrapper, eg

#define x86_match_min_microcode_rev(table) \
x86_match_min_microcode_rev(table, ARRAY_COUNT(table))

to pass the count into the function?
Then the terminator can be made optional.

The data will be smaller, the code slightly larger.
So a net size gain since the performance can't be critical.

David