From patchwork Wed Dec 18 13:42:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851687 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp922520wrq; Wed, 18 Dec 2024 05:44:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWdhh8VSVtgyOHss0ybuq1VGQh4eFTVuyu1kW7kt+9AXa+kcC98rNmRqoBJ+poRi6iclPzMqw==@linaro.org X-Google-Smtp-Source: AGHT+IHxHY/O00poAdxIbt8nZroy9GP0RcXauBSUDVI0loPssKmep7n2IlZ8mx8X9HxAicSX8q/w X-Received: by 2002:ac8:7dd6:0:b0:466:a584:69f8 with SMTP id d75a77b69052e-46908e771dcmr38751831cf.43.1734529496599; Wed, 18 Dec 2024 05:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734529496; cv=none; d=google.com; s=arc-20240605; b=VLetmeSICMrGixRxhBjkFkYkPNwCd+DkAlITDKCvauUy9wflyd3O3rj9du89y2r0Pb z/KOS0wWKkiwQNz5g4zVZ8qjzv8JSpdnAd3mXsOKyvpkt/6FC7wtNz/a2AGiQVLFrWnU JsruVoUG9wRq5AgJoUd9QgvwxP1e6IIThAwKYrGu9/v0srt1boEn9AvCb/Kn0EApnDe/ Ebowf/dVjZh4TYQZS5yfXenzP/hUTfgaYIIXBYSUgb5yeX9nCQIMp+G+Oz1UCM45Vcoy xiVrVqsMd1e3nhLIeyNJKoM/603eEqqrKCXolRiRce8u0x+rqnWenhabukGcCKKFzPDB t0/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=75drLZGsEas3R26qUilFhzjUTWE9A4kYs2fwKy7AL8A=; fh=3mEp7FusppN5Drq2PN08R8D/9xXM9YdbtG5TkJxJBiE=; b=cAb8UcX4SQ9/kiefEMrf3DSlmMzeL8f+AFWHsmeDmsA4BiAUmVWdbh4a64NM9sy0YE 5XpoqW+CN4uia1j1mBot3XHZy+x2vz2szjaHlQ2AnTptvbXnSdtVpwhI4eIgHTGwCyb1 hUeyI3f6IVVECg+N+DgKzHLL776S03xEdDtNry80lPEIwHMOT9keKDu9VQasJH/p4aLe ahFjZfUWdog6EZ7zC5oaZP37kC5xGaLfwBqJar3Z8sJUgehvjdhuXQkwpSIqGZCpkOUP zo6h+WutazwJ9wS6vyN88UEpvCd4vnFgcSimpCyEu/xQjKQxPj/gIHanY9o1+Zs9LuST m/3w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AwkRJOHo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2cbadedsi140731541cf.213.2024.12.18.05.44.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Dec 2024 05:44:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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=@linaro.org header.s=google header.b=AwkRJOHo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNuKy-0001px-Pt; Wed, 18 Dec 2024 08:43:41 -0500 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 1tNuKW-0001Jz-Vk for qemu-devel@nongnu.org; Wed, 18 Dec 2024 08:43:14 -0500 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNuKV-0005fm-9B for qemu-devel@nongnu.org; Wed, 18 Dec 2024 08:43:12 -0500 Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3eb8559b6b0so3467274b6e.1 for ; Wed, 18 Dec 2024 05:43:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734529389; x=1735134189; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=75drLZGsEas3R26qUilFhzjUTWE9A4kYs2fwKy7AL8A=; b=AwkRJOHoAFgP2GrNCgajlmRk13RVaQ4n6URUqddACxMnhxiBJJDkZmgiYccU3Ht95I xiCZB0TH9L6fa0StitCK5Ubl25RCbOEyKRrObBtdDJs9KfstoypsHEKD8puQcPs+1PAn wdOluwow4J+lJBPO102NWLhb0LQVLKwSV/JUcpN4fx1YK28lQReGQGPbIhDXYx7OTYWW TUBbechVrlr61MkV+OBGFqj0hdCtGu3mahk4Z9PjO1743rlpvf2ZY813ad6IxmfiCHY2 wd54u0DV8TR3cdQQJZTtxJkZFKf1IljQbylxdBorFpkIlcLTgRSzAKAXeKsshUIA5m5h wE8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734529389; x=1735134189; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=75drLZGsEas3R26qUilFhzjUTWE9A4kYs2fwKy7AL8A=; b=IQaT1SoViemqgWpEHw/Uf7yR2HmTq5QozO8Jh/mXLbAc8duXfc/BCg5mlyydl+Fx4z 2eOBvtBgMvdcferqpkB1rOb2WPI6GfM0AXsDTk3eR7neQcOXcUsDu+z61aInbBnxBaiy HDUXo8/1v7Uztbno8QQzrkZvy4Ty2C8wEr51JtFoO+id8keI4t708s1oGXgx4I4hy166 wZqQXWBWsihuXBSQ9v1RA8y0uAYwC8e1fxBfl3aXrUxGId+auBHdfDJVQTKa2Hpa56jG m43zq4PhBqilT0n+froSKjznK72mvMd78Fum5pwe3uncrYC/KuwRea9t92l2k6CLuJxS 8LIA== X-Gm-Message-State: AOJu0YxVHMNnw2AGQBOeOOI4yBkybbKwGK/d+ReLvjCewbKXZ4BYUfXK y8/2Lw/l4CIyiHEL/coTv0dn9ICXpmz7LWY03PKNmCkZNr5+AcmoHQj9M2B417VwFeu55qh8TKB uTupzEUuG X-Gm-Gg: ASbGncsHwjxNYj1894HEWzof6v/9xZ744aUz5xbPmKH6PDIpgtpmd9qEN78oI1SIzT/ 0EpGZUa1mR3n+b0UrcyDxwUfLlHnIq0/jTjEleDpxqfA87hwpjR5jPbYPG5+m7ZI7/IyRpw4yyw ZPjQnU5qdcXSUiaKfAZJKobeXoOKRdQF1JX0y/bSp7XGWTfNM+5foCXgauKvry2OU/oU3y6IoGx M91+AMORsG/QALkD6OgOC4RpzogoM5mR8smrplY3ST0wty11wsdc0AnBsKuqjWN X-Received: by 2002:a05:6808:2220:b0:3e7:a201:dc31 with SMTP id 5614622812f47-3eccbf9aed6mr1893871b6e.23.1734529389280; Wed, 18 Dec 2024 05:43:09 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a502sm2870951b6e.9.2024.12.18.05.43.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 05:43:08 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com Subject: [PATCH v2 11/24] hw/virtio: Remove empty Property lists Date: Wed, 18 Dec 2024 07:42:38 -0600 Message-ID: <20241218134251.4724-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241218134251.4724-1-richard.henderson@linaro.org> References: <20241218134251.4724-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x235.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- hw/virtio/vdpa-dev-pci.c | 5 ----- hw/virtio/vhost-user-snd-pci.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/hw/virtio/vdpa-dev-pci.c b/hw/virtio/vdpa-dev-pci.c index 5446e6b393..787926801a 100644 --- a/hw/virtio/vdpa-dev-pci.c +++ b/hw/virtio/vdpa-dev-pci.c @@ -48,10 +48,6 @@ static void vhost_vdpa_device_pci_instance_init(Object *obj) "bootindex"); } -static Property vhost_vdpa_device_pci_properties[] = { - DEFINE_PROP_END_OF_LIST(), -}; - static int vhost_vdpa_device_pci_post_init(VhostVdpaDevice *v, Error **errp) { VhostVdpaDevicePCI *dev = container_of(v, VhostVdpaDevicePCI, vdev); @@ -80,7 +76,6 @@ static void vhost_vdpa_device_pci_class_init(ObjectClass *klass, void *data) VirtioPCIClass *k = VIRTIO_PCI_CLASS(klass); set_bit(DEVICE_CATEGORY_MISC, dc->categories); - device_class_set_props(dc, vhost_vdpa_device_pci_properties); k->realize = vhost_vdpa_device_pci_realize; } diff --git a/hw/virtio/vhost-user-snd-pci.c b/hw/virtio/vhost-user-snd-pci.c index d61cfdae63..0cb86b7d85 100644 --- a/hw/virtio/vhost-user-snd-pci.c +++ b/hw/virtio/vhost-user-snd-pci.c @@ -23,10 +23,6 @@ typedef struct VHostUserSoundPCI VHostUserSoundPCI; DECLARE_INSTANCE_CHECKER(VHostUserSoundPCI, VHOST_USER_SND_PCI, TYPE_VHOST_USER_SND_PCI) -static Property vhost_user_snd_pci_properties[] = { - DEFINE_PROP_END_OF_LIST(), -}; - static void vhost_user_snd_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp) { VHostUserSoundPCI *dev = VHOST_USER_SND_PCI(vpci_dev); @@ -44,7 +40,6 @@ static void vhost_user_snd_pci_class_init(ObjectClass *klass, void *data) PCIDeviceClass *pcidev_k = PCI_DEVICE_CLASS(klass); k->realize = vhost_user_snd_pci_realize; set_bit(DEVICE_CATEGORY_SOUND, dc->categories); - device_class_set_props(dc, vhost_user_snd_pci_properties); pcidev_k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET; pcidev_k->device_id = 0; /* Set by virtio-pci based on virtio id */ pcidev_k->revision = 0x00;