From nobody Sun Feb 8 19:02:47 2026 Delivered-To: importer@patchew.org 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; 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1582204011; cv=none; d=zohomail.com; s=zohoarc; b=W3h5TJi+iV5Z3E7Cg5vj3r13JJ9fvXijiZ2z4sLRZjBtftIvmb6QC7bu1hmYNZwENCHQMd3crGN2GPZPhm5AWP+pWD47jz2p2z3CTfgx+i174HgzZSxlzD3qy5Lx7rZpAf6D6pE0VYqfdUIoZkbA9QiMWkbPKvLppgU/ZzTd8mQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582204011; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=0I/PajPKi6aHIwuvrhsFs1T49QorDfxk3Qg83rvD9bw=; b=ZBQpHWmDBwUSCdj5ul/Eb8GAdl/8QabQ0wmNGVEL6VRcJJtS5DEmvjoH9OrTN8WZCc1HwNDqSCNHSIkzKMYxemjmVODn8iA5h5skA3kBHsSJ6B/MYzOh8rB8s4fRYKn/O33oGmMJtWD2pEY2vqVDsFv9dC4gtIBPzS+pbnK0W5k= 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 1582204011044123.01602718697688; Thu, 20 Feb 2020 05:06:51 -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 1j4lX1-000151-Dt; Thu, 20 Feb 2020 13:06:19 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j4lWz-00014S-SF for xen-devel@lists.xenproject.org; Thu, 20 Feb 2020 13:06:17 +0000 Received: from us-smtp-1.mimecast.com (unknown [207.211.31.120]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id c4b40f1a-53e1-11ea-8526-12813bfff9fa; Thu, 20 Feb 2020 13:06:12 +0000 (UTC) Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-159-MCjdWqK5MGuZ7dScehYHXg-1; Thu, 20 Feb 2020 08:06:10 -0500 Received: by mail-wr1-f70.google.com with SMTP id p8so1713491wrw.5 for ; Thu, 20 Feb 2020 05:06:09 -0800 (PST) Received: from localhost.localdomain (78.red-88-21-202.staticip.rima-tde.net. [88.21.202.78]) by smtp.gmail.com with ESMTPSA id b67sm4594690wmc.38.2020.02.20.05.06.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Feb 2020 05:06:08 -0800 (PST) X-Inumbo-ID: c4b40f1a-53e1-11ea-8526-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582203972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3U8RUDrkQxMnVOOW0OCE6S37E2RIVx9bINi/XXS02Y4=; b=Fwo9Jh234B3yva3Ogz728Qp6nOd0PrJhS5mphIcNxw3I1jRz2yMlv5jtOyCgJpSRSl9TLc ZdIBfmilZWj/QJ/e+iduhSP/LGpgBctWilKzxyLYLwvBArqCgoe4QVb9rlRF02YcDHedgX AvY3VIaaTU8i6LOMPTioErGlLvCeiHA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uQu7r5A36ZEekF4m32GxNBlLjnOkqxofIVmsz5VZ5cY=; b=SGSQcpDpBxXOtT2mQZ5YbEXZEB8xDpvaj/wi5W1M2CfmRquEb8rkP4wl1yPQJ2G+yY RyrbUsvgx3Qj1O57KO6jcFRFx3b34kDlpGnsbhFWL9ef/wmd9HV4tBVux74WhDwXAp3m vg5ZjikcMEnq2hD1UjNTFWO0+rr6+zK4pPUpnXWX5vXj9eJ+1faroxEc/0nw2m618ouh tARpi5KYIp5QlX0Lyl0/tXng+al9iyUwLxQdPMLmMNGZqS/sEOqk3VtC6wpjZS1U25bF yP1F3WebYPg2MoWkWM+g1ib8rK90beiSVZAAjL2f9be2/GsbB4MEq7DNKXeCCGDiXnz6 Xmtw== X-Gm-Message-State: APjAAAXwyy/6xTcCXpFh+6MxyuPuxEL4JtkbSlMkfnYbfRHrjHjtqRe0 D7PzbNucggXsp+0eTt5SDwVHGofvuV6kfVFgvBJyfqTLEHqIHNSGhSj95R18QTY0qIWWvDgThui nkZjLxeQDSEtHwhY2LVd4nIPQ+hY= X-Received: by 2002:a7b:c19a:: with SMTP id y26mr4784706wmi.152.1582203968766; Thu, 20 Feb 2020 05:06:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyE66uIDK1qcY0whocMHGuc5UiGXXzMSpfPUxCMQ6ki2ViRoHWEoIvgwkFHTsmW7YQNGkg7QA== X-Received: by 2002:a7b:c19a:: with SMTP id y26mr4784676wmi.152.1582203968575; Thu, 20 Feb 2020 05:06:08 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Peter Maydell , qemu-devel@nongnu.org Date: Thu, 20 Feb 2020 14:05:32 +0100 Message-Id: <20200220130548.29974-5-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200220130548.29974-1-philmd@redhat.com> References: <20200220130548.29974-1-philmd@redhat.com> MIME-Version: 1.0 X-MC-Unique: MCjdWqK5MGuZ7dScehYHXg-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [Xen-devel] [PATCH v3 04/20] exec: Rename ram_ptr variable 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: Fam Zheng , Dmitry Fleytman , kvm@vger.kernel.org, "Michael S. Tsirkin" , Jason Wang , Gerd Hoffmann , "Edgar E. Iglesias" , Stefano Stabellini , Matthew Rosato , qemu-block@nongnu.org, David Hildenbrand , Halil Pasic , Christian Borntraeger , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Marcel Apfelbaum , Anthony Perard , xen-devel@lists.xenproject.org, Aleksandar Rikalo , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Laurent Vivier , Thomas Huth , Eduardo Habkost , Stefan Weil , Alistair Francis , Richard Henderson , Paul Durrant , Eric Auger , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , John Snow , David Gibson , Igor Mitsyanko , Cornelia Huck , Michael Walle , qemu-ppc@nongnu.org, Paolo Bonzini 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) As we are going to use a different 'ptr' variable, rename the 'ram pointer' variable. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- exec.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/exec.c b/exec.c index 02b4e6ea41..06e386dc72 100644 --- a/exec.c +++ b/exec.c @@ -3151,7 +3151,7 @@ static MemTxResult flatview_write_continue(FlatView *= fv, hwaddr addr, hwaddr len, hwaddr addr1, hwaddr l, MemoryRegion *mr) { - uint8_t *ptr; + uint8_t *ram_ptr; uint64_t val; MemTxResult result =3D MEMTX_OK; bool release_lock =3D false; @@ -3167,8 +3167,8 @@ static MemTxResult flatview_write_continue(FlatView *= fv, hwaddr addr, size_memop(l), attrs); } else { /* RAM case */ - ptr =3D qemu_ram_ptr_length(mr->ram_block, addr1, &l, false); - memcpy(ptr, buf, l); + ram_ptr =3D qemu_ram_ptr_length(mr->ram_block, addr1, &l, fals= e); + memcpy(ram_ptr, buf, l); invalidate_and_set_dirty(mr, addr1, l); } =20 @@ -3215,7 +3215,7 @@ MemTxResult flatview_read_continue(FlatView *fv, hwad= dr addr, hwaddr len, hwaddr addr1, hwaddr l, MemoryRegion *mr) { - uint8_t *ptr; + uint8_t *ram_ptr; uint64_t val; MemTxResult result =3D MEMTX_OK; bool release_lock =3D false; @@ -3230,8 +3230,8 @@ MemTxResult flatview_read_continue(FlatView *fv, hwad= dr addr, stn_he_p(buf, l, val); } else { /* RAM case */ - ptr =3D qemu_ram_ptr_length(mr->ram_block, addr1, &l, false); - memcpy(buf, ptr, l); + ram_ptr =3D qemu_ram_ptr_length(mr->ram_block, addr1, &l, fals= e); + memcpy(buf, ram_ptr, l); } =20 if (release_lock) { @@ -3329,7 +3329,7 @@ static inline MemTxResult address_space_write_rom_int= ernal(AddressSpace *as, enum write_rom_= type type) { hwaddr l; - uint8_t *ptr; + uint8_t *ram_ptr; hwaddr addr1; MemoryRegion *mr; =20 @@ -3343,14 +3343,14 @@ static inline MemTxResult address_space_write_rom_i= nternal(AddressSpace *as, l =3D memory_access_size(mr, l, addr1); } else { /* ROM/RAM case */ - ptr =3D qemu_map_ram_ptr(mr->ram_block, addr1); + ram_ptr =3D qemu_map_ram_ptr(mr->ram_block, addr1); switch (type) { case WRITE_DATA: - memcpy(ptr, buf, l); + memcpy(ram_ptr, buf, l); invalidate_and_set_dirty(mr, addr1, l); break; case FLUSH_CACHE: - flush_icache_range((uintptr_t)ptr, (uintptr_t)ptr + l); + flush_icache_range((uintptr_t)ram_ptr, (uintptr_t)ram_ptr = + l); break; } } --=20 2.21.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel