From patchwork Tue Mar 26 15:45:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 782622 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp1754185wrt; Tue, 26 Mar 2024 08:48:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU+JB5NU3Jdwb7on9dw7WJEgM5g+nXgvDKGV/AzCIthoKXxsU5LCaxxIj+RDbVFBXY6qyKi/btReD/0S7VL/Pa/ X-Google-Smtp-Source: AGHT+IF9Vwb973cazpRWmBHUz9Bxwqm2wXhrAgBAfF+8R/TR2cKhFLKOmU+VrM0tmGXVg/6Y6xr+ X-Received: by 2002:a05:6000:906:b0:33e:77b5:746d with SMTP id cw6-20020a056000090600b0033e77b5746dmr2040662wrb.18.1711468090702; Tue, 26 Mar 2024 08:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711468090; cv=none; d=google.com; s=arc-20160816; b=QQeNtLqxLTAxjy1IVy68ZxZZ6jNtn1Qd64SnDuspREkV/6Z8w7b+5iED5pw9ktUI6P wI1oNGx8WZq+3P+h+sfnmFer7+13je23E04sb+gj77uw41X6lf82SR5gPUSozqzlWKVE 3Xqv2zamGf1xQlz7Vi+Ox20BlyeBBPEByZo6BN9zX1MD/nt4Qij0a7+tu5vgv7M2HH3z sXuggk9tAiYBlZeshw440MqenloqkrzbceYmyXJLHznDbPYbJJVsAKxIhn0WIcsuvFzy F5aS2OCBMei1vA1P77CwT11BiEIgesgYB7Izb4z9HuEdvlrQsKnsRLtkQGS2N66BxI0p ZXnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=a9aAigC2kGTbid56AicgylDWHcJDSIM2k5pIIBM/YvQ=; fh=pAGJJoxeRb3mkCbKvnNYuAbiZvOjq7h9qEZVLWQJHmc=; b=Ad7WTglfvVAz4jlABOqqZLVziwql2rvODNMMxinKjnnsccclevxUStTxRYxvsgjZPA wmIdrYyCDjVBx/HYyIxKAA5R7Cn1CgqQMEYLyyfIBx5ZHSth+Lf/dhIQGJ6fqXKuaZl7 ZLww4JFODSeSsjlpmYRT6rw2Sex4CkCkKJeft6nnIbZFpyj1H2gOAjhPjyUvfG0dTuba 34o1YwPtMD6sYYSCDPCz39mL6GNcKO8o6sE/s4akOBy0Ky+PF/vdKYMKQuFsH9ElaiNx gcDzP4EDgx9SqDqiX9rgMKzrt83GwRjZHPz9HDnVcNDN4De20RTUga0YP2iraVsD10C8 aK9A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FmYpNi7Q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id g14-20020a5d64ee000000b00341c567eba2si3517699wri.110.2024.03.26.08.48.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2024 08:48:10 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FmYpNi7Q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rp90D-0004V7-GD; Tue, 26 Mar 2024 11:46:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rp907-0004Ah-IQ for qemu-devel@nongnu.org; Tue, 26 Mar 2024 11:46:14 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rp905-0001Gk-RF for qemu-devel@nongnu.org; Tue, 26 Mar 2024 11:46:11 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-414925ba716so554715e9.2 for ; Tue, 26 Mar 2024 08:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711467965; x=1712072765; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=a9aAigC2kGTbid56AicgylDWHcJDSIM2k5pIIBM/YvQ=; b=FmYpNi7QecEHtkQhubQskR+WXcoThxDv0g+BLSCZ2xir1KJr/NjBTcI8DUOxqD5LHi gvBxstumxYsTnRScTg+PhX0iskLMP4R57PqFdmRVhShgbKhKHs8iCDqUUcc0HEkefY10 eoQdB4t2laCXVHMmOWjCXU2RvBqN+HZVDI2sCU7+8nP48msST/Y3m2E8YSc9y8lzZ5c4 Y2dDYml9KYOE466Yl8JBtDlSg3pMfjiNjEBWJUtC9cLx/JvrGQgVJipZeF1gYegRBdQc NIGvBqAOpz2nD19Mul1Wtf6zZQdv/0rsDmd9+3zy2q72n3R9fq4hbKQ0wZiG6owfaJmF 7c9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711467965; x=1712072765; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=a9aAigC2kGTbid56AicgylDWHcJDSIM2k5pIIBM/YvQ=; b=GhNhDvNDZxBcJWK3R55FKIXtXwp6bsOStjEXDHcwzFfMTYiu3wp6apZR95i3+jUVVO kSy6vUnIXt8JKLX6MqlqdwFomSQKFtU9L2/SUhNPWOwt584IP6m+LwReVxS37GDA/0hC jsabyNIX/R4md9RQGmOIhuvibqIlGKgJjiQRx9odWYUlAi3wwRuvrZy8tLxvGgpT28H3 ioc6kf2p7AJkeSA+UcwdrEGW/7ZnUQo8FMGE3As8ZtaZn5kUBZ56FreWaTDjXkPehJNq togUwtbIrC3PIjuRWW3dQgtxaQcdE1XzO6dPWW2MYME2TkoTnokD8m6KRcnAnba2jhBW PHLA== X-Gm-Message-State: AOJu0Yzu6e3hYYL0A0cpaFCCg4WrSLZPzetQ61PThBx0VYwcU+iVi0HV E9kY0p9rssz3pwRE9AeVbxqa2CI/+Hzzna0o0hOScqXrmf6CMvbEXsiYp7SWjG1VJiwssq1DHfR P X-Received: by 2002:a5d:464c:0:b0:33b:87fb:7106 with SMTP id j12-20020a5d464c000000b0033b87fb7106mr1879099wrs.55.1711467965635; Tue, 26 Mar 2024 08:46:05 -0700 (PDT) Received: from m1x-phil.lan ([176.176.155.229]) by smtp.gmail.com with ESMTPSA id bx12-20020a5d5b0c000000b0033e45930f35sm2895844wrb.6.2024.03.26.08.46.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 26 Mar 2024 08:46:05 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, Igor Mammedov , Michael Tokarev , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , "Michael S. Tsirkin" , Ani Sinha Subject: [PULL 10/13] hw/smbios: add stub for smbios_get_table_legacy() Date: Tue, 26 Mar 2024 16:45:01 +0100 Message-ID: <20240326154505.8300-11-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240326154505.8300-1-philmd@linaro.org> References: <20240326154505.8300-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Igor Mammedov QEMU build fails with hw/i386/fw_cfg.c:74: undefined reference to `smbios_get_table_legacy' when it's built with only 'microvm' enabled i.e. with config patch +++ b/configs/devices/i386-softmmu/default.mak @@ -26,7 +26,7 @@ # Boards: # -CONFIG_ISAPC=y -CONFIG_I440FX=y -CONFIG_Q35=y +CONFIG_ISAPC=n +CONFIG_I440FX=n +CONFIG_Q35=n It happens because I've fogotten/lost smbios_get_table_legacy() stub. Fix it by adding missing stub as Philippe suggested. Fixes: b42b0e4daaa5 "smbios: build legacy mode code only for 'pc' machine" Reported-by: Michael Tokarev Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Igor Mammedov Message-ID: <20240326122630.85989-1-imammedo@redhat.com> Tested-by: Philippe Mathieu-Daudé --- hw/smbios/smbios_legacy_stub.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/smbios/smbios_legacy_stub.c b/hw/smbios/smbios_legacy_stub.c index f29b15316c..7d593dca98 100644 --- a/hw/smbios/smbios_legacy_stub.c +++ b/hw/smbios/smbios_legacy_stub.c @@ -13,3 +13,8 @@ void smbios_add_usr_blob_size(size_t size) { } + +uint8_t *smbios_get_table_legacy(size_t *length, Error **errp) +{ + g_assert_not_reached(); +}