From nobody Sun May 19 00:47:34 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1583431294; cv=none; d=zohomail.com; s=zohoarc; b=XaJ1+j0cabLaed5QigQldBPk0oKF/Ceb/UXDiEMCXmFNV5hU587GGD1p5ivkG88T++88o/9G6qimd5ObGFyXAc0ZoaEguNI2lq/W+aNV5pteB6xaawqEljp1zc2bf2Ff7z1Yx7B8388j6KTIgro9nO4E1J2M2FOn0kBpwlFr2yg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583431294; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=cNJ+ynSd8tNguPVqCWKMcf/zlCKCeDy0DGaUPxxM9KA=; b=LKEXnNb/jA0D5yBJBo5HJxPehWEK398AzXkHY5qxBysBt5ivghrJg9H8eLkc6/V7ZvRCg49lNmhhfvggrQt5uM6egilYI9zOdvD1YdJCqVhJz5g2up0PMz0R0rSvEuvpNbXi2Y3hT+mxUfxgiG0m7OKzQwLUPKOk6zdcsz5DvWU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1583431294135919.7638976853569; Thu, 5 Mar 2020 10:01:34 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j9un8-0005u0-KD; Thu, 05 Mar 2020 18:00:14 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j9un7-0005tv-B7 for xen-devel@lists.xenproject.org; Thu, 05 Mar 2020 18:00:13 +0000 Received: from esa5.hc3370-68.iphmx.com (unknown [216.71.155.168]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 28ce1cd2-5f0b-11ea-b52f-bc764e2007e4; Thu, 05 Mar 2020 18:00:12 +0000 (UTC) X-Inumbo-ID: 28ce1cd2-5f0b-11ea-b52f-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1583431212; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=at5R+bT2/hoFkIEcWYIA94JT/YJT3ubWaT6l3gJ/41s=; b=Dh+D8XonlJP1sDmYASw02ynjm6zGLaJIJks1ovDibPjd9sKyDzEONjd4 cRMi2ux9Q1EmBvmO6SKaiP08LEWdZnwAZreDxzo/qwuwvpoQwgE/vDSke 5xEGmkqLgLhIv3mvv9y5SPdeXIUb7kZ+1vc2mIscCfr3aqRYnVEM6YAc2 M=; Authentication-Results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa5.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa5.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa5.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: jAtseGSMT8ACRDUh8wP0wJWhSo5jiycZclk+EU46epWt4hhn88r+DZ5oP99zfEd79iHQmAkjtS wAQ0gKfk4Juh4OPBxnfSe8NzWPrEUyP2k77aTvhfkhIcCHMcM6CdOEj66cbEnJfobBHqZSIe/Q RRbw9XdjqNpxmJ6E4RoELXT8bmQw7g2UVi/8/7kQWfNqR3uHwgI94FnNdmglq2IUUbqr3p0p1S FwpmLLfFffEkX6jYuLxOVn6rk5it3Jpf9VbTOrcXbPqB/xeg9KRDgU73zhITX9lwh/3rAPFFiD 678= X-SBRS: 2.7 X-MesageID: 13825280 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.70,518,1574139600"; d="scan'208";a="13825280" From: Andrew Cooper To: Xen-devel Date: Thu, 5 Mar 2020 18:00:09 +0000 Message-ID: <20200305180009.11365-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] x86/dom0: Fix build with clang X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) find_memory() isn't marked as __init, so if it isn't fully inlined, it ends= up tripping: Error: size of dom0_build.o:.text is 0x0c1 Fixes: 73b47eea21 "x86/dom0: improve PVH initrd and metadata placement" Signed-off-by: Andrew Cooper Reviewed-by: Roger Pau Monn=C3=A9 --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monn=C3=A9 --- xen/arch/x86/hvm/dom0_build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/hvm/dom0_build.c b/xen/arch/x86/hvm/dom0_build.c index c41504f22d..ee1d50acc6 100644 --- a/xen/arch/x86/hvm/dom0_build.c +++ b/xen/arch/x86/hvm/dom0_build.c @@ -490,8 +490,8 @@ static int __init pvh_populate_p2m(struct domain *d) #undef MB1_PAGES } =20 -static paddr_t find_memory(const struct domain *d, const struct elf_binary= *elf, - size_t size) +static paddr_t __init find_memory( + const struct domain *d, const struct elf_binary *elf, size_t size) { paddr_t kernel_start =3D (paddr_t)elf->dest_base & PAGE_MASK; paddr_t kernel_end =3D ROUNDUP((paddr_t)elf->dest_base + elf->dest_siz= e, --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel