Description: Fix inteltool linker failure with undefined reference to cpuid_ext
 cpuid_ext is defined as non-static inline, which does not guarantee an
 out-of-line symbol definition. Under default -O0 builds (no inlining) the
 linker fails with "undefined reference to cpuid_ext" when building the
 inteltool utility. Since the function is defined and used entirely within
 util/inteltool/cpu.c, declaring it static inline always provides the
 definition in this translation unit.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: no, fixes build failure on openKylin
Last-Update: 2026-09-01

--- coreboot-25.09+dfsg.orig/util/inteltool/cpu.c
+++ coreboot-25.09+dfsg/util/inteltool/cpu.c
@@ -53,7 +53,7 @@ unsigned int cpuid(unsigned int op)
 	return ret;
 }
 
-inline cpuid_result_t cpuid_ext(int op, unsigned int ecx)
+static inline cpuid_result_t cpuid_ext(int op, unsigned int ecx)
 {
 	cpuid_result_t result;
