From patchwork Wed Dec 1 16:02:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1562267 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Xni/oiJ/; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J43pG0ljHz9sRN for ; Thu, 2 Dec 2021 03:05:25 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5A15E830D5; Wed, 1 Dec 2021 17:04:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Xni/oiJ/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8EF8A80F89; Wed, 1 Dec 2021 17:04:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oo1-xc2a.google.com (mail-oo1-xc2a.google.com [IPv6:2607:f8b0:4864:20::c2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7A474830AC for ; Wed, 1 Dec 2021 17:04:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oo1-xc2a.google.com with SMTP id a11-20020a4ad1cb000000b002c2657270a0so7968736oos.8 for ; Wed, 01 Dec 2021 08:04:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dc1fMY8m9yCGaRoZQWQzJdbT+zOmfyq6NG8E2neJwEY=; b=Xni/oiJ/0+8EUAfGrY3toe/+PM75o8UbXdOxQloMjYGTvx6pmNxa0ExkhfL0idJk4a rIxl2zUulubhvH8bLYA1FvdsmrvptSGjImZl2ib1EanfFcy7+B7mwunqSGsXqFZSAhMN uNEDWVIguN9GtH4/KVlABHTvIq+n5VG6bzEuo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dc1fMY8m9yCGaRoZQWQzJdbT+zOmfyq6NG8E2neJwEY=; b=mYBUZF2cEKZGgc34vTt986/tzrIsURxANdQ41vR56SPRKBQgsrr12sCVrQ+ff7i3+r GUMg3NLa5iVyHjP00N52E8fbkpjmtTLFIpvMxDC8fVKz2Z3i4TYmxFKI9fBGwnCctUTJ Mi5cdyGAYg3LwsjjXLrhs7AqRs9pN45eyV3IAlyqU6IC0By1l5USeuytSgEqewZOJ8/N n218TMWRbtb0gai5DELVNrutW0wtr29Dwfp7bVpBpogP2/BZukTEXeir5f7SAQFk5oTm +eWJxWyXIx83AuCbVKFHFN4s4Iy4WR92jf9mNjjBLy056FJj6fRfSM6C3bufX44uMFvs L7VQ== X-Gm-Message-State: AOAM530qeMS6oTcELQ9TMzhFW6lksPzNJo8LrqavGJhJqwMzZT/cBmEc SzwkrqSWNmMk92pOug3+uZHGV3rzCYqQag== X-Google-Smtp-Source: ABdhPJxAvOPumqw8dQ3kYWTgttaawx96t9AltigOk+iiJIsSqRfI3Yde1IcBJi9WOVKeu8md19uYww== X-Received: by 2002:a05:6820:622:: with SMTP id e34mr5060859oow.19.1638374658799; Wed, 01 Dec 2021 08:04:18 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id a3sm89902oil.32.2021.12.01.08.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 08:04:18 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Bin Meng , =?utf-8?q?Marek_Beh=C3=BAn?= , Simon Glass , Asherah Connor Subject: [PATCH 06/40] sandbox: Allow building with GENERATE_ACPI_TABLE Date: Wed, 1 Dec 2021 09:02:40 -0700 Message-Id: <20211201160315.2203099-7-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc2.393.gf8c9666880-goog In-Reply-To: <20211201160315.2203099-1-sjg@chromium.org> References: <20211201160315.2203099-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean At present this option is missing a header file, a function prototype and the qfw driver needs a header included. Fix these problems so we can enable this option on sandbox. This will increase the build coverage. Signed-off-by: Simon Glass --- arch/sandbox/include/asm/acpi_table.h | 2 ++ arch/sandbox/include/asm/tables.h | 0 drivers/misc/qfw.c | 1 + 3 files changed, 3 insertions(+) create mode 100644 arch/sandbox/include/asm/tables.h diff --git a/arch/sandbox/include/asm/acpi_table.h b/arch/sandbox/include/asm/acpi_table.h index 921c7f4201d..ae17f6c5197 100644 --- a/arch/sandbox/include/asm/acpi_table.h +++ b/arch/sandbox/include/asm/acpi_table.h @@ -6,4 +6,6 @@ #ifndef __ASM_ACPI_TABLE_H__ #define __ASM_ACPI_TABLE_H__ +ulong write_acpi_tables(ulong start); + #endif /* __ASM_ACPI_TABLE_H__ */ diff --git a/arch/sandbox/include/asm/tables.h b/arch/sandbox/include/asm/tables.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c index ea00be88a8d..a298e5cf727 100644 --- a/drivers/misc/qfw.c +++ b/drivers/misc/qfw.c @@ -14,6 +14,7 @@ #include #include #include +#include #ifdef CONFIG_GENERATE_ACPI_TABLE #include #endif