From patchwork Wed Jul 4 15:39:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 939431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ixu4PI4c"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41LQGj61K8z9s3q for ; Thu, 5 Jul 2018 01:42:21 +1000 (AEST) Received: from localhost ([::1]:47800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajv9-0008UH-DG for incoming@patchwork.ozlabs.org; Wed, 04 Jul 2018 11:42:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajt0-00071Y-Tm for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fajsz-0003cu-81 for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:06 -0400 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:35880) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fajsz-0003ck-43 for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:05 -0400 Received: by mail-qk0-x235.google.com with SMTP id a132-v6so3052649qkg.3 for ; Wed, 04 Jul 2018 08:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1TYyWu7xV3DkAKOcK3o4PNzyTAm9UAuRZPqTuvo9yxg=; b=Ixu4PI4ckyYV214AurVTFqliHLRWzWiDJkpGjt6Wjidew7FLcYp/cPyLlS9QsUq/kd dy5kvpy5kF4+b+sFHNpDMPtH/WS10OLqkegIWN0OrJyaJ+9s2U7ZB3Lu/579sbUAmlBu w7QNXbkSx/EVAqeNFi1OyAwZwwm+T9+6VYE4ObE7xdMeRYJuxosCKkn5lAKDaIWij09B s3DChRcQ4f82foyFy/dSfpc9vbuHOjisVAqJf69Z9sOVG6lJanRBYa0iae1YJfGmeo46 VY5j9a/fBAhNJhijM/AGRi7z2lBbq8HUznGE4FytPzyjXe4T9zl1IBwLENarBRZqotlb UXcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=1TYyWu7xV3DkAKOcK3o4PNzyTAm9UAuRZPqTuvo9yxg=; b=p34NxwlZh2oVdR3FmUeAGnvxT4G+Sb7C7I88dh76YwLNPBibR0ZhpXowPCM6TmYPQT 8iIUhFqLdLDE0pNu4jAmYOGuwxKDeBxHXiNigVhDDnDMN8g7tB1lpeGACjhvd9Bb7xqK JScD4d5MA4igjMpFsOpU41f5d5i0xQwx8uxhjCYdvWlBPZiBcef15wSdNhWyCxiAP0cA G5/rbF5Tz4PFFoHWk1LINpogAxF9wJM4YXJlTnJvjxhAI6xAM0hA8P3/OamzFdaFC1zj UkNLlteWtO8k0Vp57G2OaEHWGVFOiQpOrDCN5upNRi/tVf1uU5BPpj/nYczv6T/MUwGt k/9g== X-Gm-Message-State: APt69E1AEb5Ezjb9oVvKT6NbUG4NEtO4FnqMSSrB+hz0UigeZ0PC4U2p k6VratcCl7ROTuI8a1DCRA0nXu1o X-Google-Smtp-Source: AAOMgpcLsmponyKFh+TzlUfeP6JWzIf1Ek9LahY+CCgF6Hm7rc8jE7FZ+upIPoCnwSml7fq8I5N3rA== X-Received: by 2002:a37:4654:: with SMTP id t81-v6mr1956557qka.82.1530718804600; Wed, 04 Jul 2018 08:40:04 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id a127-v6sm2383795qkd.9.2018.07.04.08.40.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 08:40:04 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Laurent Vivier , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Wed, 4 Jul 2018 12:39:15 -0300 Message-Id: <20180704153919.12432-5-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180704153919.12432-1-f4bug@amsat.org> References: <20180704153919.12432-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::235 Subject: [Qemu-devel] [PATCH 4/8] xen: Remove useless casts 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: , Cc: Anthony Perard , "open list:X86" , Stefano Stabellini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Patch created mechanically by rerunning: $ spatch --sp-file scripts/coccinelle/typecast.cocci \ --macro-file scripts/cocci-macro-file.h \ --dir . --in-place Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster Acked-by: Anthony PERARD --- hw/xen/xen_pt_config_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xen/xen_pt_config_init.c b/hw/xen/xen_pt_config_init.c index aee31c62bb..55a83333f2 100644 --- a/hw/xen/xen_pt_config_init.c +++ b/hw/xen/xen_pt_config_init.c @@ -543,7 +543,7 @@ static int xen_pt_exp_rom_bar_reg_write(XenPCIPassthroughState *s, { XenPTRegInfo *reg = cfg_entry->reg; XenPTRegion *base = NULL; - PCIDevice *d = (PCIDevice *)&s->dev; + PCIDevice *d = &s->dev; uint32_t writable_mask = 0; uint32_t throughable_mask = get_throughable_mask(s, reg, valid_mask); pcibus_t r_size = 0;