From patchwork Wed Jul 4 15:39:18 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: 939435 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="PI4V/GrL"; 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 41LQNW5bRqz9s3q for ; Thu, 5 Jul 2018 01:47:23 +1000 (AEST) Received: from localhost ([::1]:47831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fak01-0004RZ-FE for incoming@patchwork.ozlabs.org; Wed, 04 Jul 2018 11:47:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajtA-0007E9-TG for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fajt7-0003gQ-0A for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:16 -0400 Received: from mail-qt0-x236.google.com ([2607:f8b0:400d:c0d::236]:32879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fajt6-0003gH-Qs for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:12 -0400 Received: by mail-qt0-x236.google.com with SMTP id l10-v6so4853348qtj.0 for ; Wed, 04 Jul 2018 08:40:12 -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=TMJ/Lv2pg5MCq91GhSwFvnbg2PhxYXSU2WIBIoUihJA=; b=PI4V/GrL4ae1U4nDaHkjMe/0qLZU3uTH2bUfBGP17jhbQQzodjj1OeryJgi1sv+eGZ Y6RQbDAM3QyeaKGYPUPTZqYrWOZ9o4769I3f9Ti6QqdkxTzQhP6NVdlOKmYRyrkAEUoH p7we6fkK9CUrFyCpz2eONHzC6d9pO2J+Dum7CVbytu8MFDc7OwHIPfJGUvbilOiy49Fs OuP2ANwzwzD2cCobWv1A6Mtp3f/9KIVqg2dv186m3AL2PbTTkWoSJ8lmnPfUmeBz3sQr NPIBjQnd/tLP+tncPIS5STGl8KxPfjILaKn0uIuisLo8HcCOF6CqKrIsYhnYudy39zYw vIFQ== 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=TMJ/Lv2pg5MCq91GhSwFvnbg2PhxYXSU2WIBIoUihJA=; b=XZtOcXz8lYn1x9mcJ3nS9jUh4pJ7cPOdXITWIxY0LtJlb5+twbtUQRN9Dmt4/PG5yL 0A9yrVXGjdDUZl1ekgjJ/h6gY7bkI1mTPshP0gxfwhAG4SggFtaCDh1f+/NS+uZ0EOah XMjfZvRSprEVnw3telCN+MiJCHEfIUgvwNRxSxiSvZXz63R9XqS8sI+YKZ37hQqF7DrL m60KKWjZcrFc+xfWmpizW8ww4bNrxmwPW3GmmbkMgc2Njc8hbBq6e/IAzaccA38v2kN5 yyXneCQLUBnvQhdeuJQ7TP8KUlBm7OJ3dKrTWeWPkGoGGjdXTfe6EfB6/vapW3qTbtc+ ehrQ== X-Gm-Message-State: APt69E2EuBGJ/bb5p5ZHBfLVeDNzxfKsbcvXTcHIP56jD91kb6z6HHyy D9BNY/HYB3A9YYZYLtm0bjc= X-Google-Smtp-Source: AAOMgpfQJ7hYOu2C9NVE3Yg547uvqzZz9jmqDsDj/tbDiYLtlsDLS/kyd8FF8Ns+T5r8rH4k/IPH3Q== X-Received: by 2002:ac8:38d5:: with SMTP id g21-v6mr2136525qtc.288.1530718812291; Wed, 04 Jul 2018 08:40:12 -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.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 08:40:11 -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:18 -0300 Message-Id: <20180704153919.12432-8-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:c0d::236 Subject: [Qemu-devel] [PATCH 7/8] hw/pci-host: Remove useless parenthesis around DIV_ROUND_UP macro 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: "Michael S. Tsirkin" , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , 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/round.cocci \ --macro-file scripts/cocci-macro-file.h \ --dir . --in-place Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster --- hw/pci-host/piix.c | 2 +- hw/pci-host/q35.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 0e608347c1..317c0feca6 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -144,7 +144,7 @@ static void i440fx_update_memory_mappings(PCII440FXState *d) memory_region_transaction_begin(); for (i = 0; i < 13; i++) { pam_update(&d->pam_regions[i], i, - pd->config[I440FX_PAM + (DIV_ROUND_UP(i, 2))]); + pd->config[I440FX_PAM + DIV_ROUND_UP(i, 2)]); } memory_region_set_enabled(&d->smram_region, !(pd->config[I440FX_SMRAM] & SMRAM_D_OPEN)); diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index 02f9576588..b3a5b3036d 100644 --- a/hw/pci-host/q35.c +++ b/hw/pci-host/q35.c @@ -352,7 +352,7 @@ static void mch_update_pam(MCHPCIState *mch) memory_region_transaction_begin(); for (i = 0; i < 13; i++) { pam_update(&mch->pam_regions[i], i, - pd->config[MCH_HOST_BRIDGE_PAM0 + (DIV_ROUND_UP(i, 2))]); + pd->config[MCH_HOST_BRIDGE_PAM0 + DIV_ROUND_UP(i, 2)]); } memory_region_transaction_commit(); }