From patchwork Wed Jul 4 15:39:12 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: 939428 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="bfXC+Xi/"; 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 41LQDq2GKgz9s3q for ; Thu, 5 Jul 2018 01:40:43 +1000 (AEST) Received: from localhost ([::1]:47781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajtY-0006uc-Uy for incoming@patchwork.ozlabs.org; Wed, 04 Jul 2018 11:40:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajsr-0006tY-F6 for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:39:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fajsq-0003ZW-Jh for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:39:57 -0400 Received: from mail-qt0-x22f.google.com ([2607:f8b0:400d:c0d::22f]:34719) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fajsq-0003ZI-Ei; Wed, 04 Jul 2018 11:39:56 -0400 Received: by mail-qt0-x22f.google.com with SMTP id m13-v6so4846188qth.1; Wed, 04 Jul 2018 08:39:56 -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=+zCMD72cpcTSMKNyiZ1SYHoSgEYP6dAw0euCdGIWDTw=; b=bfXC+Xi/rnFTG66ZYtVOoGCF0KmffYLNS9Ho5PJOUdRScGjSFs+HzPnkjenVoyQ+Rj XcaGEhMcQJjnpsDiXIHqxuCqTYoXMpgIc3k39MgcRIVhFNGBodtu+nhp8HxwINQEuPjJ //4ZWmBK7Zx0bjEIkNkzolE+7ftUhHPERe4KDar+Oe9jTp5taJu4ELdfyzUrGkBHIHgO Ff3vEj8yVGGIOd+g6NcQGI7vsKuGcsv1iLyv9AEtIiw/MB8HIvWHO/PEws8M7wxjrM2P g6YbckWQvr36unPXuKpmY1yOXoKPDHPfj4GWfSWCwq4PWSOecAGjQPLI9NRmxlWSWPWw JvPg== 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=+zCMD72cpcTSMKNyiZ1SYHoSgEYP6dAw0euCdGIWDTw=; b=LHiHnpEHlHkiw2o3OP/91Q+SF39DHTOczHoFMEOAqvcQmkbarMDzABuFFdeDsoKZtT 424IsjS8Rg0jlwdP46eGyN/79xtb/aC22RXJgCgWuoWDZ6R/XtMiFj5ZhssdoXDdjCgq /lB/ZHusc6ItM8n9hBCXYXxNu3aarQZFv7JEHXIFj4DKy5y1z5eeucRAaEDvuc9uEXAj fVsNm/Qmch2ahH2HYWHT8G/F8tBP+vnBeULBwkc2kKfS2SVWFNkhd6dUuV1Qz5WWPMAH Cj2SEQmeP+vdwQWkl76GQFYqq42q/aSorkDKkUBOv5IbzQ6qu526+aiUJWpuZs1iYMA3 HTPA== X-Gm-Message-State: APt69E0CK/s8+aEacF1u+8BxF3fPkShIxgfLG4q17/2YZZKUDShp30v3 ltksFxWXr3oQmvRVr4yFcXk= X-Google-Smtp-Source: AAOMgpdNdxc8tC20uLUigolA7cwYbcf11vsT3/Fe8d5Nk0VDEbSIgNWwRBYXGJ5ZW887QDNNBFPqqA== X-Received: by 2002:ac8:17b3:: with SMTP id o48-v6mr2024712qtj.397.1530718795958; Wed, 04 Jul 2018 08:39:55 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id a127-v6sm2383795qkd.9.2018.07.04.08.39.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 08:39:55 -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:12 -0300 Message-Id: <20180704153919.12432-2-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::22f Subject: [Qemu-devel] [PATCH 1/8] 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_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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é Reviewed-by: Markus Armbruster --- 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 = qdict_clone_shallow(src); } - qdict_put(tmp, ent->key, qstring_from_str(s)); + qdict_put_str(tmp, ent->key, s); g_free(buf); } From patchwork Wed Jul 4 15:39:13 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: 939430 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="j4vmpF1p"; 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 41LQGX2Y9cz9s3q for ; Thu, 5 Jul 2018 01:42:12 +1000 (AEST) Received: from localhost ([::1]:47797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajuz-0008KE-TL for incoming@patchwork.ozlabs.org; Wed, 04 Jul 2018 11:42:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajsu-0006vZ-Uv for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fajsu-0003aw-6f for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:01 -0400 Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]:46419) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fajsu-0003ah-1O; Wed, 04 Jul 2018 11:40:00 -0400 Received: by mail-qt0-x232.google.com with SMTP id h5-v6so4825637qtm.13; Wed, 04 Jul 2018 08:39:59 -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=ylPcvR/NjzzRBVJQknlgheFBjJdprjTnq6GtpmLX79U=; b=j4vmpF1pntNbRF30nt43/+8+bbegpnLnD5FmCwTkQKs+FDJc+ykz06LB8seFZQZHBP nkqj/aUDMWURWPGHjpQjiBu7trRnyK3+//bsLTJHGCvLlGvleoAnL24XjDChvwBogVWJ 9fdMkizp8pVUuKg3wDjLbCWScKzjZ3WUIX/yWq2fQ2EtIc5D6ESEqKcABPYu/veR6fzZ xIY4HYpTwj9XFof4PYEut6qBBrurbPZsDWGtq/VJ4Nf/zRrlhkdLAHBcCDJt5+rkVFxU 27D5/x8wzxeFJRwLbpVa/uMA5YUg41Brnkox/PGSGjAQ2gT5VmBYF8Ygy4eMX9piu7mB NwSw== 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=ylPcvR/NjzzRBVJQknlgheFBjJdprjTnq6GtpmLX79U=; b=P+VrVGynfsn/suxqF85trdw4V/Zhg11AQV5rQ2q3OI/Kq6MeWkziWBuw+LOIjhXNDc SBnBmlRBJpBX5lKR6jpTI2D3wNRPU/lH4JymXDFPKeGGg2Va6YVifA83xJBb4m1HUVq8 yIbOXfp5tlplDf4Wh7c0IQKhOgWp+t1EOTXRVzwqsm4skwxcUvlPzEpBhlQyfzphOTQm WDSf2J+QeKWt3SkD9hWuQovrHPnyJBfdeU3TD8dytnYghTtwXuJ1G5wQsojFWTul8d5W zhjtS7qapffMC5rClpdxt2+1DVnXyW8vlq5BMNpK6nqJeaX4rpvo7rhgsgO5F66oUycF XDIQ== X-Gm-Message-State: APt69E1X1xJ883smXMmtqCQmnWsr/6E2qJuebcS5PrYJ7DDXALAQk6Qu 73nZTuggL75fk0KIaeCG7Ks= X-Google-Smtp-Source: AAOMgpfp3HsnlOSqe9lIles+I84T6MLlC0QmM25+3Mh1HOb1nTp+GBD2iCAS02WILczgTuBXKZfc4w== X-Received: by 2002:ac8:710f:: with SMTP id z15-v6mr2049389qto.387.1530718799468; Wed, 04 Jul 2018 08:39:59 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id a127-v6sm2383795qkd.9.2018.07.04.08.39.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 08:39:59 -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:13 -0300 Message-Id: <20180704153919.12432-3-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::232 Subject: [Qemu-devel] [PATCH 2/8] 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_Mathieu-Daud?= =?utf-8?b?w6k=?= , qemu-devel@nongnu.org, Christian Borntraeger , "open list:virtio-ccw" , Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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é Reviewed-by: Markus Armbruster Reviewed-by: David Hildenbrand --- 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 = VHOST_VSOCK_CCW(ccw_dev); DeviceState *vdev = DEVICE(&dev->vdev); - Error *err = NULL; 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); } static void vhost_vsock_ccw_class_init(ObjectClass *klass, void *data) From patchwork Wed Jul 4 15:39:14 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: 939429 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="YEtxj1ha"; 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 41LQDz5lggz9s3q for ; Thu, 5 Jul 2018 01:40:51 +1000 (AEST) Received: from localhost ([::1]:47786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajth-00072x-C5 for incoming@patchwork.ozlabs.org; Wed, 04 Jul 2018 11:40:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajsx-0006xf-D7 for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fajsw-0003bd-II for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:03 -0400 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:43578) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fajsw-0003bT-Dz for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:02 -0400 Received: by mail-qk0-x229.google.com with SMTP id z74-v6so3045774qkb.10 for ; Wed, 04 Jul 2018 08:40:02 -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=vurjGWMQJhDkmTBUHor0rxQug4MEJz5ygYgkXXBJFQs=; b=YEtxj1haWOX1gzyAzqyXWz/r1syeUEbXIXZLAVjdAH3tP58GySTjR6/7KgT4iseNO1 boHGwphGIM9xgx1zW7MZlxg8v9sP2uvbUwao741ry6Q/1HYNsB+bVp3wxT30bXhNyDMl Qxouchw7oP/iGNx3VX1nh+bt3G88HHROEEKiBtzjy+JBuGBCe+y40e7t7AHrj1VXNC/M 72KDeB2ueXP7lSS6I1FcffzhQ1A8UOqkEyLndAMv4D4WfYrrFcBcsW4hDBozKjWYQa10 F0uVPlFlYvcVr2f8QPjZsfDA4EJ78zcWHeKR/Py7lE/vD03Oxoi0ewuDxKXjzaQyNzmv AQIg== 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=vurjGWMQJhDkmTBUHor0rxQug4MEJz5ygYgkXXBJFQs=; b=TpJV7tI7vMu2TOQum0gWgMY13mNWh6OhOzhsrxJHCN0oThg+YdgmyVW/bsO0U2kROE rgJDN3LIXiGtKtWz7qHSWyzjfrRTk12K5alBvZv7qeA2bnmBOySyQmPWoKjTCJleYgdd WHlZlqknUDVD5DcvnIVBgYsPTlsQGWbowIJ8ujun7JIEPGpvxNElmSibs2pmByWEe8lk 0xz9kgFsTmEA5BmZLPcdW9NoF/qRyc29UFBZokCS6qNvjl2PqwaPUkSBvQuNvN8KZS7T hzKT6qjZ2Tac7ugoCmZe7WY4810/kRoMJjc50uCTD8UWjyq0a5PijRcBX1BuXCN9cXpV OheQ== X-Gm-Message-State: APt69E3XD2J+65MVOX9XMBvBtAEmkiTL7Ylekpz2jvrD0TseAMdpso2m LzXg2WwjnYJ9FNBOWFMkW68= X-Google-Smtp-Source: AAOMgpffY0Q5iEb4PUIyEMMSWkYiAPQ5bS7eL9dbyCalJxqeYS7krzgoV8OCBlRg5vTubXOGnXMy+A== X-Received: by 2002:a37:c0c:: with SMTP id 12-v6mr1977880qkm.59.1530718801920; Wed, 04 Jul 2018 08:40:01 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id a127-v6sm2383795qkd.9.2018.07.04.08.39.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 08:40:01 -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:14 -0300 Message-Id: <20180704153919.12432-4-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::229 Subject: [Qemu-devel] [PATCH 3/8] crypto: 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: =?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é --- crypto/cipher-builtin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/cipher-builtin.c b/crypto/cipher-builtin.c index d8c811fd33..7eff760f0a 100644 --- a/crypto/cipher-builtin.c +++ b/crypto/cipher-builtin.c @@ -133,7 +133,7 @@ static void qcrypto_cipher_aes_xts_encrypt(const void *ctx, { const QCryptoCipherBuiltinAESContext *aesctx = ctx; - qcrypto_cipher_aes_ecb_encrypt((AES_KEY *)&aesctx->enc, + qcrypto_cipher_aes_ecb_encrypt(&aesctx->enc, src, dst, length); } @@ -145,7 +145,7 @@ static void qcrypto_cipher_aes_xts_decrypt(const void *ctx, { const QCryptoCipherBuiltinAESContext *aesctx = ctx; - qcrypto_cipher_aes_ecb_decrypt((AES_KEY *)&aesctx->dec, + qcrypto_cipher_aes_ecb_decrypt(&aesctx->dec, src, dst, length); } 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; From patchwork Wed Jul 4 15:39:16 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: 939434 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="ZTgM7WPf"; 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 41LQMH2gjXz9s3q for ; Thu, 5 Jul 2018 01:46:19 +1000 (AEST) Received: from localhost ([::1]:47828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajyz-0003f4-1m for incoming@patchwork.ozlabs.org; Wed, 04 Jul 2018 11:46:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajt3-000741-6G for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fajt2-0003dr-AU for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:09 -0400 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:35199) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fajt2-0003dc-5z for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:08 -0400 Received: by mail-qk0-x242.google.com with SMTP id u21-v6so3054893qku.2 for ; Wed, 04 Jul 2018 08:40:08 -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=GdsOSbAHMFyV7wc0WtLvCiPtFHhRhO1I0OrYPY5G7sI=; b=ZTgM7WPfoL2Dp5BCy7b4EjphgzDPZiuI5bl5a0piZ80pTXik2zxw7LENi+rCEXTno6 xy6lXIDrl/BZbqgHGfdDOcP6E1cuTgPz/NrRH+6sERUKjm8GK3EwfA+labasgEpDYj+H Cv2UB18zBN+zB5hCVxyuD0+he414FNAZb/tYfa0XG4+g9h0poeGLRWOZt3BcE32eM6KQ 68xhVqR2A0Ci9StPTQyxlVidrl7p05Ej1QXWe6hHiTW06HbEZsx5wjCmoyI0mBnhugur OUwdVJcQlig0J8/ER+1PdOyykl1IhC4o6V/GlXCD9zWBdQVphQv5nNEapjW2GoCRYMrP Xzsg== 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=GdsOSbAHMFyV7wc0WtLvCiPtFHhRhO1I0OrYPY5G7sI=; b=eOgemt+pYISvHcXI3pD7F62r3WWHEkfF5w6Mm6/IVEdJ4TBz+gXZ2/NfqcuZ1HMl+u iIRqCGdoxEsHF4tA2jUyHlYqSNzBDkdvSs/XkmRh1Y0agUHQl4KyXgWtWQesO3mx+xTw OKSt1NmD4VaVzdqaujAAb6rIeP9QtgnECmiifTKgP+EcIQyibghfIuMmKeymsNf5INn9 dEgjXBgXQ/I4z7K73yCG5w5xHwc7IYTPabi6wgiVcrEBNqnPDUkKdmLU+eXjDA5QeBAe l8X+oPaxU+oEcurlIVYRR8IqP12z4FwXek+Afm/xfn0I0p2jekdrVkvMI5M2kkVZuKoJ d80Q== X-Gm-Message-State: APt69E0xLjbgRBgYifmJraK4IkqRkH3lxJwJrLYP11SFvDlWkJfmd/ht IlfRSg4FapSFv/L3WstHaGp1igRY X-Google-Smtp-Source: AAOMgpfCjgA1fifQf2THp40FfcQ6iIjhpuRsmzb4IH4nZiuQGoUbQGlh5Jx+yM0mWVwBx+AWUPJthw== X-Received: by 2002:a37:4951:: with SMTP id w78-v6mr1767969qka.2.1530718807662; Wed, 04 Jul 2018 08:40:07 -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.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 08:40:07 -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:16 -0300 Message-Id: <20180704153919.12432-6-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::242 Subject: [Qemu-devel] [PATCH 5/8] tests/bios-tables-test: 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: Igor Mammedov , "Michael S. Tsirkin" , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?b?ZMOp?= , 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 --- 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 = g_spawn_command_line_sync(command_line->str, &out, &out_err, NULL, &error); g_assert_no_error(error); if (ret) { - ret = g_file_get_contents(sdt->asl_file, (gchar **)&sdt->asl, + ret = g_file_get_contents(sdt->asl_file, &sdt->asl, &sdt->asl_len, &error); g_assert(ret); g_assert_no_error(error); From patchwork Wed Jul 4 15:39:17 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: 939436 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="W7F8jgmL"; 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 41LQPy2w0tz9s4r for ; Thu, 5 Jul 2018 01:48:38 +1000 (AEST) Received: from localhost ([::1]:47838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fak1E-0005Cm-1b for incoming@patchwork.ozlabs.org; Wed, 04 Jul 2018 11:48:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajt5-000788-Ah for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fajt4-0003fL-GN for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:11 -0400 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:37389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fajt4-0003fA-Bt for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:10 -0400 Received: by mail-qk0-x22e.google.com with SMTP id t79-v6so3050196qke.4 for ; Wed, 04 Jul 2018 08:40:10 -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=sE0uh+fKO33UKv+KjwSBY9p4oPbsIi5sQHbLi6daccE=; b=W7F8jgmLu0jQf+A2+voIbrFQ7fMZs1FHFhIxbs9BB+/JMeubCfeF8o3nICiBa8hXws 62Uj9sty9iTNK6NS+tCo0XEV8ukhzcuN1VUxphW4l//zBunPAcUaYkcIvutg+0PK5cqC BP9do7vHE5Y5rNL1RUJV6uoWuJciz02Shs/4ptgkDnlY07Co+1RFL1PMobmcRemxjfNb nVns6MMsLpxHNflOm0c59Vsc4EL5qCOaR1qVIJj1bMX+Ln37WzWCGk0oA/e+bKAsXAq7 5r/L7F2TdSb/TfK7I/BNzG094Dpue54Ao/UQ8mAamz2ZaTeFV/37Aw9+GaTNeYahZnjJ v0rw== 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=sE0uh+fKO33UKv+KjwSBY9p4oPbsIi5sQHbLi6daccE=; b=U+SmtG5s9KA2JgrzACLhc3HUxmc+A/ZxrEPF+JufpWKSeP5oOIyLqS/EJFZrEWwikQ tp8LmNtdnxKI9YAg6LgRc3Lr9clfFjU4Nb46w40y6DjC1CBOlWT+XZe7ftop1MNbdnHi yt0HRjIopY4gHimi4kd6piMftixTZZ67N20W07pDqj0nZliFTjCPRk5YKpBfFC0QK7yn wrVwIrqlc6/DxXEfqjVz/bLqeNn4zw4wVGRm/Cc7/fEniIhAcfeHezSlcvqDVshmpJoa UBbL0nRxjW6WEoZWxPHst8C32yfHP/HUmJEzK9Sesj7eQbP6plbzREPoDnUr17WZX/BU Kolw== X-Gm-Message-State: APt69E1O09ZyenXEP2AmmPVsAx8K1CsFhdkKsaOx26A0MF4iUMdPQDJ4 hXSudXkkMXm5uqlWhrUUsXJNItjY X-Google-Smtp-Source: AAOMgpfDp3+mWotcgGfeoM8N+h9xHzO7UnhTYRMX8s+/MJvrFAIz082qToVrnsV/9jUNdpBg+/P7pQ== X-Received: by 2002:a37:6b03:: with SMTP id g3-v6mr1975527qkc.21.1530718809859; Wed, 04 Jul 2018 08:40:09 -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.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 08:40:09 -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:17 -0300 Message-Id: <20180704153919.12432-7-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::22e Subject: [Qemu-devel] [PATCH 6/8] 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_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 --- 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 - bytes = (DIV_ROUND_UP(w, 8)) * h; + bytes = DIV_ROUND_UP(w, 8) * h; 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 = (uint8_t *)pixman_image_get_data(vd->guest.fb); guest_stride = pixman_image_get_stride(vd->guest.fb); - guest_ll = pixman_image_get_width(vd->guest.fb) * (DIV_ROUND_UP(guest_bpp, 8)); + guest_ll = pixman_image_get_width(vd->guest.fb) + * DIV_ROUND_UP(guest_bpp, 8); } line_bytes = MIN(server_stride, guest_ll); 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(); } From patchwork Wed Jul 4 15:39:19 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: 939433 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="l56KhyzB"; 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 41LQKj2Xp3z9s3q for ; Thu, 5 Jul 2018 01:44:57 +1000 (AEST) Received: from localhost ([::1]:47815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajxf-0002Oq-14 for incoming@patchwork.ozlabs.org; Wed, 04 Jul 2018 11:44:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajtA-0007E8-SG 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 1fajt9-0003hN-GN for qemu-devel@nongnu.org; Wed, 04 Jul 2018 11:40:16 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:44064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fajt9-0003hB-BB; Wed, 04 Jul 2018 11:40:15 -0400 Received: by mail-qt0-x242.google.com with SMTP id b15-v6so4823272qtp.11; Wed, 04 Jul 2018 08:40:15 -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=26JSOpBoM0W6GPdaJSowFjdVszTVrLCwHgqPj0tQn+s=; b=l56KhyzByu5Hg1bC1ToMuUgOQrS5O7AjNNvWsOXTCNzkKZ7eRyLt25Q49neLgahNVu 9iMDDFgldAA6WMC8onUWdhNGtGtl6Smvw13H4TLAkQA+TX8svx0Mvb60FUafHVBGFpxU 0Z+X+2BLdfgl2eBSHHI7WwOpasD/ZpeXh1x44h6HmVRnGdyYp8APR1YmK9VbwpO1m/kt 95J2iTPEjlkfU7HqXckX8+KmWX4RB8EiqJ2nBrSrOPx0Nmc/7F/hUI3MaAd/94Hha2RN eZOj5QIfRmc9Ify5nKcllZiaLnMc/CocXZ/LX1uHqJ467D3/b+L0opRWTz2eZTKrS41o zkIQ== 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=26JSOpBoM0W6GPdaJSowFjdVszTVrLCwHgqPj0tQn+s=; b=rX5fFxB3NFiQD1FqI1DfJlRGjd3jKIjsnE1pJuWntK/5SKTtX6AUqyoJiTZRHAjlr/ 3xPMJlLWDnQ2Z7TlJhkRLQcBgu5GrodsYusqnfkcTNLwt5cNxX6iHVS8cuzd/FcDM3r3 5EjKYE8PppaL3xK+x/HOqbcIv4v/8rJ30hlRC1/v0kzOtnqyo1448lru0Qos3xfHTnHh Oa7r9TB1t/VaQNdrX007GVuZIgX9aYxSEpvHkXAapzbQZUHq35oZLfNnj5lLMuNZcDVo CrI78+BFKv/YJkLP7HzY4zEOCx9H+yL6AUBG/1cPnvpjEFSZyxjrylG5+jqk2NTlUSDl amoQ== X-Gm-Message-State: APt69E2WUMKJ7rhTaBIEfsKZq6CJnkh+jTGaMCvw9N9AYxAvjeCTFL/t CDOgcZB9eN0+wv5LgXPkg64= X-Google-Smtp-Source: AAOMgpcsoY+gVzXF3JbOrOmADFPKbmkfnraJFOa306VwiVK7qrLQJoLa3z3u8SGia+dRyHuLFAateA== X-Received: by 2002:aed:3573:: with SMTP id b48-v6mr2130290qte.370.1530718814810; Wed, 04 Jul 2018 08:40:14 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 08:40:14 -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:19 -0300 Message-Id: <20180704153919.12432-9-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::242 Subject: [Qemu-devel] [PATCH 8/8] 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_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Philippe Mathieu-Daudé --- 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) #define GIC_DECLARE_BITMAP(name) \ uint32_t name[GICV3_BMP_SIZE]