From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a17:907:8744:b0:9bd:85f7:2662 with SMTP id qo4csp3948634ejc; Tue, 17 Oct 2023 07:10:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhcULRpD2sG1dww0peEk7h/v8OaMAE54fRWS7WP/LzSp8hvXd6eMEDKUkRYB1ZF01U9d4D X-Received: by 2002:adf:e8c6:0:b0:32d:9d6b:ac99 with SMTP id k6-20020adfe8c6000000b0032d9d6bac99mr2277483wrn.31.1697551838452; Tue, 17 Oct 2023 07:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697551838; cv=none; d=google.com; s=arc-20160816; b=N6fjsLl+9ISI1CkVsFPEKCZSXLPkF+GRxp8zi3WcZDZBCxkz8pnHyBHNnckr2UVISm vckqKPiUc1nTMKxvYpVzAEURvZ0BRHMz0XJR/+1Rx3yQA2Jm6qmMvGlssg1OHuQfNFob NXhFu4wJGmhdzv3H/yPtpf1X/kTm0txTA0upKn/QIyTvCsgsPOm5a1L3zY/SxxSHj06H UZ9ux/fe6cOlb1jz25hYkGFZvg827kEV7d7oDsSFFxPz6mRw620mPJC0cfsgaZGYp+va ogairGvxlFWkp0AcBjxlcmEIBmYLasNobhKu7rAHck+tlfVspSIu/fItQ1wWLu7+Z6dD dhMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yg0BxQP4watQNuZfbrry/wq+uD8hwmdMyjWMzuKiOIw=; fh=ca0UkH8RC0BTnCBKY5kW0tQi8xzTUpH8V3adlU/KgC0=; b=doJA/1jsBXGon9OUfD1ptX68o4DLlvRaVBY6IcyiYpXC9wsqz2ZIy3/tIIt8hTf0TJ U3ZEsMkrCDhV9o1kBjenW+OziQCjtMLqGq2DlBr473SHug6AMFbceacpsAbGQCSBZHHa tSz12uw52I89pApec+9fTPnJ31xomgOGTDbeAXfh35R0/ti/NJ8s6ifpDKH8TgqAFUXU mcev3/yL5X1HKtYiP3LIlTkX3DHfVuCTV50eXA3ySbcYh1iMg2VuVmpdsnicvgwTDFux AAA+tjlg9RZy+keAIP30D6ix4lFP2b02N+26bWVFY4CcHsPM24I3UcpVn9wwXUVXILUP nYSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FKwl+l+T; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x13-20020adff0cd000000b00324abcac4f4si1025416wro.390.2023.10.17.07.10.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Oct 2023 07:10:38 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FKwl+l+T; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qskm5-0001ym-3f; Tue, 17 Oct 2023 10:10:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsklv-0001v0-82 for qemu-devel@nongnu.org; Tue, 17 Oct 2023 10:10:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qskls-0002ap-Og for qemu-devel@nongnu.org; Tue, 17 Oct 2023 10:10:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697551806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yg0BxQP4watQNuZfbrry/wq+uD8hwmdMyjWMzuKiOIw=; b=FKwl+l+TK3tESq44b0q4evW07RwSta6l9oCsMoebLRTUH0Ua4v2EmRoKj0DUl/nviVncO/ nmLU2/32zWAWzBrR06c3D6aaAEs2Hd5QFzN1O6WltfrIlp5hHkml34f60TORI7O7SOX4PL GX1THoM6YY0PNLLfyD76BQ8a9CImXgU= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-502-LeCYszrINiGHRhJC3rwGcg-1; Tue, 17 Oct 2023 10:09:49 -0400 X-MC-Unique: LeCYszrINiGHRhJC3rwGcg-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-402cd372b8bso46115615e9.2 for ; Tue, 17 Oct 2023 07:09:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697551788; x=1698156588; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yg0BxQP4watQNuZfbrry/wq+uD8hwmdMyjWMzuKiOIw=; b=a0nSYBFaLth6QaFcRcvL3CLLbiG2mGH9JRcdUo+8pXhEqPiqJKNTm1PiT9ibWUFZmL k0KogmsgxH0VDpu90rASqSFeYHCFHLht1+qgSEzUenIKSCSNtfmoykIAmYXL8/jznvIU QoL2gYmKuwTlA5LbuXeANTxud0nohvtz8Jf05YlNLNvqi3PLgCNz/orRloqwKu4C8JTb m47VaPFg3+9qy54Vy+ADa8tC6FfC35FXMeU4Z4PpVbEDFxeCkeadbzVQxuV2YW4a+Hoq 006WLzh+w2j00KDArZ7m4YtA0x6zTI95D29zPpQx1rrDU/bkl9KrkR6ijmzXf0dEL8Dg vO6w== X-Gm-Message-State: AOJu0Yw7+cMCMalQbdJKjaagWH3SPPZ0b5gvuQ/8UB3IS0Z2qV4j5wN8 xVjyir/LtClycjyOohDENI9mg8pJrvHRCmVsCJT0zjOuZlOz4+G2ebZMVdUQb7z/22zPRIegnBi k9wQgksIERANd/MU= X-Received: by 2002:adf:ce8b:0:b0:32d:a3c5:ea80 with SMTP id r11-20020adfce8b000000b0032da3c5ea80mr1928010wrn.51.1697551788281; Tue, 17 Oct 2023 07:09:48 -0700 (PDT) X-Received: by 2002:adf:ce8b:0:b0:32d:a3c5:ea80 with SMTP id r11-20020adfce8b000000b0032da3c5ea80mr1927985wrn.51.1697551787911; Tue, 17 Oct 2023 07:09:47 -0700 (PDT) Received: from redhat.com ([2a06:c701:73d2:bf00:e379:826:5137:6b23]) by smtp.gmail.com with ESMTPSA id d27-20020adf9b9b000000b0031c52e81490sm1767110wrc.72.2023.10.17.07.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 07:09:47 -0700 (PDT) Date: Tue, 17 Oct 2023 10:09:44 -0400 From: "Michael S. Tsirkin" To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Cc: qemu-devel@nongnu.org, Paolo Bonzini , Hanna Reitz , Fam Zheng , qemu-arm@nongnu.org, qemu-block@nongnu.org, Kevin Wolf , Jason Wang , Peter Maydell , Raphael Norwitz , "Edgar E. Iglesias" , Alistair Francis , Gerd Hoffmann Subject: Re: [PATCH 0/7] hw: Few more QOM/QDev cleanups Message-ID: <20231017100928-mutt-send-email-mst@kernel.org> References: <20231017140150.44995-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231017140150.44995-1-philmd@linaro.org> Received-SPF: pass client-ip=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: VTvVwKE4Ddr6 On Tue, Oct 17, 2023 at 04:01:43PM +0200, Philippe Mathieu-Daudé wrote: > - Remove a pointless check, > - Use QOM cast macros, > - Declare QDev links statically using DEFINE_PROP_LINK() virtio things Reviewed-by: Michael S. Tsirkin > Philippe Mathieu-Daudé (7): > hw/virtio/virtio-pmem: Replace impossible check by assertion > hw/block/vhost-user-blk: Use DEVICE() / VIRTIO_DEVICE() macros > hw/display/virtio-gpu: Use VIRTIO_DEVICE() macro > hw/scsi/virtio-scsi: Use VIRTIO_SCSI_COMMON() macro > hw/dma: Declare link using static DEFINE_PROP_LINK() macro > hw/net: Declare link using static DEFINE_PROP_LINK() macro > hw/usb: Declare link using static DEFINE_PROP_LINK() macro > > hw/block/vhost-user-blk.c | 4 ++-- > hw/display/virtio-gpu.c | 2 +- > hw/dma/xilinx_axidma.c | 6 ++---- > hw/dma/xlnx-zdma.c | 7 ++----- > hw/dma/xlnx_csu_dma.c | 13 ++++--------- > hw/net/cadence_gem.c | 7 ++----- > hw/scsi/virtio-scsi.c | 2 +- > hw/usb/hcd-xhci-sysbus.c | 4 ---- > hw/usb/hcd-xhci.c | 2 ++ > hw/virtio/virtio-pmem.c | 5 +---- > 10 files changed, 17 insertions(+), 35 deletions(-) > > -- > 2.41.0