069e5e
patch-i686-amd_c.patch
069e5e
069e5e
Fix the build error that started with kernel-3.10.0-1160.53.1.el7:
069e5e
069e5e
arch/x86/kernel/cpu/amd.c:644:13: error: 'init_amd_zn' defined but not used [-Werror=unused-function]
069e5e
 static void init_amd_zn(struct cpuinfo_x86 *c)
069e5e
             ^
069e5e
069e5e
--- a/arch/x86/kernel/cpu/amd.c	2021-12-16 00:34:31.000000000 -0800
069e5e
+++ b/arch/x86/kernel/cpu/amd.c	2022-01-11 15:11:46.300919942 -0800
069e5e
@@ -641,6 +641,7 @@ static const int amd_erratum_383[];
069e5e
 static const int amd_erratum_400[];
069e5e
 static bool cpu_has_amd_erratum(struct cpuinfo_x86 *cpu, const int *erratum);
069e5e
 
069e5e
+#ifdef CONFIG_X86_64
069e5e
 static void init_amd_zn(struct cpuinfo_x86 *c)
069e5e
 {
069e5e
 	set_cpu_cap(c, X86_FEATURE_ZEN);
069e5e
@@ -656,6 +657,7 @@ static void init_amd_zn(struct cpuinfo_x
069e5e
 	if (c->x86_model <= 1 && c->x86_mask <= 1)
069e5e
 		set_cpu_cap(c, X86_FEATURE_CPB);
069e5e
 }
069e5e
+#endif
069e5e
 
069e5e
 static void init_amd(struct cpuinfo_x86 *c)
069e5e
 {