From patchwork Fri Dec 13 19:06:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907665 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22114E7717F for ; Fri, 13 Dec 2024 19:09:26 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.857087.1269515 (Exim 4.92) (envelope-from ) id 1tMB29-0004Tj-0J; Fri, 13 Dec 2024 19:09:05 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 857087.1269515; Fri, 13 Dec 2024 19:09:04 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMB28-0004Tc-Tk; Fri, 13 Dec 2024 19:09:04 +0000 Received: by outflank-mailman (input) for mailman id 857087; Fri, 13 Dec 2024 19:09:03 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMB27-0004TW-IU for xen-devel@lists.xenproject.org; Fri, 13 Dec 2024 19:09:03 +0000 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [2607:f8b0:4864:20::32a]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id b5eb0664-b985-11ef-99a3-01e77a169b0f; Fri, 13 Dec 2024 20:09:01 +0100 (CET) Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-71e1158fe3eso974845a34.1 for ; Fri, 13 Dec 2024 11:09:01 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:59 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b5eb0664-b985-11ef-99a3-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116940; x=1734721740; darn=lists.xenproject.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=VBuAnCPgZLHdX0sVpQB+fbM15dWtrtdAGUwOdHBBqsc=; b=lmkMzcGiWAmwSkFj8FYR/5sT4TP38QIHngNyyOJNNh1dIE2fvUngs/bSTaYy1HLqxk ikVnyMS9TNdpoyyFqLKTOmLLuvMGDrNJm1GHpQ9EWTXNnkC3ui/dAOmq/DzekD+yh4qo ZN+MLOPWZhaHNcxcQ9KRsLbpVmr42WyB+uKyxx+EbJ93XdJc3hH/aZ9IIMExbg2WIqKn aFuFRdvGbbwIblilmmvmPQqBwGGebbvngD8K7thQibbhcXY/8p1ecpXbakQS8UKmvtag SenTcdQSIka0994kw+/RFy4ZXyrnmvHkE4Ao76jby9uKQGhjFO7owWa6rIXE5fdhMJpO DF9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116940; x=1734721740; 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=VBuAnCPgZLHdX0sVpQB+fbM15dWtrtdAGUwOdHBBqsc=; b=WmZG44ELWgTmrXISVE2gVVODlQm+efzVJl0+6lGg6y5toRRfUkGGrrp7MvTKW1c+QO qOPQw8WTJJyNXSJ+amXjSdczyjcE5wPsfmOVe4GROTUhivupu7aluxCWaxuIsYgFcWtN rxi6/OfozNZzPTipSd86WyOHs8LAde3Zeo3XNe9GlEg532+YSrr0NsdJpIJ+81IpJvqm XG37zJARq1aG7Q/wvtH+yUbQTEHJqa78w83lJ2mQKxG+M2Z3fNO4PbygSGInTLAFhhRN 4L0qwjXEinf2cCjv3m5TN6vD3wLxCrwxiqSWOcfNA+dPSc6oV55u3Rme9CmF4MjofG7L Zvtw== X-Forwarded-Encrypted: i=1; AJvYcCX+rP10ikkcLbXuws3g9TTAO0D+RamE1tcMUTp/amgQbr8E0vr1tCaLYaLtvF+09Tb6pMZ2pbir3eo=@lists.xenproject.org X-Gm-Message-State: AOJu0Yzrb0CK78TJsU+TMaCBBSrlMYNer5b1VVDWk9U56aG26ZIamwcj TyxbKcOV1ykTijSZgT/LhuyfWjLVaygmEz4rYKpR1dbUbgGqM+rDwJVGacnTGZo= X-Gm-Gg: ASbGncvBUzXirFMVEa3jl7rdy2SVYlKnPDATwtz7FXGnr538tFjorMp5DMWZHZrih/0 cFlTZ/IvgvgHvOXeawHqInTItdvMz+oWIt7H4YVjdrOSPgitlJWKKkqb3OCzUlZJqquMPtH/s6N PfhFCya4CAwjojwqi0Dsh3MnlsIrYJ++SDkm0B963ZzJvZunx3OBxp2xoS7IUdxC+lqs3nZ9X3P oWpRsXVgSsx3shqyalgIatHkNc1v/se1dJgtdVL1s7FPbYacjOWwEUNCpne9U9o X-Google-Smtp-Source: AGHT+IG4Oaa1CFMaif+EnKB8kf2kg/gBi+Er63DHsr2guVeeoIb4v5eKEHl55hIr030QigRhTnJLHA== X-Received: by 2002:a05:6830:2a92:b0:71d:f6d3:9fd2 with SMTP id 46e09a7af769-71e3ba3f147mr1411664a34.24.1734116940056; Fri, 13 Dec 2024 11:09:00 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Stefano Stabellini , Anthony PERARD , Paul Durrant , "Edgar E. Iglesias" , Kevin Wolf , Hanna Reitz , xen-devel@lists.xenproject.org (open list:X86 Xen CPUs), qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH 18/71] hw/block/xen-block: Unexport PropertyInfo Date: Fri, 13 Dec 2024 13:06:52 -0600 Message-ID: <20241213190750.2513964-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 xen_block_prop_vdev is not used outside the file. Signed-off-by: Richard Henderson Reviewed-by: Jason Andryuk --- hw/block/xen-block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index aed1d5c330..72cfd6893a 100644 --- a/hw/block/xen-block.c +++ b/hw/block/xen-block.c @@ -659,7 +659,7 @@ invalid: * * https://xenbits.xen.org/docs/unstable/man/xen-vbd-interface.7.html */ -const PropertyInfo xen_block_prop_vdev = { +static const PropertyInfo xen_block_prop_vdev = { .name = "str", .description = "Virtual Disk specifier: d*p*/xvd*/hd*/sd*", .get = xen_block_get_vdev, From patchwork Fri Dec 13 19:06:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907666 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B192E77183 for ; Fri, 13 Dec 2024 19:09:28 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.857088.1269525 (Exim 4.92) (envelope-from ) id 1tMB2C-0004hs-6m; Fri, 13 Dec 2024 19:09:08 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 857088.1269525; Fri, 13 Dec 2024 19:09:08 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMB2C-0004hl-3v; Fri, 13 Dec 2024 19:09:08 +0000 Received: by outflank-mailman (input) for mailman id 857088; Fri, 13 Dec 2024 19:09:07 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMB2A-0004TW-Uu for xen-devel@lists.xenproject.org; Fri, 13 Dec 2024 19:09:06 +0000 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [2607:f8b0:4864:20::32d]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id b852f025-b985-11ef-99a3-01e77a169b0f; Fri, 13 Dec 2024 20:09:05 +0100 (CET) Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e2aa8d5e3so1086778a34.2 for ; Fri, 13 Dec 2024 11:09:05 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:03 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b852f025-b985-11ef-99a3-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116944; x=1734721744; darn=lists.xenproject.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=dvKuTabJuM44RrR9LqcDtNRzVnC+ouLNjCo5mA0gZDg=; b=gC/gomOO+FDbnqz7bFspjcJXROTR4HEevGRfrf/56eLxkMGJ8C9flybddKA6fpbUHT Kl3xICcCmrhkwuPG1aHqLTfhIL/3/CO2/as2Ey3Ha0MjB87QHnHGoZPIurtCU9Wz1LGh YtLZF525p0paJJFSdrw2wH+ib06fvlOM0iWUfNkM5edPfcl4eBgV7SR64YMWh9MD7h4t /glKpzjjx5bHJ/LrhHW0dylkUae9hrEo7j6ox2NvUOBEzYV8BsABE1ab+ENcs3ySvrFn 549MAXQxeN0w1jky8RBROSVr9703k1NcTDrFzghMibeNjSRNULk4gbJeBUPjkKpAJ561 /uOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116944; x=1734721744; 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=dvKuTabJuM44RrR9LqcDtNRzVnC+ouLNjCo5mA0gZDg=; b=cs/Utu+mJhmcQyGEo2Ar6fKLcNIjuBglqFlfFp8TdCq8nWatWgra28/Kj1lDIy4Vew Sycn+zDA+ajUbInnc6be6YWD5zYlW2ZO3zwEY8S2Z4Cp7bNZcUYvL7KE3qTVC5ozqNAY ljdPRAcFcQFIBgnn7v5Ht2zvXdsHq0zxvKN1aNfLsNehJGLPFSRW00pxPI0YX9I4Vd8/ PjXxwSWizrPxhwVxhackBHlVi+pi4aG+I/WUCyfGSO2lDumNtiMvz1HQS3HdSXYovsIu dSAPjeatulnyqCRNxpHrDPJ62jciGBzKZIJEpzS6plpN68FnGmJH9oZLzUUHM9OU9ucE /UJw== X-Forwarded-Encrypted: i=1; AJvYcCXVeBpTk9emX1ETCTnJUKw5qw8O1RzH8ejPqFP2qzCeXQJFVym6n+5sJLa8ZykOz81bXjksHTDCRwk=@lists.xenproject.org X-Gm-Message-State: AOJu0Yx9hwNRjmbpjPNZIOaGimYpqnGEfN/7ImV6jejsWH3pZXc7b7MK lF/R34UnnuNxc6NS4lbNyYXG+pLgZNeBwnYEacA4JJRngKb8CE1oTuXZKWUEpoo= X-Gm-Gg: ASbGnctT2E20UgjQE7NnrZj+0z+BQA8KOXVZuu/OEi6TxmRnUUFjqRIzDDlN94jO9kh m1JCOab0ZDke02GZJMtvIsWu4d0hpWogKYQ9gcklL+R7vB26+yE9mKF0nw+FMOnRiNPgSPZlDgO bEChoiXjDP80inQT5S3/BIp4ExuGlhXELL0xjGNncyRm9fd3goNr6Ut9f+ZqIKMgFaqRh+2atL3 MMR1zisbf8SsoCnONfyy4Gpq0yasNiXok5W18OM1HRUrtaTbLeOHahs/Z1kbuPH X-Google-Smtp-Source: AGHT+IH4rJcdXbtBNLnupXAb1IE3M6qGGNYml9H8C6S7DGbxJKBCaGKoGLFrcPQYq1LiK/0DBH3rEw== X-Received: by 2002:a05:6830:6e18:b0:71d:f239:c0a8 with SMTP id 46e09a7af769-71e3b827be9mr2189273a34.6.1734116944096; Fri, 13 Dec 2024 11:09:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: John Snow , Kevin Wolf , Hanna Reitz , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Laurent Vivier , Raphael Norwitz , "Michael S. Tsirkin" , Stefano Garzarella , Stefan Hajnoczi , Stefano Stabellini , Anthony PERARD , Paul Durrant , "Edgar E. Iglesias" , qemu-block@nongnu.org (open list:Floppy), xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 19/71] hw/block: Constify all Property Date: Fri, 13 Dec 2024 13:06:53 -0600 Message-ID: <20241213190750.2513964-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Signed-off-by: Richard Henderson --- hw/block/fdc-isa.c | 2 +- hw/block/fdc-sysbus.c | 4 ++-- hw/block/fdc.c | 2 +- hw/block/m25p80.c | 2 +- hw/block/nand.c | 2 +- hw/block/pflash_cfi01.c | 2 +- hw/block/pflash_cfi02.c | 2 +- hw/block/swim.c | 2 +- hw/block/vhost-user-blk.c | 2 +- hw/block/virtio-blk.c | 2 +- hw/block/xen-block.c | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/block/fdc-isa.c b/hw/block/fdc-isa.c index 5ed3c18c28..2b9f667fe4 100644 --- a/hw/block/fdc-isa.c +++ b/hw/block/fdc-isa.c @@ -283,7 +283,7 @@ static const VMStateDescription vmstate_isa_fdc = { } }; -static Property isa_fdc_properties[] = { +static const Property isa_fdc_properties[] = { DEFINE_PROP_UINT32("iobase", FDCtrlISABus, iobase, 0x3f0), DEFINE_PROP_UINT32("irq", FDCtrlISABus, irq, 6), DEFINE_PROP_UINT32("dma", FDCtrlISABus, dma, 2), diff --git a/hw/block/fdc-sysbus.c b/hw/block/fdc-sysbus.c index e1ddbf3d1a..f17e04b138 100644 --- a/hw/block/fdc-sysbus.c +++ b/hw/block/fdc-sysbus.c @@ -196,7 +196,7 @@ static const TypeInfo sysbus_fdc_common_typeinfo = { .class_size = sizeof(FDCtrlSysBusClass), }; -static Property sysbus_fdc_properties[] = { +static const Property sysbus_fdc_properties[] = { DEFINE_PROP_SIGNED("fdtypeA", FDCtrlSysBus, state.qdev_for_drives[0].type, FLOPPY_DRIVE_TYPE_AUTO, qdev_prop_fdc_drive_type, FloppyDriveType), @@ -223,7 +223,7 @@ static const TypeInfo sysbus_fdc_typeinfo = { .class_init = sysbus_fdc_class_init, }; -static Property sun4m_fdc_properties[] = { +static const Property sun4m_fdc_properties[] = { DEFINE_PROP_SIGNED("fdtype", FDCtrlSysBus, state.qdev_for_drives[0].type, FLOPPY_DRIVE_TYPE_AUTO, qdev_prop_fdc_drive_type, FloppyDriveType), diff --git a/hw/block/fdc.c b/hw/block/fdc.c index 6dd94e98bc..57d6844806 100644 --- a/hw/block/fdc.c +++ b/hw/block/fdc.c @@ -454,7 +454,7 @@ struct FloppyDrive { FloppyDriveType type; }; -static Property floppy_drive_properties[] = { +static const Property floppy_drive_properties[] = { DEFINE_PROP_UINT32("unit", FloppyDrive, unit, -1), DEFINE_BLOCK_PROPERTIES(FloppyDrive, conf), DEFINE_PROP_SIGNED("drive-type", FloppyDrive, type, diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 748594524e..ca97365926 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -1720,7 +1720,7 @@ static int m25p80_pre_save(void *opaque) return 0; } -static Property m25p80_properties[] = { +static const Property m25p80_properties[] = { /* This is default value for Micron flash */ DEFINE_PROP_BOOL("write-enable", Flash, write_enable, false), DEFINE_PROP_UINT32("nonvolatile-cfg", Flash, nonvolatile_cfg, 0x8FFF), diff --git a/hw/block/nand.c b/hw/block/nand.c index ac0a5d2b42..b6e6bfac23 100644 --- a/hw/block/nand.c +++ b/hw/block/nand.c @@ -445,7 +445,7 @@ static void nand_realize(DeviceState *dev, Error **errp) s->ioaddr = s->io; } -static Property nand_properties[] = { +static const Property nand_properties[] = { DEFINE_PROP_UINT8("manufacturer_id", NANDFlashState, manf_id, 0), DEFINE_PROP_UINT8("chip_id", NANDFlashState, chip_id, 0), DEFINE_PROP_DRIVE("drive", NANDFlashState, blk), diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index 21a81b44f0..20f4fc67a0 100644 --- a/hw/block/pflash_cfi01.c +++ b/hw/block/pflash_cfi01.c @@ -895,7 +895,7 @@ static void pflash_cfi01_system_reset(DeviceState *dev) pfl->blk_offset = -1; } -static Property pflash_cfi01_properties[] = { +static const Property pflash_cfi01_properties[] = { DEFINE_PROP_DRIVE("drive", PFlashCFI01, blk), /* num-blocks is the number of blocks actually visible to the guest, * ie the total size of the device divided by the sector length. diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index 8393f261b8..c82002d665 100644 --- a/hw/block/pflash_cfi02.c +++ b/hw/block/pflash_cfi02.c @@ -937,7 +937,7 @@ static void pflash_cfi02_reset(DeviceState *dev) pflash_reset_state_machine(pfl); } -static Property pflash_cfi02_properties[] = { +static const Property pflash_cfi02_properties[] = { DEFINE_PROP_DRIVE("drive", PFlashCFI02, blk), DEFINE_PROP_UINT32("num-blocks", PFlashCFI02, uniform_nb_blocs, 0), DEFINE_PROP_UINT32("sector-length", PFlashCFI02, uniform_sector_len, 0), diff --git a/hw/block/swim.c b/hw/block/swim.c index 64992eb72e..c336d83bdc 100644 --- a/hw/block/swim.c +++ b/hw/block/swim.c @@ -166,7 +166,7 @@ static const BlockDevOps swim_block_ops = { .change_media_cb = swim_change_cb, }; -static Property swim_drive_properties[] = { +static const Property swim_drive_properties[] = { DEFINE_PROP_INT32("unit", SWIMDrive, unit, -1), DEFINE_BLOCK_PROPERTIES(SWIMDrive, conf), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/block/vhost-user-blk.c b/hw/block/vhost-user-blk.c index 7996e49821..f3ac007108 100644 --- a/hw/block/vhost-user-blk.c +++ b/hw/block/vhost-user-blk.c @@ -570,7 +570,7 @@ static const VMStateDescription vmstate_vhost_user_blk = { }, }; -static Property vhost_user_blk_properties[] = { +static const Property vhost_user_blk_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBlk, chardev), DEFINE_PROP_UINT16("num-queues", VHostUserBlk, num_queues, VHOST_USER_BLK_AUTO_NUM_QUEUES), diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 9166d7974d..9ca60fbc07 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -1985,7 +1985,7 @@ static const VMStateDescription vmstate_virtio_blk = { }, }; -static Property virtio_blk_properties[] = { +static const Property virtio_blk_properties[] = { DEFINE_BLOCK_PROPERTIES(VirtIOBlock, conf.conf), DEFINE_BLOCK_ERROR_PROPERTIES(VirtIOBlock, conf.conf), DEFINE_BLOCK_CHS_PROPERTIES(VirtIOBlock, conf.conf), diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index 72cfd6893a..0c0817f498 100644 --- a/hw/block/xen-block.c +++ b/hw/block/xen-block.c @@ -666,7 +666,7 @@ static const PropertyInfo xen_block_prop_vdev = { .set = xen_block_set_vdev, }; -static Property xen_block_props[] = { +static const Property xen_block_props[] = { DEFINE_PROP("vdev", XenBlockDevice, props.vdev, xen_block_prop_vdev, XenBlockVdev), DEFINE_BLOCK_PROPERTIES(XenBlockDevice, props.conf), From patchwork Fri Dec 13 19:06:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907667 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4BD1E77180 for ; Fri, 13 Dec 2024 19:09:28 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.857089.1269535 (Exim 4.92) (envelope-from ) id 1tMB2I-000500-H3; Fri, 13 Dec 2024 19:09:14 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 857089.1269535; Fri, 13 Dec 2024 19:09:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMB2I-0004zp-DT; Fri, 13 Dec 2024 19:09:14 +0000 Received: by outflank-mailman (input) for mailman id 857089; Fri, 13 Dec 2024 19:09:13 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMB2H-0004TW-7T for xen-devel@lists.xenproject.org; Fri, 13 Dec 2024 19:09:13 +0000 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [2607:f8b0:4864:20::32a]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id bbe44eac-b985-11ef-99a3-01e77a169b0f; Fri, 13 Dec 2024 20:09:11 +0100 (CET) Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-71e2bc5b90fso1009869a34.0 for ; Fri, 13 Dec 2024 11:09:11 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:09 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: bbe44eac-b985-11ef-99a3-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116950; x=1734721750; darn=lists.xenproject.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=b/X3IVDeDd+noUKxYZR0n+Vdo2pFngQ4Wz2l9zT17Cg=; b=Ch5XorqkKzZK++r7uaJ7Ingrf3KtC1Zzonea15h1sPeVhp9gQWDBz3Tt45CU00JuS+ a7YxmBfFPEbhNIUcMg0CHIYz9D38B5lzAt4w1iaEbVQLGlHWXQU1XDOygRIhUCP11AA+ NByLvcRIvMhV/MUJ4UJTk5Qq8qufYBN3Hp/I/bR5A7JSUb7cl0zUY5Hlk0SKeCSa1yEB +/3Un/GEPnJos05G9iTQFHNKK5FTlaOf/fp1vlHAkJdIwD6e3+XwgV/2DtZ/AT/Aq+Hy 71mxAYfLRnBhw9a9VSE2L38kbozQRAB1rK+dN26IfDwJVgnEjpIJYKnMuv7pDAgF7s0M l6qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116950; x=1734721750; 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=b/X3IVDeDd+noUKxYZR0n+Vdo2pFngQ4Wz2l9zT17Cg=; b=kUrdm38uwmR6RptAhKPN/xPSgmisN54kjLmDMCDVX2y5wB66ij67X1/A78J/DQ7mMS HjdrrRQmid5gtFvC/abYmYZlZBN2BgskgdXqu2NiYhlVrwucbBp1p4goAWd/NxOjz7/X +eRksEgusy9vuII0Ja4vmezVH/3T2yNwFtbmyaZp4xYb7/kMM3SFBbRNlVGYrly1CfAf 9azQjzychXDuQYnWVwjihGSdyypN1N9hdaEmtR/iYhvoPE9pFL5CIdkwbUYQBQIWXVMj +gJkdE39VQd+VNJ/UT/k1PKkn0B8ieCakfUBULMhpUg68FoGmaxs3FWZfbc02sQFpZKu k9bA== X-Forwarded-Encrypted: i=1; AJvYcCXD1VPksAseqmGS2Cv+ybkoxByTX7w/fVYPD/4sZpILZWG6TlEbscbpU6BwS8PT0iHfPDHo39RhezU=@lists.xenproject.org X-Gm-Message-State: AOJu0YzL+ZyOLNR6BeX7XcKncppYvK3bPXq+uXNytn/04tXjeUAsyh+S J+FEzB1zEhOEfycQ9XDWBjV0wVLmqgPKZHQ7+7WMTaBoVEzh2WEWhg2BfrmNQik= X-Gm-Gg: ASbGncujkSab3OmsM93RxdvFvxDDUAJbaBqqhvgOV6HlgAx3//cCjhUR0aauyDXmQH4 6DGQYz2AM0S9cne+GV+QaFPqSiBn+u1bRmg3v9q6VC0iLQ0KtPepoM+tZqm+s94VXYPj/45XqR6 BwzChGTMJ0yeFpleywokbdB8LOHoimKgf50pr8+miot+VoT9ib10bqU3IXekXyqBpDOtCQ3bf8U u6eMdxcVf4rB7JkOXavfZvZGxZBYUL6T69MQvDpOHBYLmcXJjS73waIZ79b5f4t X-Google-Smtp-Source: AGHT+IHyiahaPH7IR7tMGor3tb4r8tyoeL5l6bj/iA+pUDvvwPfsGQ4o6c5cVxqEWXW+NK7FcqsU5A== X-Received: by 2002:a05:6830:4486:b0:71e:212e:9115 with SMTP id 46e09a7af769-71e3ba50013mr2201200a34.30.1734116949898; Fri, 13 Dec 2024 11:09:09 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Michael Rolnik , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Paolo Bonzini , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , "Edgar E. Iglesias" , Alistair Francis , "Michael S. Tsirkin" , Antony Pavlov , Igor Mitsyanko , Laurent Vivier , =?utf-8?q?Cl=C3=A9ment_Chigot?= , Frederic Konrad , Alberto Garcia , Thomas Huth , Joel Stanley , Yoshinori Sato , Magnus Damm , Halil Pasic , Christian Borntraeger , Vijai Kumar K , Bin Meng , Palmer Dabbelt , Nicholas Piggin , Daniel Henrique Barboza , Harsh Prateek Bora , Samuel Tardieu , Amit Shah , Stefano Stabellini , Anthony PERARD , Paul Durrant , qemu-arm@nongnu.org (open list:Raspberry Pi), qemu-riscv@nongnu.org (open list:OpenTitan), qemu-s390x@nongnu.org (open list:S390 general arch...), qemu-ppc@nongnu.org (open list:sPAPR (pseries)), xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 20/71] hw/char: Constify all Property Date: Fri, 13 Dec 2024 13:06:54 -0600 Message-ID: <20241213190750.2513964-25-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Signed-off-by: Richard Henderson Acked-by: Alberto Garcia --- hw/char/avr_usart.c | 2 +- hw/char/bcm2835_aux.c | 2 +- hw/char/cadence_uart.c | 2 +- hw/char/cmsdk-apb-uart.c | 2 +- hw/char/debugcon.c | 2 +- hw/char/digic-uart.c | 2 +- hw/char/escc.c | 2 +- hw/char/exynos4210_uart.c | 2 +- hw/char/goldfish_tty.c | 2 +- hw/char/grlib_apbuart.c | 2 +- hw/char/ibex_uart.c | 2 +- hw/char/imx_serial.c | 2 +- hw/char/ipoctal232.c | 2 +- hw/char/mcf_uart.c | 2 +- hw/char/nrf51_uart.c | 2 +- hw/char/parallel.c | 2 +- hw/char/pl011.c | 2 +- hw/char/renesas_sci.c | 2 +- hw/char/sclpconsole-lm.c | 2 +- hw/char/sclpconsole.c | 2 +- hw/char/serial-isa.c | 2 +- hw/char/serial-mm.c | 2 +- hw/char/serial-pci-multi.c | 4 ++-- hw/char/serial-pci.c | 2 +- hw/char/serial.c | 2 +- hw/char/sh_serial.c | 2 +- hw/char/shakti_uart.c | 2 +- hw/char/sifive_uart.c | 2 +- hw/char/spapr_vty.c | 2 +- hw/char/stm32f2xx_usart.c | 2 +- hw/char/stm32l4x5_usart.c | 2 +- hw/char/terminal3270.c | 2 +- hw/char/virtio-console.c | 2 +- hw/char/virtio-serial-bus.c | 4 ++-- hw/char/xen_console.c | 2 +- hw/char/xilinx_uartlite.c | 2 +- 36 files changed, 38 insertions(+), 38 deletions(-) diff --git a/hw/char/avr_usart.c b/hw/char/avr_usart.c index 3aff01cd54..3421576e45 100644 --- a/hw/char/avr_usart.c +++ b/hw/char/avr_usart.c @@ -259,7 +259,7 @@ static const MemoryRegionOps avr_usart_ops = { .impl = {.min_access_size = 1, .max_access_size = 1} }; -static Property avr_usart_properties[] = { +static const Property avr_usart_properties[] = { DEFINE_PROP_CHR("chardev", AVRUsartState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/bcm2835_aux.c b/hw/char/bcm2835_aux.c index fca2f27a55..30285c97b0 100644 --- a/hw/char/bcm2835_aux.c +++ b/hw/char/bcm2835_aux.c @@ -290,7 +290,7 @@ static void bcm2835_aux_realize(DeviceState *dev, Error **errp) bcm2835_aux_receive, NULL, NULL, s, NULL, true); } -static Property bcm2835_aux_props[] = { +static const Property bcm2835_aux_props[] = { DEFINE_PROP_CHR("chardev", BCM2835AuxState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/cadence_uart.c b/hw/char/cadence_uart.c index 77d9a2a221..2e778f7a9c 100644 --- a/hw/char/cadence_uart.c +++ b/hw/char/cadence_uart.c @@ -617,7 +617,7 @@ static const VMStateDescription vmstate_cadence_uart = { }, }; -static Property cadence_uart_properties[] = { +static const Property cadence_uart_properties[] = { DEFINE_PROP_CHR("chardev", CadenceUARTState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/cmsdk-apb-uart.c b/hw/char/cmsdk-apb-uart.c index 467e40b715..e37e14e0f2 100644 --- a/hw/char/cmsdk-apb-uart.c +++ b/hw/char/cmsdk-apb-uart.c @@ -377,7 +377,7 @@ static const VMStateDescription cmsdk_apb_uart_vmstate = { } }; -static Property cmsdk_apb_uart_properties[] = { +static const Property cmsdk_apb_uart_properties[] = { DEFINE_PROP_CHR("chardev", CMSDKAPBUART, chr), DEFINE_PROP_UINT32("pclk-frq", CMSDKAPBUART, pclk_frq, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/char/debugcon.c b/hw/char/debugcon.c index fdb04fee09..c0f16e9bd6 100644 --- a/hw/char/debugcon.c +++ b/hw/char/debugcon.c @@ -114,7 +114,7 @@ static void debugcon_isa_realizefn(DeviceState *dev, Error **errp) isa->iobase, &s->io); } -static Property debugcon_isa_properties[] = { +static const Property debugcon_isa_properties[] = { DEFINE_PROP_UINT32("iobase", ISADebugconState, iobase, 0xe9), DEFINE_PROP_CHR("chardev", ISADebugconState, state.chr), DEFINE_PROP_UINT32("readback", ISADebugconState, state.readback, 0xe9), diff --git a/hw/char/digic-uart.c b/hw/char/digic-uart.c index 5b04abec1d..03beba11ad 100644 --- a/hw/char/digic-uart.c +++ b/hw/char/digic-uart.c @@ -172,7 +172,7 @@ static const VMStateDescription vmstate_digic_uart = { } }; -static Property digic_uart_properties[] = { +static const Property digic_uart_properties[] = { DEFINE_PROP_CHR("chardev", DigicUartState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/escc.c b/hw/char/escc.c index b1b1bbed15..08bc65ef2c 100644 --- a/hw/char/escc.c +++ b/hw/char/escc.c @@ -1089,7 +1089,7 @@ static void escc_realize(DeviceState *dev, Error **errp) } } -static Property escc_properties[] = { +static const Property escc_properties[] = { DEFINE_PROP_UINT32("frequency", ESCCState, frequency, 0), DEFINE_PROP_UINT32("it_shift", ESCCState, it_shift, 0), DEFINE_PROP_BOOL("bit_swap", ESCCState, bit_swap, false), diff --git a/hw/char/exynos4210_uart.c b/hw/char/exynos4210_uart.c index d9e732f98b..c2836ff8fd 100644 --- a/hw/char/exynos4210_uart.c +++ b/hw/char/exynos4210_uart.c @@ -704,7 +704,7 @@ static void exynos4210_uart_realize(DeviceState *dev, Error **errp) NULL, s, NULL, true); } -static Property exynos4210_uart_properties[] = { +static const Property exynos4210_uart_properties[] = { DEFINE_PROP_CHR("chardev", Exynos4210UartState, chr), DEFINE_PROP_UINT32("channel", Exynos4210UartState, channel, 0), DEFINE_PROP_UINT32("rx-size", Exynos4210UartState, rx.size, 16), diff --git a/hw/char/goldfish_tty.c b/hw/char/goldfish_tty.c index d1917b83d8..68e261236e 100644 --- a/hw/char/goldfish_tty.c +++ b/hw/char/goldfish_tty.c @@ -241,7 +241,7 @@ static const VMStateDescription vmstate_goldfish_tty = { } }; -static Property goldfish_tty_properties[] = { +static const Property goldfish_tty_properties[] = { DEFINE_PROP_CHR("chardev", GoldfishTTYState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/grlib_apbuart.c b/hw/char/grlib_apbuart.c index d0032b4d2a..caae88d77d 100644 --- a/hw/char/grlib_apbuart.c +++ b/hw/char/grlib_apbuart.c @@ -277,7 +277,7 @@ static void grlib_apbuart_reset(DeviceState *d) uart->current = 0; } -static Property grlib_apbuart_properties[] = { +static const Property grlib_apbuart_properties[] = { DEFINE_PROP_CHR("chrdev", UART, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/ibex_uart.c b/hw/char/ibex_uart.c index 589177f85b..b1bdb2ad15 100644 --- a/hw/char/ibex_uart.c +++ b/hw/char/ibex_uart.c @@ -508,7 +508,7 @@ static const VMStateDescription vmstate_ibex_uart = { } }; -static Property ibex_uart_properties[] = { +static const Property ibex_uart_properties[] = { DEFINE_PROP_CHR("chardev", IbexUartState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/imx_serial.c b/hw/char/imx_serial.c index 22c9080b1c..6376f2cadc 100644 --- a/hw/char/imx_serial.c +++ b/hw/char/imx_serial.c @@ -438,7 +438,7 @@ static void imx_serial_init(Object *obj) sysbus_init_irq(sbd, &s->irq); } -static Property imx_serial_properties[] = { +static const Property imx_serial_properties[] = { DEFINE_PROP_CHR("chardev", IMXSerialState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/ipoctal232.c b/hw/char/ipoctal232.c index 64be5226d4..fb8cb6c2b7 100644 --- a/hw/char/ipoctal232.c +++ b/hw/char/ipoctal232.c @@ -558,7 +558,7 @@ static void ipoctal_realize(DeviceState *dev, Error **errp) } } -static Property ipoctal_properties[] = { +static const Property ipoctal_properties[] = { DEFINE_PROP_CHR("chardev0", IPOctalState, ch[0].dev), DEFINE_PROP_CHR("chardev1", IPOctalState, ch[1].dev), DEFINE_PROP_CHR("chardev2", IPOctalState, ch[2].dev), diff --git a/hw/char/mcf_uart.c b/hw/char/mcf_uart.c index ad15e28944..c044536d5d 100644 --- a/hw/char/mcf_uart.c +++ b/hw/char/mcf_uart.c @@ -312,7 +312,7 @@ static void mcf_uart_realize(DeviceState *dev, Error **errp) mcf_uart_event, NULL, s, NULL, true); } -static Property mcf_uart_properties[] = { +static const Property mcf_uart_properties[] = { DEFINE_PROP_CHR("chardev", mcf_uart_state, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/nrf51_uart.c b/hw/char/nrf51_uart.c index 04da3f8d97..b164c70f52 100644 --- a/hw/char/nrf51_uart.c +++ b/hw/char/nrf51_uart.c @@ -304,7 +304,7 @@ static const VMStateDescription nrf51_uart_vmstate = { } }; -static Property nrf51_uart_properties[] = { +static const Property nrf51_uart_properties[] = { DEFINE_PROP_CHR("chardev", NRF51UARTState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/parallel.c b/hw/char/parallel.c index c394635ada..15191698f5 100644 --- a/hw/char/parallel.c +++ b/hw/char/parallel.c @@ -603,7 +603,7 @@ bool parallel_mm_init(MemoryRegion *address_space, return true; } -static Property parallel_isa_properties[] = { +static const Property parallel_isa_properties[] = { DEFINE_PROP_UINT32("index", ISAParallelState, index, -1), DEFINE_PROP_UINT32("iobase", ISAParallelState, iobase, -1), DEFINE_PROP_UINT32("irq", ISAParallelState, isairq, 7), diff --git a/hw/char/pl011.c b/hw/char/pl011.c index 0fd1334fab..5fbee5e6c5 100644 --- a/hw/char/pl011.c +++ b/hw/char/pl011.c @@ -603,7 +603,7 @@ static const VMStateDescription vmstate_pl011 = { } }; -static Property pl011_properties[] = { +static const Property pl011_properties[] = { DEFINE_PROP_CHR("chardev", PL011State, chr), DEFINE_PROP_BOOL("migrate-clk", PL011State, migrate_clk, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/char/renesas_sci.c b/hw/char/renesas_sci.c index 7ce0408b0c..516b48648b 100644 --- a/hw/char/renesas_sci.c +++ b/hw/char/renesas_sci.c @@ -319,7 +319,7 @@ static const VMStateDescription vmstate_rsci = { } }; -static Property rsci_properties[] = { +static const Property rsci_properties[] = { DEFINE_PROP_UINT64("input-freq", RSCIState, input_freq, 0), DEFINE_PROP_CHR("chardev", RSCIState, chr), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/char/sclpconsole-lm.c b/hw/char/sclpconsole-lm.c index 4fe1c4d289..536b283471 100644 --- a/hw/char/sclpconsole-lm.c +++ b/hw/char/sclpconsole-lm.c @@ -333,7 +333,7 @@ static void console_reset(DeviceState *dev) scon->write_errors = 0; } -static Property console_properties[] = { +static const Property console_properties[] = { DEFINE_PROP_CHR("chardev", SCLPConsoleLM, chr), DEFINE_PROP_UINT32("write_errors", SCLPConsoleLM, write_errors, 0), DEFINE_PROP_BOOL("echo", SCLPConsoleLM, echo, true), diff --git a/hw/char/sclpconsole.c b/hw/char/sclpconsole.c index e6d49e819e..a90b892d1d 100644 --- a/hw/char/sclpconsole.c +++ b/hw/char/sclpconsole.c @@ -251,7 +251,7 @@ static void console_reset(DeviceState *dev) scon->notify = false; } -static Property console_properties[] = { +static const Property console_properties[] = { DEFINE_PROP_CHR("chardev", SCLPConsole, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/serial-isa.c b/hw/char/serial-isa.c index b562ec9d37..2cf50eb0bb 100644 --- a/hw/char/serial-isa.c +++ b/hw/char/serial-isa.c @@ -113,7 +113,7 @@ static const VMStateDescription vmstate_isa_serial = { } }; -static Property serial_isa_properties[] = { +static const Property serial_isa_properties[] = { DEFINE_PROP_UINT32("index", ISASerialState, index, -1), DEFINE_PROP_UINT32("iobase", ISASerialState, iobase, -1), DEFINE_PROP_UINT32("irq", ISASerialState, isairq, -1), diff --git a/hw/char/serial-mm.c b/hw/char/serial-mm.c index 2f67776b19..8f51f1d3b8 100644 --- a/hw/char/serial-mm.c +++ b/hw/char/serial-mm.c @@ -125,7 +125,7 @@ static void serial_mm_instance_init(Object *o) qdev_alias_all_properties(DEVICE(&smm->serial), o); } -static Property serial_mm_properties[] = { +static const Property serial_mm_properties[] = { /* * Set the spacing between adjacent memory-mapped UART registers. * Each register will be at (1 << regshift) bytes after the previous one. diff --git a/hw/char/serial-pci-multi.c b/hw/char/serial-pci-multi.c index 28b275709a..c2f20d8e74 100644 --- a/hw/char/serial-pci-multi.c +++ b/hw/char/serial-pci-multi.c @@ -132,14 +132,14 @@ static const VMStateDescription vmstate_pci_multi_serial = { } }; -static Property multi_2x_serial_pci_properties[] = { +static const Property multi_2x_serial_pci_properties[] = { DEFINE_PROP_CHR("chardev1", PCIMultiSerialState, state[0].chr), DEFINE_PROP_CHR("chardev2", PCIMultiSerialState, state[1].chr), DEFINE_PROP_UINT8("prog_if", PCIMultiSerialState, prog_if, 0x02), DEFINE_PROP_END_OF_LIST(), }; -static Property multi_4x_serial_pci_properties[] = { +static const Property multi_4x_serial_pci_properties[] = { DEFINE_PROP_CHR("chardev1", PCIMultiSerialState, state[0].chr), DEFINE_PROP_CHR("chardev2", PCIMultiSerialState, state[1].chr), DEFINE_PROP_CHR("chardev3", PCIMultiSerialState, state[2].chr), diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c index f8a1a94d0c..2f487a3a79 100644 --- a/hw/char/serial-pci.c +++ b/hw/char/serial-pci.c @@ -81,7 +81,7 @@ static const VMStateDescription vmstate_pci_serial = { } }; -static Property serial_pci_properties[] = { +static const Property serial_pci_properties[] = { DEFINE_PROP_UINT8("prog_if", PCISerialState, prog_if, 0x02), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/serial.c b/hw/char/serial.c index b50a8a1313..85dba02ace 100644 --- a/hw/char/serial.c +++ b/hw/char/serial.c @@ -964,7 +964,7 @@ const MemoryRegionOps serial_io_ops = { .endianness = DEVICE_LITTLE_ENDIAN, }; -static Property serial_properties[] = { +static const Property serial_properties[] = { DEFINE_PROP_CHR("chardev", SerialState, chr), DEFINE_PROP_UINT32("baudbase", SerialState, baudbase, 115200), DEFINE_PROP_BOOL("wakeup", SerialState, wakeup, false), diff --git a/hw/char/sh_serial.c b/hw/char/sh_serial.c index 429b2562aa..2ab7197aee 100644 --- a/hw/char/sh_serial.c +++ b/hw/char/sh_serial.c @@ -447,7 +447,7 @@ static void sh_serial_init(Object *obj) { } -static Property sh_serial_properties[] = { +static const Property sh_serial_properties[] = { DEFINE_PROP_CHR("chardev", SHSerialState, chr), DEFINE_PROP_UINT8("features", SHSerialState, feat, 0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/char/shakti_uart.c b/hw/char/shakti_uart.c index 4a71953c9a..6e56754ca6 100644 --- a/hw/char/shakti_uart.c +++ b/hw/char/shakti_uart.c @@ -157,7 +157,7 @@ static void shakti_uart_instance_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &sus->mmio); } -static Property shakti_uart_properties[] = { +static const Property shakti_uart_properties[] = { DEFINE_PROP_CHR("chardev", ShaktiUartState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/sifive_uart.c b/hw/char/sifive_uart.c index 5ae2a29ed6..97e4be37c0 100644 --- a/hw/char/sifive_uart.c +++ b/hw/char/sifive_uart.c @@ -251,7 +251,7 @@ static int sifive_uart_be_change(void *opaque) return 0; } -static Property sifive_uart_properties[] = { +static const Property sifive_uart_properties[] = { DEFINE_PROP_CHR("chardev", SiFiveUARTState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/spapr_vty.c b/hw/char/spapr_vty.c index 3e23d9cbab..cd91dad709 100644 --- a/hw/char/spapr_vty.c +++ b/hw/char/spapr_vty.c @@ -163,7 +163,7 @@ void spapr_vty_create(SpaprVioBus *bus, Chardev *chardev) qdev_realize_and_unref(dev, &bus->bus, &error_fatal); } -static Property spapr_vty_properties[] = { +static const Property spapr_vty_properties[] = { DEFINE_SPAPR_PROPERTIES(SpaprVioVty, sdev), DEFINE_PROP_CHR("chardev", SpaprVioVty, chardev), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/char/stm32f2xx_usart.c b/hw/char/stm32f2xx_usart.c index 17b5b1f15f..4a3c30eddb 100644 --- a/hw/char/stm32f2xx_usart.c +++ b/hw/char/stm32f2xx_usart.c @@ -199,7 +199,7 @@ static const MemoryRegionOps stm32f2xx_usart_ops = { .endianness = DEVICE_NATIVE_ENDIAN, }; -static Property stm32f2xx_usart_properties[] = { +static const Property stm32f2xx_usart_properties[] = { DEFINE_PROP_CHR("chardev", STM32F2XXUsartState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/stm32l4x5_usart.c b/hw/char/stm32l4x5_usart.c index 3cf200c080..360e79cc3f 100644 --- a/hw/char/stm32l4x5_usart.c +++ b/hw/char/stm32l4x5_usart.c @@ -534,7 +534,7 @@ static const MemoryRegionOps stm32l4x5_usart_base_ops = { }, }; -static Property stm32l4x5_usart_base_properties[] = { +static const Property stm32l4x5_usart_base_properties[] = { DEFINE_PROP_CHR("chardev", Stm32l4x5UsartBaseState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/terminal3270.c b/hw/char/terminal3270.c index 82e85fac2e..c2aafda0ce 100644 --- a/hw/char/terminal3270.c +++ b/hw/char/terminal3270.c @@ -283,7 +283,7 @@ static int write_payload_3270(EmulatedCcw3270Device *dev, uint8_t cmd) return (retval <= 0) ? 0 : get_cds(t)->count; } -static Property terminal_properties[] = { +static const Property terminal_properties[] = { DEFINE_PROP_CHR("chardev", Terminal3270, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/virtio-console.c b/hw/char/virtio-console.c index dbe0b28e60..f58292e2bb 100644 --- a/hw/char/virtio-console.c +++ b/hw/char/virtio-console.c @@ -274,7 +274,7 @@ static const TypeInfo virtconsole_info = { .class_init = virtconsole_class_init, }; -static Property virtserialport_properties[] = { +static const Property virtserialport_properties[] = { DEFINE_PROP_CHR("chardev", VirtConsole, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c index 2094d213cd..1e631bcb2b 100644 --- a/hw/char/virtio-serial-bus.c +++ b/hw/char/virtio-serial-bus.c @@ -835,7 +835,7 @@ static int virtio_serial_load_device(VirtIODevice *vdev, QEMUFile *f, static void virtser_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent); -static Property virtser_props[] = { +static const Property virtser_props[] = { DEFINE_PROP_UINT32("nr", VirtIOSerialPort, id, VIRTIO_CONSOLE_BAD_ID), DEFINE_PROP_STRING("name", VirtIOSerialPort, name), DEFINE_PROP_END_OF_LIST() @@ -1153,7 +1153,7 @@ static const VMStateDescription vmstate_virtio_console = { }, }; -static Property virtio_serial_properties[] = { +static const Property virtio_serial_properties[] = { DEFINE_PROP_UINT32("max_ports", VirtIOSerial, serial.max_virtserial_ports, 31), DEFINE_PROP_BIT64("emergency-write", VirtIOSerial, host_features, diff --git a/hw/char/xen_console.c b/hw/char/xen_console.c index 683c92aca1..c20c1b4b84 100644 --- a/hw/char/xen_console.c +++ b/hw/char/xen_console.c @@ -487,7 +487,7 @@ static char *xen_console_get_frontend_path(XenDevice *xendev, Error **errp) } -static Property xen_console_properties[] = { +static const Property xen_console_properties[] = { DEFINE_PROP_CHR("chardev", XenConsole, chr), DEFINE_PROP_INT32("idx", XenConsole, dev, -1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/char/xilinx_uartlite.c b/hw/char/xilinx_uartlite.c index f325084f8b..ad77226217 100644 --- a/hw/char/xilinx_uartlite.c +++ b/hw/char/xilinx_uartlite.c @@ -176,7 +176,7 @@ static const MemoryRegionOps uart_ops = { } }; -static Property xilinx_uartlite_properties[] = { +static const Property xilinx_uartlite_properties[] = { DEFINE_PROP_CHR("chardev", XilinxUARTLite, chr), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907668 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D77DCE7717F for ; Fri, 13 Dec 2024 19:10:36 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.857116.1269545 (Exim 4.92) (envelope-from ) id 1tMB3U-00073B-RK; Fri, 13 Dec 2024 19:10:28 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 857116.1269545; Fri, 13 Dec 2024 19:10:28 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMB3U-000734-Np; Fri, 13 Dec 2024 19:10:28 +0000 Received: by outflank-mailman (input) for mailman id 857116; Fri, 13 Dec 2024 19:10:27 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMB3S-0005GA-Tr for xen-devel@lists.xenproject.org; Fri, 13 Dec 2024 19:10:26 +0000 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [2607:f8b0:4864:20::32c]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id e89ac4e4-b985-11ef-a0d6-8be0dac302b0; Fri, 13 Dec 2024 20:10:26 +0100 (CET) Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-71e1158fe3eso975036a34.1 for ; Fri, 13 Dec 2024 11:10:26 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:24 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: e89ac4e4-b985-11ef-a0d6-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117025; x=1734721825; darn=lists.xenproject.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=t1hIg4oc5GY14Zd4SHmDtJmfPLkCBWu0upl9dxEz8/g=; b=oGGZ+6mTqbfoTTn/dhGDIh0fDtYPuuGgbzI0MpEyq9S6aMsJX5/sZ6EEeXgnrgZD85 tHwXlP/1D/tnC8KK+vh7ioghvHmN4Q/mK/Nn0VI2gfhWzxX5jjdN0YlznwkfM2nl9qdN abNJkUWtV4rODq1OdFTH9K3vU9Az+fo8RyV7nV9v7rtcZBC2B/G7HyIEhTyvVHTPgKlJ vb3J0ryq0B15zU3c7gVtjq7donV91jBhln0tubHSmVzC4MWp7oJziKgoQAd62wuu69Ez eXYyMD6oaIW2z/1LRmNfeUzdna+ihpm2qBI943wfGPDFP/I/yRgXFeSbmTajPSUt1CTy hExA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117025; x=1734721825; 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=t1hIg4oc5GY14Zd4SHmDtJmfPLkCBWu0upl9dxEz8/g=; b=xNZBgTulc94x2PBX/DqC3ksZrVU7fo0FND4vX6p+lnxVEtWmQhKzuD3TbV4tNrLBfn d+MWcBFA1j8/6kbHpYdz/RckCqI1JBewc7oSoVPK9Ipf/mfWu5+ZFMnMrAMcgbQQJ/UJ cyluw9TW/m8pHzx1afrvHjV5hX8CGpB6cEZmkq8i5R00CnBYaFmz1OaWJaUZn9ZfRtEo SwUMPa4rbRf7UrQZhGZv/9qiydOXcPN6BO0F7+XzczFCk9oKGRXi6Ul0lOffhPFqgC35 p1JBXLlqZwTdD552WffmWOWhodg3VL1Uvzct84eGWFLGr6KU6QMFEmiwzrjvglOsMZOI yDUg== X-Forwarded-Encrypted: i=1; AJvYcCWGPHSUF0zYDT/Rq+1JSoKB8W9v6x5D+2CFLRjczG6D8TGNZICgRX5uRxjORSt0puYRfLQGW+ovl+A=@lists.xenproject.org X-Gm-Message-State: AOJu0YwvMV6vRnMh0aZeHCq7WX97nlw8Blwh5RMy7bVK53tz2S/xuCnz ncZ3HLghbr0rZ8IlrfzMAYSIBijX4tYrZo+bUTFUn8kR4RolBleIq8mkvrUOMC8= X-Gm-Gg: ASbGnct2w8/566jzGdUNEs0ZMJxexXF2uPcg0/8iXnhr14PGTrFTsrHFYS/FGky2WOe EWROICWBZeYgy1jrwXVoLy4+ay5nw92cWD19ypOxICID9bSoEntZnL0XjETPpmT4e+JCNClygqX Sl9V5hd2X5N/2y/d3WRe2T47SfAzWTInMs6tfMN2BFU8KOy3z4RlKjEO5eY+gv6xpAR63glQjwM hbcRKA7NJhAjd86bZy+Hgedr2m9we+KQ3db8u05DFOYCuDxRVS+zj+nYkRo+lK4 X-Google-Smtp-Source: AGHT+IHwfk+yWhygf0MTMKyExMm9RZrHBdGyaRiigL/H+X/LC3MhVRZSqRde0AcS403E+WEtKhsmHQ== X-Received: by 2002:a05:6830:700f:b0:71d:ffa2:d34d with SMTP id 46e09a7af769-71e3b879bbbmr2283286a34.16.1734117025113; Fri, 13 Dec 2024 11:10:25 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Marcel Apfelbaum , Paolo Bonzini , Eduardo Habkost , Jason Wang , Yi Liu , =?utf-8?q?Cl?= =?utf-8?q?=C3=A9ment_Mathieu--Drif?= , Stefano Stabellini , Anthony PERARD , Paul Durrant , "Edgar E. Iglesias" , xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 29/71] hw/i386: Constify all Property Date: Fri, 13 Dec 2024 13:07:03 -0600 Message-ID: <20241213190750.2513964-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Signed-off-by: Richard Henderson --- hw/i386/amd_iommu.c | 2 +- hw/i386/intel_iommu.c | 2 +- hw/i386/kvm/clock.c | 2 +- hw/i386/kvm/i8254.c | 2 +- hw/i386/kvm/ioapic.c | 2 +- hw/i386/sgx-epc.c | 2 +- hw/i386/vmmouse.c | 2 +- hw/i386/vmport.c | 2 +- hw/i386/x86-iommu.c | 2 +- hw/i386/xen/xen_pvdevice.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index af0f4da1f6..ca3e62a244 100644 --- a/hw/i386/amd_iommu.c +++ b/hw/i386/amd_iommu.c @@ -1668,7 +1668,7 @@ static void amdvi_sysbus_realize(DeviceState *dev, Error **errp) amdvi_init(s); } -static Property amdvi_properties[] = { +static const Property amdvi_properties[] = { DEFINE_PROP_BOOL("xtsup", AMDVIState, xtsup, false), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 4c0d1d7d47..a5b268342f 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -3404,7 +3404,7 @@ static const MemoryRegionOps vtd_mem_ops = { }, }; -static Property vtd_properties[] = { +static const Property vtd_properties[] = { DEFINE_PROP_UINT32("version", IntelIOMMUState, version, 0), DEFINE_PROP_ON_OFF_AUTO("eim", IntelIOMMUState, intr_eim, ON_OFF_AUTO_AUTO), diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c index 40aa9a32c3..71150ed2e0 100644 --- a/hw/i386/kvm/clock.c +++ b/hw/i386/kvm/clock.c @@ -305,7 +305,7 @@ static const VMStateDescription kvmclock_vmsd = { } }; -static Property kvmclock_properties[] = { +static const Property kvmclock_properties[] = { DEFINE_PROP_BOOL("x-mach-use-reliable-get-clock", KVMClockState, mach_use_reliable_get_clock, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c index baa4b39582..2933d3f458 100644 --- a/hw/i386/kvm/i8254.c +++ b/hw/i386/kvm/i8254.c @@ -287,7 +287,7 @@ static void kvm_pit_realizefn(DeviceState *dev, Error **errp) kpc->parent_realize(dev, errp); } -static Property kvm_pit_properties[] = { +static const Property kvm_pit_properties[] = { DEFINE_PROP_LOSTTICKPOLICY("lost_tick_policy", KVMPITState, lost_tick_policy, LOST_TICK_POLICY_DELAY), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c index 2907b08164..217ff43b98 100644 --- a/hw/i386/kvm/ioapic.c +++ b/hw/i386/kvm/ioapic.c @@ -133,7 +133,7 @@ static void kvm_ioapic_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, kvm_ioapic_set_irq, IOAPIC_NUM_PINS); } -static Property kvm_ioapic_properties[] = { +static const Property kvm_ioapic_properties[] = { DEFINE_PROP_UINT32("gsi_base", KVMIOAPICState, kvm_gsi_base, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/i386/sgx-epc.c b/hw/i386/sgx-epc.c index d664829d35..c232e825e0 100644 --- a/hw/i386/sgx-epc.c +++ b/hw/i386/sgx-epc.c @@ -19,7 +19,7 @@ #include "target/i386/cpu.h" #include "exec/address-spaces.h" -static Property sgx_epc_properties[] = { +static const Property sgx_epc_properties[] = { DEFINE_PROP_UINT64(SGX_EPC_ADDR_PROP, SGXEPCDevice, addr, 0), DEFINE_PROP_UINT32(SGX_EPC_NUMA_NODE_PROP, SGXEPCDevice, node, 0), DEFINE_PROP_LINK(SGX_EPC_MEMDEV_PROP, SGXEPCDevice, hostmem, diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c index 76130cd46d..da9c35c1ec 100644 --- a/hw/i386/vmmouse.c +++ b/hw/i386/vmmouse.c @@ -317,7 +317,7 @@ static void vmmouse_realizefn(DeviceState *dev, Error **errp) vmport_register(VMPORT_CMD_VMMOUSE_DATA, vmmouse_ioport_read, s); } -static Property vmmouse_properties[] = { +static const Property vmmouse_properties[] = { DEFINE_PROP_LINK("i8042", VMMouseState, i8042, TYPE_I8042, ISAKBDState *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/i386/vmport.c b/hw/i386/vmport.c index 7cc75dbc6d..cab6e72089 100644 --- a/hw/i386/vmport.c +++ b/hw/i386/vmport.c @@ -252,7 +252,7 @@ static void vmport_realizefn(DeviceState *dev, Error **errp) } } -static Property vmport_properties[] = { +static const Property vmport_properties[] = { /* Used to enforce compatibility for migration */ DEFINE_PROP_BIT("x-read-set-eax", VMPortState, compat_flags, VMPORT_COMPAT_READ_SET_EAX_BIT, true), diff --git a/hw/i386/x86-iommu.c b/hw/i386/x86-iommu.c index 60af896225..155f6262ea 100644 --- a/hw/i386/x86-iommu.c +++ b/hw/i386/x86-iommu.c @@ -125,7 +125,7 @@ static void x86_iommu_realize(DeviceState *dev, Error **errp) } } -static Property x86_iommu_properties[] = { +static const Property x86_iommu_properties[] = { DEFINE_PROP_ON_OFF_AUTO("intremap", X86IOMMUState, intr_supported, ON_OFF_AUTO_AUTO), DEFINE_PROP_BOOL("device-iotlb", X86IOMMUState, dt_supported, false), diff --git a/hw/i386/xen/xen_pvdevice.c b/hw/i386/xen/xen_pvdevice.c index ed621531d8..e71483e6e3 100644 --- a/hw/i386/xen/xen_pvdevice.c +++ b/hw/i386/xen/xen_pvdevice.c @@ -115,7 +115,7 @@ static void xen_pv_realize(PCIDevice *pci_dev, Error **errp) &d->mmio); } -static Property xen_pv_props[] = { +static const Property xen_pv_props[] = { DEFINE_PROP_UINT16("vendor-id", XenPVDevice, vendor_id, PCI_VENDOR_ID_XEN), DEFINE_PROP_UINT16("device-id", XenPVDevice, device_id, 0xffff), DEFINE_PROP_UINT8("revision", XenPVDevice, revision, 0x01), From patchwork Fri Dec 13 19:07:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907686 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7F67E77180 for ; Fri, 13 Dec 2024 19:14:11 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.857135.1269554 (Exim 4.92) (envelope-from ) id 1tMB6v-0007xI-Cx; Fri, 13 Dec 2024 19:14:01 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 857135.1269554; Fri, 13 Dec 2024 19:14:01 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMB6v-0007xB-AC; Fri, 13 Dec 2024 19:14:01 +0000 Received: by outflank-mailman (input) for mailman id 857135; Fri, 13 Dec 2024 19:13:59 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMB6t-0007x5-Ep for xen-devel@lists.xenproject.org; Fri, 13 Dec 2024 19:13:59 +0000 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [2607:f8b0:4864:20::235]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 657b258d-b986-11ef-99a3-01e77a169b0f; Fri, 13 Dec 2024 20:13:55 +0100 (CET) Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3eb7edfa42dso1063947b6e.2 for ; Fri, 13 Dec 2024 11:13:55 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:54 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 657b258d-b986-11ef-99a3-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117234; x=1734722034; darn=lists.xenproject.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=wFKwAi47wfnLcU3Qx3I/C9LQF6ejU8QSvlDRphKjPrc=; b=Bb19MNJNvFE8uzJDmajeQzS+kqmA0Bjcg5bIp+tzlHSjiJxV7ZYHVz+WOjoUCqlJle XV1qhrZ7h40Po++dmWfvWmZW1+lAKeFnaHNxFbpypOkazou+pb/LuTD7gCN/AVBjLoUR PBhvAQdnkPydgZ/9XDHyUZ933w4bZOxyStbBXtBEPozYyB7ldbJm7iakSR5hVtZUs8Tt LJtSZ7IDsHKvJ9SY5p0tqEG05PNVXoNNTbM79bcaMYcKSAqYUkA0npDrMIBB2Jx6YXA6 CabBHhVjf4u5AXZD401RYRy33UIEbH1XOHUIUFHuagrsel2wDDP6T4vaFOGtBO6VJP4Q LyKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117234; x=1734722034; 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=wFKwAi47wfnLcU3Qx3I/C9LQF6ejU8QSvlDRphKjPrc=; b=U83vaCAbjYUQirqyTwYeHAwtGDTl08rpqNR+FWVBKeLY36DomXHn8FCkfxR1TjPikg VWByb0HFv1P/yeWHJ0tON4gSQRMEaH5ph4lkLJo6ghoeiLMjdaSQzT00hs45YFY2IuBq 6ZaLOl3SATvzHNsjTS9jksQvwSvr2WBFshjgj88Cz0DbY2u6u/WRPDl3KBWA8dyahv1I tZtctH+qR+q1AXd8oOnTNXAP/WHWrq87wGaUUyG5LLPZKMrv2GPvxj9y5DAhpUeeXaeh mQwMg+41IuzZA262SYNNHUYRxcDbK+BzRyBiF6qR0YM3jLPIEAWkq6AtG7++ePmunlYO +/xw== X-Forwarded-Encrypted: i=1; AJvYcCUfi3T6Suvz5T/X6Pj0aeDByPHmgqmsadO0eq7MUEpC5s+qfU2cU3O8jpBCaMcSWNdF/j71VLWD5ro=@lists.xenproject.org X-Gm-Message-State: AOJu0YzqsTEcgyAQvtuvT8X/kLPi5P0zqcjKsPTI7uYQEZyh5KalU3Pp a/gtR8/JTiJcw1QyzFHc0TGDWYbbLsg0nyzHoQgWGuHFKNDj3d9eEx38iFyMPqo= X-Gm-Gg: ASbGncthCNMwPs3vDF+aKJCNB9tQXDFV24rNqPYcRid/T3MBuURjVNMKO3OyLRLVNtr X59+IAR2PNA/8Da1t48f3LWkTtbzj9FIFR8W+/zyAb/I/SQZDkBfRjIv+MtWbEAmN4y8+IYJhdq 5EzlxVyO+fjWo4jBeXz7Dxn4Hg16gCQO2o4sjX6iZUiEAKK7PmQHxj18fdmD3CnLw0lPNXgo+Eh FMtXXN9Qo9LEcZ/tQs/GuHWqZ/gTUMLkUH0RsNTtul4w/8JU6D76UzcpcIdumuE X-Google-Smtp-Source: AGHT+IFJrsAEbAzw8PHedKF8jNEE5A/ycBi7wNVu+WwdSwNIkAPFcMw1QPeZeNQ/IDou/sUxxHjwmA== X-Received: by 2002:a05:6808:d4e:b0:3ea:519e:cc92 with SMTP id 5614622812f47-3eba699ea30mr2505794b6e.37.1734117234416; Fri, 13 Dec 2024 11:13:54 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Beniamino Galvani , Peter Maydell , Strahinja Jankovic , Jason Wang , "Edgar E. Iglesias" , Alistair Francis , Pavel Pisa , Francisco Iglesias , Vikram Garhwal , Dmitry Fleytman , Akihiko Odaki , Stefan Weil , Bernhard Beschow , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Sriram Yagnaraman , Helge Deller , Thomas Huth , Aleksandar Rikalo , Subbaraya Sundeep , Jan Kiszka , Tyrone Ting , Hao Wu , Max Filippov , Jiri Pirko , Nicholas Piggin , Daniel Henrique Barboza , Harsh Prateek Bora , Sven Schnelle , "Michael S. Tsirkin" , Stefano Stabellini , Anthony PERARD , Paul Durrant , Rob Herring , qemu-arm@nongnu.org (open list:Allwinner-a10), qemu-ppc@nongnu.org (open list:e500), xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 41/71] hw/net: Constify all Property Date: Fri, 13 Dec 2024 13:07:15 -0600 Message-ID: <20241213190750.2513964-46-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater Reviewed-by: Akihiko Odaki --- hw/net/allwinner-sun8i-emac.c | 2 +- hw/net/allwinner_emac.c | 2 +- hw/net/cadence_gem.c | 2 +- hw/net/can/xlnx-versal-canfd.c | 2 +- hw/net/can/xlnx-zynqmp-can.c | 2 +- hw/net/dp8393x.c | 2 +- hw/net/e1000.c | 2 +- hw/net/e1000e.c | 2 +- hw/net/eepro100.c | 2 +- hw/net/fsl_etsec/etsec.c | 2 +- hw/net/ftgmac100.c | 4 ++-- hw/net/igb.c | 2 +- hw/net/imx_fec.c | 2 +- hw/net/lan9118.c | 2 +- hw/net/lance.c | 2 +- hw/net/lasi_i82596.c | 2 +- hw/net/mcf_fec.c | 2 +- hw/net/mipsnet.c | 2 +- hw/net/msf2-emac.c | 2 +- hw/net/mv88w8618_eth.c | 2 +- hw/net/ne2000-isa.c | 2 +- hw/net/ne2000-pci.c | 2 +- hw/net/npcm7xx_emc.c | 2 +- hw/net/npcm_gmac.c | 2 +- hw/net/opencores_eth.c | 2 +- hw/net/pcnet-pci.c | 2 +- hw/net/rocker/rocker.c | 2 +- hw/net/rtl8139.c | 2 +- hw/net/smc91c111.c | 2 +- hw/net/spapr_llan.c | 2 +- hw/net/stellaris_enet.c | 2 +- hw/net/sungem.c | 2 +- hw/net/sunhme.c | 2 +- hw/net/tulip.c | 2 +- hw/net/virtio-net.c | 2 +- hw/net/vmxnet3.c | 2 +- hw/net/xen_nic.c | 2 +- hw/net/xgmac.c | 2 +- hw/net/xilinx_axienet.c | 2 +- hw/net/xilinx_ethlite.c | 2 +- 40 files changed, 41 insertions(+), 41 deletions(-) diff --git a/hw/net/allwinner-sun8i-emac.c b/hw/net/allwinner-sun8i-emac.c index cdae74f503..3f03060bf5 100644 --- a/hw/net/allwinner-sun8i-emac.c +++ b/hw/net/allwinner-sun8i-emac.c @@ -829,7 +829,7 @@ static void allwinner_sun8i_emac_realize(DeviceState *dev, Error **errp) qemu_format_nic_info_str(qemu_get_queue(s->nic), s->conf.macaddr.a); } -static Property allwinner_sun8i_emac_properties[] = { +static const Property allwinner_sun8i_emac_properties[] = { DEFINE_NIC_PROPERTIES(AwSun8iEmacState, conf), DEFINE_PROP_UINT8("phy-addr", AwSun8iEmacState, mii_phy_addr, 0), DEFINE_PROP_LINK("dma-memory", AwSun8iEmacState, dma_mr, diff --git a/hw/net/allwinner_emac.c b/hw/net/allwinner_emac.c index c104c2588e..39c10426cf 100644 --- a/hw/net/allwinner_emac.c +++ b/hw/net/allwinner_emac.c @@ -462,7 +462,7 @@ static void aw_emac_realize(DeviceState *dev, Error **errp) fifo8_create(&s->tx_fifo[1], TX_FIFO_SIZE); } -static Property aw_emac_properties[] = { +static const Property aw_emac_properties[] = { DEFINE_NIC_PROPERTIES(AwEmacState, conf), DEFINE_PROP_UINT8("phy-addr", AwEmacState, phy_addr, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 526739887c..3fce01315f 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -1784,7 +1784,7 @@ static const VMStateDescription vmstate_cadence_gem = { } }; -static Property gem_properties[] = { +static const Property gem_properties[] = { DEFINE_NIC_PROPERTIES(CadenceGEMState, conf), DEFINE_PROP_UINT32("revision", CadenceGEMState, revision, GEM_MODID_VALUE), diff --git a/hw/net/can/xlnx-versal-canfd.c b/hw/net/can/xlnx-versal-canfd.c index e148bd7b46..97fa46c4b3 100644 --- a/hw/net/can/xlnx-versal-canfd.c +++ b/hw/net/can/xlnx-versal-canfd.c @@ -2042,7 +2042,7 @@ static const VMStateDescription vmstate_canfd = { } }; -static Property canfd_core_properties[] = { +static const Property canfd_core_properties[] = { DEFINE_PROP_UINT8("rx-fifo0", XlnxVersalCANFDState, cfg.rx0_fifo, 0x40), DEFINE_PROP_UINT8("rx-fifo1", XlnxVersalCANFDState, cfg.rx1_fifo, 0x40), DEFINE_PROP_UINT8("tx-fifo", XlnxVersalCANFDState, cfg.tx_fifo, 0x20), diff --git a/hw/net/can/xlnx-zynqmp-can.c b/hw/net/can/xlnx-zynqmp-can.c index 58f1432bb3..61c104c18b 100644 --- a/hw/net/can/xlnx-zynqmp-can.c +++ b/hw/net/can/xlnx-zynqmp-can.c @@ -1169,7 +1169,7 @@ static const VMStateDescription vmstate_can = { } }; -static Property xlnx_zynqmp_can_properties[] = { +static const Property xlnx_zynqmp_can_properties[] = { DEFINE_PROP_UINT32("ext_clk_freq", XlnxZynqMPCANState, cfg.ext_clk_freq, CAN_DEFAULT_CLOCK), DEFINE_PROP_LINK("canbus", XlnxZynqMPCANState, canbus, TYPE_CAN_BUS, diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index c0977308ba..e3ca11991b 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c @@ -931,7 +931,7 @@ static const VMStateDescription vmstate_dp8393x = { } }; -static Property dp8393x_properties[] = { +static const Property dp8393x_properties[] = { DEFINE_NIC_PROPERTIES(dp8393xState, conf), DEFINE_PROP_LINK("dma_mr", dp8393xState, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), diff --git a/hw/net/e1000.c b/hw/net/e1000.c index ab72236d18..ef0af31751 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -1677,7 +1677,7 @@ static void pci_e1000_realize(PCIDevice *pci_dev, Error **errp) e1000_flush_queue_timer, d); } -static Property e1000_properties[] = { +static const Property e1000_properties[] = { DEFINE_NIC_PROPERTIES(E1000State, conf), DEFINE_PROP_BIT("extra_mac_registers", E1000State, compat_flags, E1000_FLAG_MAC_BIT, true), diff --git a/hw/net/e1000e.c b/hw/net/e1000e.c index 843892ce09..e2b7576f67 100644 --- a/hw/net/e1000e.c +++ b/hw/net/e1000e.c @@ -661,7 +661,7 @@ static PropertyInfo e1000e_prop_disable_vnet, e1000e_prop_subsys_ven, e1000e_prop_subsys; -static Property e1000e_properties[] = { +static const Property e1000e_properties[] = { DEFINE_NIC_PROPERTIES(E1000EState, conf), DEFINE_PROP_SIGNED("disable_vnet_hdr", E1000EState, disable_vnet, false, e1000e_prop_disable_vnet, bool), diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index 20b22d8e49..b8cb8d5cf1 100644 --- a/hw/net/eepro100.c +++ b/hw/net/eepro100.c @@ -2058,7 +2058,7 @@ static E100PCIDeviceInfo *eepro100_get_class(EEPRO100State *s) return eepro100_get_class_by_name(object_get_typename(OBJECT(s))); } -static Property e100_properties[] = { +static const Property e100_properties[] = { DEFINE_NIC_PROPERTIES(EEPRO100State, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c index d8076e7be4..764be2c6a2 100644 --- a/hw/net/fsl_etsec/etsec.c +++ b/hw/net/fsl_etsec/etsec.c @@ -414,7 +414,7 @@ static void etsec_instance_init(Object *obj) sysbus_init_irq(sbd, &etsec->err_irq); } -static Property etsec_properties[] = { +static const Property etsec_properties[] = { DEFINE_NIC_PROPERTIES(eTSEC, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/ftgmac100.c b/hw/net/ftgmac100.c index 478356ee3e..4adc7fb10c 100644 --- a/hw/net/ftgmac100.c +++ b/hw/net/ftgmac100.c @@ -1254,7 +1254,7 @@ static const VMStateDescription vmstate_ftgmac100 = { } }; -static Property ftgmac100_properties[] = { +static const Property ftgmac100_properties[] = { DEFINE_PROP_BOOL("aspeed", FTGMAC100State, aspeed, false), DEFINE_NIC_PROPERTIES(FTGMAC100State, conf), DEFINE_PROP_BOOL("dma64", FTGMAC100State, dma64, false), @@ -1415,7 +1415,7 @@ static const VMStateDescription vmstate_aspeed_mii = { } }; -static Property aspeed_mii_properties[] = { +static const Property aspeed_mii_properties[] = { DEFINE_PROP_LINK("nic", AspeedMiiState, nic, TYPE_FTGMAC100, FTGMAC100State *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/net/igb.c b/hw/net/igb.c index b92bba402e..ad0f748d82 100644 --- a/hw/net/igb.c +++ b/hw/net/igb.c @@ -591,7 +591,7 @@ static const VMStateDescription igb_vmstate = { } }; -static Property igb_properties[] = { +static const Property igb_properties[] = { DEFINE_NIC_PROPERTIES(IGBState, conf), DEFINE_PROP_BOOL("x-pcie-flr-init", IGBState, has_flr, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 4ee6f74206..9b64968477 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -1222,7 +1222,7 @@ static void imx_eth_realize(DeviceState *dev, Error **errp) qemu_format_nic_info_str(qemu_get_queue(s->nic), s->conf.macaddr.a); } -static Property imx_eth_properties[] = { +static const Property imx_eth_properties[] = { DEFINE_NIC_PROPERTIES(IMXFECState, conf), DEFINE_PROP_UINT32("tx-ring-num", IMXFECState, tx_ring_num, 1), DEFINE_PROP_UINT32("phy-num", IMXFECState, phy_num, 0), diff --git a/hw/net/lan9118.c b/hw/net/lan9118.c index 99e87b7178..237e9b97d5 100644 --- a/hw/net/lan9118.c +++ b/hw/net/lan9118.c @@ -1304,7 +1304,7 @@ static void lan9118_realize(DeviceState *dev, Error **errp) ptimer_transaction_commit(s->timer); } -static Property lan9118_properties[] = { +static const Property lan9118_properties[] = { DEFINE_NIC_PROPERTIES(lan9118_state, conf), DEFINE_PROP_UINT32("mode_16bit", lan9118_state, mode_16bit, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/net/lance.c b/hw/net/lance.c index 269615b452..9ed9c94cff 100644 --- a/hw/net/lance.c +++ b/hw/net/lance.c @@ -137,7 +137,7 @@ static void lance_instance_init(Object *obj) DEVICE(obj)); } -static Property lance_properties[] = { +static const Property lance_properties[] = { DEFINE_PROP_LINK("dma", SysBusPCNetState, state.dma_opaque, TYPE_DEVICE, DeviceState *), DEFINE_NIC_PROPERTIES(SysBusPCNetState, state.conf), diff --git a/hw/net/lasi_i82596.c b/hw/net/lasi_i82596.c index 183fab8712..248e3841db 100644 --- a/hw/net/lasi_i82596.c +++ b/hw/net/lasi_i82596.c @@ -158,7 +158,7 @@ static void lasi_82596_instance_init(Object *obj) DEVICE(obj)); } -static Property lasi_82596_properties[] = { +static const Property lasi_82596_properties[] = { DEFINE_NIC_PROPERTIES(SysBusI82596State, state.conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/mcf_fec.c b/hw/net/mcf_fec.c index 037cd2028e..55bad4c069 100644 --- a/hw/net/mcf_fec.c +++ b/hw/net/mcf_fec.c @@ -660,7 +660,7 @@ static void mcf_fec_instance_init(Object *obj) } } -static Property mcf_fec_properties[] = { +static const Property mcf_fec_properties[] = { DEFINE_NIC_PROPERTIES(mcf_fec_state, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/mipsnet.c b/hw/net/mipsnet.c index 31bbd6fb89..c9ef1beb7b 100644 --- a/hw/net/mipsnet.c +++ b/hw/net/mipsnet.c @@ -266,7 +266,7 @@ static void mipsnet_sysbus_reset(DeviceState *dev) mipsnet_reset(s); } -static Property mipsnet_properties[] = { +static const Property mipsnet_properties[] = { DEFINE_NIC_PROPERTIES(MIPSnetState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/msf2-emac.c b/hw/net/msf2-emac.c index d28fc6c570..8d9015f962 100644 --- a/hw/net/msf2-emac.c +++ b/hw/net/msf2-emac.c @@ -546,7 +546,7 @@ static void msf2_emac_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio); } -static Property msf2_emac_properties[] = { +static const Property msf2_emac_properties[] = { DEFINE_PROP_LINK("ahb-bus", MSF2EmacState, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_NIC_PROPERTIES(MSF2EmacState, conf), diff --git a/hw/net/mv88w8618_eth.c b/hw/net/mv88w8618_eth.c index 96c65f4d46..ccb11512db 100644 --- a/hw/net/mv88w8618_eth.c +++ b/hw/net/mv88w8618_eth.c @@ -371,7 +371,7 @@ static const VMStateDescription mv88w8618_eth_vmsd = { } }; -static Property mv88w8618_eth_properties[] = { +static const Property mv88w8618_eth_properties[] = { DEFINE_NIC_PROPERTIES(mv88w8618_eth_state, conf), DEFINE_PROP_LINK("dma-memory", mv88w8618_eth_state, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c index 26980e087e..1cd070d419 100644 --- a/hw/net/ne2000-isa.c +++ b/hw/net/ne2000-isa.c @@ -79,7 +79,7 @@ static void isa_ne2000_realizefn(DeviceState *dev, Error **errp) qemu_format_nic_info_str(qemu_get_queue(s->nic), s->c.macaddr.a); } -static Property ne2000_isa_properties[] = { +static const Property ne2000_isa_properties[] = { DEFINE_PROP_UINT32("iobase", ISANE2000State, iobase, 0x300), DEFINE_PROP_UINT32("irq", ISANE2000State, isairq, 9), DEFINE_NIC_PROPERTIES(ISANE2000State, ne2000.c), diff --git a/hw/net/ne2000-pci.c b/hw/net/ne2000-pci.c index 74773069c6..12fa579d22 100644 --- a/hw/net/ne2000-pci.c +++ b/hw/net/ne2000-pci.c @@ -96,7 +96,7 @@ static void ne2000_instance_init(Object *obj) &pci_dev->qdev); } -static Property ne2000_properties[] = { +static const Property ne2000_properties[] = { DEFINE_NIC_PROPERTIES(PCINE2000State, ne2000.c), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/npcm7xx_emc.c b/hw/net/npcm7xx_emc.c index 7307a13400..f06e908d04 100644 --- a/hw/net/npcm7xx_emc.c +++ b/hw/net/npcm7xx_emc.c @@ -845,7 +845,7 @@ static const VMStateDescription vmstate_npcm7xx_emc = { }, }; -static Property npcm7xx_emc_properties[] = { +static const Property npcm7xx_emc_properties[] = { DEFINE_NIC_PROPERTIES(NPCM7xxEMCState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/npcm_gmac.c b/hw/net/npcm_gmac.c index 685905f9e2..1db29307d7 100644 --- a/hw/net/npcm_gmac.c +++ b/hw/net/npcm_gmac.c @@ -912,7 +912,7 @@ static const VMStateDescription vmstate_npcm_gmac = { }, }; -static Property npcm_gmac_properties[] = { +static const Property npcm_gmac_properties[] = { DEFINE_NIC_PROPERTIES(NPCMGMACState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/opencores_eth.c b/hw/net/opencores_eth.c index 2c0ebda100..003b452bc9 100644 --- a/hw/net/opencores_eth.c +++ b/hw/net/opencores_eth.c @@ -743,7 +743,7 @@ static void qdev_open_eth_reset(DeviceState *dev) open_eth_reset(d); } -static Property open_eth_properties[] = { +static const Property open_eth_properties[] = { DEFINE_NIC_PROPERTIES(OpenEthState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c index 6190b76916..83ba8cd949 100644 --- a/hw/net/pcnet-pci.c +++ b/hw/net/pcnet-pci.c @@ -252,7 +252,7 @@ static void pcnet_instance_init(Object *obj) DEVICE(obj)); } -static Property pcnet_properties[] = { +static const Property pcnet_properties[] = { DEFINE_NIC_PROPERTIES(PCIPCNetState, state.conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c index 5e74acc969..efc20396aa 100644 --- a/hw/net/rocker/rocker.c +++ b/hw/net/rocker/rocker.c @@ -1459,7 +1459,7 @@ static void rocker_reset(DeviceState *dev) DPRINTF("Reset done\n"); } -static Property rocker_properties[] = { +static const Property rocker_properties[] = { DEFINE_PROP_STRING("name", Rocker, name), DEFINE_PROP_STRING("world", Rocker, world_name), DEFINE_PROP_MACADDR("fp_start_macaddr", Rocker, diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index bc56075c0d..064a73b6b4 100644 --- a/hw/net/rtl8139.c +++ b/hw/net/rtl8139.c @@ -3410,7 +3410,7 @@ static void rtl8139_instance_init(Object *obj) DEVICE(obj)); } -static Property rtl8139_properties[] = { +static const Property rtl8139_properties[] = { DEFINE_NIC_PROPERTIES(RTL8139State, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/smc91c111.c b/hw/net/smc91c111.c index 180ba5c791..a853c30fa2 100644 --- a/hw/net/smc91c111.c +++ b/hw/net/smc91c111.c @@ -788,7 +788,7 @@ static void smc91c111_realize(DeviceState *dev, Error **errp) /* ??? Save/restore. */ } -static Property smc91c111_properties[] = { +static const Property smc91c111_properties[] = { DEFINE_NIC_PROPERTIES(smc91c111_state, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/spapr_llan.c b/hw/net/spapr_llan.c index 8af33d91b6..d381c041db 100644 --- a/hw/net/spapr_llan.c +++ b/hw/net/spapr_llan.c @@ -786,7 +786,7 @@ static target_ulong h_change_logical_lan_mac(PowerPCCPU *cpu, return H_SUCCESS; } -static Property spapr_vlan_properties[] = { +static const Property spapr_vlan_properties[] = { DEFINE_SPAPR_PROPERTIES(SpaprVioVlan, sdev), DEFINE_NIC_PROPERTIES(SpaprVioVlan, nicconf), DEFINE_PROP_BIT("use-rx-buffer-pools", SpaprVioVlan, diff --git a/hw/net/stellaris_enet.c b/hw/net/stellaris_enet.c index 9ebff296c4..4af1afa733 100644 --- a/hw/net/stellaris_enet.c +++ b/hw/net/stellaris_enet.c @@ -497,7 +497,7 @@ static void stellaris_enet_realize(DeviceState *dev, Error **errp) qemu_format_nic_info_str(qemu_get_queue(s->nic), s->conf.macaddr.a); } -static Property stellaris_enet_properties[] = { +static const Property stellaris_enet_properties[] = { DEFINE_NIC_PROPERTIES(stellaris_enet_state, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/sungem.c b/hw/net/sungem.c index 67087e9842..bcc7a18382 100644 --- a/hw/net/sungem.c +++ b/hw/net/sungem.c @@ -1420,7 +1420,7 @@ static void sungem_instance_init(Object *obj) DEVICE(obj)); } -static Property sungem_properties[] = { +static const Property sungem_properties[] = { DEFINE_NIC_PROPERTIES(SunGEMState, conf), /* Phy address should be 0 for most Apple machines except * for K2 in which case it's 1. Will be set by a machine diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c index 0e6c655a5b..86f472fcbe 100644 --- a/hw/net/sunhme.c +++ b/hw/net/sunhme.c @@ -177,7 +177,7 @@ struct SunHMEState { uint16_t miiregs[HME_MII_REGS_SIZE]; }; -static Property sunhme_properties[] = { +static const Property sunhme_properties[] = { DEFINE_NIC_PROPERTIES(SunHMEState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/tulip.c b/hw/net/tulip.c index 9df3e17162..f35b58a88c 100644 --- a/hw/net/tulip.c +++ b/hw/net/tulip.c @@ -1007,7 +1007,7 @@ static void tulip_instance_init(Object *obj) &pci_dev->qdev); } -static Property tulip_properties[] = { +static const Property tulip_properties[] = { DEFINE_NIC_PROPERTIES(TULIPState, c), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 6e8c51a2db..4fd1f9acca 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -3985,7 +3985,7 @@ static const VMStateDescription vmstate_virtio_net = { .dev_unplug_pending = dev_unplug_pending, }; -static Property virtio_net_properties[] = { +static const Property virtio_net_properties[] = { DEFINE_PROP_BIT64("csum", VirtIONet, host_features, VIRTIO_NET_F_CSUM, true), DEFINE_PROP_BIT64("guest_csum", VirtIONet, host_features, diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index 8aa8c46228..f69547cad5 100644 --- a/hw/net/vmxnet3.c +++ b/hw/net/vmxnet3.c @@ -2471,7 +2471,7 @@ static const VMStateDescription vmstate_vmxnet3 = { } }; -static Property vmxnet3_properties[] = { +static const Property vmxnet3_properties[] = { DEFINE_NIC_PROPERTIES(VMXNET3State, conf), DEFINE_PROP_BIT("x-old-msi-offsets", VMXNET3State, compat_flags, VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS_BIT, false), diff --git a/hw/net/xen_nic.c b/hw/net/xen_nic.c index 89487b49ba..5a5259150a 100644 --- a/hw/net/xen_nic.c +++ b/hw/net/xen_nic.c @@ -555,7 +555,7 @@ static void xen_netdev_unrealize(XenDevice *xendev) /* ------------------------------------------------------------- */ -static Property xen_netdev_properties[] = { +static const Property xen_netdev_properties[] = { DEFINE_NIC_PROPERTIES(XenNetDev, conf), DEFINE_PROP_INT32("idx", XenNetDev, dev, -1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/net/xgmac.c b/hw/net/xgmac.c index ffe3fc8dbe..6e0f96f485 100644 --- a/hw/net/xgmac.c +++ b/hw/net/xgmac.c @@ -414,7 +414,7 @@ static void xgmac_enet_realize(DeviceState *dev, Error **errp) s->conf.macaddr.a[0]; } -static Property xgmac_properties[] = { +static const Property xgmac_properties[] = { DEFINE_NIC_PROPERTIES(XgmacState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c index faf27947b0..9d0c618e2f 100644 --- a/hw/net/xilinx_axienet.c +++ b/hw/net/xilinx_axienet.c @@ -996,7 +996,7 @@ static void xilinx_enet_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property xilinx_enet_properties[] = { +static const Property xilinx_enet_properties[] = { DEFINE_PROP_UINT32("phyaddr", XilinxAXIEnet, c_phyaddr, 7), DEFINE_PROP_UINT32("rxmem", XilinxAXIEnet, c_rxmem, 0x1000), DEFINE_PROP_UINT32("txmem", XilinxAXIEnet, c_txmem, 0x1000), diff --git a/hw/net/xilinx_ethlite.c b/hw/net/xilinx_ethlite.c index bd81290808..9413731d20 100644 --- a/hw/net/xilinx_ethlite.c +++ b/hw/net/xilinx_ethlite.c @@ -251,7 +251,7 @@ static void xilinx_ethlite_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio); } -static Property xilinx_ethlite_properties[] = { +static const Property xilinx_ethlite_properties[] = { DEFINE_PROP_UINT32("tx-ping-pong", struct xlx_ethlite, c_tx_pingpong, 1), DEFINE_PROP_UINT32("rx-ping-pong", struct xlx_ethlite, c_rx_pingpong, 1), DEFINE_NIC_PROPERTIES(struct xlx_ethlite, conf), From patchwork Fri Dec 13 19:30:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907735 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F3D4DE77180 for ; Fri, 13 Dec 2024 19:31:05 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.857148.1269565 (Exim 4.92) (envelope-from ) id 1tMBN9-0002eL-PL; Fri, 13 Dec 2024 19:30:47 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 857148.1269565; Fri, 13 Dec 2024 19:30:47 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMBN9-0002eE-LG; Fri, 13 Dec 2024 19:30:47 +0000 Received: by outflank-mailman (input) for mailman id 857148; Fri, 13 Dec 2024 19:30:46 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMBN8-0002e8-Gr for xen-devel@lists.xenproject.org; Fri, 13 Dec 2024 19:30:46 +0000 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [2a00:1450:4864:20::12f]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id bee7d81c-b988-11ef-99a3-01e77a169b0f; Fri, 13 Dec 2024 20:30:44 +0100 (CET) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-53df6322ea7so2982485e87.0 for ; Fri, 13 Dec 2024 11:30:44 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:43 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: bee7d81c-b988-11ef-99a3-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118244; x=1734723044; darn=lists.xenproject.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=Ks6G+A84FfZ3IMwYe7rtmCGNogRG46Y1v4JaJo0a9Is=; b=S+PZ3DHfsJ0S9wjWF0R8cacakxTf31oZVROvgLOyb2MHSO5N0+OHgBalb/5/Hfq+SS VIRFd8lwme4lMOX1E6SDa639d0aFK6jGCgMtvxKnoFlDAXAMz4l7KiYV23SQr+eDh7BG BAX90NAiVsltKhOP47SQ10OHIeIyhGnqYS1/5R7T36RPERwkOCIhZ6/TrcyEVVsgBiaD AvRPy51pzOocKVhMRGgg0hkX4XbDmIXt704Se+LWYWMhrhSgyuG8PDHnWhiMxTvVd/E+ 85VN4zmQatP8A3Pcz1msQluaalA7WxMq5EfVHPTwA8YuhzdldmSc1rG5EuGfHx2t4cqG LoEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118244; x=1734723044; 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=Ks6G+A84FfZ3IMwYe7rtmCGNogRG46Y1v4JaJo0a9Is=; b=FdCUFeiCki8FIAW6XiDsXKDI4g5b3mvaMUaBDmPZQ5R6Rki41tEhWbrU8un5u1hmj/ 7Ht0sJe1CzLWJJ9fS/nNNXvAbLqXT86S5GWRD8c33Sgh2EfTpFFVrXE8blu/LWB18BX2 wwk05GOlrO7VTeQghkSZSDKlSFNx6F+0cdyhjP+f+LAKQ4W7u0PAmivi8ozmHHIj7SFk zWgJgvpoc8nxFqqqW3JDNGgjrAqjHYJx4FJymIL+/aWaIIpLepPYwyhwC5uBiczSukH1 3/Zok734e6p0ZJDMTpKG6XwEJxfxKpqvGz1h50ui+uPmhHgo1f4yLGscC6Ra3u2OL+LJ OyQA== X-Forwarded-Encrypted: i=1; AJvYcCXlKqZF0K4zRvDyw6rf+d0XBnmd0KnV19cfI1KmM1lvIpiweg6XzhsZqcNT7CYFU62kwRcVlvzYm3Q=@lists.xenproject.org X-Gm-Message-State: AOJu0YzdYwSUKgSwS8ncVeenWICLm0PiEIQyMhWerRZ8z3LzghJp3arv DhOv5LKtDso86UcKvAxIhEP65Dq8L3TbfffJFWvtCUTkCtBJOTU9GC+zWsw5/sw= X-Gm-Gg: ASbGncuRYIZ/gSdPmnZYPOMR2YS0zYDoTjisBgCesjispW05yrwjiKhkpu9CJbL+IVA 9pokZbsP8jIGIWx8j115iNOiyA4x/NwK33VemfQbtqBzcQUsIHuScAS46FBqkjRzMPSJPstFg6X 0C1/DiBnBaQAvlfGwN29CAx9u7hQpD0SO1k0P9/G3i5BV1iPvQEH/c7E/yVwWvowoLSMfSePb84 tK7LYM0KxK44CpIwtMzX0k7lUbDOOFmGe9Ig1aVGSOb5RTRnQu8cor6Zbwd6A== X-Google-Smtp-Source: AGHT+IFGZJIZIUb5LjrLjVc0WvQwaJBK5eY0K7njVad3ONjLROwm4SnNIJX99T953BtT5rEvxmgCfA== X-Received: by 2002:a05:6512:3e07:b0:53e:2fdb:4de3 with SMTP id 2adb3069b0e04-540905955ccmr1343488e87.44.1734118243635; Fri, 13 Dec 2024 11:30:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Stefano Stabellini , Anthony PERARD , Paul Durrant , "Edgar E. Iglesias" , xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 68/71] hw/xen: Constify all Property Date: Fri, 13 Dec 2024 13:30:02 -0600 Message-ID: <20241213193004.2515684-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213193004.2515684-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> <20241213193004.2515684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Signed-off-by: Richard Henderson Reviewed-by: Jason Andryuk --- hw/xen/xen-bus.c | 2 +- hw/xen/xen-legacy-backend.c | 4 ++-- hw/xen/xen_pt.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xen/xen-bus.c b/hw/xen/xen-bus.c index 95b207ac8b..0d7defb8cd 100644 --- a/hw/xen/xen-bus.c +++ b/hw/xen/xen-bus.c @@ -1092,7 +1092,7 @@ unrealize: xen_device_unrealize(dev); } -static Property xen_device_props[] = { +static const Property xen_device_props[] = { DEFINE_PROP_UINT16("frontend-id", XenDevice, frontend_id, DOMID_INVALID), DEFINE_PROP_END_OF_LIST() diff --git a/hw/xen/xen-legacy-backend.c b/hw/xen/xen-legacy-backend.c index e8e1ee4f7d..b15393e934 100644 --- a/hw/xen/xen-legacy-backend.c +++ b/hw/xen/xen-legacy-backend.c @@ -635,7 +635,7 @@ int xen_be_bind_evtchn(struct XenLegacyDevice *xendev) } -static Property xendev_properties[] = { +static const Property xendev_properties[] = { DEFINE_PROP_END_OF_LIST(), }; @@ -674,7 +674,7 @@ static const TypeInfo xensysbus_info = { } }; -static Property xen_sysdev_properties[] = { +static const Property xen_sysdev_properties[] = { {/* end of property list */}, }; diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c index 3635d1b39f..557aa98be4 100644 --- a/hw/xen/xen_pt.c +++ b/hw/xen/xen_pt.c @@ -931,7 +931,7 @@ static void xen_pt_unregister_device(PCIDevice *d) xen_pt_destroy(d); } -static Property xen_pci_passthrough_properties[] = { +static const Property xen_pci_passthrough_properties[] = { DEFINE_PROP_PCI_HOST_DEVADDR("hostaddr", XenPCIPassthroughState, hostaddr), DEFINE_PROP_BOOL("permissive", XenPCIPassthroughState, permissive, false), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:30:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907734 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D716E77183 for ; Fri, 13 Dec 2024 19:31:04 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.857149.1269576 (Exim 4.92) (envelope-from ) id 1tMBNE-0002v6-4t; Fri, 13 Dec 2024 19:30:52 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 857149.1269576; Fri, 13 Dec 2024 19:30:52 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMBND-0002uz-Vn; Fri, 13 Dec 2024 19:30:51 +0000 Received: by outflank-mailman (input) for mailman id 857149; Fri, 13 Dec 2024 19:30:50 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tMBNC-0002uA-HY for xen-devel@lists.xenproject.org; Fri, 13 Dec 2024 19:30:50 +0000 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [2a00:1450:4864:20::12f]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c1e559a7-b988-11ef-a0d6-8be0dac302b0; Fri, 13 Dec 2024 20:30:49 +0100 (CET) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-5401be44b58so2133033e87.0 for ; Fri, 13 Dec 2024 11:30:49 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:48 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c1e559a7-b988-11ef-a0d6-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118249; x=1734723049; darn=lists.xenproject.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=G5t5Kfg88Idn9A8sdeK/3C+aA4Q4/f69T01+9FYpo+k=; b=dV0MQvqM07waF9qRZdtPAk2OkKBlQl6sfLWkrLfmYsMtdUHriL5r+bPTWDAnEqESAc vvPPMyEmJ8I2imbb6bFkovdiEhq2uc9GGjo/TW7HdCpmFWo7FdaXyrNbiX661c9BgF0Z P0MnMrhQu3z6I+WaIgpbPvB/9g3mNmB5VyzOCmA+pSLCGcVgzz63oRvhtxYrBFugYF/0 uEyv/owZvMmze8UC1b4Uj68uI4X0CrIivLp9oaBoBOOmv/IP/blBUl7ZUtHl/gixA7ss y/ekH5+jef74IJu4GVt5DJumeXpfq0v0F9BufnvTrMqbvY/0QyJoSYGTbMW47rPDeiw+ cmiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118249; x=1734723049; 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=G5t5Kfg88Idn9A8sdeK/3C+aA4Q4/f69T01+9FYpo+k=; b=OD+o1ahs1Boucl6jUsV+lFPhBtbDlpL6oD9OkoVBtZ7HVp+rOWqxKTyZDRLrQmWy30 0wCYlnvXggP/toFCWuuwQ9OFr77WEoIyzHf0a0W3OKIg4m6fGbDQOSqep0dKzpYVf+mU oEpJRaxsOlex+koc+B23Ny9YAOIzX5xS2E3n93VqNtQa2HUMe7oAo9XKF/qMgT9ACMEY BJEqSpMa4BD3GzfHqvjvzy/MC9u3RWC/KF5+4rqpjr9g/7vzRWtZWYQfd4rhOFBAbc50 OdkLdevASleDLY0KViJka9dsm8O4b/YeUphfdYpebLhkt4DQYGiwXysXc9TAkGgWoYBy OT4A== X-Forwarded-Encrypted: i=1; AJvYcCWGh7ni0Z3MMevRZ+h/BiU2/0MNRBRa+fFOQu42sMAezL0EYhJ8p2W1RTokyuuYhq3vthRKqLLcGdE=@lists.xenproject.org X-Gm-Message-State: AOJu0YzCUNEuNoeolrYFZrkQj54VXkWkNtoWG8SLBOwuz9JuJINHb3IM 2hgUbWI969tKXnX+Usvk435WHtR8D7FLEoDUV5Fu37zyOHXKAXmf1kSDKeETj+K74j7khnRsBIt Wk0A/iIpT X-Gm-Gg: ASbGncvBNxCqaXCVbGG6is/mVjMr2Hedf1ikBCefgWbAV+fn/8kNCjiqWqILMuzttgU OpI63Y3Ir77QeEwuBvEIkeRzYPSUhSxePWCd6YTkIUb3Sfc06UNJlwjNRevtTtYFANpJ2WnQuS2 szyHxuJWqqDG22LwamjxrPQkVCtY5yjiofotfKY4VMaeMd0eNfVe5k23RT/f2nY2Y+QVHv6AygB rINv5GvK8EonMs1GYSCDxbJUHElLZXi7KrCGUCFFjHs+xfNRo9ess2a1JgUJg== X-Google-Smtp-Source: AGHT+IEVWn8s5zP1MGFumvUQTEQ3ffwofWS3mvrYSU47wD3xL4Ll8IZLZ5/xOoizBV+DtpEb6Tf3yA== X-Received: by 2002:a05:6512:104d:b0:540:206b:c358 with SMTP id 2adb3069b0e04-5409055826bmr965522e87.20.1734118248733; Fri, 13 Dec 2024 11:30:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Stefano Stabellini , Anthony PERARD , Paul Durrant , "Edgar E. Iglesias" , xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 69/71] hw/xen: Use DEFINE_PROP_END_OF_LIST in xen_sysdev_properties Date: Fri, 13 Dec 2024 13:30:03 -0600 Message-ID: <20241213193004.2515684-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213193004.2515684-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> <20241213193004.2515684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Signed-off-by: Richard Henderson Reviewed-by: Jason Andryuk --- hw/xen/xen-legacy-backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xen/xen-legacy-backend.c b/hw/xen/xen-legacy-backend.c index b15393e934..f6ad58fe13 100644 --- a/hw/xen/xen-legacy-backend.c +++ b/hw/xen/xen-legacy-backend.c @@ -675,7 +675,7 @@ static const TypeInfo xensysbus_info = { }; static const Property xen_sysdev_properties[] = { - {/* end of property list */}, + DEFINE_PROP_END_OF_LIST(), }; static void xen_sysdev_class_init(ObjectClass *klass, void *data)