From: Richard Henderson Date: Fri, 13 Dec 2024 17:23:37 +0000 (+0000) Subject: hw/ufs: Constify all Property X-Git-Tag: v10.0.0-rc0~117^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35d71fd9cea66b0c66d94b9e29bfb85781ad6e7f;p=thirdparty%2Fqemu.git hw/ufs: Constify all Property Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- diff --git a/hw/ufs/lu.c b/hw/ufs/lu.c index 81bfff9b4ec..74ff52ad096 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 79f786ed4e2..fe77158439d 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),