Re: [PATCH v5 09/15] x86/mtrr: allocate mtrr_value array dynamically

From: Juergen Gross
Date: Thu Apr 13 2023 - 06:07:56 EST


On 12.04.23 23:11, Borislav Petkov wrote:
On Sat, Apr 01, 2023 at 08:36:46AM +0200, Juergen Gross wrote:
+#ifdef CONFIG_X86_32

TBH, I'm not really crazy about adding more ifdeffery.

Wondering if adding a 32-bit only build object:

obj-$(CONFIG_X86_32) += amd.o cyrix.o centaur.o legacy.o

to arch/x86/kernel/cpu/mtrr/Makefile and moving all that gunk over
there, out of the way, would be even cleaner...

Yes, that should be rather simple.

Will add a patch to do that.


Juergen

Attachment: OpenPGP_0xB0DE9DD628BF132F.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature