From nobody Fri Dec 19 06:32:31 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 1530806772583777.2198076088495; Thu, 5 Jul 2018 09:06:12 -0700 (PDT) Received: from localhost ([::1]:53474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6ln-0001cF-KR for importer@patchew.org; Thu, 05 Jul 2018 12:06:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6eM-0004KI-4X for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6eL-00053P-9g for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:30 -0400 Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]:35281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb6eI-00051s-KB; Thu, 05 Jul 2018 11:58:26 -0400 Received: by mail-qt0-x22d.google.com with SMTP id z6-v6so7513628qti.2; Thu, 05 Jul 2018 08:58:26 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id k66-v6sm4049403qkc.86.2018.07.05.08.58.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 08:58:25 -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=00SURX0XKAYYhsSYBH6d77B3Khg8QXH5uebFrf+PcyU=; b=RNoUBaUCQLG7kKrKdBORCc1HZKuHuGaNxj2ndLsKnhqNx6gUXf7S46B+G5k5CCyYxW QvhfiUHgP3LEaaZgY8a7FHBIpd9pHZ1/nZ41hVCh+hnVQi9X1p2DEYjCbBZATvgd+w5z XIrEyCRjWrr7rPXQRXNuReaRHHWuQ4WsGxFm7MLOvkW1M4rW3b68si1D1uPszWTemtk+ kBuxZ3zUiI5Ui5OaKz704Ujku5pwFxL88tq63h9PxIqVNgP6f1xKRb7mom5/z/Nj9Z1F rDijnrlhfMkjromMMRZoeiS86CpaGmcwOfF1Sa0QfYDX2SfR8H/RNddB58YDkgXL7UQP s9lg== 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=00SURX0XKAYYhsSYBH6d77B3Khg8QXH5uebFrf+PcyU=; b=UBeakNbtGkJ8wu+ch+nrnuSqqMtZ4Y1+H/zysmpxy8XeUMQi4wjU4xguIOwtCcmCa7 6ZkG9KQm4zwLcSdLyHDDBMcTugqTlt/i1cTg3Oyu794VHoOIPQecclKUpEmNJzbhR3H7 DF8sU9BPWRo4yAj2HqCYCvmx0/VgEmK+ZyUou5xoFR0e2wC6nMd8kg/6B8j9TVaHbaf2 3F/7B3P4ZgRutQAB+iZY9dyVIShDDtodfAQ26u4kcFXQZqq6/ACWvmyumOaN3XrfRq5g Wk+KRbBXtkEld7qiZ09ArkKmst5CclCW/t0bCGgnyEqEd3Sa+oO42pzu3FRcZ4RDQcvo 6/+A== X-Gm-Message-State: APt69E0nS7IBH065RFH5kgIKGujWKvRsnegfEv0UWy4SxtFcEMOnpWpX VyCuGrd2c3niAipLlRrgVqpkqnwP X-Google-Smtp-Source: AAOMgpdsybTkIhwGa9G3PFQy7fxVoE+/mbUBNvNqzeqgynLDyxSXbpM7EldkmtnFNHUz5EwhuO2bww== X-Received: by 2002:ac8:322:: with SMTP id q34-v6mr5979294qtg.342.1530806305847; Thu, 05 Jul 2018 08:58:25 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org Date: Thu, 5 Jul 2018 12:58:05 -0300 Message-Id: <20180705155811.20366-2-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180705155811.20366-1-f4bug@amsat.org> References: <20180705155811.20366-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::22d Subject: [Qemu-devel] [PATCH v2 1/7] qobject: Catch another straggler for use of qdict_put_str() 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: Kevin Wolf , "open list:Block layer core" , qemu-devel@nongnu.org, Markus Armbruster , Max Reitz , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= 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/qobject.cocci \ --macro-file scripts/cocci-macro-file.h \ --dir . --in-place Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Markus Armbruster Acked-by: Michael S. Tsirkin --- qobject/block-qdict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qobject/block-qdict.c b/qobject/block-qdict.c index 80c653013f..ae363708ab 100644 --- a/qobject/block-qdict.c +++ b/qobject/block-qdict.c @@ -572,7 +572,7 @@ static QObject *qdict_crumple_for_keyval_qiv(QDict *src= , Error **errp) if (!tmp) { tmp =3D qdict_clone_shallow(src); } - qdict_put(tmp, ent->key, qstring_from_str(s)); + qdict_put_str(tmp, ent->key, s); g_free(buf); } =20 --=20 2.18.0 From nobody Fri Dec 19 06:32:31 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 153080646958390.9574472656933; Thu, 5 Jul 2018 09:01:09 -0700 (PDT) Received: from localhost ([::1]:53424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6gu-00062P-MY for importer@patchew.org; Thu, 05 Jul 2018 12:01:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6eP-0004N0-LA for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6eO-000558-TU for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:33 -0400 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:36002) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb6eM-00053q-AK; Thu, 05 Jul 2018 11:58:30 -0400 Received: by mail-qk0-x22c.google.com with SMTP id a132-v6so4735451qkg.3; Thu, 05 Jul 2018 08:58:30 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id k66-v6sm4049403qkc.86.2018.07.05.08.58.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 08:58:28 -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=mTEgAavugFFaJ/KhTLXhJrZDg0FNd1Qm8UYWTyNoG0s=; b=QonmLs0TshlGqjt82zKcSOLGoXfmslPASagPazD8+dSJi9CGB79hIe2iUp4XUCusLw PdjYhVxhpxkqf8ho9IjfVp3z/fgXvGbemBH3CGOOMUsdofYIEl5QhDSc9zvsbryPLbpO z4w78OJUUpeorSM0taSG8+SRWa7VSSyLgMdn9QC9HB5CGG7oofClUfWzOC/uKeXO1EU/ gbgAQmLeaOwQXpKeg/naP7mrYQy5cceatzHaRLEADuSsEYbGCqdXhLR2F1QCjqyxwqiN CCcI1BcW8oKqJoepTHRJYuo6tW5NK4MEOHEDOOSlnUQTV8CSXBcD04A9dA6aBA+xcfHB YZjw== 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=mTEgAavugFFaJ/KhTLXhJrZDg0FNd1Qm8UYWTyNoG0s=; b=QrRHu0ueJJpLzbOPs4IZVOnUwfPL0zI0cSzmmD9CExEWpEid/QWBpDGMwwbyPX7/7O dHqdU5qqvpyVrsTVgm7NCn2V1es5kQskFMOZhJRWlysA8V4HPdxImf3GapePRePyEW4z a8x2zX5YXlrHjgkay38RNcTQGsARmSg9CZvX6LQ25ThWOo35GLI685h0q4Mj4hlIxcPX IlB+h5kp5Lnqi8KtlxsdjcyZTo6/W4QE48SSHQPRMdID+z/GE7iGEUBVNSYULvrpg8Rm RjHlw7YFWYla3mjQ4xkvXUsOvqYpdWOn0AxE57UibNPmle22Z8Va0MDveHAQB4GdCSGe 5K4w== X-Gm-Message-State: APt69E3l5cgHv0J8Ix3+W2qeWAvpKNo/Uiif+a3zHg1awZJsdQaK4v8J 3O3Aq3tvB80Q1L9O+vIM4P2eJG/I X-Google-Smtp-Source: AAOMgpd6rmrWQaMeIIxiZ4pKJXWMTbSPZhHwqoVfSedFTskIUl3fVMxSOFZMZhR459Xb/9oJFRvMOw== X-Received: by 2002:a37:2ac7:: with SMTP id q68-v6mr5634870qkq.374.1530806309544; Thu, 05 Jul 2018 08:58:29 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org Date: Thu, 5 Jul 2018 12:58:06 -0300 Message-Id: <20180705155811.20366-3-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180705155811.20366-1-f4bug@amsat.org> References: <20180705155811.20366-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:c09::22c Subject: [Qemu-devel] [PATCH v2 2/7] error: Remove NULL checks on error_propagate() calls 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: Alexander Graf , "Michael S. Tsirkin" , Cornelia Huck , David Hildenbrand , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, Christian Borntraeger , "open list:virtio-ccw" , Richard Henderson 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/error_propagate_null.cocci \ --macro-file scripts/cocci-macro-file.h \ --dir . --in-place Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Markus Armbruster Reviewed-by: David Hildenbrand Acked-by: Michael S. Tsirkin Reviewed-by: Cornelia Huck --- hw/s390x/virtio-ccw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index b92a85d0b0..7ddb378d52 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -1836,11 +1836,9 @@ static void vhost_vsock_ccw_realize(VirtioCcwDevice = *ccw_dev, Error **errp) { VHostVSockCCWState *dev =3D VHOST_VSOCK_CCW(ccw_dev); DeviceState *vdev =3D DEVICE(&dev->vdev); - Error *err =3D NULL; =20 qdev_set_parent_bus(vdev, BUS(&ccw_dev->bus)); - object_property_set_bool(OBJECT(vdev), true, "realized", &err); - error_propagate(errp, err); + object_property_set_bool(OBJECT(vdev), true, "realized", errp); } =20 static void vhost_vsock_ccw_class_init(ObjectClass *klass, void *data) --=20 2.18.0 From nobody Fri Dec 19 06:32:31 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 1530806675252521.3294033426973; Thu, 5 Jul 2018 09:04:35 -0700 (PDT) Received: from localhost ([::1]:53449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6kE-00009m-AY for importer@patchew.org; Thu, 05 Jul 2018 12:04:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6eU-0004Rz-El for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6eT-00057R-FJ for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:38 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:46857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb6eO-000551-W1; Thu, 05 Jul 2018 11:58:33 -0400 Received: by mail-qt0-x242.google.com with SMTP id h5-v6so7495259qtm.13; Thu, 05 Jul 2018 08:58:32 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id k66-v6sm4049403qkc.86.2018.07.05.08.58.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 08:58:31 -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=H03p4Tf4TqrUAQvbNZhv9R3wgc4aoBhieQxGlIlZdp0=; b=Zd1a9b2lzHjBC3JptLmQ7ejZd92lVpQpsCGH9wYQ8uSG1AcBrCXVbA1svaBn/mX/rF 3dUZAcEzjTXsyEsMO1swr4qJL1nfxV3mNttHSzxjTZk2hCB9MDQdMr4ISzMuidHQdgjx +1GwwtwYUJ6OkujPbsAgAn5Tbx3hthmJCCL7SrwnkNCjgkum5QqKb531A83/3BaH2ApX /pNQXQHsMlfhvcgbdvHG5xW+RteYXsbC7hGhPz9zFn8rTTqFONKJ+bQ9D8LkiT6qbatx JVL2WabzOD6qxPzBpjk8JOl2u9PpHm2DZ2zabaQ4wgE8AbJpcjX3u9lu/O3nNcrWbsWz vTeQ== 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=H03p4Tf4TqrUAQvbNZhv9R3wgc4aoBhieQxGlIlZdp0=; b=YvAWwJyGlbQZVRRrGqaaznwRbb9KVLUe/BcjTK81ICBubFierX9iJi2EQczF6m2Aep q4HuECYjK6k3GDIsN8CRdVp1u1xmrCm4KdLtvbMEE9hTOY8Rx2xLOfqQ24pwp6KG7YhB plWNGID+qX0InAZ+ReggwId8NuUK4wwr3kvEUMyowo0QZ3Vlih2TwZQiDFFls+kcI/lo TjuQy8DjosbjmznuodpS6ZSEWzMIKQ15CeNvIgcI2EmC632xrKFbCJnzUelp+/l2pWNQ 3xkuS9+nEWtRp1K4TtRVlo5aV/FBa5AsBPkqdyooBH+MibAp58wzEZPL1tVFUSPUz6+F Uhlg== X-Gm-Message-State: APt69E2p1X1pOoq0HxYIBpgF9+0BYP8+LlIS0MCPgxSVqkLL4P0/lp0a 69NoyDW2amDzGuaxQI08HopUH4KT X-Google-Smtp-Source: AAOMgpcwxKc4NT8U6TZpUxEewTdX/wU0EDG1MBR7h+ocVs/+1qLBz/dq5p5p5ZzL9VtoV1Xgx7CiyQ== X-Received: by 2002:a0c:f20b:: with SMTP id h11-v6mr5684236qvk.190.1530806312238; Thu, 05 Jul 2018 08:58:32 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org Date: Thu, 5 Jul 2018 12:58:07 -0300 Message-Id: <20180705155811.20366-4-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180705155811.20366-1-f4bug@amsat.org> References: <20180705155811.20366-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::242 Subject: [Qemu-devel] [PATCH v2 3/7] xen: Use the PCI_DEVICE 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: Anthony Perard , "open list:X86" , Stefano Stabellini , =?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 TYPE_XEN_PT_DEVICE is a subclass of TYPE_PCI_DEVICE, the clean way to access the PCIDevice pointer is using the PCI_DEVICE() macro. Suggested-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Markus Armbruster Acked-by: Anthony PERARD Acked-by: Michael S. Tsirkin --- hw/xen/xen_pt_config_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xen/xen_pt_config_init.c b/hw/xen/xen_pt_config_init.c index aee31c62bb..47f9010c75 100644 --- a/hw/xen/xen_pt_config_init.c +++ b/hw/xen/xen_pt_config_init.c @@ -358,7 +358,7 @@ static uint64_t xen_pt_get_bar_size(PCIIORegion *r) static XenPTBarFlag xen_pt_bar_reg_parse(XenPCIPassthroughState *s, int index) { - PCIDevice *d =3D &s->dev; + PCIDevice *d =3D PCI_DEVICE(s); XenPTRegion *region =3D NULL; PCIIORegion *r; =20 @@ -469,7 +469,7 @@ static int xen_pt_bar_reg_write(XenPCIPassthroughState = *s, XenPTReg *cfg_entry, { XenPTRegInfo *reg =3D cfg_entry->reg; XenPTRegion *base =3D NULL; - PCIDevice *d =3D &s->dev; + PCIDevice *d =3D PCI_DEVICE(s); const PCIIORegion *r; uint32_t writable_mask =3D 0; uint32_t bar_emu_mask =3D 0; @@ -543,7 +543,7 @@ static int xen_pt_exp_rom_bar_reg_write(XenPCIPassthrou= ghState *s, { XenPTRegInfo *reg =3D cfg_entry->reg; XenPTRegion *base =3D NULL; - PCIDevice *d =3D (PCIDevice *)&s->dev; + PCIDevice *d =3D PCI_DEVICE(s); uint32_t writable_mask =3D 0; uint32_t throughable_mask =3D get_throughable_mask(s, reg, valid_mask); pcibus_t r_size =3D 0; @@ -1587,7 +1587,7 @@ static int xen_pt_pcie_size_init(XenPCIPassthroughSta= te *s, const XenPTRegGroupInfo *grp_reg, uint32_t base_offset, uint8_t *size) { - PCIDevice *d =3D &s->dev; + PCIDevice *d =3D PCI_DEVICE(s); uint8_t version =3D get_capability_version(s, base_offset); uint8_t type =3D get_device_type(s, base_offset); uint8_t pcie_size =3D 0; --=20 2.18.0 From nobody Fri Dec 19 06:32:31 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 153080658575111.851828043117393; Thu, 5 Jul 2018 09:03:05 -0700 (PDT) Received: from localhost ([::1]:53440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6im-0007Sj-Un for importer@patchew.org; Thu, 05 Jul 2018 12:03:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6eU-0004S0-F9 for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6eT-00057Z-L8 for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:38 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:38812) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb6eR-00056A-H3; Thu, 05 Jul 2018 11:58:35 -0400 Received: by mail-qk0-x243.google.com with SMTP id y4-v6so4736058qka.5; Thu, 05 Jul 2018 08:58:35 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id k66-v6sm4049403qkc.86.2018.07.05.08.58.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 08:58:34 -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=Vyd9xd4yjHQkxOMLpxcd7OUXKly3wfT11X6sCU5zf0g=; b=swLI27bCFmSb6N1jPvcaLvJPEKIkgHFDMViqoJmsOUUVXvfAQi1HnvLMIq/BDdtRe2 ItLXLjQb0Dyw7uME7Swbf0TEZlzRVe+P0hSs3Vnc8nrKFv32OTrAQV1VHea4vnsBpF13 h/zehrWW8QmFFsR9IU0tINjpyW4ZJGnmhQhOKHsheaudb3A/khS80z64L2u45Dvxmi36 ZnF9nCFJXovBM335mSwP485O+Rr+HKLhO02CSnw3HFhOVPlP5pRY82rWQZ9oLmNlPPFo q7nKeJjqntoaLfVjvyZxjSX8E16H8hCoW14x8TOg3hjhw+5GaRmnGk0crODhUn6GEnUC 9C8Q== 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=Vyd9xd4yjHQkxOMLpxcd7OUXKly3wfT11X6sCU5zf0g=; b=l3lUON0tz8HKX1W0Sx4O3dPoZrBLMz+rrhj+sWPPbmeME8SvZfswxxn7pNYi73wO45 AX0BaO0/QJ9Xz19eQ351yfIazKiGsYZerLjTsK18l6Ad6XNmjA0Xmxsz4THvHw1MXS+v SJO8G4+YFZ9eTtjHTUgwaAoReVT5z2gwIOBFoB6Qm+IJzQGU0U5Eus2Jxq6cdTIZjXmB tWZlQvdltG4sPWOJDukTcHJ4aqUFczfWkOvlUHWsgmN94dePy6eYeU1hZ1W+GWaSDyt6 e79n7YtYKBPN+K9oCv13HLqDrRgfo7aV8h/h9F7AjoHN5tr8Mi+d4f+8wDnz6gM2MRgn Z8yg== X-Gm-Message-State: APt69E2SWgfzz+qq9EeQlMM+BPGqYCEJZSe+DTmgH6Z/dGh6aloibQcF Z4jfcJVklFSB5HM5wiK/s/Mw8mRa X-Google-Smtp-Source: AAOMgpfDGJNwjHseBg8Mf+GSlTAD+V4w8hKhrxBf0KS6CQDG2XAWRKHIOU2B8G4wjcqt27dZQPTr5w== X-Received: by 2002:a37:d683:: with SMTP id p3-v6mr5704160qkl.424.1530806314804; Thu, 05 Jul 2018 08:58:34 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org Date: Thu, 5 Jul 2018 12:58:08 -0300 Message-Id: <20180705155811.20366-5-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180705155811.20366-1-f4bug@amsat.org> References: <20180705155811.20366-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:c09::243 Subject: [Qemu-devel] [PATCH v2 4/7] tests/bios-tables-test: Remove an useless cast 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: Igor Mammedov , "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/typecast.cocci \ --macro-file scripts/cocci-macro-file.h \ --dir . --in-place Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Markus Armbruster Acked-by: Michael S. Tsirkin --- tests/bios-tables-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index 4e24930c4b..c1ad1b3470 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -319,7 +319,7 @@ static bool load_asl(GArray *sdts, AcpiSdtTable *sdt) ret =3D g_spawn_command_line_sync(command_line->str, &out, &out_err, N= ULL, &error); g_assert_no_error(error); if (ret) { - ret =3D g_file_get_contents(sdt->asl_file, (gchar **)&sdt->asl, + ret =3D g_file_get_contents(sdt->asl_file, &sdt->asl, &sdt->asl_len, &error); g_assert(ret); g_assert_no_error(error); --=20 2.18.0 From nobody Fri Dec 19 06:32:31 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 153080686071697.65566654780457; Thu, 5 Jul 2018 09:07:40 -0700 (PDT) Received: from localhost ([::1]:53481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6nD-0002k0-VQ for importer@patchew.org; Thu, 05 Jul 2018 12:07:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6eX-0004VS-4w for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6eW-00059I-7v for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:41 -0400 Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:41967) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb6eT-00057X-Qu; Thu, 05 Jul 2018 11:58:37 -0400 Received: by mail-qk0-x22a.google.com with SMTP id d22-v6so4726080qkc.8; Thu, 05 Jul 2018 08:58:37 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id k66-v6sm4049403qkc.86.2018.07.05.08.58.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 08:58:36 -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=7jk0p4Rd3k4Rl38xTVYEubeLyAEXH/6lD0K5gtczN1k=; b=TQd4NmSVee9J6sYVVleRoHmvqW+mvXL6hIgqlC8bxK20fOTVgKpJuRJMDA5xbspSd4 icm8V0X1ahZREGFkGJVuJbpbnWPy6Q7omVOZZNEGXmAYqAyoJrU6iMJVFhPFxvAzjvz+ vfHdhhz8fKi9cj2DyF9hL5U4aw7sfcYEe/IL0/ZeBgNAkoMP8ALaAR3PlRAZSGG6NO5u IAv+lnfZUWxfqhv5my58ls6EDKx80PzX+qPLT2qT3R9ZhZzXvcmGLmSe9Ddyn73iPiEU vvOC9FaEfqqgitlEEk/aC58DtVxxUy7IUrFT9wnFNC7H6CapDmZ4XfyMdqXpJjIkmtir VYDg== 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=7jk0p4Rd3k4Rl38xTVYEubeLyAEXH/6lD0K5gtczN1k=; b=lgBiX6DGZBUL/lnF4H+8resudn2UJJwJ4Du4DENXSW+iaymgh3Tg8QBZReGlaebWie UCupGFGV5VtUNbqaRO4xIQHsPB2EXQgNVt5wb6oViv0BbP2N6LeNH0YngL7NCEufb5w5 2LoXezM1kA5nx5n6ZiO0S1iiwB2jRHvuNBKJqnfB12zgSb35A52PU5o0lli3F+7q3rzL NO9IWxvTeq5IuY2YTiv6sBZByltr2bj8+wwUNB530bWnt7TCn12QSke/SoQY/MHbS1S2 +lDzM4u+InWFEE59+hFi040/dD8SutXVLnfUuWIabYhtgeUfuEjZcZAhX7iFXAgnWGtG lZwg== X-Gm-Message-State: APt69E1oSxqDnjDvHX2cA+NyZ97kzGStqTQK2RwJdKnk9sVkG4XBI6Px XNIn4r0d49JfRg6RgwkRGh5A4XTa X-Google-Smtp-Source: AAOMgpf5cPkhlzFGQkiIoZm6nP/whZVtyBkMh6BeHCZaudgjAj08tlp60fqQ7FSpwgsGoeBj95ZpiQ== X-Received: by 2002:a37:b507:: with SMTP id e7-v6mr5583091qkf.31.1530806317121; Thu, 05 Jul 2018 08:58:37 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org Date: Thu, 5 Jul 2018 12:58:09 -0300 Message-Id: <20180705155811.20366-6-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180705155811.20366-1-f4bug@amsat.org> References: <20180705155811.20366-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:c09::22a Subject: [Qemu-devel] [PATCH v2 5/7] ui/vnc: 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: Gerd Hoffmann , =?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 Acked-by: Michael S. Tsirkin --- ui/vnc-enc-tight.c | 2 +- ui/vnc.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index f38aceb4da..0b4a5ac71f 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -979,7 +979,7 @@ static int send_mono_rect(VncState *vs, int x, int y, } #endif =20 - bytes =3D (DIV_ROUND_UP(w, 8)) * h; + bytes =3D DIV_ROUND_UP(w, 8) * h; =20 vnc_write_u8(vs, (stream | VNC_TIGHT_EXPLICIT_FILTER) << 4); vnc_write_u8(vs, VNC_TIGHT_FILTER_PALETTE); diff --git a/ui/vnc.c b/ui/vnc.c index 359693238b..3361432a51 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -2967,7 +2967,8 @@ static int vnc_refresh_server_surface(VncDisplay *vd) PIXMAN_FORMAT_BPP(pixman_image_get_format(vd->guest.fb)); guest_row0 =3D (uint8_t *)pixman_image_get_data(vd->guest.fb); guest_stride =3D pixman_image_get_stride(vd->guest.fb); - guest_ll =3D pixman_image_get_width(vd->guest.fb) * (DIV_ROUND_UP(= guest_bpp, 8)); + guest_ll =3D pixman_image_get_width(vd->guest.fb) + * DIV_ROUND_UP(guest_bpp, 8); } line_bytes =3D MIN(server_stride, guest_ll); =20 --=20 2.18.0 From nobody Fri Dec 19 06:32:31 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 1530806500700242.29449600727537; Thu, 5 Jul 2018 09:01:40 -0700 (PDT) Received: from localhost ([::1]:53433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6hP-0006Pu-Sw for importer@patchew.org; Thu, 05 Jul 2018 12:01:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6eb-0004Zh-JW for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6eY-0005AM-I8 for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:45 -0400 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:37154) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb6eW-000597-7H; Thu, 05 Jul 2018 11:58:40 -0400 Received: by mail-qt0-x244.google.com with SMTP id a18-v6so7513421qtj.4; Thu, 05 Jul 2018 08:58:39 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id k66-v6sm4049403qkc.86.2018.07.05.08.58.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 08:58:38 -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=yGtY8l/t2pCEmtTAH5145GE5iSKPEhTwEwNv0TUoqRs=; b=kQgZ/wVNq77VeXy1xKnIoTvdgew1KkhIZYyWnyQX6AKDwIuqRa4BFw7jSluFfFKoPJ m03/Bbap0jH40fIE9ytnJYkQjkCKxaeAXxJ/nYmEU2foIpszm+RFYzvgonP78UNTb099 rOOy75Msk1seMMijJGaiAaWRF+r5v5VujiIV5N+lUwy8tl2LdWwM8F6d3BWgPnfXMk7B dF7xyXdIT55InATWKWwayfbppXMvnA9E7IpFDjCra4U2rY/g+VmqBxO0qcd4zwGTxJzI ef2mvadnPo26kgQVbq3pGeQmECSrnv9dCYWjqMV6UERXW610FV69tGB0RU9oQzxbb6Wt AAkg== 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=yGtY8l/t2pCEmtTAH5145GE5iSKPEhTwEwNv0TUoqRs=; b=KFTm2tZ3ivJP8ra7BjdWER4pdH9tjjKxvyivetkTfmDHC5gU0gy+oAcDKvcmv8aIoP wji5OjjJhqykyoi+az008ZcgNv7VMk2d976G1bM38vs33w5L7ZEKz3GWSkxNNOOYmX0n jW4F09NOAdOVyAWE8nrAlYSc5ZoILSpvl4chy73boH06tuUgVK3UoMfqJhv2F+2TWTw9 5znvzmNK+Bkm/0VgdF8SrACmG0pHTmWIFHqg/HWC3LwYUI35P4/2fvykrmRy61p5T3c0 URxzkvcMJIYno/yJStwR7lQpnFjvs2myBX5H+2wUNKPWOkRi+RRWK3gMyVzI5wlnCi1W YbRw== X-Gm-Message-State: APt69E1pZNBjrdklw0CKsrXLGuNjtzSXrNaeJfyneHiGSty1gH3iHokr uCiORf2uSmdIjYaIwIC8HnnUpJul X-Google-Smtp-Source: AAOMgpcITqE9mQOx8Hp3j3lxTs+idodPj95Cz+4+Ol0YSU1pbporjtV3FGh6K7eElyLFcOooHS77mQ== X-Received: by 2002:aed:3a24:: with SMTP id n33-v6mr6011131qte.348.1530806319391; Thu, 05 Jul 2018 08:58:39 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org Date: Thu, 5 Jul 2018 12:58:10 -0300 Message-Id: <20180705155811.20366-7-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180705155811.20366-1-f4bug@amsat.org> References: <20180705155811.20366-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::244 Subject: [Qemu-devel] [PATCH v2 6/7] 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 Acked-by: Michael S. Tsirkin --- 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 From nobody Fri Dec 19 06:32:31 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 1530807099017409.7026665330927; Thu, 5 Jul 2018 09:11:39 -0700 (PDT) Received: from localhost ([::1]:53539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6r1-0006IJ-4j for importer@patchew.org; Thu, 05 Jul 2018 12:11:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6ed-0004bN-It for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6ec-0005CF-R7 for qemu-devel@nongnu.org; Thu, 05 Jul 2018 11:58:47 -0400 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:41713) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb6eY-0005AS-US; Thu, 05 Jul 2018 11:58:43 -0400 Received: by mail-qt0-x229.google.com with SMTP id y20-v6so7514318qto.8; Thu, 05 Jul 2018 08:58:42 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id k66-v6sm4049403qkc.86.2018.07.05.08.58.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 08:58:41 -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=nliH/EX0aglHIk/Fm4qYSToW9q6u0Iktv2X5oO8SSFQ=; b=D9L8FTvZ2/QbSUCGO28QkTtKKOaHqh5CzBCj5kOL5canY+mWLqaDX/1RBwMKmSUPSa Y/5vRLaqmrnxsZX1oJN8dMn6AgXU/Oox1R+6JibzR65V0ka68ls/UOi7lw4pbGOGsRoQ wMtRvkehsQyW9tHh11oaE17GKnt6lZxbxOO3J5yCwHg92ZllLjpVdqUohIkpG2IrpnOk hFHj3c15HSpoZCE+1oywlqsGoT+i7bqopiyNeFK3HFjEHDqXKQ1jSy6R4B8rJld+M4OH DPIJwc26fwfFpJC2pObk/CbMce4Md+unFbCO+KllJTPYRIiKOaRPqmkKT5k9OZyRD+x7 K7bA== 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=nliH/EX0aglHIk/Fm4qYSToW9q6u0Iktv2X5oO8SSFQ=; b=MJhhfeX/OOPF8CLkkg7Hy3+q6Z0tGxFLA2qdR4PL2e8VKjSKA86Et1/KPEzNY3FKiU zg7Nk20lHUhv4tg2tCPQLn66X/ajekNq286nZdxOWdadzQnCVPB/UosYZzvt+GTqSihn o6pizavARCwD/pQKyfEk8IdU7H1e+M3fPZ0NjlCFJTPJKyv5wx7p/5yAue9S7VLFqyyU FJgWhgONj8vII3/KsZpjsIT/0FvFvO0ZxquK9UrpVbNavFMP6l00/mpY7JJlz9iQ6sgy VThdjHhTzz1OwTX+ZNnPmxmpXYHFGRvWXUiCrSv4WXNDU0pxMITHSq46KK72NaWH3sdx UEGQ== X-Gm-Message-State: APt69E2x1QAC83WLPHBRbOGerdcARdBvQXkVIz1W+KwVjOp2pq3YDBot yfMxFrD6B/LQW2V/jHto/6+uZ9/R X-Google-Smtp-Source: AAOMgpcIpgwMhuHk9OU/0ErLO218h/eNHe0PwhrHOHOvNMu4bw5B0q2H9xrr5G3CjujAhij3yYYwgw== X-Received: by 2002:ac8:3274:: with SMTP id y49-v6mr5837266qta.194.1530806322099; Thu, 05 Jul 2018 08:58:42 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org Date: Thu, 5 Jul 2018 12:58:11 -0300 Message-Id: <20180705155811.20366-8-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180705155811.20366-1-f4bug@amsat.org> References: <20180705155811.20366-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::229 Subject: [Qemu-devel] [PATCH v2 7/7] hw/intc/gicv3: 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: Peter Maydell , "open list:ARM cores" , =?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 Acked-by: Michael S. Tsirkin --- include/hw/intc/arm_gicv3_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/intc/arm_gicv3_common.h b/include/hw/intc/arm_gicv3= _common.h index b798486ecf..31ec9a1ae4 100644 --- a/include/hw/intc/arm_gicv3_common.h +++ b/include/hw/intc/arm_gicv3_common.h @@ -62,7 +62,7 @@ * avoids bugs where we forget to subtract GIC_INTERNAL from an * interrupt number. */ -#define GICV3_BMP_SIZE (DIV_ROUND_UP(GICV3_MAXIRQ, 32)) +#define GICV3_BMP_SIZE DIV_ROUND_UP(GICV3_MAXIRQ, 32) =20 #define GIC_DECLARE_BITMAP(name) \ uint32_t name[GICV3_BMP_SIZE] --=20 2.18.0