From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwVoY-0003tY-Oe for qemu-devel@nongnu.org; Tue, 18 Oct 2016 10:56:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwVoW-0007Y0-FY for qemu-devel@nongnu.org; Tue, 18 Oct 2016 10:56:26 -0400 Received: from mail-yb0-x241.google.com ([2607:f8b0:4002:c09::241]:34574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwVoW-0007Xh-9i for qemu-devel@nongnu.org; Tue, 18 Oct 2016 10:56:24 -0400 Received: by mail-yb0-x241.google.com with SMTP id 191so4476849ybv.1 for ; Tue, 18 Oct 2016 07:56:24 -0700 (PDT) From: Pranith Kumar Date: Tue, 18 Oct 2016 10:56:20 -0400 Message-Id: <20161018145620.20658-2-bobby.prani@gmail.com> In-Reply-To: <20161018145620.20658-1-bobby.prani@gmail.com> References: <20161018145620.20658-1-bobby.prani@gmail.com> Subject: [Qemu-devel] [PATCH 2/2] translate-all: Use proper type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Peter Crosthwaite , Richard Henderson , "open list:Overall" gcc does not warn about the wrong type since it is a void pointer which can be cast to any type. Signed-off-by: Pranith Kumar --- translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate-all.c b/translate-all.c index 8ca393c..c77470a 100644 --- a/translate-all.c +++ b/translate-all.c @@ -412,7 +412,7 @@ static PageDesc *page_find_alloc(tb_page_addr_t index, int alloc) /* Level 2..N-1. */ for (i = V_L1_SHIFT / V_L2_BITS - 1; i > 0; i--) { - void **p = atomic_rcu_read(lp); + void *p = atomic_rcu_read(lp); if (p == NULL) { if (!alloc) { -- 2.10.1