From nobody Fri May 17 07:47:09 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1665557153; cv=none; d=zohomail.com; s=zohoarc; b=oGsDIyM0d3KEmdkwq++Sfcw1ZpZ+yrsmrev6GupfV42HH3o5eaPRUsZW2aCIKpfKCPvSIUVF8g94kgR8r1RoHhI2iZOCwHmMXW9P8/0RMyOJk9NExMEF50R7SSRx+PBQBJ/mvv9ZXZu7yp0sEagT17AW4IAuwaLv/uygFx/VT6c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665557153; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=pfSBOvu1OjtBmklXcnPKbzHd/cYxESBbfDXDCYhcEtE=; b=ZQPgOfNJiO3EJ4gwbhCMHXD4lQyAOwgQI8DIw1F3D/E8Az48g4nNhP69WZtbREsQQzDRM4q/OD8stfrGxmpDhJ8TqLjbHgJ1ekA9V7EVCXd/MLY1Y19r3UjNSqNWLJlfBK1vJHF3jAzGCsz7DwfPfgFKtOcGEMfJm5iQP7ZcV0Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1665557153973429.99115445166456; Tue, 11 Oct 2022 23:45:53 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.420779.665790 (Exim 4.92) (envelope-from ) id 1oiVUd-0000JS-HX; Wed, 12 Oct 2022 06:45:27 +0000 Received: by outflank-mailman (output) from mailman id 420779.665790; Wed, 12 Oct 2022 06:45:27 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oiVUd-0000JK-EU; Wed, 12 Oct 2022 06:45:27 +0000 Received: by outflank-mailman (input) for mailman id 420779; Wed, 12 Oct 2022 06:45:25 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oiVUb-0000JA-LT for xen-devel@lists.xenproject.org; Wed, 12 Oct 2022 06:45:25 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 730e5eb8-49f9-11ed-8fd0-01056ac49cbb; Wed, 12 Oct 2022 08:45:24 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 3B71C22529; Wed, 12 Oct 2022 06:45:24 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0744813A5C; Wed, 12 Oct 2022 06:45:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 4tpkAIRiRmO3LAAAMHmgww (envelope-from ); Wed, 12 Oct 2022 06:45:24 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 730e5eb8-49f9-11ed-8fd0-01056ac49cbb DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1665557124; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=pfSBOvu1OjtBmklXcnPKbzHd/cYxESBbfDXDCYhcEtE=; b=kzVeL9jJSSEXJ7XZEyVllcu9uwCi6gWxGyYSmMqxxFFCUwMpR2IwVQFjnbhA0jR5kY59md CSWj4VG/hD7hJ1Em2z17jbV8rNs9glyE8ebi5oYAqcvpnhriYa890kJyrbbKmla7tAWKS0 y8PBYs50+IxWHiiVGU03h+mh6fmXwWU= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Ian Jackson , Wei Liu Subject: [PATCH-for-4.15] tools/tests: fix wrong backport of upstream commit 52daa6a8483e4 Date: Wed, 12 Oct 2022 08:45:22 +0200 Message-Id: <20221012064522.6827-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1665557155926100001 Content-Type: text/plain; charset="utf-8" The backport of upstream commit 52daa6a8483e4 had a bug, correct it. Fixes: 3ac64b375183 ("xen/gnttab: fix gnttab_acquire_resource()") Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- tools/tests/resource/test-resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tests/resource/test-resource.c b/tools/tests/resource/te= st-resource.c index bf485baff2..51a8f4a000 100644 --- a/tools/tests/resource/test-resource.c +++ b/tools/tests/resource/test-resource.c @@ -71,7 +71,7 @@ static void test_gnttab(uint32_t domid, unsigned int nr_f= rames) res =3D xenforeignmemory_map_resource( fh, domid, XENMEM_resource_grant_table, XENMEM_resource_grant_table_id_status, 0, 1, - (void **)&gnttab, PROT_READ | PROT_WRITE, 0); + &addr, PROT_READ | PROT_WRITE, 0); =20 if ( res ) { --=20 2.35.3