From nobody Wed Apr 24 11:55:03 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1561727991; cv=none; d=zoho.com; s=zohoarc; b=bIeUmWToigeWOCko+344pI05o30vZBV/HFPiqrikvrxhgyz/i+PCY0j77zvLdVwVUfQ5+QTDMxcMVQjFuF1SSE4yiJIWQBOy/Tp8bsBHXYDK/wrvMNo2nC+dvtmNWg+pDli0DI2uNexJG68egNkQMpC1kfI9WyqGaZe5LyKIgtg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561727991; 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:ARC-Authentication-Results; bh=UQ1coOkP6Lnf5rL3A2hPDpNSIXJjeum128OSdtzGIY0=; b=DEWvYNiL/LooI5IjtMSYBdTlhu7JIHcIwc9+uu2Tj8v4EfknAH4QHtRku2WKGWo6CM3LWNTF7793yflMjesP6Lm+Phjdari1F8mTNdAaxj2WW8TO7+AfSuJ8Up8xy0GymPlKsQFGFEwQ7zmoS5MIz/5vySah59TunZfLDsGP0zk= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1561727990739776.5646061097499; Fri, 28 Jun 2019 06:19:50 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hgqlq-0004x3-2Z; Fri, 28 Jun 2019 13:18:30 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hgqlo-0004wy-CB for xen-devel@lists.xenproject.org; Fri, 28 Jun 2019 13:18:28 +0000 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 35cd61ad-99a7-11e9-8980-bc764e045a96; Fri, 28 Jun 2019 13:18:25 +0000 (UTC) X-Inumbo-ID: 35cd61ad-99a7-11e9-8980-bc764e045a96 Authentication-Results: esa2.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 (zoho.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 (esa2.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=esa2.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.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=esa2.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 ~all" Received-SPF: None (esa2.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=esa2.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: /wFqZ8w5do/F1nSoraJRdG0lrWsWdR9OY7kQkpdVFkEsMUjHM4ANQW1z1e/U5+oXJrgPxdGdjo w0I+/+VJQepinvPxq35yEINlOFZ0N0v7UT+CN+LqBVJSKIdWVSTkd1RTWhksM3d0KrjUwp1cAK ppBGg/0ot9S/+PbbFbi45H1MNYkW/xuJVN+W3iMOIFyL4Jt55S9tLMNq0VYUqWQ1G4VjN/KxzE e2UT5cGlJVpdwVR9y/JbTopy3hoPV2ou6nTd0eU/Q0QgCNP5Qw6mFtqRHSZf5QS0LmkLwe2vmQ RRc= X-SBRS: 2.7 X-MesageID: 2352843 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.63,427,1557201600"; d="scan'208";a="2352843" From: Andrew Cooper To: Xen-devel Date: Fri, 28 Jun 2019 14:18:21 +0100 Message-ID: <20190628131821.19690-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] arm/optee: Fix arm32 build 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 , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" A Travis randconfig build notices: optee.c: In function =E2=80=98allocate_and_pin_shm_rpc=E2=80=99: optee.c:383:13: error: format =E2=80=98%lx=E2=80=99 expects argument of type =E2=80=98long unsigned int=E2=80=99, but argument 5 has type =E2=80=98ui= nt64_t=E2=80=99 [-Werror=3Dformat=3D] gdprintk(XENLOG_WARNING, "Guest tries to use the same RPC SHM cookie %l= x\n", ^ Use PRIx64 instead of %lx Full logs https://travis-ci.org/andyhhp/xen/jobs/551754253 Signed-off-by: Andrew Cooper Reviewed-by: Stefano Stabellini --- CC: Stefano Stabellini CC: Julien Grall CC: Volodymyr Babchuk --- xen/arch/arm/tee/optee.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/xen/arch/arm/tee/optee.c b/xen/arch/arm/tee/optee.c index 61029855d4..1d79c2c159 100644 --- a/xen/arch/arm/tee/optee.c +++ b/xen/arch/arm/tee/optee.c @@ -380,7 +380,8 @@ static struct shm_rpc *allocate_and_pin_shm_rpc(struct = optee_domain *ctx, if ( shm_rpc_tmp->cookie =3D=3D cookie ) { spin_unlock(&ctx->lock); - gdprintk(XENLOG_WARNING, "Guest tries to use the same RPC SHM = cookie %lx\n", + gdprintk(XENLOG_WARNING, + "Guest tries to use the same RPC SHM cookie %"PRIx64"= \n", cookie); goto err; } @@ -493,7 +494,8 @@ static struct optee_shm_buf *allocate_optee_shm_buf(str= uct optee_domain *ctx, if ( optee_shm_buf_tmp->cookie =3D=3D cookie ) { spin_unlock(&ctx->lock); - gdprintk(XENLOG_WARNING, "Guest tries to use the same SHM buff= er cookie %lx\n", + gdprintk(XENLOG_WARNING, + "Guest tries to use the same SHM buffer cookie %"PRIx= 64"\n", cookie); err_code =3D -EINVAL; goto err; @@ -574,7 +576,8 @@ static void free_optee_shm_buf_pg_list(struct optee_dom= ain *ctx, if ( found ) free_pg_list(optee_shm_buf); else - gdprintk(XENLOG_ERR, "Can't find pagelist for SHM buffer with cook= ie %lx to free it\n", + gdprintk(XENLOG_ERR, + "Can't find pagelist for SHM buffer with cookie %"PRIx64"= to free it\n", cookie); } =20 @@ -1018,7 +1021,8 @@ static int handle_rpc_return(struct optee_domain *ctx, * will overwrite it with actual result. So we can just * continue the call. */ - gprintk(XENLOG_ERR, "Can't find SHM-RPC with cookie %lx\n", co= okie); + gprintk(XENLOG_ERR, "Can't find SHM-RPC with cookie %"PRIx64"\= n", + cookie); =20 return -ERESTART; } @@ -1219,7 +1223,8 @@ static void handle_rpc_cmd_alloc(struct optee_domain = *ctx, if ( shm_rpc->xen_arg->params[0].attr !=3D (OPTEE_MSG_ATTR_TYPE_TMEM_O= UTPUT | OPTEE_MSG_ATTR_NONCONTIG) ) { - gdprintk(XENLOG_WARNING, "Invalid attrs for shared mem buffer: %lx= \n", + gdprintk(XENLOG_WARNING, + "Invalid attrs for shared mem buffer: %"PRIx64"\n", shm_rpc->xen_arg->params[0].attr); return; } @@ -1268,7 +1273,8 @@ static void handle_rpc_cmd(struct optee_domain *ctx, = struct cpu_user_regs *regs, =20 if ( !shm_rpc ) { - gdprintk(XENLOG_ERR, "Can't find SHM-RPC with cookie %lx\n", cooki= e); + gdprintk(XENLOG_ERR, "Can't find SHM-RPC with cookie %"PRIx64"\n", + cookie); return; } =20 --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel