From patchwork Fri Dec 13 19:07:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850254 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1689964wry; Fri, 13 Dec 2024 11:22:01 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVKcF+vxCCyWA0sZGSrLvXDAvFK93ZZjuvlML2XaJVOM0DHNasgkUhhmpXnpHyGwwgAU5XRAQ==@linaro.org X-Google-Smtp-Source: AGHT+IHrEF96ol2z4A+6XGuhCNk8EfxVODilw/Ax1EkIn7UiCLPzY4gc9Z7lTgp+jYQvEZMaFE18 X-Received: by 2002:a05:6122:318b:b0:50d:6a43:d525 with SMTP id 71dfb90a1353d-518ca37a2acmr3853743e0c.1.1734117721426; Fri, 13 Dec 2024 11:22:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117721; cv=none; d=google.com; s=arc-20240605; b=RouIPTaRzVm37S1z8kEhjawvkMCk5GLbGCRrXka5joE0bEWxJNMI2gr2Bwt7AXwzgg +2k17X1ghGuu78akI6QFexiby1lF0N9eNsRh28OGmQX1N9qW/K5V8WDRbBH47C+B/pL0 RRAbeFnCYHGMdAotFSYrsJYAJHcdYaTYZvMNy2XXKsWe3KLlGF4w1Y7ZrxG+dr2TCmum gvC+k0zTb5R84+R5LGNQcOMNxzqvFORg/AyvoXw9nXkfPJslQ8UeiwHJ7UtejsE/w0OU OHqFYcpWax4hqwJ6zIjuU8IaOpB2CbnuVa06zvAZTpOF9XhjeODJyQANJ26oO558zmAg cp2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LUREKfOZFFX0Cik+qgjY7NL4liaNpXwK6Nn2DyaSOoI=; fh=YD+wMQT9mhnMBHOeEQPVDY0t6TXDXvvpRsESAIRZHUM=; b=X/aXVo/K6XbNNDpupV8f0iKz4aTvw4rLWECp2cNf22pYoaxshrCbMx+MndGiIq+kQc pVULpP2yx1iZ1bM1wVAbOL5t8+bf+sAgWCgH1kMUaoXQMRMEtqsrvQepIdHVGrCPdd+R i5ZidNSnuLptzg5wwJNFK9TUKvdEKYS9sgztOTRHcW3mrkkkF7JuvDjpJMHyJA2+kPuD O/TWJegpFrtRTKknVIUliug3wFpdyQ4e6Cnrm9BT4aSnpEu0HBnTvRnHNgn+Xw6Awjpq a8n1Gn1iNrxKGu3xrTD6ocf8c9oXPGDB76i28ukas0GUmSI+qxVrFaZ/IAGqIe94wS8X QERw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eC0FM3C2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 71dfb90a1353d-519eb7aa196si109216e0c.228.2024.12.13.11.22.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:22:01 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eC0FM3C2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBAQ-00048P-RG; Fri, 13 Dec 2024 14:17:39 -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 1tMB7y-0008F7-IK for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:15:10 -0500 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7l-0007gT-4G for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:15:01 -0500 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-29f88004a92so1253117fac.1 for ; Fri, 13 Dec 2024 11:14:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117291; x=1734722091; 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=eC0FM3C2rRSq6bycK5ik+uEjkDHvH05QdhjOiG0CE/sNE81DH3mxhthguW506lOi/a FvWXsP3wdFB4E8vzI/KLTbrKaXUgFSqPqIKhnG8O598KNsSdyzZiT/w9TKINyPYlSwff oBHV8INGxivEJKwB9H9Y7j63xmTUXJea7oWNof7xbnBF4bKc7Gw1POtC7XfhbWTy+Hx/ gZC9kGuQJnXs5iI+Q3kbcYRKGNFROhOvvyOvCjXMUtWsKt+fE0ohRvd+nZpYBXHSjbb2 y993cCI0f3fTEslcCfGpPbzxs8SdmqyRdhjVBJ/WQNHarfarIk0kiPBzh6yW0E93P9le 7q2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117291; x=1734722091; 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=rvzUax0TI5G7taX/3yrIj9+a9IsGbPQIoZ2AJkLqS6Keu2nv8v7CokYdZgOwGGUtmr L0E7lVcEwoltH5O/1Hm3kYX+FFqBtANp/5utRUY4r3aEvj5qwNK+mJ+nxOEiqyNFrmYG A/z6wCaHbW9EKzUAWLC1JlpdfbxyUDPOw0UKNwLOVtro3jjrQctfoAqCvUqZduinVil5 kOZdbWRWxyGldOHMT/ukibw4MgepufKuV0VaQ7Lh4fX5pMMnVVCkzMdCKTJPP8eXnNBT /4ZFFLyjfj+CKfZOr6FQsMN96QUZ4S0W5k91ljhGPKCKIj7YUUFbPMeFM0spwgrksknJ hIgQ== X-Gm-Message-State: AOJu0YwVjCSSu2ZmLUcOKTgyR7+utGrA5bPnTThod3Rs/9uLXjK04Mxb Ko/kB2cFxQY+OsQ/aO6IfvTdXcRaKSvH2S9UerkLATI1125lsn44jnu/HjyKdWqVNy9n76veDCf 6ajtD/0OU X-Gm-Gg: ASbGncu5+XjzbvtBrN/Lqzdm7+KWqezi33r07aQooh5JahdPcACIIloAaACuTLmBoM7 H3BazT0vrOBDP4IpEl17pMxIw7Jo1am0puODtc07MVfCjrYIGOuZnvLQBeuvDCHP9+AJ+mPmIlQ 6H9vqfGkVeltCZ9jD2sCfYS//oqpY2Uw4Au4zrM9W8AfmU8H2PS/j/oA5Vj/GB0wOPCfEeJK45Z 1bGBpbLhCI1t1u3B6NhbGWKkfCs4c1BW/wMO6gO/BIDBjFEihMp91QjMVTZ+uZW X-Received: by 2002:a05:6808:2519:b0:3e9:2090:c030 with SMTP id 5614622812f47-3eba689dcb4mr1750600b6e.25.1734117291191; Fri, 13 Dec 2024 11:14:51 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:50 -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:07:37 -0600 Message-ID: <20241213190750.2513964-68-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=2001:4860:4864:20::2d; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- 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),