From patchwork Wed Oct 30 14:13:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frediano Ziglio X-Patchwork-Id: 13856589 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A603D5CCAF for ; Wed, 30 Oct 2024 14:14:18 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.828258.1243116 (Exim 4.92) (envelope-from ) id 1t69SS-0006Al-Ok; Wed, 30 Oct 2024 14:14:00 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 828258.1243116; Wed, 30 Oct 2024 14:14:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t69SS-0006Ae-Lv; Wed, 30 Oct 2024 14:14:00 +0000 Received: by outflank-mailman (input) for mailman id 828258; Wed, 30 Oct 2024 14:13:59 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t69SR-0006AY-Ah for xen-devel@lists.xenproject.org; Wed, 30 Oct 2024 14:13:59 +0000 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [2a00:1450:4864:20::633]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 31703acb-96c9-11ef-a0c3-8be0dac302b0; Wed, 30 Oct 2024 15:13:53 +0100 (CET) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a9a3dc089d8so999986266b.3 for ; Wed, 30 Oct 2024 07:13:53 -0700 (PDT) Received: from fziglio-desktop.. ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9b3a08478bsm576411566b.199.2024.10.30.07.13.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 07:13:52 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 31703acb-96c9-11ef-a0c3-8be0dac302b0 X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDA6MTQ1MDo0ODY0OjIwOjo2MzMiLCJoZWxvIjoibWFpbC1lajEteDYzMy5nb29nbGUuY29tIn0= X-Custom-Transaction: eyJpZCI6IjMxNzAzYWNiLTk2YzktMTFlZi1hMGMzLThiZTBkYWMzMDJiMCIsInRzIjoxNzMwMjk3NjMzLjc0NjgwMSwic2VuZGVyIjoiZnJlZGlhbm8uemlnbGlvQGNsb3VkLmNvbSIsInJlY2lwaWVudCI6Inhlbi1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZyJ9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.com; s=cloud; t=1730297633; x=1730902433; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pN2Oe8S29+yawm9p3c07bqHt4J/ZBZsq4OxQrlPr8Lk=; b=UC8cIujV3GWySptI/fnc72Rs/LP+P/sE6WlaXAjIllIp/Zx4JC3SzRTASKg/27bsxr y0IMtEay3OKxGNbNokjvyxboF5dqWWh44peFaUIYpze3iGL4ECss8vFbt5d0kiURcH0M SZtgj4XqMF1DvXvawUkadskKhCMF9PRXNmPA0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730297633; x=1730902433; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pN2Oe8S29+yawm9p3c07bqHt4J/ZBZsq4OxQrlPr8Lk=; b=xPxVakJ1FfDF8fBMD98jTXw8aBr1tvEVb6IGaXDZkAsqwEVwhJuSRsKsH7/sTIe8wm c+TYSWMcj+4HHG5PnDsgDtx62xO0H8fEelogJIrMUIh1gN359uvDasQB7Z+Lb7VwvvNq qc9wdXFwXYDVzieE57cNlLSVjnjI9w0v7dFB9x3PRMXnwcSwWHA7BpiMjBvP4GthtpZh gzhO4RZplSYQoQaP1awyCsAp3ctf+sG0AF187dC/qVch0Wgt1yVn0Zea5rZsl4VqFUk2 Xtb4gdxMLcefQY9WaYop0JBJ1BJO9+i8d9X3e0Ej5rY8EYm7cC6N7Ue++p8EjRoIrJbH Xoig== X-Gm-Message-State: AOJu0YxThfo2TyxeNUr0XDM9mCupAxdpjbQNDiQEd73slrYAWSJOTjE9 8KOjsNxk3ROs4sMuP/53/9HJdtrNBKkyGTgYgoi/hkGwubbVbeFP3C4khjPOandtKoVIIDuW+Px R X-Google-Smtp-Source: AGHT+IEyVntG6F08VAiDxqGqAkGcrtFbvRef0kx2BS14NuUqEZEORKN7/iGxKeY7ujaHzGW60OiEiA== X-Received: by 2002:a17:907:3a96:b0:a9e:1fc7:fc11 with SMTP id a640c23a62f3a-a9e1fc7fd27mr448389566b.40.1730297632720; Wed, 30 Oct 2024 07:13:52 -0700 (PDT) From: Frediano Ziglio To: xen-devel@lists.xenproject.org Cc: Frediano Ziglio , Jan Beulich , Andrew Cooper , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Subject: [PATCH v2] x86/setup: Make setup.h header self contained Date: Wed, 30 Oct 2024 14:13:41 +0000 Message-Id: <20241030141341.2236343-1-frediano.ziglio@cloud.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 The header uses rangeset structure pointer. Forward declare the structure. Signed-off-by: Frediano Ziglio Acked-by: Andrew Cooper --- Changes since v1: - use structure forward declaration instead of including header. --- xen/arch/x86/include/asm/setup.h | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/include/asm/setup.h b/xen/arch/x86/include/asm/setup.h index 4874ee8936..d7ed4f4002 100644 --- a/xen/arch/x86/include/asm/setup.h +++ b/xen/arch/x86/include/asm/setup.h @@ -43,6 +43,7 @@ void *bootstrap_map_bm(const struct boot_module *bm); void *bootstrap_map(const module_t *mod); void bootstrap_unmap(void); +struct rangeset; int remove_xen_ranges(struct rangeset *r); int cf_check stub_selftest(void);