From patchwork Tue Oct 18 14:56:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9382321 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A6AD6600CA for ; Tue, 18 Oct 2016 15:08:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96CB428F7C for ; Tue, 18 Oct 2016 15:08:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A04F295F9; Tue, 18 Oct 2016 15:08:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3490528F7C for ; Tue, 18 Oct 2016 15:08:27 +0000 (UTC) Received: from localhost ([::1]:42140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwW09-00052b-HN for patchwork-qemu-devel@patchwork.kernel.org; Tue, 18 Oct 2016 11:08:25 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=RH1uaC1tomJkgZKY+AZPIsX9Uu3HeJLAtNT1AtItq/s=; b=xkfMRgBfhVo6/oIYP/NontLhiqsKKS1KB539/UmLCTf8Uq2IS1tlN7P8w7SE2N86bK 0xB/PPZziTGC1gN7ihQIR3AsXaXO52+NDEf//uMMhp9wFCYnRC7tmSoxmuZoThbKbSOr P5Jq6vE4OBm2kQE6gBPFumN+64n8AT4g5pNZegcIAKoolltJtJ8hnryFEHUPehxHO9K3 ctIR7d87E6nNbcT5kabUV1McnteWkpZ15z9YiTOdmiUbiaedYQauSaDBvY46IrnfqSvi iiWXK/cLH1LfonyLEaYx49LhwTcD98u2m2t2g7WlR6ni5rKZNzn8er3Kr4/BXn6jajj9 eYFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=RH1uaC1tomJkgZKY+AZPIsX9Uu3HeJLAtNT1AtItq/s=; b=h7F5zePY2r6u6sYOYbaMdouwefB1JbCtUzA5410gNGfrvm/ACGwWSqdB0dodWEQeWe WSv+Njq2a22GhT7A9zyg4sompcOCybdefMSm8OvbThe2Jkq7YHVn6pxCxnswPqDW3icQ WGj5PX22k9YzURfZhfCWWEK3smQjC99xcN7kRgK3+mIcOVA45lhc4hid4dJwFRZYdBqV 7wtwptBchkDa4ALJeENnDQyML3siADmUta8Y0RS7oi4F7+JsmwT/Mms0C7yjFOMeJw9+ 4JHqi+ruCd/WiI8ClGPQakX4WRD0s9QHL9nqfBWJN6o21ck20bDEb4/AiW5ZwCtKpgU4 eDSw== X-Gm-Message-State: AA6/9Rn5Wz/5m7j8XIxloOJ2qzGujDMLVHlh3BQui1mx614i+Lcx17528+C3laXxsia62w== X-Received: by 10.37.44.13 with SMTP id s13mr1043142ybs.71.1476802583260; Tue, 18 Oct 2016 07:56:23 -0700 (PDT) Received: from localhost.localdomain (c-73-207-178-95.hsd1.ga.comcast.net. [73.207.178.95]) by smtp.gmail.com with ESMTPSA id w141sm13845574yww.35.2016.10.18.07.56.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Oct 2016 07:56:22 -0700 (PDT) From: Pranith Kumar To: Paolo Bonzini , Peter Crosthwaite , Richard Henderson , qemu-devel@nongnu.org (open list:Overall) Date: Tue, 18 Oct 2016 10:56:20 -0400 Message-Id: <20161018145620.20658-2-bobby.prani@gmail.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161018145620.20658-1-bobby.prani@gmail.com> References: <20161018145620.20658-1-bobby.prani@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c09::241 Subject: [Qemu-devel] [PATCH 2/2] translate-all: Use proper type X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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) {