From patchwork Tue Aug 9 09:15:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 12939462 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28321C25B07 for ; Tue, 9 Aug 2022 09:16:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240173AbiHIJQP (ORCPT ); Tue, 9 Aug 2022 05:16:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239448AbiHIJPu (ORCPT ); Tue, 9 Aug 2022 05:15:50 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D71F122BEC for ; Tue, 9 Aug 2022 02:15:45 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 46ABA23A; Tue, 9 Aug 2022 02:15:46 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 654393F67D; Tue, 9 Aug 2022 02:15:44 -0700 (PDT) From: Alexandru Elisei To: pbonzini@redhat.com, thuth@redhat.com, andrew.jones@linux.dev, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, nikos.nikoleris@arm.com Subject: [kvm-unit-tests RFC PATCH 13/19] arm: page.h: Add missing libcflat.h include Date: Tue, 9 Aug 2022 10:15:52 +0100 Message-Id: <20220809091558.14379-14-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220809091558.14379-1-alexandru.elisei@arm.com> References: <20220809091558.14379-1-alexandru.elisei@arm.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Include libcflat from page.h to avoid error like this one: /path/to/kvm-unit-tests/lib/asm/page.h:19:9: error: unknown type name ‘u64’ 19 | typedef u64 pteval_t; | ^~~ [..] /path/to/kvm-unit-tests/lib/asm/page.h:47:8: error: unknown type name ‘phys_addr_t’ 47 | extern phys_addr_t __virt_to_phys(unsigned long addr); | ^~~~~~~~~~~ | ^~~~~~~~~~~ [..] /path/to/kvm-unit-tests/lib/asm/page.h:50:47: error: unknown type name ‘size_t’ 50 | extern void *__ioremap(phys_addr_t phys_addr, size_t size); The arm64 version of the header already includes libcflat since commit a2d06852fe59 ("arm64: Add support for configuring the translation granule"). Signed-off-by: Alexandru Elisei --- lib/arm/asm/page.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/arm/asm/page.h b/lib/arm/asm/page.h index 8eb4a883808e..0a46bda018c7 100644 --- a/lib/arm/asm/page.h +++ b/lib/arm/asm/page.h @@ -8,6 +8,8 @@ #include +#include + #define PAGE_SHIFT 12 #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE-1))