From 3dd010ef3aeea1c2eda4848142f3baaa84f23cbd Mon Sep 17 00:00:00 2001 From: Gregory Lirent Date: Fri, 12 Jun 2026 00:15:02 +0300 Subject: [PATCH] fix(0025): use spoof_enabled() not spoof_on() at the smbios call site spoof_on() is internal (spoof-core.h); the smbios.c call site only includes the public spoof.h, which exposes spoof_enabled() (== spoof_on). Fixes the base build: implicit-declaration / nested-externs -Werror. Co-Authored-By: Claude Opus 4.8 (1M context) --- patches/0025-smbios-ports-slots.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/0025-smbios-ports-slots.patch b/patches/0025-smbios-ports-slots.patch index 8204a0f..7338762 100644 --- a/patches/0025-smbios-ports-slots.patch +++ b/patches/0025-smbios-ports-slots.patch @@ -17,7 +17,7 @@ index 7d71418..140b42a 100644 + /* qemu-spoof: real boards expose port connectors (type 8) and expansion slots + * (type 9); QEMU emits none, so dmidecode is conspicuously empty. Inject a + * plausible desktop default set when none were configured. Inert without a seed. */ -+ if (spoof_on() && QTAILQ_EMPTY(&type8)) { ++ if (spoof_enabled() && QTAILQ_EMPTY(&type8)) { + static const struct { const char *intr, *extr; uint8_t ct, pt; } sp_ports[] = { + { "JUSB1", "USB1", 0x12, 0x10 }, /* Access Bus (USB) / USB */ + { "JUSB2", "USB2", 0x12, 0x10 }, @@ -36,7 +36,7 @@ index 7d71418..140b42a 100644 + QTAILQ_INSERT_TAIL(&type8, t8, next); + } + } -+ if (spoof_on() && QTAILQ_EMPTY(&type9)) { ++ if (spoof_enabled() && QTAILQ_EMPTY(&type9)) { + static const struct { + const char *desig; uint8_t type, width, usage, length; uint16_t id; + } sp_slots[] = {