Re: [PATCH v4 16/16] x86/mtrr: simplify mtrr_ops initialization

From: Borislav Petkov
Date: Sun Oct 30 2022 - 13:49:14 EST


Another randconfig build failure in the meantime. Pretty easy to
trigger:

ld: arch/x86/kernel/cpu/cacheinfo.o: in function `cache_bp_init':
cacheinfo.c:(.init.text+0x1): undefined reference to `mtrr_bp_init'
make[1]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
make: *** [Makefile:1236: vmlinux] Error 2

the reason being:

# CONFIG_MTRR is not set

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette