From patchwork Fri Dec 13 19:29:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907779 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.gnu.org (lists.gnu.org [209.51.188.17]) (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 CE6FBE7717F for ; Fri, 13 Dec 2024 19:35:05 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBNE-0006q4-Iw; Fri, 13 Dec 2024 14:30:54 -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 1tMBMe-0006bk-Kk for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:23 -0500 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBMa-0004CG-Lc for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:15 -0500 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-30225b2586cso32382321fa.0 for ; Fri, 13 Dec 2024 11:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118210; x=1734723010; 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=LUREKfOZFFX0Cik+qgjY7NL4liaNpXwK6Nn2DyaSOoI=; b=CH2PKthsQ1vfgJKV+SQgXGzAnIfh2hwaei89vQymw7KTrzbjEyIiUwMAXlRyqfKghd 3tY5KdO3LyJw98lt1CPsXjs7W9YXvuBT4+vxcqQmqdU6NiOB21ZyBimz+T6mBrTlsWbC NBXmFQ2S7OhtctZ+andRRfXjOkWpJGDHvr0lfEFd0SCxzT70/1GghrSw6kKdEemasRdU ieBmoDwsWfDhU9581GarYm8bMIkjbmIQFS+a62tYkv6dzN+XRhC5w6EeCfgXhXOTL4ol eVSTlh/G9bxwMyj9VyfHMWOOo1Aw/3voKSYiDwNZy9kF8/dzz0eDxRkM8TYUiqO0FBpx AmQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118210; x=1734723010; 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=LUREKfOZFFX0Cik+qgjY7NL4liaNpXwK6Nn2DyaSOoI=; b=C/WxqUpiSnH62O6xu0FYMmuM6OSjyF00EePGoSHAcNULNtNlgEata7RgIxQSvOEUpQ HODY9aHnZo2DmgvUQPr84eCJd/Ig5AtiSvFrUgea/iGZXyVDR+hVKwlRHLwxoevYDA3x Iv2FGBqnn77SfP0bsijEvUK22Tibx3a2XuhK0cwi6faIlmNE0zm+Vt4YttOgSDnyMSib cZk4ik/QC99gC+g42Ln2sIlOlTA1ORZUl/91ASKVdQxwvH16/IUICqEH+Tgxvs03Au9W LOcSkvacCDgXnmjhcjqd0bdMeL2rWflukgQ5XJJayFaW2Dj1TxiE3NGSnGzTzuSQ6EOt oazw== X-Gm-Message-State: AOJu0YyFJos8dlGiMFPF+wfkSLkfbp5gc6km2JwhihU4Fz0sQ0+4blX7 TPrsWLFhUWTpvsGu3rNZkE+Q4XUK3LrvwMj7awcZr4tlkhbQiUKPTFVI3bJrI4zZYapD5FLSqOX EW/GCWvsw X-Gm-Gg: ASbGnctHujdU0BFZSbjH0OzPjogbDGpxo1PON5Nz9VxBwKNgu1vI3isqNtZqA+nOMsm WMOw8kCTzcVgpncMXGzJuuaFVTxWJvnlx1+s2QsCgAqbBeQwv7WNuZWkULDGCg0GklnnZ1Sqpwi Yv5sPxySXlIdBmiBb116SSqjJSntPVHBzdrlpUa2cQWGBb3p3FBzadS+LsrTFSLGvjazBuNz46S n3FVwfk04GwonRiE2LFjnZbt0E/jm8NkpBtnBZKMOSVNMmaLqaVzYdtG8CVdg== X-Google-Smtp-Source: AGHT+IGvedJ1r5iXHmazvbfucc/Jar+Al5IFFU3P1KUFrj7kPEuNVG9ZTcngIfXa+xiKYp500zGZBw== X-Received: by 2002:a05:6512:3e2a:b0:540:2fe6:6b75 with SMTP id 2adb3069b0e04-5408ad762e2mr1167072e87.19.1734118210572; Fri, 13 Dec 2024 11:30:10 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:10 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Jeuk Kim Subject: [PATCH 63/71] hw/ufs: Constify all Property Date: Fri, 13 Dec 2024 13:29:57 -0600 Message-ID: <20241213193004.2515684-1-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 Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=richard.henderson@linaro.org; helo=mail-lj1-x230.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/ufs/lu.c | 2 +- hw/ufs/ufs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ufs/lu.c b/hw/ufs/lu.c index 81bfff9b4e..74ff52ad09 100644 --- a/hw/ufs/lu.c +++ b/hw/ufs/lu.c @@ -274,7 +274,7 @@ static UfsReqResult ufs_process_scsi_cmd(UfsLu *lu, UfsRequest *req) return UFS_REQUEST_NO_COMPLETE; } -static Property ufs_lu_props[] = { +static const Property ufs_lu_props[] = { DEFINE_PROP_DRIVE("drive", UfsLu, conf.blk), DEFINE_PROP_UINT8("lun", UfsLu, lun, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c index 79f786ed4e..fe77158439 100644 --- a/hw/ufs/ufs.c +++ b/hw/ufs/ufs.c @@ -1752,7 +1752,7 @@ static void ufs_exit(PCIDevice *pci_dev) } } -static Property ufs_props[] = { +static const Property ufs_props[] = { DEFINE_PROP_STRING("serial", UfsHc, params.serial), DEFINE_PROP_UINT8("nutrs", UfsHc, params.nutrs, 32), DEFINE_PROP_UINT8("nutmrs", UfsHc, params.nutmrs, 8), 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: 13907782 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.gnu.org (lists.gnu.org [209.51.188.17]) (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 8D779E7717F for ; Fri, 13 Dec 2024 19:35:15 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBNb-0007nq-9n; Fri, 13 Dec 2024 14:31:15 -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 1tMBN9-0006nL-Ox for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:48 -0500 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBN7-0004Gx-Tr for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:47 -0500 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5401e6efffcso2355857e87.3 for ; Fri, 13 Dec 2024 11:30:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118244; x=1734723044; 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=Ks6G+A84FfZ3IMwYe7rtmCGNogRG46Y1v4JaJo0a9Is=; b=coKITaza7OFlV7Wj1FaDTld/XPSQ9FenvQdK3wyYcyxTxCxDNV105hZ8xuhIXkEGB9 OsP9hFBL42IYCdGKs+W20D/k9+98c/fJI/BVNSZwgKXyk3mawobHOQ/W9PJtxTc7VEEi v3yaZFndoaMlfBD2+DT9clAq7GutagD4bIDB6UYrYXSkBOmReNCHp33HiGGrrsSRsWnb n58AjJmyYzDvc+Wq1jND5EIH/3CV1t4cEhfDu0YidyOof698VUmTDfPU4j7C5yhTrP4k j8Z4KKHwF/Vqwi70rytz8ZX+lpWpJYRkg6PanGyboQBJB6tb+zAziqTamPgrrZIjWIsO azxg== 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=cN18L+NCkkWXm70/Bi8pq/Gi8vB+1NCoJA+nt92u6NppvDCfpyqx86yWO24HZwSsQ+ OhEmzYN3OGyCYKUn6muIg41wjL/+lCj16pkTxWs5edSCo5qnVqmjPPcQEqAlZv/GcBXE Lq0paAnDwEqrzfkgALMY3Gr/tiec4nfiMFZsmLruj6SueIBFO5LUBxi1bA0LPsauvxPR ymXonYYzSRPoabnx1cauWzstMQ+5QRGenBhNn5iLqGE0GFzb0QUf1EVzjJJMVpzzr3Rv uaKY5rzkrGCN4KARxS42HDmvG0oe7jWpkyEMHr4ncBB+DeHEnaw/9O/Gx8LCFjZw3wW/ T3/w== X-Gm-Message-State: AOJu0YyEKSBjH6+Tk6YPw1ZYOjgJrMfggnaSCAJNHtwCVa0PfLAO9lhh Jmc7Ia2VMd+CFrHP4auyvPytqV/mwqqSLIeifHeNb9Yt9fPg8HH85eY23Cjr0q+d74zD28KApdX 9LT0vQy2i X-Gm-Gg: ASbGncvJbQa0LBivbAGXTfgo9+DrVTzpGB0+T5JyZYILmj5swfQvXpaTqGjyZrQab4V lTUWsq4cKj0wnzjrj3XZiR+Mxagw3fcHAXDKV9Z5YdNCYcdR/WhB7EKHoBvyi5hT1LAJkeRFKxi EnuF36qQUevYg0Ozemz08kLGZ6+wbJ2QK7ycGtIxV/0GNaxHOIGNtOPPQdaRbWaC85vQGZ3zKVk +8HEkNcKwsfzcuVFGTZZbbti+LGu1ajqu5ha521bRmGjlsHGUkYmIjZSM+g4g== 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) 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) 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 Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x134.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org 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(),