From nobody Tue Nov 4 21:33:04 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1530719292798137.7421181708769; Wed, 4 Jul 2018 08:48:12 -0700 (PDT) Received: from localhost ([::1]:47836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fak0q-000569-1L for importer@patchew.org; Wed, 04 Jul 2018 11:48:12 -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) 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) 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) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Laurent Vivier , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 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=C3=A9 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(PCII440FXStat= e *d) memory_region_transaction_begin(); for (i =3D 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 =3D 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(); } --=20 2.18.0