From patchwork Fri Dec 13 19:06:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850220 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1683786wry; Fri, 13 Dec 2024 11:08:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXfm4TDclNA0TWTzhbcwI5aHRCwfS/PkVDXdw2+cXHD/7nNRSU7oPQcT4uJ1OAIv0fVf1ss4A==@linaro.org X-Google-Smtp-Source: AGHT+IHgqCJ49kF08XqBEZRtIYa8WTk41ubl7XjkUnXKLhj6GWRMLbAq/SZeeXkhfJ7pyisUXbJ9 X-Received: by 2002:a05:620a:27d0:b0:7b6:d050:7213 with SMTP id af79cd13be357-7b6fbeda076mr528762785a.19.1734116937649; Fri, 13 Dec 2024 11:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734116937; cv=none; d=google.com; s=arc-20240605; b=iCTFwaY6DMxrjs9ztfEfLCjFU4fL+vn5KtoPnHD6yFTAEB6Ig/R9Me/wTBWTRxVgtr wWoupnfOMLclLUUECqI726McEuPjrCbjx8HPpS4XULWvbP640B5vbI45nscIYJ966pIT rJm+yAS0BC3ah5CX9GTRvrHSD3r7GaEku7Q+ZyeMQHnpk07/W8O8AOv5GGvo0t4zIv/q pC3ksGORJ7s8Ugt8chbmbMSBNx7841x8i06f/AB8X4GpFfojGna7S3ttYT5BvNB8keVx XkqeH93r4YbKmkJe1Q8/Ui/Wmz+EqWVq6FW4BnhX7KoRLP3QOgAwRoLIeT5OzOqp5HrK 6TUQ== 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=fg83bkK5yDHZA4CF6jEqCNLgZcxdUb+0IUzm0zJzq60=; fh=tWWbopz+x+Sbj07H0eZ48ZTOHd63nijLPOc5rYmFP64=; b=gvrd+4R1/cBsbE7BCT7yiiVQpKvtUS2hRDfsXAiBtTQgh9y22US6vTKHk88kl8KxNn nvSSQ1ZroaV0PpmHsF0B4ge7IXZmlGBxLTwRTDR94h3ssaS2XoQjSuyacFgMzlYHfE7t HyPpDwrjixlCMTALUIDi80NxyjKf0kQezCV+MfqJ/4upluml0/7r1IU5IQgZFLuAYKIU 9o32okJlNU4dl4KazijmpoUgkQqQGZDSD+slgzApKtb9H9rpUUiv+qbDTbUJtGUEyWmE x88Znl0COAJTF/jMkVRpCT0oOIvIYxty+qAAD5mL4aI8b9bSKn2NOT74Rfo/CiAAxpRH ASHA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yLenxXzW; 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 af79cd13be357-7b7047c4b67si12479785a.12.2024.12.13.11.08.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:08:57 -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=yLenxXzW; 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 1tMB1B-0002Qp-T9; Fri, 13 Dec 2024 14:08:06 -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 1tMB1A-0002QS-C2 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:04 -0500 Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB17-0006RP-3T for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:02 -0500 Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5f304ac59b9so1028155eaf.0 for ; Fri, 13 Dec 2024 11:07:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116878; x=1734721678; 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=fg83bkK5yDHZA4CF6jEqCNLgZcxdUb+0IUzm0zJzq60=; b=yLenxXzWQhLDhPynk8VpDALc6rFiWjmfSifIeS1wa8o+rG4zPmYkeXknqhu4EFuLa0 2l54WQMoQB3l24CrMyCsi2kKx12pLKEtElJdJGX3jj2dmDJmjUAeDVf01EMltH2DcOgr HsI2N6Y0ws8ZRnfuFDE+fTkhMOWCUJ2SEh+6RXke95MlaqS2Ov8M6iGW4WFP7qoNIh2t whwn0uYhd6aUcLxpu6kWFw24wN+lS0asP8JprQFx/a0B+kqdvbb8mQp/PxGyzRmRhW/p Wd9TVoS57QqZQuUFzkqNGyzMFlL1YSuj1UJgRuzAuSuSO8enwOLSiOBE3khU7brrLTuI 5Ctg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116878; x=1734721678; 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=fg83bkK5yDHZA4CF6jEqCNLgZcxdUb+0IUzm0zJzq60=; b=l5UFDRTYVx2aWHxgboQ8qibl6dNXtH7jA37vqLu+VejoFnNP18XoaYSMjjZdTu4ma1 ODQzURAzTWvI/t71ibtVp6viBgRkS8LtazObn5prOWiCIpeYKDlN3tZ12VHwTqImAU77 Ty+FBMB8jLNRSzrJ1OAZmIVO2ZJIU7Bsir2W2a+BtH6OaWw7wO/YC85UCdmz6SafdyLb w2v/z3FUS5i32wX0wEuoKd/c/Bi92XdKp6CHPESpkbJ5/TL5y+xO95AOpFLuycmSNAJf 8y8ZA01vkWrX+c9bIxNZpvMfGMCxGFK7pRUyNo5hE1SiBRQy9Fkjc712V2+lS1AAcyjv uDVg== X-Gm-Message-State: AOJu0YxDZdvTeIQxsHghwWTPrqL9HM3dKT2Ad/rZgXHRCu2TjhPaVpQj ViO8THzdcPxENKhtIyBhcyyZk1G4KTtoUNdio3RMaiP6ONYbn1aj2ew0qjS5e2wj1VMEYS5slII RAvYNSgF7 X-Gm-Gg: ASbGnct0CCwfJsBc/rU39mivrTcR9UUehXFNUiskA3rH9ettt4adkurXO2WQdeNg3pX gjuTWnlmHfnqTD2WSmdVFiTeIw2v9zR53TYtjU6WqBFPOtU279pX0pCpVPTzNJF3aNZ4yHLgwnG HIx1vGqNsZpPvZn4nJiOYLDxbSvyzvJ6YYk5ZxDyxifFocbiZpV0YdFdQrDOHfQKY9ZOS30TMYp NMVvkrLxRXepAnUuPcDHQq12v0eqsTdpAT0wBSKfUN0obohL4xqS30ds7rQyBtD X-Received: by 2002:a05:6830:6f82:b0:718:9f3e:6bcb with SMTP id 46e09a7af769-71e3b85e5damr2192742a34.10.1734116877764; Fri, 13 Dec 2024 11:07:57 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:07:57 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, wannacu , Pierrick Bouvier , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= , Paolo Bonzini Subject: [PULL 1/4] tcg: Reset free_temps before tcg_optimize Date: Fri, 13 Dec 2024 13:06:32 -0600 Message-ID: <20241213190750.2513964-3-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=2607:f8b0:4864:20::c2a; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2a.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 When allocating new temps during tcg_optmize, do not re-use any EBB temps that were used within the TB. We do not have any idea what span of the TB in which the temp was live. Introduce tcg_temp_ebb_reset_freed and use before tcg_optimize, as well as replacing the equivalent in plugin_gen_inject and tcg_func_start. Cc: qemu-stable@nongnu.org Fixes: fb04ab7ddd8 ("tcg/optimize: Lower TCG_COND_TST{EQ,NE} if unsupported") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2711 Reported-by: wannacu Signed-off-by: Richard Henderson Reviewed-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé --- include/tcg/tcg-temp-internal.h | 6 ++++++ accel/tcg/plugin-gen.c | 2 +- tcg/tcg.c | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/include/tcg/tcg-temp-internal.h b/include/tcg/tcg-temp-internal.h index 44192c55a9..98f91e68b7 100644 --- a/include/tcg/tcg-temp-internal.h +++ b/include/tcg/tcg-temp-internal.h @@ -42,4 +42,10 @@ TCGv_i64 tcg_temp_ebb_new_i64(void); TCGv_ptr tcg_temp_ebb_new_ptr(void); TCGv_i128 tcg_temp_ebb_new_i128(void); +/* Forget all freed EBB temps, so that new allocations produce new temps. */ +static inline void tcg_temp_ebb_reset_freed(TCGContext *s) +{ + memset(s->free_temps, 0, sizeof(s->free_temps)); +} + #endif /* TCG_TEMP_FREE_H */ diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c index 0f47bfbb48..1ef075552c 100644 --- a/accel/tcg/plugin-gen.c +++ b/accel/tcg/plugin-gen.c @@ -275,7 +275,7 @@ static void plugin_gen_inject(struct qemu_plugin_tb *plugin_tb) * that might be live within the existing opcode stream. * The simplest solution is to release them all and create new. */ - memset(tcg_ctx->free_temps, 0, sizeof(tcg_ctx->free_temps)); + tcg_temp_ebb_reset_freed(tcg_ctx); QTAILQ_FOREACH_SAFE(op, &tcg_ctx->ops, link, next) { switch (op->opc) { diff --git a/tcg/tcg.c b/tcg/tcg.c index 0babae1b88..4578b185be 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1489,7 +1489,7 @@ void tcg_func_start(TCGContext *s) s->nb_temps = s->nb_globals; /* No temps have been previously allocated for size or locality. */ - memset(s->free_temps, 0, sizeof(s->free_temps)); + tcg_temp_ebb_reset_freed(s); /* No constant temps have been previously allocated. */ for (int i = 0; i < TCG_TYPE_COUNT; ++i) { @@ -6120,6 +6120,9 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb, uint64_t pc_start) } #endif + /* Do not reuse any EBB that may be allocated within the TB. */ + tcg_temp_ebb_reset_freed(s); + tcg_optimize(s); reachable_code_pass(s); From patchwork Fri Dec 13 19:06:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850218 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1683781wry; Fri, 13 Dec 2024 11:08:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXVZHakSTWWeyIELKhOnSbhMx5d++VjnYbg6G25aV6yj5rjzZf3vK9/xmuuOz7I3jFl7O9osg==@linaro.org X-Google-Smtp-Source: AGHT+IFc/XuwdNegq5liFkPDsjWMBZeP7aY9pBL5Dp1ASwPPhEJPAOWrUwsiJXbppL2XSFeS+IOI X-Received: by 2002:a05:6214:4008:b0:6d9:3016:d0fc with SMTP id 6a1803df08f44-6db0f3ada25mr87416316d6.4.1734116937214; Fri, 13 Dec 2024 11:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734116937; cv=none; d=google.com; s=arc-20240605; b=EVwaYakJg6WJUhCyIAGzYVX6KskgMZDnEcChiYG88BplMoba/I9jFLvcBmxZb23idh 3IB5ufxNHuWM6a3y9FmROk7JSunNdu8H6kqdVKU26eSbspnLnnLOwTkjfjhsxDdISEEb vcpcedA3ZF0i6ACY5iFOh+NGTpE0KXca43Z1lRrlke8S+EKXaCqq7ArV1gOHvFRglfRo NIv73NNthO1tC/vkBPH6Cl11aMDkoiT0hogjl19bs02rjW63TCzCNJb6ACbXcnd3jVAU X/Akcm5ctJtPrEztTWr9MT0uQX9aFxo83FDUIrtyg79CMoETcrTuZ2Nwre0wpbAfuX3H zD8Q== 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=DLUzbfuqaQK1ED8d++hVx9+Fv9mlyMdyo3cb7lVSrZY=; fh=UWHPD0xBgQKCs3dgyo2BTdHMjmw88Vfu+HSRwwJh13c=; b=UpWqUUMYoNRB1+SmCYRitDPwESp/A9LsQrjMnLUQRsjlzii58tIN30G7r5PifExeU0 lp6nVXpD8TihsJNMjDWd6VCIYUgMTtMXpK+4yYPUfF08+KyDnWWZC/R3bga4GXzqdzNB YGNquRd5NHNFKzfIWbtYj57eCIvb855E1HbGsTj1DlMiYmAmYimc0RX4GX3VTO/kwch8 dDUEpOpD57ZlZU52/8xw26E+RUqNJJKd4UcnmPuTjwDDbLih5JbttUINGiyrs9+sWVNV rPJ+had/a/O3kzygYrTrGk5aLDDqn79uZps+aPgFGCYqqIH/SRozN/71LOD5+PPExauL D/GA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="v/ZulzyK"; 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 6a1803df08f44-6dccd34b54esi227916d6.231.2024.12.13.11.08.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:08:57 -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="v/ZulzyK"; 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 1tMB1G-0002Rz-3R; Fri, 13 Dec 2024 14:08:10 -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 1tMB1D-0002RV-Pb for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:07 -0500 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB18-0006Rq-Nj for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:07 -0500 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-71e19fee3b3so1669553a34.0 for ; Fri, 13 Dec 2024 11:08:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116880; x=1734721680; 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=DLUzbfuqaQK1ED8d++hVx9+Fv9mlyMdyo3cb7lVSrZY=; b=v/ZulzyKCFlFTwQvtMJ+y76ZSkgZbMXVzoLX8tIG296y/9mhoVX+1e2TBQAEF+3YSW WAlW1gJ3HlEu/Hem1jGbQmcTJuLxn0IcSkZjTotuEVe9ygilssZSJH7Jt1VZmRa9kxXV fju7RZGpTWKqytNEsqEKUbL4f5lPGZyX0IbNCVS8f4LBLEZIeY+FeMwIcHz79TO4KlH+ VFUF6H1JeFKxTgTOE7Z3BERcIxZTkJA7lOBwQPFfW5uoSEzbfiiQ/K/De7HwqOK0+fug fxyULk6SEn+rWInVzZ/C4QcxDfw6u4YRttbEMS2z95B48Cfyyq4qfwDeHhcuIszGs0n7 mGkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116880; x=1734721680; 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=DLUzbfuqaQK1ED8d++hVx9+Fv9mlyMdyo3cb7lVSrZY=; b=hl4l6/UgsHo9mQ/baOlxYfBYhzRqew/L0tvGVbFcObu/deFk+LEYmqFmvAlyCcE67A 2mPaSAduVqePbrpR5sUM85Sr77sBPlVWZsVsbBKCqv/Y+5oFO342Zv/fMpsNgc/bsi75 amP6XQ7WmCbWQVqQzb1ce3E+3ycgcr3/a67EtXKhIM/53cRoxpBjcpDaKC3V+ZWt0AoV wWoHUyLB80WAgLRoOwN8v3BGQUkiugY579tNR/b3aKf2rW87MLiCeBcelPoi9isU/XAm NFQQ2r7KXylEZaL63dnwtxAyqY3qIYzBzLtPptnbp7GqJ4LWiY/US3JZXeDeP5nSsNBA O05g== X-Gm-Message-State: AOJu0YwV8UwX2FmXrnBRh9JIsGu9b/WWIlnpGeMQTocXjObRhigIMwQb mRhMJJHGI6Y2QshQw62V1XzMETxtkD+HtpPzwVch7GImdnlx9R+Xftw/noqibvSm7/eZF+ND+fH AVGDpHahe X-Gm-Gg: ASbGncsRYt+RSFumazPfH8djUGVG7LAubjiVeRLkLQk9VJTrmjV5YkOQnc79yDBfgz1 L2oJc/yqOBnODaCXdGTQEIHJN94gbRk07+ag/ot24NxZsV3zSqkG5vqldhJ7o2jHZB9cFcen8Wt G7B6i7f23p17uHrafv7+5+53OIL5RIC4YY3uA6PeglSVy0nNQ5HepoWiuJeJs1tpme3Rlnxmnhc 9sd39xdmWZM8mwNwHmGdt3l2PzULyAhXphQCws97htG7EOIGtM+p3d+oAHY/+6q X-Received: by 2002:a05:6830:350e:b0:718:9160:a3e6 with SMTP id 46e09a7af769-71e36ab9d99mr2800232a34.0.1734116879933; Fri, 13 Dec 2024 11:07:59 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:07:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Michael Rolnik Subject: [PATCH 02/71] target/avr: Constify all Property Date: Fri, 13 Dec 2024 13:06:33 -0600 Message-ID: <20241213190750.2513964-4-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=2607:f8b0:4864:20::332; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x332.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 --- target/avr/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/avr/cpu.c b/target/avr/cpu.c index 3132842d56..a7529a1b3d 100644 --- a/target/avr/cpu.c +++ b/target/avr/cpu.c @@ -149,7 +149,7 @@ static void avr_cpu_initfn(Object *obj) sizeof(cpu->env.intsrc) * 8); } -static Property avr_cpu_properties[] = { +static const Property avr_cpu_properties[] = { DEFINE_PROP_UINT32("init-sp", AVRCPU, init_sp, 0), DEFINE_PROP_END_OF_LIST() }; From patchwork Fri Dec 13 19:06:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850229 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1685233wry; Fri, 13 Dec 2024 11:11:54 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUEPMyh9yRLqdbSPSEqMFcV52fuJEB7NVrRkuGj2wA+fILh015jB2A5zXt5/cqLevw94S9NdQ==@linaro.org X-Google-Smtp-Source: AGHT+IEQXWfwnPjlpqVnCLyIocWQQnTz/KHMxOEslgEluMLVKbJs4eL4Yx/nI0U8qR/kwnplHfFB X-Received: by 2002:a05:622a:48f:b0:463:788e:7912 with SMTP id d75a77b69052e-467a5863699mr79858721cf.56.1734117114284; Fri, 13 Dec 2024 11:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117114; cv=none; d=google.com; s=arc-20240605; b=FJBiPHQ/0Yu1kl5qOwWGzRrQVenmY/gnnvAN0AB5Fnfi6fosiGD54MYWBZTPR8nU9i R1xh7iiYAIrC4aI7ViSI8cIqo47oQsw8nskE33jqCEflZiufqsuPpmo49kWZzClzo2lP q56uV0h9ufoX2R3PGaHRBAwPGbWxo8bRCon3+sT6PfndgyecH0v3hMCgD8KAzN8JLThX fcg25V6RgQScHKPWczE0SykHD2Kqi7GAcCfgYubp2Z0oVrg98kFgFfuJJUtGjno7fsX9 Bm+w+SRAXD1XGEIRRw1K6pzfq49YR9e6cM1Y/jT3yj/XiEq375H5dMUIy4KPmTB58DtX cBUA== 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=mSpM/cySkQR88JEHiMbsxZTNBsH+C3Qxc74QedSJwMg=; fh=fRG0pe6viGIUjHG6wxFnS2yB5kleyOm2AgOl80C8evU=; b=L9f0nQDr0Vm+o+0wuQGXvUrjSAniJyXYxtm1xLsSiLlMl7VV0xPT29zyqr0MpWgS66 fDB/NE2kvUZg5CntKAwU7VgvfDjU6X0xdc5NhDqLYKaW9TSqZ5LNyHBr2C9z9qVqXAwz u+yI4CJEx1HPUmJJZERL6MMo+Pn40yJ3y5WoYX+zz7d9GztuBUQfAyazSO4r97yuAdLM bxcXOaiN8TRDkQpCDmS78Qxy5UGhWjoqTdwZlwMZzvCXlLSQyATTIavBNlZtLq24Izxq 7VkWJ/Tzj+eodnxm716l76MovMewRBfprZOrqK1cTlEUP5ZrK8BPe87MQwDPHYhP7glE St8A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XfKLNa9q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2ef3608si972581cf.565.2024.12.13.11.11.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:11:54 -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=XfKLNa9q; 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 1tMB1R-0002TT-35; Fri, 13 Dec 2024 14:08:21 -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 1tMB1O-0002Su-SI for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:18 -0500 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1F-0006Su-El for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:18 -0500 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-5f2e13cb356so1019278eaf.2 for ; Fri, 13 Dec 2024 11:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116885; x=1734721685; 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=mSpM/cySkQR88JEHiMbsxZTNBsH+C3Qxc74QedSJwMg=; b=XfKLNa9qZqlZX8iIMUUty/QeQGtF5zVpKLN9h6jmJUjwrQinjHIf4AOI0sPsZgmNug Y6bIzo3+Y10kJ72maPZBSywlMCmoklqeKYgTy8i08LHVTuS7uHtjlhfhBrUnA3HT4A3q BOfUKZW9K91sPkhgwsksbEOCWyJ1aIz0l5/pV9evhBvhMw65QXte451bo3IYiQqB5VlI SUs2Q6K92aboumamKus+EbEkonTSBbv8wwFs6lYsyfFhsW1qv/dGh5ZuzEBDz84e81uU sGU7tchmdeuxf5hajsJfi2iUF5LIkK59OAd8zJqGNK13zxfjkLbeNsKyLS8moa+5Ftoj ruGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116885; x=1734721685; 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=mSpM/cySkQR88JEHiMbsxZTNBsH+C3Qxc74QedSJwMg=; b=l93ThORlwo2/TxSuGI4qvxv4r/eEwFhphN/TaK2brItIF52gWz3f4FaoLD2HoK8UXU R4veiPEGVKZ9VrgidLcVHnk2q8eLDdQTjBdC7rYo01XoNFDjwU0NgbX+T17OmHVWY0mf nrzETfqwRB5fN+BFAFWapqqnWJA4lbvOxudcHcMI3U/bdU5egBCdgq857hTsuYYki8Xe HWsdV98bw30P18eXNtihb2JpRYZYNbDZwwiZ7RCb2JbProoyoMeAtRiAQNVes0H4GCM7 gjg5P0LJBhca7MArlFyetjP+11gJk707oPbWEzyChX03Bi4xKBlK7NI8gTOqZ/6bvU8B c1/w== X-Gm-Message-State: AOJu0YxGwJ2MKskELlhmBNR0rbdQAUHi2F0/bJMgoXnkjE7NFJ/tx99C l9P/V1EgSXWWwul/Bnwt7Bc1KAO54Lcr+wnm00VniFLlzS4YM+ttleChdMyxOXDacdgFT301/zk c+rl/X0JC X-Gm-Gg: ASbGncvGKL0vzxPxhOzjZTHb7nmzCBa3OpHRgxQxpkJA44PJ25QapaGIwQ5R2RPARsx FP/1Ls35qmMtm2wrL+PBdHYdi2I98B8WNrOyrkwrGJwkFpBG0p/VgV6Wn/B+cgthzF2uW+Vr/JB yyZPxntSKieKVXe4UmyU6dx6DWRadJ5tYM8173W9uDm0cHPMogpdGP9OXYzJPryianoHLmMrvRy FyUuGo2lLqmeJBsyr7Qa9vQrV0PquEzWLZyFK0v0Rn3XFq+1DA+QE0WJnXIdnkT X-Received: by 2002:a05:6820:1844:b0:5f2:c035:9d1c with SMTP id 006d021491bc7-5f32936619bmr2336405eaf.0.1734116885093; Fri, 13 Dec 2024 11:08:05 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini Subject: [PULL 3/4] include/exec: Introduce fpst alias in helper-head.h.inc Date: Fri, 13 Dec 2024 13:06:35 -0600 Message-ID: <20241213190750.2513964-6-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=2607:f8b0:4864:20::c35; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc35.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, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 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 This allows targets to declare that the helper requires a float_status pointer and instead of a generic void pointer. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/exec/helper-head.h.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/exec/helper-head.h.inc b/include/exec/helper-head.h.inc index 5ef467a79d..bce5db06ef 100644 --- a/include/exec/helper-head.h.inc +++ b/include/exec/helper-head.h.inc @@ -23,6 +23,7 @@ #define dh_alias_ptr ptr #define dh_alias_cptr ptr #define dh_alias_env ptr +#define dh_alias_fpst ptr #define dh_alias_void void #define dh_alias_noreturn noreturn #define dh_alias(t) glue(dh_alias_, t) @@ -39,6 +40,7 @@ #define dh_ctype_ptr void * #define dh_ctype_cptr const void * #define dh_ctype_env CPUArchState * +#define dh_ctype_fpst float_status * #define dh_ctype_void void #define dh_ctype_noreturn G_NORETURN void #define dh_ctype(t) dh_ctype_##t @@ -96,6 +98,7 @@ #define dh_typecode_f64 dh_typecode_i64 #define dh_typecode_cptr dh_typecode_ptr #define dh_typecode_env dh_typecode_ptr +#define dh_typecode_fpst dh_typecode_ptr #define dh_typecode(t) dh_typecode_##t #define dh_callflag_i32 0 From patchwork Fri Dec 13 19:06: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: 850223 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1684318wry; Fri, 13 Dec 2024 11:10:00 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUsrUlYTijUV/HHlqElxmlwmX9VJmrPkrVD89fGKf4JbXYVUF+WFgUN6bLoYaRRReCmWCyvnw==@linaro.org X-Google-Smtp-Source: AGHT+IHVW6ot5AP+Px1bBu092/gHUq9GIM3tWZsRNlZSrtQU07MUCrZaoXetLS9IHNH6MJXT+4rV X-Received: by 2002:a05:620a:2983:b0:7b1:880c:5805 with SMTP id af79cd13be357-7b6fbf3bc9amr566594085a.45.1734116999775; Fri, 13 Dec 2024 11:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734116999; cv=none; d=google.com; s=arc-20240605; b=J8z1hYPkCHethZyXWkeGq7iQ64tJI+qwKnuMxCmqDfsBInwbs/kvtbrC9wVZaxL3NJ DNHeX2Gzo4BfdHTVvSSpxveHogzKDHflV8EHYN08ix1d5A2CASnxkZh3k0kbpu0aekx7 fWcvLn82DrcqR85pw8SyauWOweMsHcXKuGO2LqtPk2hbx+b5k2EscHwZtItiQdvokg4L dn6j5nJEYKocwSnSCBOMYvzcmsCzkydkRpydrHxHeZkIRNQbko6SVe40FNqCwlQ8ImIO UoQO3nVf3DwAzWZZQ+RGTC7FTD0/M3s3Vwnvh0aeTnjiZVrgfvJDB+NgAd9DlY6d+Omw ShQg== 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=bDQV5UPQrrUTmFDcWju1X4JKAdBtmrkzDO3G5qiLKzA=; fh=qy4XoKrjxrp0VuSTxys6ShsVGPFYUaRmRMWYtp3fHg0=; b=X16Ct1d9t8RsU5xLswHlcH2jFLFrUl3IzjCRIv40pUbLDIKsN4VVWI+uYjWCtModMa Jji0dNddMEQEw+iUbEpWmA0wkPt/cGfbrskqaXYlrOmXdURd0/iGaUV/2BGp9Z28JrHx S62jLmPDYzmexW+wrIHo8aQfRUNA4YmYDb9LdZl4MW20JVOaTw8MSN5sPm2PsDOS6UTt pyQ6WLYJhCjVVqDAgRM0o/H7MSN1txRyKZkPhYZV7HYQWcM0Rg+87+js9kaTosAp3zEG P3nPlvO4JEny5Kxxm7r7ndrfMwxm4IunckES74u8dZvIhpGMtZbN2jQYfsg8GUA345Ps a4fQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LS2yUeqT; 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 af79cd13be357-7b7048bf579si11316185a.231.2024.12.13.11.09.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:09:59 -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=LS2yUeqT; 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 1tMB1P-0002T2-O4; Fri, 13 Dec 2024 14:08:19 -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 1tMB1N-0002Sf-VK for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:17 -0500 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1H-0006Tf-5q for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:17 -0500 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5f2dcfc426bso502547eaf.3 for ; Fri, 13 Dec 2024 11:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116888; x=1734721688; 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=bDQV5UPQrrUTmFDcWju1X4JKAdBtmrkzDO3G5qiLKzA=; b=LS2yUeqTeX16QzZV2wsB8bwAIoalGZGbTWO1Xb6ZG4qmlQmCnR9NzmTR3CZAK2NPil t3UYaXpW7bppYIiL9vVkNgadojM0HSjkMT0eMfXHZepYsqpotFEXcl+yHUEw1N7goAqs tFLspprv7o/Pq53ve/YZ7pUzfOMb96GPtfHo53rZAu6HdNp+OkkeJpCZf5tzn+y4teO+ TOMF8cU5GO8BOhHVDs9ANPGElLbH7tRzTj09KMkMXrTLrXs4spjent8Tb1/X/H6nWJJP PGgYkzh6tJwcpa6AhXBLnEgdwZUJFqAuJG0P87VR89PwfjdjT/+vsDPg51Egfv/fa7dS 3Cwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116888; x=1734721688; 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=bDQV5UPQrrUTmFDcWju1X4JKAdBtmrkzDO3G5qiLKzA=; b=k4DW2JMUJCJ+elD72tRG00axCm857FW4qiNeBif/s/kAOnUWMKdDHmMFAyMbIG+mUz UEcUYQxnguyspOeuEffweu6NQBvI5AHL+3+EoHl7rHid8EZCq20scCsg+tHYrQMhN5A4 PS/ORGmQk/kRomryP4UIpJdETPGmarrBHmsMjg0+1VDbKvSobEVgo9UzE0MbTaQzAAGL cGIPeFfVIyK1z5FwrXUtRNSxmHl/2GDjW8P9nh/uOrx06malQu7BLC9tr9oXKnVOj7fQ XOa/KU0LjsAU9+Td8l7NrQaPYMkMIyYvh1yD6V5Zw910h7oXSVvBJopxN8fseDBGMPTU zfJw== X-Gm-Message-State: AOJu0YwEyzV3WNoyjGFxhlVEj8zeDpcS45hmTgZmu5sUoMvtXG2hqzx/ rZ9Hf+WKt7NqnOr323Qa9HoevQcQjdAzJopW5OXPWFej3brZ27cs1XFmfmsADOKIEkZjwzY1I7g CV1w+PS4Y X-Gm-Gg: ASbGncuJdPGEYdnBNPFn5SvKB0lsm2Fxxn1QXyGqMZSb2UNCm/I+hNovJEl8LYdphzm KjRVMNy7rcRj0B1aV9Xq7VBFXvp+APGnhpQAmjFEVR8vlNny2HpPEBIC6p2cYMASNIReFZaeZyr ZszNm9KvabZKK+OOtJH4F8J2horD1SKG6zhC2onR0ss9d0h6FIizmWggcdZiSGLKUwEUJkXHXa0 BL1JruxSUTWkgmIJwrnytkT05zSAUWxYcfjk9iR/bbStl4dZLiIhHZbUN7GkoWs X-Received: by 2002:a05:6820:1612:b0:5f2:b301:e918 with SMTP id 006d021491bc7-5f3295eacb8mr1947943eaf.2.1734116888359; Fri, 13 Dec 2024 11:08:08 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:08 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Zhao Liu Subject: [PATCH 04/71] target/i386: Constify all Property Date: Fri, 13 Dec 2024 13:06:37 -0600 Message-ID: <20241213190750.2513964-8-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=2607:f8b0:4864:20::c31; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc31.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, T_SPF_TEMPERROR=0.01 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 --- target/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 305f2a41cf..5253399459 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -5384,7 +5384,7 @@ static X86CPUVersion x86_cpu_model_resolve_version(const X86CPUModel *model) return v; } -static Property max_x86_cpu_properties[] = { +static const Property max_x86_cpu_properties[] = { DEFINE_PROP_BOOL("migratable", X86CPU, migratable, true), DEFINE_PROP_BOOL("host-cache-info", X86CPU, cache_info_passthrough, false), DEFINE_PROP_END_OF_LIST() @@ -8407,7 +8407,7 @@ void x86_update_hflags(CPUX86State *env) env->hflags = hflags; } -static Property x86_cpu_properties[] = { +static const Property x86_cpu_properties[] = { #ifdef CONFIG_USER_ONLY /* apic_id = 0 by default for *-user, see commit 9886e834 */ DEFINE_PROP_UINT32("apic-id", X86CPU, apic_id, 0), From patchwork Fri Dec 13 19:06:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850219 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1683782wry; Fri, 13 Dec 2024 11:08:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVqQt63F2nA/oRB+E5hh45hBKA+J2EifZ3YFO8HBYBGewHhmYx1BGe881p7PqNxIOPIc4gReA==@linaro.org X-Google-Smtp-Source: AGHT+IExv3FklCgFzlSDrd9JpXPP8Sg3vHkQ95nyqZc2MqFu+rQMcU3jvTaSstToE+TOH0Is2v5J X-Received: by 2002:a05:6102:3f51:b0:4b2:4877:2de4 with SMTP id ada2fe7eead31-4b25d9deea0mr4712353137.15.1734116937190; Fri, 13 Dec 2024 11:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734116937; cv=none; d=google.com; s=arc-20240605; b=RnNZx4BzC/QiT/zLEJIXTdw9ZDkmWbUNth/e9ZK9nECPnq0mVtOH5FMkqEPY7wRHEv 4W91qnOzqeJY65//DEzaiWBNuOtfzn1PajV96xVODwF6t8VVAhD6TA2Fusu0Xr2ODFRR 78LKY0nobHSMNHoZAb7eREuLQQPXxsSKdCy/eSGmMsyBPNcjFUnFbBCsRqjGsEJu1SDf DI4ZpvP/D+1XIDRZjnRQfAMeuYANKJtGAOsavwlqoNwcS4tgBUtBLrvzOvLe968dDPsu b1BhaqoJ2gw1chjaaERqz0cFw9bztkqcw3S5+2y1D24TDJKTSqgui4I3ndNUliv87+1Z zj9w== 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=jImwOjJ09GIg50zurORlHyEBWxYYv3iz1UDBPMlQCZc=; fh=dagFS0FLHbYL6MP+X91lgEDbOrydFNabrOfM5+y10z0=; b=kV5f2tf2MChowdBuzMuAVu9tdKYr3QiOPc1P7uelCK+77i+QMU1jFVA5O/ndUFEdWY NVOsCuASFhjNygiSJ5MEm49JlF5mEVm1UuN+E3J2k+jFLdTI2JGsQblRO+xEUTP74ZW+ LkiQy04zNq37PNMN6WkI4k/5gsup2XfubwUQXhHbSOjFlrUhFsweY5UvxKUoH2FPOSe4 NgkTkSfCeMK2q9lPmrS0/AxNxT26IEWpjZqIFgncRwQZY369+quQmdGbhRePJjE0D89j 65a6TjIARlEMrNVlBRXrREjL7aY8aPq072SQeeTHd5WWGcx3c+cEw6qDQHI5hzfpzANc ezhg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYIVVx7w; 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 ada2fe7eead31-4b270246ea3si28923137.154.2024.12.13.11.08.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:08:57 -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=RYIVVx7w; 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 1tMB1S-0002Tj-1c; Fri, 13 Dec 2024 14:08:22 -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 1tMB1Q-0002TI-0C for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:20 -0500 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1L-0006Tu-5m for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:19 -0500 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71e163493efso1026973a34.3 for ; Fri, 13 Dec 2024 11:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116893; x=1734721693; 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=jImwOjJ09GIg50zurORlHyEBWxYYv3iz1UDBPMlQCZc=; b=RYIVVx7wCoE1e+avu5fpJbCM00f+8SpJOSrFh/9OX/xYcpf8VXSCSDulPU2+86BUb+ 32wsrmciW4WQXIMUCypt5QGKvJOjap7Aof6SCnWksc2sHs+Fb9AMOyspn1GX/Oatxw9H XGvrrAAdTUnCajb+6tEbmBwVYW8JWmsLWHMe8ZXJADcEWR6WnSl7R3gBG7gbsSXE9SQ8 gSrye1+ApBB5cPEiXJB82EVPgXFnRyAh52r7ta0NEfsRnFfikFrZrDqXL9UAIXIgEHYN IAJHpzsokYwKoDJNCMK4bP7PY71G5gqTrBQ8HSBNNAIq+pwmnDoUFnacY3Et9GRKchbg aDww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116893; x=1734721693; 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=jImwOjJ09GIg50zurORlHyEBWxYYv3iz1UDBPMlQCZc=; b=jKoWfs1xw+vso6Z9cDlOl/qu+H7bbbQIRfuQnZkBn2f2WmAAGqWwV7oAG+H8e+2pfP 6obyO9kJHSClvIwppCXLcRliLjQ0w4vzQzKf7L50H/xmq57rv+67unFG7qjuLfOzg9ul 6RqwStyPvPIDJHVhfSLrjG0JbjnBnn3FJ9jUMZbr/nVOEfHpi95OHNJb0FB40zWT73kD smOV/cIKwFld2Y1PjbHZMkyICypbzwUA0ZA41IFM4ibLF7mvXRic6qyRdios1P5WiIwH cBYouD3mgdFaKrmVrjW6L5Iv8mprOWNyzO1Jb4GznJPrwYt2FovqUXJFwiKYQHosRJfu bxBQ== X-Gm-Message-State: AOJu0Yw0d3Rb+VIufzVF6OCEKxNytHFIJl6K9ftX9kkwXRzv+tBOWt1S wdI0c0qsfLBcym3iEy+KWCye8rmyF2HU1Q2HSpN9V3w+qs6R8534E+jEf4bHouPJgCWSgm3KVZF L7h2v23jy X-Gm-Gg: ASbGncteutGYQu0paa7+vQ+DrjEa+uCCW4F1Qqpz+C4PiCc1Zzeq1mfCNhIK5xT+oVL Ta3n1LQFvlw+W+fy7Sv37nn+3g+rwUF6pPi11sB2DC3H102TcVOPQN2+ZEyeNNz6JdQ8dLUOiCF TSdzzB3sQhe5yzdq66Yn+orDavqBxQ1Bgo2dK19bH07RkywiGavMogbwvXv+X6odmeXLYpZOaSq mAS1uKRZmW256oiSXNdVxvwbJbEb3UTQ830jFrA7YkMtckB+QwkO/NbY3izJ1rl X-Received: by 2002:a05:6830:388c:b0:71e:240a:47fe with SMTP id 46e09a7af769-71e3ba33ad3mr2014950a34.19.1734116892755; Fri, 13 Dec 2024 11:08:12 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:12 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" Subject: [PATCH 05/71] target/microblaze: Constify all Property Date: Fri, 13 Dec 2024 13:06:39 -0600 Message-ID: <20241213190750.2513964-10-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=2607:f8b0:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x334.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 --- target/microblaze/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c index 0e1e22d1e8..0e41e39c0e 100644 --- a/target/microblaze/cpu.c +++ b/target/microblaze/cpu.c @@ -339,7 +339,7 @@ static void mb_cpu_initfn(Object *obj) object_property_add_alias(obj, "little-endian", obj, "endianness"); } -static Property mb_properties[] = { +static const Property mb_properties[] = { /* * Following properties are used by Xilinx DTS conversion tool * do not rename them. From patchwork Fri Dec 13 19:06:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850240 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1687603wry; Fri, 13 Dec 2024 11:16:38 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXdJHD1b+UFNOIFuR/jfAvkp3IuJYSmEHyS4Pajbu2ZdlbE4VwHu8HElHKortvJ7V2awkMBjg==@linaro.org X-Google-Smtp-Source: AGHT+IFkmRtZJfGjXbHK9DafXBmo6z/tHmvTMzB9eCMlBFSKBR8jTxVS5wrz1O1l0nVTh/bc8LFO X-Received: by 2002:a05:6102:dc9:b0:4b2:5ce4:2b4f with SMTP id ada2fe7eead31-4b25d9416bbmr5019187137.2.1734117398591; Fri, 13 Dec 2024 11:16:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117398; cv=none; d=google.com; s=arc-20240605; b=DAmO6vk6UTQUN0VfEriw1DLC/ukbYySMjIXfPn+wguQ+Ok6zJbzJj/OkJlUihNdrpK jmUl2CHeMV06SB1UqdPd6mFuUbHfU6NTgfdBbjIucHGFB/9iVMwf3GQnmcRYudHuFKRu QrJKBmvwv+4ujqCPHbV/ThQvnvBnMQiGbCptRnkDCeIwp8+TmcHgUIvW5jBbhOOC8yYE N01lUqt6tXfEpMY9x5fNfMbRfLV6rKhEayjN2sGPFnmTbRNPIGBozOIPsezzIOWUMFE3 zo3CkHId915Ct9VJV7KtthNKYRNLjHSHVU+6qwJ/vqK9el+y7cmSQJMeuiPUxngqRV/H 6Nig== 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=e2FaMYSRpXTA1aFa03SbQJetzuGw4zyxlsXPWwQbGKI=; fh=JVzcIPygsubE0tqZDBt2bWdo4eG15c+KX6i+HUu+JaY=; b=UZIeEE7Jv7VkwJ2IrGPoULdoZgXotp3nlZXx0Q2nq2MCzg9MfoyRDl54/bEWHyzlyO AVkqUzLLbHrFvLKjpjctpka7TWFwXtjEoqeJV0x1pBpmFJhXtpDS3U/Kj/SSPJ9NyxCC 7gXsnF3MoFVczcLuWWYCsvgIOuyzCBuwQB73TrDxMBmhUf7RhF/gzAKAcn/tESC0mAJa 4o2eiR8rC/Pj/WccPc4j+0+4vfOxNnzoZjj/lFNGzAXqC8F9cFy4nJxO2nfyAkBc5itO NsstRoC3LByTsGGbvWhnLkEGZFo/mHQcTZgIZ2xW+MXsgubowYEMHxTfBvhzY/HdxtD2 z1+w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S6WxsRBR; 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 ada2fe7eead31-4b27041901dsi28340137.433.2024.12.13.11.16.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:16:38 -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=S6WxsRBR; 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 1tMB1Z-0002Ul-9O; Fri, 13 Dec 2024 14:08:29 -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 1tMB1X-0002UN-H2 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:27 -0500 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1O-0006UJ-Db for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:27 -0500 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-71ddc7325beso207997a34.3 for ; Fri, 13 Dec 2024 11:08:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116897; x=1734721697; 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=e2FaMYSRpXTA1aFa03SbQJetzuGw4zyxlsXPWwQbGKI=; b=S6WxsRBRS4xzn1nHaaS9ic2cz/TceRnRcLpefvc3gycLm++U3wEXOU7ms6iql1WhrN SEEukUjFz6ydcHfps7cG6D2eRvh8PM1mATdWjl6cZ6IXccP56YSfdMOzay/FtU+bPUFL Z9Vjve1NwhwFwn2uS8g1LqXGRaTRlnHErJESkRFjuusnXgewIeXdRgCI7HfvOyPVtBL5 1LiwV5SlnkD4z6OBVZbogtG7hWVBsnDQIoVZlqggsgREsHTauqzY0B+8F/7kR/Dg0ppC iRgQs4NZEzBf+rO0XzD2FdwXwt8pUSCQfTFzXw0BRU3rSuPedgWwaADqsQnWgFlIPb9o OeFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116897; x=1734721697; 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=e2FaMYSRpXTA1aFa03SbQJetzuGw4zyxlsXPWwQbGKI=; b=riDtFc03S+psHi3t/beN36vjj7PWJLDLW63Hxkn3q5YzyHZo0qPM9LUauP3Om0cN0h xoYPlEcOh1/K/55YVxJOIr1ak7FLw+PtjZbvtFq59/nwA6KnU3ykG6SH3nHYiOsk128n 2i8nCr/j+ZHQbNDI70QrCJkg3OLH0xD6LI8tJgyT6zb8GXkmvOOUyi0Vb5P3+F+vIMp5 kQGTKD3fdHWJhElNFpwn8zGQRXZS+B1SU3AUcx/gSfGnz3WsHZ+ZWS9i4LdXoZoEyPkl sSPQWohVmRr4BH/keizzvdr1ch1Ly/xetX7vGUicN0bbro2L2a6XUi1toeusKIXYCAkN 0O+Q== X-Gm-Message-State: AOJu0YyABWAhu1vEA8993STcNIettfJop6J4pb51MSiyLIXURYy1Lkvj ApCZ0yUwfxuVySTo9pMn003AWIKurnr61G3PVCuF+VX75Bfg/n3HEwPcqmd51RWFYht0zl6HsZ0 wqNbLAlDS X-Gm-Gg: ASbGncuYCjFh3FrRS+iDHxsVv2DVUO9InH7fP228A6HN6x0D+Z/YeWv9XxTErfeARzz KEogTZmHZhEv+eBG6GfiPeC9Yn6iPHNB39nfAlrHGFShX8Q/wRk6xuJwElyDkn6DQAxDOPBJTqQ VpssCJNZ4nxNmLrDcfReBhnfY3OjBQFez4X3N+MeusVEsMhiwWtwroZOoUTGgFomFWImfp/uPoa +GkTIvU2r8t50DHhZdmxuQolFj231mKjKbO4bbVAFnFzb5aX3wLJG2EJJhkZbiI X-Received: by 2002:a05:6830:6a13:b0:71e:1fbe:db2a with SMTP id 46e09a7af769-71e3b8683dcmr2304738a34.12.1734116897208; Fri, 13 Dec 2024 11:08:17 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , Jiaxun Yang , Aleksandar Rikalo Subject: [PATCH 06/71] target/mips: Constify all Property Date: Fri, 13 Dec 2024 13:06:40 -0600 Message-ID: <20241213190750.2513964-11-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=2607:f8b0:4864:20::329; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x329.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, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 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 --- target/mips/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/mips/cpu.c b/target/mips/cpu.c index 4feacc88c0..02c0e1b0f9 100644 --- a/target/mips/cpu.c +++ b/target/mips/cpu.c @@ -539,7 +539,7 @@ static const struct SysemuCPUOps mips_sysemu_ops = { }; #endif -static Property mips_cpu_properties[] = { +static const Property mips_cpu_properties[] = { DEFINE_PROP_BOOL("big-endian", MIPSCPU, is_big_endian, TARGET_BIG_ENDIAN), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850241 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1687868wry; Fri, 13 Dec 2024 11:17:17 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVyBbDGJ2madRmsQK/aNqfRfMJo67qKL6Q9ds2/tsugcoO+0rAY5eVpnQ/9Z15/mOLgqepr1A==@linaro.org X-Google-Smtp-Source: AGHT+IEtFXHrBpn/KQwewFKbP1H7DU/mvAX21VJBflYrnmbiNdsWBvH3bPCCR58vT58CNdPBVkln X-Received: by 2002:a05:6102:5487:b0:4b2:485b:804d with SMTP id ada2fe7eead31-4b25ddc7281mr4602347137.21.1734117436948; Fri, 13 Dec 2024 11:17:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117436; cv=none; d=google.com; s=arc-20240605; b=ks8OidiKzBrSJfFEj2otvQZzz9BgUIhDFzBbq1CyZn0FTNY/xqwYJjdBgDwvgerCbH bA721eC+5klP299W0edSzLWv93WLbeWpH6qrSCIjjBtPTiYAq2FoRZwOyM9Ljo7L16UZ T7ZLoqQEL5jI+uIM661N7CvPsAtQE+xGMF1DxFGILkWy5Tq9q9FCneeaeUGAqza01gWK vKK5SgLlSpppKfPKcYfYgupw3fwYLb5RRPUtkLDxQMJfmwt6koFm0F9kVW1RBl+btp2t U39wTsa01hLisjdDVvt9D2yDtC0LsNusdgn6k8FnCo7c7/72B9o45Xi6vtuW+/8fGwbW Gr8g== 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=/N1O6+KdnI0Nthc0qwwbnzGBocJ9psam8as1orMligo=; fh=2IEzsTi0eLET91wG+j4z+kT4Sr18OsFPjXRLZrAEmsU=; b=CBAjnpUS3up7wIXvKHVaMCyEGz5u9FxtYyDhFigdUTu1maGJON/LrC4nDbtrQuqJ7+ Xo95o8U3D4DoMjvehKwdsgMQld2EGJjayyVW3BeZnlFEWzwHkNZh6pIGcK12yJJsDw3q +YxiT7nx4PsV1LuZWl25mNt7p5WmvWNiPhKEyKorCE5kicZch6Dw/TMTVDRDVSIABi2z 7VPhr1KNqq21poDYUVj+9sTsld+3uRRfSFs+5WUcPLNXZZF9hd4sz7ls89FA0mXMVz0f 7TW6xTlgNfrYeWQeFYUHgpzb3j4PeppYEBvyxZsSjY95tA3NPioejQejP0Ad0iijPpOi Qx/A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B9QiR2oY; 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 ada2fe7eead31-4b2703e9224si27794137.226.2024.12.13.11.17.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:17:16 -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=B9QiR2oY; 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 1tMB2E-0002sQ-C1; Fri, 13 Dec 2024 14:09:10 -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 1tMB1j-0002VM-CM for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:40 -0500 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1Y-0006VT-7M for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:38 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e3005916aso392464a34.2 for ; Fri, 13 Dec 2024 11:08:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116905; x=1734721705; 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=/N1O6+KdnI0Nthc0qwwbnzGBocJ9psam8as1orMligo=; b=B9QiR2oY+6rhxt+qKsFf3jl2U12fVDRpZgF7pcTigE6cgqMxWLJ3oFUdG5zn94x9/E H2sE2CtBUtm9hqizY1eHIj7ldieVCSZbyW1U418/1UN4rsfzf4+uWVfI0VwgBYi4Qqcn O/RtYIqu2t7v1AhtTdxvfAR2zGjukGVef6hTooGgPqCyDDkN27FQRGLmopTALp3RYXzJ Qkgk3npQecOADXqpTmaam8Cz1KfDdgFkWMPUn9I3HmZe2FFRXJraxc+DIBQRYRfHRvJS 1ELTHWo9KDifIEd8yAx933hkAyxTmalD359Nj0uluFOnGyGE61xYJUM7Rp7q4LPiYFAi pWDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116905; x=1734721705; 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=/N1O6+KdnI0Nthc0qwwbnzGBocJ9psam8as1orMligo=; b=Tv8yP5aApUMO1kyk6FVnKqPHM33nw6b6oRrVLn3F0XMKnavXOn3TwrNee0Hp3aO6Xd 8CAcpVl6OUEkA+Zd40c6nN3A9PxHmnr9xOQmqcU4LxBO0oEHHQPJHFeDuIsLCGilROwe HlmxIAitqzsy6RZAoS7LYLEcuTVy3cFYODKpRDEx/65qmsTlboNkXvUtERaNZ5Wut2Ua /DSKoj9bWvGZiVKfoMBcYrqCN41qwMT2mPVmzZy97XGQzbpkC2el/VsF/ZzueBeK7XMW mHDdbm7FDCKcZibCZ5NGV4nZj33aO9IgM/oxaxfZaKSF2jsd3vE8ZVO2i3swZv2I7iyC 641w== X-Gm-Message-State: AOJu0YyoqSQLmcTPawThf/fQK3sAOwOAt+koly7LvRwZnIm19RZI1v75 wjj+y2oud3bK9c3zXzmDJ+w6gPf+9eIsYvQ8dIzsai5SkcZpZa2YalHj2AhFlOCP4pEpC7/wdFi eCxi9O4wl X-Gm-Gg: ASbGncuicPUqgEq5cTBHC0dQq8oMoj5Vs1IBAzEYmboMc+vWNrL1kSR1iKCanzCV07h f+/t5S1krQo/GwmrSTvajftj5HxjMwrWZSiV2SjytH1+VAiZL28+ZOPvBWAF0SSSeomaHxgMt8A ZV5j54GG/IPv0UfzIXVlO4awS4nxrNWKgaV7aSEU4UGcJdSEP+fY74QzXhmtabEKk2bLnLiL0oH pBOEabqNWhVKQi/qu2IIlXabcsjFq5no0jwEgmuz7ISwVbb4es6okVY9gjl3gJK X-Received: by 2002:a05:6830:6c12:b0:71e:5a:f4e6 with SMTP id 46e09a7af769-71e3ba24b35mr1944612a34.20.1734116904828; Fri, 13 Dec 2024 11:08:24 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:24 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Nicholas Piggin , Daniel Henrique Barboza , qemu-ppc@nongnu.org (open list:PowerPC TCG CPUs) Subject: [PATCH 07/71] target/ppc: Remove empty property list Date: Fri, 13 Dec 2024 13:06:41 -0600 Message-ID: <20241213190750.2513964-12-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=2607:f8b0:4864:20::32d; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32d.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 --- target/ppc/cpu_init.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index 1253dbf622..5e95790def 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -7414,11 +7414,6 @@ static void ppc_disas_set_info(CPUState *cs, disassemble_info *info) #endif } -static Property ppc_cpu_properties[] = { - /* add default property here */ - DEFINE_PROP_END_OF_LIST(), -}; - #ifndef CONFIG_USER_ONLY #include "hw/core/sysemu-cpu-ops.h" @@ -7468,7 +7463,6 @@ static void ppc_cpu_class_init(ObjectClass *oc, void *data) device_class_set_parent_unrealize(dc, ppc_cpu_unrealize, &pcc->parent_unrealize); pcc->pvr_match = ppc_pvr_match_default; - device_class_set_props(dc, ppc_cpu_properties); resettable_class_set_parent_phases(rc, NULL, ppc_cpu_reset_hold, NULL, &pcc->parent_phases); From patchwork Fri Dec 13 19:06:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850249 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1689281wry; Fri, 13 Dec 2024 11:20:25 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU/3H44JnyI3ECEK2fTpYu5dXDZSr7hr+r2f+nS8PvoVVPgvKFIPYYWqJzbRulHYE4zgqcUFg==@linaro.org X-Google-Smtp-Source: AGHT+IHkgVlLHIFVIa29p7Jpdym6XydxkLD4HS91AtxNYWY+ckTV/T9S4SvmCqohx8ar2PfwXXhs X-Received: by 2002:a05:6214:e83:b0:6d8:9a85:5b34 with SMTP id 6a1803df08f44-6dc84f2f54cmr65148016d6.10.1734117625328; Fri, 13 Dec 2024 11:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117625; cv=none; d=google.com; s=arc-20240605; b=krOSQZIhkW7O0ciD+ZYKy9DlStBJqAaB7XdT7te2V1ziGT+Aw+3LATeV/dgtHCY/X4 VfYoZOlZ1ZkUyTM+BzOxD/3iexXJjpAJdenXfYJ4b6CKLrOJEXZOvdVD8uKhkqNpC2LO pdQ4bG4+cRZ4zeZes42UZhyQmi+Vr8aRndCt7lhf3tYLvBytH7K2bgr1FdIsLj26DqUZ AqT3ejzz0quCho8h1ApgayJWUeK+/XDcTqgDUlaXz82tEeolJt+N6sA2vux1eIlTjJIn /wOfHKDzPM3HWE63rPsmihd25jg+nhLgTcs7HtW7bPWHsV1kwfom/etHX+76cQnkbg7a N2MQ== 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=bMmfxBtIiIXQAk+hQuWMNvOte8CftqHpp2z6mVglAAg=; fh=XIHy/dz8uwqtwFKAGUq7dZDJyZn2+tMRnUNDR7YkIyQ=; b=PJMqou8XjAaUBWrqDIQWCokDdu0XZUq6dec4JEmbstTBoY/jnfewJSvQyCzjl6z9z5 RUqqFWRdzQ08sAFLmO/Wg4OJH7qXpTMwap0wr3wC6S9y5dncQ5BqwUkMd1P/6cSuZanc XK8qOVziaq4XXQRJInh0eUPtkuHfEKdry9R+WacEuQb14WGTfEORA44xLmH5GDaMU9PY YY7XPpoxcZjIJrB0gQ+Yyvp4rX9491LJdcva7II8yCvOhgNjudqIcIt6OD3i3SNCt7da lkxTvRUUneUHnmV13XIXVeOPrCBFVAL8/xsoM+Y3AAJ9KOwI737fBKiQ8bfSd0S73Ykx 4JHw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PsxB3Kt1; 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 6a1803df08f44-6dccd370573si413056d6.318.2024.12.13.11.20.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:20:25 -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=PsxB3Kt1; 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 1tMB2E-0002qD-4R; Fri, 13 Dec 2024 14:09:10 -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 1tMB1i-0002VL-SE for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:42 -0500 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1h-0006Xc-6m for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:38 -0500 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-71e15717a2dso933243a34.3 for ; Fri, 13 Dec 2024 11:08:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116916; x=1734721716; 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=bMmfxBtIiIXQAk+hQuWMNvOte8CftqHpp2z6mVglAAg=; b=PsxB3Kt1Pk8kIaIYCsx4pH3CLcCzmAfQl5wzZhRHjwv2y14bVCXrNxWcztlBvtMqoO 58jJvPb7Jn0wJeLovvy8kpVuG6To+UpTXbTqbJARQfTNsEcCNgLhnifJX0re/MJDM1nA fCXIz5S25ozjGGYHeXg0EbbXMY0kmtD1mOHEuaYN56ZTcdcrhrJ/DWzGGGY5tx8EPTeg mSgm0c28nbL4ykBAKfHGLHj+e+Bw//Xoae+2k0itRS2JeFQ/IvN6Ogk9WWkgFZaaUjcv VeMmlFfxrtC2O89CqlJeV/cJGWRZjh/FxTOBWkGJKfNgbK0fX/BbXLjVTRW7Pog7KiK2 mRoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116916; x=1734721716; 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=bMmfxBtIiIXQAk+hQuWMNvOte8CftqHpp2z6mVglAAg=; b=hqjqXjKQocBTGtlYRvCZCOMiXvQsCklesLD8YQvn/2W63dJBW7twQgoNGYWgQUjTp5 0mUvqfSZIdLD8aslGiwl4Jibb0RS3V7Dv8TYe0meowIdKk/GNfHrqVoF8mhx4SBgw9X7 bkhe8wUxHsgutnIX5FHut6CaPwTWT2coqkOFgzO6EgH6RPYs7VFYEcTrMVMep4PuoBXa 5boXxieSZwdq44MNLOPyET+zg6FBXor2QCHRF8LAFMvYDRvU5+DKTUr8w/6k5O87RJQn t1NXx5vVidzoKVNJdHvj+zcnXIU81EP+oKbLJpeT1jun78Bfq2SYMuyfBJpRDWeZWESr 06Fg== X-Gm-Message-State: AOJu0Ywir1CN7KxDQge4u6a/IeeMBbsrQ9/J1ZQ8f6ZGDAv2N2Uxt+EA 2xj8OWHLXXlOxrILPUP2VAUE/IIvC7rDpUJEANyyB3H9tUuFn7Ztg74cWUdNumMbXFG/MMz/izG MgvWd7Ia4 X-Gm-Gg: ASbGncusHNhXdNjHAk4aY6oDyBf6XfIeCS9TA4msFM2D84JvAHZ10irNABWZwQ04zyA HO2SYZKvyE/GbV8ft3kwOgORGFRJz+vL4EO1c755G6ZaJNUKWczeUZabTX2Vfzna+eex5kSS3Ib NuY65kBy3i6SuPxeA9bT0sJIwESZnJkCWEBH5ImgcG49JOhj6hvA8sgCFqN0DNE5jVMsmxeZB1N S80Oi7iUoRc3Uv5iBbfmnAwdWdjU3HpQ1AbpEvzXFOMYb3Rm6w7olUBVjbJLb3K X-Received: by 2002:a05:6830:380a:b0:718:a52:e1cc with SMTP id 46e09a7af769-71e3ba3a182mr2496590a34.25.1734116915785; Fri, 13 Dec 2024 11:08:35 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:35 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , qemu-riscv@nongnu.org (open list:RISC-V TCG CPUs) Subject: [PATCH 08/71] target/riscv: Constify all Property Date: Fri, 13 Dec 2024 13:06:42 -0600 Message-ID: <20241213190750.2513964-13-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=2607:f8b0:4864:20::330; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza --- target/riscv/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 80b09952e7..4329015076 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -2661,7 +2661,7 @@ RISCVCPUImpliedExtsRule *riscv_multi_ext_implied_rules[] = { NULL }; -static Property riscv_cpu_properties[] = { +static const Property riscv_cpu_properties[] = { DEFINE_PROP_BOOL("debug", RISCVCPU, cfg.debug, true), {.name = "pmu-mask", .info = &prop_pmu_mask}, From patchwork Fri Dec 13 19:06:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850245 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1689104wry; Fri, 13 Dec 2024 11:20:02 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUqIvVa7iECLNP7xgF8Nl+EnHvSZKPNbCHiv18ZWE+nLzMfZMOeRnEbsW3zTzK40QQpkLPLmQ==@linaro.org X-Google-Smtp-Source: AGHT+IExEGknr/V4jmO+IMDZurUX9vHhaAOyO56CufINBpx2UKSVk2I1jg+z0O8KszdzG9p+4DTt X-Received: by 2002:a05:622a:1450:b0:467:6e45:2177 with SMTP id d75a77b69052e-467a574f879mr59411951cf.12.1734117601871; Fri, 13 Dec 2024 11:20:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117601; cv=none; d=google.com; s=arc-20240605; b=A6a6kwa9sDWBz/5Ug9Lf1JkeA0+ul6Ict2RMAiWDYrE9oBd5nMTr1k77ummB2J4z4n Ak8jcQEkCWH/MCeKwcMLX8slYOO6jsBQDtGRhaTTyzhYxkK2Jl16PwkyW5XDlBtGzYZW vcuNnL3z97v5MjC9WPO+Yz5yrdbBEp15sekfgNXhQBDykltdEfcVY9sdlrN1T9mYmk9T 8+aRje77PPe1w1QwXSGr/Ee415AfIFvD+el+0yHV9rbdge3km3ofX5IFb5ElB9V1kFap xRBcgbWqpVoqg8T1H2ssMAKya+I5IG2l/LQQdo3L6MDk4Z9Gf0huPVUjcmiLgLJc8013 s1yw== 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=KfKmXC0aO5/KmkpGNbMSuzTs1IA6VJWmA6AglE8msBg=; fh=LfbMF8M9AzdC8+0LmIELPuDpiLhc28JenDghzj3M4VU=; b=dFApEdC2dTNqztZD7F4a5QuFkxmakYLos7IUymJOIIMbwJWNv9aa3H/BVfmMexOf4L xHENFa3o0x2c/L0iezCkrSxFRmS6uvtJU6uDlRFpUvx+6YV4mtHAehe+TBEX2huC2CtL yU/Uzh9QYzoe92FE6fmXcEEvBPDlEi9WaGzKesiA1Qi04X19ag75/WjimIq6RcqfuriV de4NeVWts2bMNSR6f2/ERG5Cswuy3819mP6cAMqKhLMpOYDgke+Jbl8T5vb71UCy/y/E uAZ61Iyk26UtLJVP0uwVxyVehVyd6mebY1gdHjQ+xb1mkd3BBKBDbBvLiK/nVynapKsf NLHg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qjWhxzLw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2f26cc5si1494221cf.660.2024.12.13.11.20.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:20: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=qjWhxzLw; 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 1tMB2I-0003Di-UO; Fri, 13 Dec 2024 14:09:14 -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 1tMB1o-0002Vx-O4 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:53 -0500 Received: from mail-oo1-xc29.google.com ([2607:f8b0:4864:20::c29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1l-0006YH-Oz for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:44 -0500 Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-5f2efd94787so1261754eaf.2 for ; Fri, 13 Dec 2024 11:08:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116918; x=1734721718; 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=KfKmXC0aO5/KmkpGNbMSuzTs1IA6VJWmA6AglE8msBg=; b=qjWhxzLw+f1qeJgL5O8Zc3lFfp3RKZWDtvvi7yqOtsv9sr8orZIXZUsgQr9S4x62yu AMeb/m4nkItMS+Ufo/vRok1YVHtjdBM/W47xTo3aw2YqeLrZraCi9jQf4g9dBv/yNXSm 9oqePjZT7ibAEF+71SZZaKXJa8OZ7xeacaqk5WEqyjYlLBM/M/5RtCLMLfyK1Fcq7McT h6FIgE5FkxPBaU06lribmkfwKT0ht3r40B1RCUjpCts9QI0GlehF9oe6yDL19r9xA9yI TLVsX1RAMb7TAJjK/6BvNN2sMMVSkUc/lanDjDMA+RN8qEnZYr/20V4LgQ99ZLHSl6wD cA9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116918; x=1734721718; 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=KfKmXC0aO5/KmkpGNbMSuzTs1IA6VJWmA6AglE8msBg=; b=glTmQ5HdF0P4AZn3zw2wz8HDxWmm5TbbX6lYMmcjKRFESYttU9HgQxSl7dn0cr8MEv SlfeJbIjnMJgrDf+dMQrtmTvbsNTOvaVefLM51qLboCSRPQUh6ov3cJSNaeOtqlEVaZC OWyIdQkx2VFk0eP3ZUpXH18l2/YZAtTwk/p0Igc6kVbJ90p2Im9duxOVcDNowjA46fHp tUhfhMIv8a1cDZfjjp2KmXIph4WqahT08dextGxziuBghrU8WUcWz8gKIixLLwUuvs5A SLlfP9lZc2GSsY+iGljwzjMqXzfHIDorPX67+PHZS4gmiNrQJwYUiSc7RPffw5d8bQ7d VwAw== X-Gm-Message-State: AOJu0YzvmE5+IUwKBCXzvNbmjU3fZHGDqpm+I0Npi+a4bi3xy9o7GGez 2tcL112UvTYsSku7KLePEwiILfyom0uWrbTPXanLBKmC9i//WLTWqL+ZE8aqwKV0NgznlqzMNNl CbjtkGOIC X-Gm-Gg: ASbGnctt7sPTipTnk+dVMQqihSa8BTfxy1B574vjKfD4jETBK7S3uPPKHgXxBC8a0F8 TVuEFE/dxYLEPa9u0pVMyNHA6Q6kIUZByhkBOFBvTs18ioLP0aYhorwXLEAoQHtAasJ5lYhZapO JLEV1IYpFK+bOwEoPU1iM1fKGFEE1sTKMPWjQshredyg0mglsoY4RXzu71ymFYBQ6Mfm9C5qpzz OUoon98k9CRIEOBVb+na3BmBEbXJRWcep0ueavgqhD4IZd/pZl2E9r2SJMnRpoD X-Received: by 2002:a05:6820:1ac6:b0:5f2:9d29:2c3f with SMTP id 006d021491bc7-5f32948b437mr2513007eaf.6.1734116918140; Fri, 13 Dec 2024 11:08:38 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:37 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: David Hildenbrand , Ilya Leoshkevich , Thomas Huth , qemu-s390x@nongnu.org (open list:S390 TCG CPUs) Subject: [PATCH 09/71] target/s390x: Constify all Property Date: Fri, 13 Dec 2024 13:06:43 -0600 Message-ID: <20241213190750.2513964-14-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=2607:f8b0:4864:20::c29; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc29.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 --- target/s390x/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c index adb27504ad..4702761ca3 100644 --- a/target/s390x/cpu.c +++ b/target/s390x/cpu.c @@ -309,7 +309,7 @@ static const gchar *s390_gdb_arch_name(CPUState *cs) return "s390:64-bit"; } -static Property s390x_cpu_properties[] = { +static const Property s390x_cpu_properties[] = { #if !defined(CONFIG_USER_ONLY) DEFINE_PROP_UINT32("core-id", S390CPU, env.core_id, 0), DEFINE_PROP_INT32("socket-id", S390CPU, env.socket_id, -1), From patchwork Fri Dec 13 19:06:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850262 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1691039wry; Fri, 13 Dec 2024 11:24:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUablG0a3IQdIXaJqUq8sl/CsAn6eyp1OWd5DusVswgM+P+gu/qZstbO8puWHignhlKYsq/vg==@linaro.org X-Google-Smtp-Source: AGHT+IGmSI82fnQ3JkZytT6MFwcF6rSOCVs8KF+8mc09mqH4dUHJh5xRRI5ASx90huiTIaYUEQZR X-Received: by 2002:a05:620a:720b:b0:7b6:d611:5d35 with SMTP id af79cd13be357-7b6fbf087fdmr481673485a.32.1734117896408; Fri, 13 Dec 2024 11:24:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117896; cv=none; d=google.com; s=arc-20240605; b=Z0b9VDfzU5QDU401nSocePt0a590/Z7ZRIGH8c5ZX+cTCqr3DYbxyLeG6l+l3eEqQk 8WL3PRkgAuB98fRuIipXSwtvyBy4YpdVaCmKZgL7W3Oe40rqEKxaN+1B1OdAiaYCY3WK RKgF9TEv6bvCstHTGGNOuWzQ1x5yd8a0pTKcu3T+f7G31hC4bTpL7WnYG1Wgj0qDO0bW rr9vaFlsID2jl2p+kpwyJNbY0bldZ0RVne+TznmS7smwpJ/BFIJN2z4c1f+GPdoKvDr9 CBJabiiotgHwvvMRqDRCAmA2t4ltKCnM0oKq40+j2zBfgLkulRnEW4Dv+mA7ZW3MsrOI Lahw== 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=JKm04qysg/gEgbm4vurn75ARW08p/MAYicuTqcRbj08=; fh=uMouYUTR2HrIPFfZbK/OU4bTeG7ULPkJqiedzLu9O/g=; b=htQbBGH3ihvevRZkgagVfBgsFF4uiWpszhXtnQKMIbLe8CWnEZjCxHXk6zv/XDnCus dqLBhHmgWyYxnraf7Icp9Ryt38Qc8bC4KK/K5S0NqZpyXO/U72krZTOdjEyRG2SLO1e2 4/7JhfxGycrp5NOFdugQY65vv/7QuNUg7oiqwsvpfDv5e4D+ZPo/ZyAYL6BZ1VLRETrT TQphrdrJZZqPM867RicR1tcVRnOuHQbF9U+UTt9Ji77cwPq7UbGKimYU/lzEjmkPGPVc VwqkRB9G/bc3QySmFR4Qa5hpSsLGT7P6JYKTg1gqMMYoWnX940wd/SV0Zs6Lkm7FxbNq +xPA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=StpMa9rJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2c98852si2408011cf.80.2024.12.13.11.24.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:24:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=StpMa9rJ; 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 1tMB2I-0003An-IL; Fri, 13 Dec 2024 14:09:14 -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 1tMB1r-0002WK-2d for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:57 -0500 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1o-0006Yq-CI for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:46 -0500 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-71e1d6c7738so1117978a34.2 for ; Fri, 13 Dec 2024 11:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116921; x=1734721721; 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=JKm04qysg/gEgbm4vurn75ARW08p/MAYicuTqcRbj08=; b=StpMa9rJDZms0fqTJSqcDhdfeCIJoHKZ6dKkvjJEw80fEF4v4zcS5yGJIh4oNv+BLS Dy5q7iiSVIhkdLeZ/Nd49V0sMzmstXFQgAMvIbJYujiJrTkA8iPCQM1/WFXtcWazrLFt 8EIN8Ajo6BKPsf/PA8u8Oe5wwrKKpY0L6lZ9p9kXETcbMinefXb4yDTWHLI1YtwZBXp1 0DyN4Osdk9RKo//SeJxHyCpUkVFhNbBPEbTun8KE7W687NqdFsKBpbdNegFkVaN8rWSA 89+f9mD/3LsTWD83+3pIFOJ5nYi7zvvuNU3qTnY4Q55k0eAPEbwnykeW9ARcapI4eJzm tp/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116921; x=1734721721; 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=JKm04qysg/gEgbm4vurn75ARW08p/MAYicuTqcRbj08=; b=YKQCKH3b2fB3qDKy64NVeLyucE45X6NVxQMXurz26o5ym9sCyJMiigf0NMLTvFxhHD b1MMaTA4IEIsppza2YouHLr4llCCfzwJHQJYILGwnov2hpWWtToPIbKtxXJoqF8+IOLP bDu1UlGdC/CIew+XvLm7B0HpYeNaM2zq/IwiWw+ZtTLwBQuBlocxhc8zMRqIDZyaNSiZ /bHzuUQADj3/IAqMqqxDvZfyXbMblgSeYJy8UITOZUXT2D7LjOEvGr8XkinT9ZBqO1Jy BXsXzIbAZ8LfVevGfD3L8PiO+aId5QIyRI3ktb5u11yWTK0UzzomywpKusnxqmYbq2vB vrRQ== X-Gm-Message-State: AOJu0YwXEMpT7PmBSgnRb3eqf9hddP1PdOIsYjhbVRR2boDg5x7EHvmf SRd17hijqofgkuyTT+wdG39dthtW1zICVC7E+h3YivpuWEcx8k8VbtGA0C3F9V22fwvAE8xooGF t9K6IW/P4 X-Gm-Gg: ASbGnctrkB8HyRjQthqNLgAqBb41R8F4wa67CZ/jiw2/2bsmawmefjo2kA/5rAX6Pnn PcP8l5Cbxza/KgJI26d7oK/sL/MKmxn50hOJlxkQ8bXm2MgbxdUbok90eCeySGviL9heIC20MDv rPhdWzxLmM9dqWKxAvIuXHwpmyj0VXN0qZqEAPocaVRtVNDkhMbfIjA8vXa7ynsFi9OV51+G5bX tJJywHaZqkEBK1cfzN9BcjYJjy0jqox38xU+gEnUqyawZpkby6v54N5CjQIcK3G X-Received: by 2002:a05:6830:6e09:b0:71d:eb02:baed with SMTP id 46e09a7af769-71e3b8576b6mr2256363a34.8.1734116921476; Fri, 13 Dec 2024 11:08:41 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Artyom Tarasenko Subject: [PATCH 10/71] target/sparc: Constify all Property and PropertyInfo Date: Fri, 13 Dec 2024 13:06:44 -0600 Message-ID: <20241213190750.2513964-15-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=2607:f8b0:4864:20::32a; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32a.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 --- target/sparc/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c index 284df950e0..8f494c286a 100644 --- a/target/sparc/cpu.c +++ b/target/sparc/cpu.c @@ -874,14 +874,14 @@ static void sparc_set_nwindows(Object *obj, Visitor *v, const char *name, cpu->env.def.nwindows = value; } -static PropertyInfo qdev_prop_nwindows = { +static const PropertyInfo qdev_prop_nwindows = { .name = "int", .get = sparc_get_nwindows, .set = sparc_set_nwindows, }; /* This must match feature_name[]. */ -static Property sparc_cpu_properties[] = { +static const Property sparc_cpu_properties[] = { DEFINE_PROP_BIT("float128", SPARCCPU, env.def.features, CPU_FEATURE_BIT_FLOAT128, false), #ifdef TARGET_SPARC64 From patchwork Fri Dec 13 19:06:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850228 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1684981wry; Fri, 13 Dec 2024 11:11:23 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUdVsYraMAUBIwsYvG5x6N3zLG+SbKTkVlN3dmy01MorM7/ukiEPrfOj0/z+O6sZZvbJIQpQw==@linaro.org X-Google-Smtp-Source: AGHT+IFEKsMFIbyUPyRgDhjAcBKU546OvyDUqJhJfsdiTH/Ev9VI3OF/UNBwi1hgT17OtIFXagO8 X-Received: by 2002:a05:620a:45a6:b0:7b7:12e:48eb with SMTP id af79cd13be357-7b7012e494dmr270227785a.17.1734117083385; Fri, 13 Dec 2024 11:11:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117083; cv=none; d=google.com; s=arc-20240605; b=dh65fFXlj5VSKfplAAALox1wYz96ubSF3gHJjgbs1Pf2AqYDPdVE8Kjpk7MrPfK2Dm cM6UGeizUqbesd+wGyVeyYXsplAbS8rbHadOcuLwBY7/IPVXfT7lunpMomNxJFdz3aJn THHySCgDT733K2yQ/FT2TS5Y9G8gJGjHPvqQ0l56klMflX4KAYjQyyMQXF0pFPyo5vNS wCuKNBGuyWmdiMLA6/DYfHuNCBe8jSslPNMtQXzAqBG1HTChl6Nb3eIIFpXqWTVvJgq3 gWzU/KA5h0iHUTue8V0FRPYwv/Hij4eUO37B6dmssFgsvaZC2RWneDSwNbwPwi5ljBv+ 6D7Q== 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=w2fQ0c2NIl1a5M4AWrVbc1wnQ6w0xGGZJojz6lR1rxs=; fh=OTkfrEnbNDInppsfj4HB8z6V33zCj7LOct256XBfW6M=; b=c0+Sis43ITFAXZ6COPzPyKxZ24npL4hwQSE02Ym6hNZjWprC4SQEaL2+5UK0zZxy/7 ApfLX59X0PCkUieYT6TggbMZjqGQl+PZ/4nt2vuxJCCLg8dZ2Hk03K08sz/BXUBwT2Ar sHVl2k8r76kRCYlZZVcjCpcl7eAEEfKHHsxM5uI9R3FRxL3zeAw2+llAP1KDIZPUFVgp lfX0oqnwfwhzP+zDZYeRhUguscQkCGwUameHQK/GXRRistlcsWVWIaFaltyE7XAVW5K4 h6ygSG7NsJo+H3QeTfCHK2vc3nroTzDQn8NO8XGohaW6WMi9nr9PWtfdM0z+wsffLNeF pYSQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sb6zc0JX; 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 af79cd13be357-7b7048f18c0si9211685a.611.2024.12.13.11.11.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:11:23 -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=Sb6zc0JX; 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 1tMB2G-00033r-Cj; Fri, 13 Dec 2024 14:09:12 -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 1tMB1q-0002WJ-PB for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:57 -0500 Received: from mail-oo1-xc34.google.com ([2607:f8b0:4864:20::c34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1o-0006Z2-C3 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:46 -0500 Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-5f32de85789so388683eaf.0 for ; Fri, 13 Dec 2024 11:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116922; x=1734721722; 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=w2fQ0c2NIl1a5M4AWrVbc1wnQ6w0xGGZJojz6lR1rxs=; b=Sb6zc0JXs+KIhkH1aS4E3/gDPfzoS+AIUWKNFFubhsxCSW2En1bxKArLMke7cDvivQ uLdjrF+6pu0Megh5X/hw2dO3voMALcF0o1P6NbE8WryhSITPyy+OAE8MImSiVkO1qjPO kXn8DIO8hxgy6NpUWm0bI6+PtOrTYvKRZJq0oKb7Lhy6ora/ou1WJJwRuTKVUpccvXPU HpUqcKirLOwYP+auGU24jz/aa4yukx4/ZT1Bt4jHuOC8A0LeoCmBxtOc5tIyo135oT+f rReEiJ+D7iCp2dvhpmvxrEqGjyN6akhbfIhqUlJgA4978+TCE0pjQMxiUe9I1kEYN3yz QZYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116922; x=1734721722; 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=w2fQ0c2NIl1a5M4AWrVbc1wnQ6w0xGGZJojz6lR1rxs=; b=L6Chaxn+RCttUKyTklitpaEAeaHJSsQhP16x10VKV0+RGCjOfHvyjTKXn8IJ74yF2D PT1ITjyoruLBiAfD+Jmf+9gTSZl4pngjCoU/W2Pb8eENZ6b1WvNP2wW5qAl5794l+6oc Ft8N+v0wi8xCgDIz/vR7Va7kZi84jx0fk3H8ZxYq8RzNzTyURIBAhxRGnEH9rrd983oC NB+BOIMkA1oe3kSAjDdH2mi2JuVs7lNMTRvZzCVF7I1RVBfCY++98XZfv1d6qtKD6X0m htj699z+34BkYuSQGxHDU0KxgvE9oHO65a3vkPFFgV07357028e9aG49kwajs5uSTQh+ xvZg== X-Gm-Message-State: AOJu0YxjWS9a3A7Kjcw1ZYZ1tndx/oW2A7Pg3pP5D/4Gld0tckiQCwjT e9xVNLokblM/vS8iexG1ClMH+VECdUDV+iExEdyPhN8psoyfxTtWPdXrzmcii4YZOJtWPl7eL0/ NJTliL6cw X-Gm-Gg: ASbGncuyLkdeXtToLFx4RLSpX1ELZ9TWPl8XNmZKNfYTFwdUudYbE6TzccEsqNFPY2F eb6kxhBs0yPbs8hxEfe9WdcMi6ipMZ4Ziwr3B1HzN2WQhfN17CEUQIZfqUQNfYgU/qaHBOoyzj3 DBcevvP0YJtYMcMuUOh7w7ZFh0gdoz663BqGKt55SeNvKJUI1vRQKA5I/5xlF+VRaJzCwTQS3AK BAAKAbMmFfSL/Xegb69a5LGTNUf33qSVlx5IPOM05XLqXorL2K67LY1eHL/Fi9/ X-Received: by 2002:a05:6820:2787:b0:5f2:c5e0:453f with SMTP id 006d021491bc7-5f32b33c095mr1790797eaf.4.1734116922618; Fri, 13 Dec 2024 11:08:42 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Paolo Bonzini Subject: [PATCH 11/71] cpu-target: Constify all Property Date: Fri, 13 Dec 2024 13:06:45 -0600 Message-ID: <20241213190750.2513964-16-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=2607:f8b0:4864:20::c34; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc34.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 --- cpu-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu-target.c b/cpu-target.c index 499facf774..2ae07a779e 100644 --- a/cpu-target.c +++ b/cpu-target.c @@ -183,7 +183,7 @@ void cpu_exec_unrealizefn(CPUState *cpu) * This can't go in hw/core/cpu.c because that file is compiled only * once for both user-mode and system builds. */ -static Property cpu_common_props[] = { +static const Property cpu_common_props[] = { #ifdef CONFIG_USER_ONLY /* * Create a property for the user-only object, so users can From patchwork Fri Dec 13 19:06:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850266 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1692110wry; Fri, 13 Dec 2024 11:27:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCURQfcnlC97Lzp8PSqZ21NPIDDMyT4Z3xIZ6rJCUSUsErtXKwkJAeBM2wDlv5QV2W7m8CvYIw==@linaro.org X-Google-Smtp-Source: AGHT+IFwnCRivsWE74BHWBNel7ahSB/VEf+fvmZPWwUBRNscKXtKzJ6XvsP9Lh7Ul9e0PgKyRBCy X-Received: by 2002:a05:622a:230d:b0:466:91f3:12ca with SMTP id d75a77b69052e-467a14a0ed3mr84422281cf.8.1734118076391; Fri, 13 Dec 2024 11:27:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118076; cv=none; d=google.com; s=arc-20240605; b=OIahEu6dnmeMepf15DY3O6ILKyG8PHp1LbKP3S9WCLtFpZswCrU6Ul7k2/hIWEP82y uOETyHuWs+RrAHR/274++32bxFWJPSJx5XFAsz0yyVYuFqmjiTP/aTkgwykNa6JidU1+ aG6st/s0RsFS2MrROmcWSqdwBVBlgEL0Z1l5nhZfjYRVxQ/CELgQtKTsn/03AZYdn7PZ OOl/rKDWErFV3u6c3FQ9U0vNIGPyk9ayNQETTSNBAQ4KRDkLplDDAn8i0vGf2TmhYpG/ txH6Pdhccz87Gl0hSLue4lL8qB6TR7YqussKUC1ksWDBRY6oEeaIbuv8Pw9d9f9AQX2R vqdQ== 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=DK3m2qrYLo1FElKLISrWyflVJNfhiEXCCTPNj+B3ktI=; fh=4ZmJ1nJfTybW2PwKc+u/RJP4UFBV6m3fdpvgwHAwQoY=; b=jpFAqXQSt46/WhwRuwiEGdrPBvzHy8ZyDasYYXVSIY/yKa7EskFlIb2gF2vaCcVQ0N wbnC972ibXuxXcKeOmRQ71vxCBdA44s3r0Uazp4UhLCVth8Bsq3CJKRNf2FfsnQ41bI9 JuALxZmdV7xEJq0fMj5RsRa2jraHRK0bA7ugaDKHaL4B5PnuCxSMdgEABOqk+4DFm+yC ZOVkDyVG0IUy7k9TkoJZeS9DDGeTbHI037W7iqI4EQcX4bP9m4guAaIa8zXTPGh2m2Rq xJGcrk0sPnO9armfFT/GhgH4GZOekwcEjpd6W2FS6sGzeN3GLJcNoNyF0aS/UJEWAfew rZIg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IUwYAKCX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2c9752esi1844611cf.83.2024.12.13.11.27.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:27:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IUwYAKCX; 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 1tMB2K-0003MD-EB; Fri, 13 Dec 2024 14:09:16 -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 1tMB1x-0002Wa-2B for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:58 -0500 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1t-0006Zg-74 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:51 -0500 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-71e16519031so1052230a34.1 for ; Fri, 13 Dec 2024 11:08:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116925; x=1734721725; 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=DK3m2qrYLo1FElKLISrWyflVJNfhiEXCCTPNj+B3ktI=; b=IUwYAKCXWVg33ADuClOgHWt+XER1Oh0NjAjIJRz3BBZvhzhg4uuZAJ7ZuUwEC9EmVS xOtm8SfU/IzWD+zk44LsHq8reIRHSjECNfXZ1wsPn2ddvFsxuoJLd/GETQkCyNta9YF2 0L1GD5GBMI59WpG+T7JpluNH8vaj14a1lq2a8EJqRbjjnGgOEPHxbmRjr7LMrzq3+9ZU udGbOvJrljdw0udJ4rUva6woh0LR887pcZ4cLoQzaM0VHzf8k1n6K8qvHMD7gvT4/7oy 6mgNf9ugbd80LRJMVndM58JPGHUyK67eRMwW/slQevynNdZB2nP18vIcrmV5QI37zYe+ jlXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116925; x=1734721725; 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=DK3m2qrYLo1FElKLISrWyflVJNfhiEXCCTPNj+B3ktI=; b=CX/5vhXqHcxpB0VzbIDk2tD8kDLPTdcAQsQr6NwWDEZhtcokRf3VjnSy/jMaxrYahp I5ApbUMph8Jy7qjpXOqSeeovoefpz1klIo+M/dkk25tguHldTdnb4yngct57hTCViX6Y D5p3R74hVzVrVxqYxS4cAPkhIJ/SiLMoxb7353FHItm+goW1gjFWdU9hwGakNQY322a4 cwn8IjkMlzhg5vceA1o0WjCvEORb0D32XrYaQWS2k6pS0lKo5qoyB62UPotIGoAKZ8Mj qhz+IP5cnLLkx3vzX/R1yP3iyzQgedttjPMlPr60ZTPjuS9oi1rVRDqrYboaqWIvEnxc 1tqw== X-Gm-Message-State: AOJu0YwdEJnjWlRr6+0mJsJYzTlpBJqP4q6vSj2LwkRg324L8Vx8HT31 vOjDOwd4Ki9tvnxGNlqm+jlGcFDBxlB+ehpbUAyZ4AAtYjmcR+Ze92Xur85b0SAPPdiyHVB8jyA 03V8MCOKo X-Gm-Gg: ASbGncsBgZ3slaMNS6X347wVYMCWRhNHHQReEsLifHBkJJMXEomfjultlkSBWurovJA JtWmyq18BMmHuSzBXixt+CLh+vF4hY63c4rcmWyLXiGRa1T/nTbugFHcP9RGIwaId/tYuiziNaw wRoRL7STY6OqGeGsYTA0Jwj5fxa12KOk/goh7ETLlTHGfCzpr26fjrKe2AWcjeF3/u+kBCxYxq8 tHVOiC5cI9TYFzf/kkXkt6MxIBWRRCy2VcIUaKqSuWiKWp78AB0FjjfJ/uo7u4J X-Received: by 2002:a05:6830:6a8d:b0:71e:15f7:1a3a with SMTP id 46e09a7af769-71e3bd180fdmr1828568a34.2.1734116925411; Fri, 13 Dec 2024 11:08:45 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:45 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Greg Kurz , Christian Schoenebeck Subject: [PATCH 12/71] hw/9pfs: Constify all Property Date: Fri, 13 Dec 2024 13:06:46 -0600 Message-ID: <20241213190750.2513964-17-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=2607:f8b0:4864:20::32e; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32e.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/9pfs/virtio-9p-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index efa41cfd73..b764e4cd3d 100644 --- a/hw/9pfs/virtio-9p-device.c +++ b/hw/9pfs/virtio-9p-device.c @@ -243,7 +243,7 @@ static const VMStateDescription vmstate_virtio_9p = { }, }; -static Property virtio_9p_properties[] = { +static const Property virtio_9p_properties[] = { DEFINE_PROP_STRING("mount_tag", V9fsVirtioState, state.fsconf.tag), DEFINE_PROP_STRING("fsdev", V9fsVirtioState, state.fsconf.fsdev_id), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:06:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850235 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1686721wry; Fri, 13 Dec 2024 11:14:49 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW8bHGitXH+Hkp4e44iXolg8cjCEFxGLzGxF+//VG6MCSvDvKJxEB5854YcrMdylye/Uu+Fdg==@linaro.org X-Google-Smtp-Source: AGHT+IGD4BUJ/dLqXUOBAaD6v5OYRKFslSM5qFXFNhjtE9eHYMOsmlkeOd7/nzFTj7e50sJLgt/J X-Received: by 2002:a05:620a:28c7:b0:7b6:e0aa:48b6 with SMTP id af79cd13be357-7b6fbf45901mr495445785a.62.1734117289453; Fri, 13 Dec 2024 11:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117289; cv=none; d=google.com; s=arc-20240605; b=I8tta81wEq+F0I5hVl39HGl16NfeZN/AZeSRaA3s1aZ++212JxRoUoEQLKWdbBjUF7 OL3Ir+5IxCElljfPUXOZe3rbbbYECF5mEURSCa/E5N3FExJ0mjaONthRKQzLdJ+jfpts +j3X778s6OZ4JH4I2TWa5bws3by4aLmG3b3nxkRgNf7ClvtnTXhUR5N8esOY8XfiBcNv /RGVyw/XyB/q6HXw9BN55mvm5X5EjZs0I20xIZkHKZreGnISvRbXiNjFSugyzEHZYJtu yy/cPPbkmfa7GVSHk7B8ujczyA0Uxv6hnLXGf1+S7jMGaS2LmH68vLTVcdYITLmkdwof NMFA== 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=CZ5o+wK3lUFPQSBeOoH6IwFw54AejBcTfhRb5vaU2tQ=; fh=FlQ0rYDlz8LM+o1HUs3k9Td1gAkEReq/tF6PXiO0DR4=; b=G3KwuJqlXRXKzC2jje6JMHCKWP4z3zfflaqhKwFb91gTwF/Bd5oCuHi2m5ab46WosF FlIU5OqUYd4y50jGkILsDHdCOVEtdbbUFr3nRHPzoJhzaNSHodGsQJN3je5xOh0aVqUm /GrXfpx18x+1FAjKzt4CwowycXGiTfIj3x0gmYMV9mwkepwI5YLQ8PgA7oCCyXvpbQcp j9KmtkICnd8Sx/cXhD9Tet/4iwbPnHiqWv7NVDc5AbOd+lk2ZBH6HWJeLGhOl3V0Thjh EBPcSXsisxR3fSWsLt4eLfapdMU/pQgXRJY3HX1INUlNTo6dQOX/z3/aFgpOHPxqL/Ck Q+2Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AreI7Tk7; 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 af79cd13be357-7b7048e4a80si10389985a.541.2024.12.13.11.14.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:14:49 -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=AreI7Tk7; 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 1tMB2K-0003JR-4N; Fri, 13 Dec 2024 14:09:16 -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 1tMB1x-0002WZ-1M for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:58 -0500 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1u-0006a7-8N for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:52 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e3cbd0583so199163a34.1 for ; Fri, 13 Dec 2024 11:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116928; x=1734721728; 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=CZ5o+wK3lUFPQSBeOoH6IwFw54AejBcTfhRb5vaU2tQ=; b=AreI7Tk7bteZVfF/PRMFP3SBQqw8UQDACiChUJNVR6gtASVMIpmjKKR2vwKo8buQkP 7LynT9Ene+GbMe4fwIcUjbfSfL0ZEjbQnpYwlOcEv4tlkaufXoyAJh5NkK7XEy3bYtmy FFDfOM9PpgbnYXDwhtAaMaPduRGyta14zFqvgrafy0vHyosprfaGHvks6b/Z3N9GCKst ZLeRVc043ZzxE24hhkrRBiWpNaNng5yMOP5bJ8IeE5n9lVvzUlnYmlv1F8+XLgvRLfFZ H6FYTqAuXx0LO3eLyxKO+0o4822tDgJX0cOfgOF35mChQlZOW61MEcPR7gNT19wIJheb wR8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116928; x=1734721728; 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=CZ5o+wK3lUFPQSBeOoH6IwFw54AejBcTfhRb5vaU2tQ=; b=M7YeSP3bxG+sb6tuKEuTkZ5aRHrs9olWvx7g68nAqoQiwiFlV9gij4ROzNMWr9i35S I4Xc7qY4jw7djbKqtGWuHsVq8J1jQFzDNVGI736anylfNTxPAUjI9rLyfAhXHybJeE/G 8wRzKYFv50EWJmizoxLPrkmSxJuzPAsf96jMCaQjaV7v43Ea/ZeBYfyMka8CimA8DK22 ZQCsngjAfscSJeuf7JXDUNDrwClkIjuw5wEtewhsgZ9aBpzWVTUFOrE2oSieJkG6Ylxi YYDfeYTroABH5G/75JojXllu6ojIxaOfVrz1Ia+Mk8DJfllveJbzqDhevBPeyH2Lez6y 47ew== X-Gm-Message-State: AOJu0YwnVn+Rm3LtB4f0BU+6n5/DPIt3SwfbqSK5VfTBIAZq9YEgIuS6 vOgW5w9Nj749Qi1TE7aMFApkx/LpsggSPVfzHrcLCG7DSk9SnxFVSXmsVxhD74KOk/13p99VKPx cRgRsgeh3 X-Gm-Gg: ASbGncs2D4OwyXzEdKF0eEyutNC9yU7VYpjCGnubl+CVZYS0pXlak0RuaUORH/HBkUq zocJSA2OPxn0etxsuhaGVKz/NEVkUtLqNIlTzFfoTE4fqWP5R1JDSyrGcxJFyfD+DwSndcAbeNv 3B8mehTfDREfvSc7xpoIa4J7iCmP18K6T+q/pUmAnP1TPCioqqrNd9carWZ8RrsVS9TMFKeFI5g wk8wGXuJAlN9yHcaWqibXwKLY70nMwWjPyfZpvcxkzsOUnoftcklQ2UHQYWS34k X-Received: by 2002:a05:6830:917:b0:718:1163:ef8f with SMTP id 46e09a7af769-71e3b812c59mr2293190a34.2.1734116928405; Fri, 13 Dec 2024 11:08:48 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Igor Mammedov , Ani Sinha , Marcel Apfelbaum , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?q?aud=C3=A9?= , Aurelien Jarno Subject: [PATCH 13/71] hw/acpi: Constify all Property Date: Fri, 13 Dec 2024 13:06:47 -0600 Message-ID: <20241213190750.2513964-18-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=2607:f8b0:4864:20::32d; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32d.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/acpi/erst.c | 2 +- hw/acpi/generic_event_device.c | 2 +- hw/acpi/piix4.c | 2 +- hw/acpi/vmgenid.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/acpi/erst.c b/hw/acpi/erst.c index a108cfe49b..5ef5ddccb6 100644 --- a/hw/acpi/erst.c +++ b/hw/acpi/erst.c @@ -1011,7 +1011,7 @@ static void erst_reset(DeviceState *dev) trace_acpi_erst_reset_out(le32_to_cpu(s->header->record_count)); } -static Property erst_properties[] = { +static const Property erst_properties[] = { DEFINE_PROP_LINK(ACPI_ERST_MEMDEV_PROP, ERSTDeviceState, hostmem, TYPE_MEMORY_BACKEND, HostMemoryBackend *), DEFINE_PROP_UINT32(ACPI_ERST_RECORD_SIZE_PROP, ERSTDeviceState, diff --git a/hw/acpi/generic_event_device.c b/hw/acpi/generic_event_device.c index 663d9cb093..8c4706f8cf 100644 --- a/hw/acpi/generic_event_device.c +++ b/hw/acpi/generic_event_device.c @@ -316,7 +316,7 @@ static void acpi_ged_send_event(AcpiDeviceIf *adev, AcpiEventStatusBits ev) qemu_irq_pulse(s->irq); } -static Property acpi_ged_properties[] = { +static const Property acpi_ged_properties[] = { DEFINE_PROP_UINT32("ged-event", AcpiGedState, ged_event_bitmap, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c index 1de3fe3261..2bfaf5a38d 100644 --- a/hw/acpi/piix4.c +++ b/hw/acpi/piix4.c @@ -602,7 +602,7 @@ static void piix4_send_gpe(AcpiDeviceIf *adev, AcpiEventStatusBits ev) acpi_send_gpe_event(&s->ar, s->irq, ev); } -static Property piix4_pm_properties[] = { +static const Property piix4_pm_properties[] = { DEFINE_PROP_UINT32("smb_io_base", PIIX4PMState, smb_io_base, 0), DEFINE_PROP_UINT8(ACPI_PM_PROP_S3_DISABLED, PIIX4PMState, disable_s3, 0), DEFINE_PROP_UINT8(ACPI_PM_PROP_S4_DISABLED, PIIX4PMState, disable_s4, 0), diff --git a/hw/acpi/vmgenid.c b/hw/acpi/vmgenid.c index e63c8af4c3..9c2ca85cc7 100644 --- a/hw/acpi/vmgenid.c +++ b/hw/acpi/vmgenid.c @@ -214,7 +214,7 @@ static void vmgenid_realize(DeviceState *dev, Error **errp) vmgenid_update_guest(vms); } -static Property vmgenid_device_properties[] = { +static const Property vmgenid_device_properties[] = { DEFINE_PROP_UUID(VMGENID_GUID, VmGenIdState, guid), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850227 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1684980wry; Fri, 13 Dec 2024 11:11:23 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW9ARg4KIRPypMAGMqVoilBqkwVTik1thXdvLYEQ/K2NXvQqn3hPIhq0FXMWaXBwA7vcCdB/Q==@linaro.org X-Google-Smtp-Source: AGHT+IFrPkl80SmG0qIngP66ntcJb0y8HZfneaQY9mcm0PLJE2TwNfVECM3J750IkBWBUbjOk4Ca X-Received: by 2002:a05:6214:d48:b0:6d8:a754:9647 with SMTP id 6a1803df08f44-6dc8ca57509mr57524826d6.17.1734117083233; Fri, 13 Dec 2024 11:11:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117083; cv=none; d=google.com; s=arc-20240605; b=ZlbuYLiER/RJ/n3zsLcEn6F38nSj+pra9s/8k/Wn6mXbbIU/U6YtCWv3KoC0Pa6YTV llLROXCPDpsh61f1QOh7ghamhbvPoupxKOsqEI0COiaKdRUVzdWH18aLx+5blTEzMPtx L6JYLp0d04qD5ncgO56UZTaqn58zduV/LByJK31B6uxTMS85JKtQd1WztJNYJ2JV9kT2 HZmjW0YYa+A96HINcaLBcI5GKDOH9zsjnczXJENxqMPG60vrkR3MrRrwm1H2tYCFEhkO DRMyYzltIUSedrAoXPuoovxlbJMS1UaUBtR8WzWlKHcDwDABRE+LTaiO+/yUEE/xiw2M +1jg== 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=5MVjQ/sFVZOHfVsO0iGOMYvfVDMa5zTFWs8lXg66XlI=; fh=2LVXFCOsl2Nwb0U5Of/C/2edvrmC+HZycH6VrIgzjes=; b=I7u5MfJJbu/CbF/t9cMTnylemIZNasEiQ6DDdiYDCS8e6lfaE6c92h7yMuGLnd1WCT rKsoV4bfUsKKGLpx0wDruJqzA+E0/BVOi4FChSHYoEa3m0KDOslLetsK7ljdxvTcirK0 c5RRnzpuEpd+khrYqSEJ2T0wsrtd9Eu3ti5vNZ/rMtzg9plrQv5UiVXf0RLoLWLZWZz4 sA+VJN06X/rp2Kq91/Y7dTB5G0O5O6ywcBP4TVrs5QHBh+WtAmXU71U1cs4ws9IGojYs X7PI2KFuZ3jTzDvMjgvi2PlTD5FhMOWmZFJPluORaEUOgxDzBbhMTxIaxY+FyEmoyc1s /HPA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hCN/N+Hr"; 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 6a1803df08f44-6dccd39ab94si213376d6.467.2024.12.13.11.11.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:11:23 -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="hCN/N+Hr"; 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 1tMB2O-0003Vd-4y; Fri, 13 Dec 2024 14:09:21 -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 1tMB22-0002c0-Qn for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:06 -0500 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1w-0006ar-PY for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:55 -0500 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-71e287897ceso1220974a34.0 for ; Fri, 13 Dec 2024 11:08:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116931; x=1734721731; 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=5MVjQ/sFVZOHfVsO0iGOMYvfVDMa5zTFWs8lXg66XlI=; b=hCN/N+HrrjL1pw/PSd7fRHiTVJTbKiM0ihecyIHzwusutuMOQidTwJtuMxWlEByxPs vTn2OmLgfV+X+60IKVaVlqilNQnFp7Muow4Oz6RoVyb8GAW12qQBCK9d9iD9ksGAksF0 lIFqsR/RKgV7g0rU7Vv2cHAAxbXuUfzer8IBM1srgK9kIX8qvDVdl4phkVfz9+YILJM6 wsamUGqjQPpZWGkaEctE1X77/XYaCjHojlonXLl+FmhZBM4K9aqu8T8mT5+x4jVkNbi+ 4Hxrih/NhLIcVkFYjmKkkelDs0y16fviU2ZDuzcyIIkdk2MiZBnfDHz3da3tcAbyOpIK eK2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116931; x=1734721731; 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=5MVjQ/sFVZOHfVsO0iGOMYvfVDMa5zTFWs8lXg66XlI=; b=JWZzlWK6qK6+6vCKQcRIjsq3PEKUg0FU6ziZsJAkEAilNSplEA3VWreJKQB1ceMkjb 1fEepEiXog7QoCBKEg8dXZM4/FcQZcsjA2bfPW6QCHShCVuX5pWLQYnHcAJ1Q1FXWsox Snbq4UJC3cFsgGXj4+t1xj3HRwhQAUyZAJtd2duZdiTpDcwlsWpmbcDl5sbDtSgqKH8O 4t8UZfKmSRBMOxaFok90cL4Tpo2fGbBBvTE9jx9IhcvT7BGkGkNsx28aaWam4dFC6s6q 7UNlJWgjPNr5QKPQ4UOhOSGFPdRD3nXzGCWaJB3ysHrmo+Pp0Xwo0z4yOIC4T5hwRNmd ev4Q== X-Gm-Message-State: AOJu0Ywh/RzJhvcg2ciZb/Ed6Tg74FFpSzi5K4kTh048+PSWATtn1Nyq TqsGds8WwAcvsSm31Vprf7tgZeJR6nNITGCuoShg3K8JWsG+gHX1hLp8lB7StbEGM99LgkPvfaJ V2b/OuYz7 X-Gm-Gg: ASbGncvmzrJw54bJwyBteSk1kzu4b3Ut6+8bxSdUqNKNr1dQ81iXvXcwVzxsasDtnbh Xx0ygboRY1BORlVUR97b/dU8/P4aciF0/FhWV5tQMyc1do2EPrkBcb+ul+yXQ566nBcrm34zBhE P8NB5IW6KEAGqoWpjolQOYTfIPtnHaOdvjupvTjHlZKOFfVGy4y4N7E+zZJSFrgpeTqpwy3l1ES Je5W6M4PFmWIfkWwBxTyPyh65EbKGa5UD7GS5mgti4mz4xTuaSd1jHSdToRECxB X-Received: by 2002:a05:6830:498e:b0:71d:eee3:fd1a with SMTP id 46e09a7af769-71e3b5bcfd6mr2358437a34.0.1734116930999; Fri, 13 Dec 2024 11:08:50 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:50 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alistair Francis , Peter Maydell , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Tyrone Ting , Hao Wu , qemu-arm@nongnu.org (open list:STM32F205) Subject: [PATCH 14/71] hw/adc: Constify all Property Date: Fri, 13 Dec 2024 13:06:48 -0600 Message-ID: <20241213190750.2513964-19-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=2607:f8b0:4864:20::331; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x331.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=unavailable 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/adc/aspeed_adc.c | 2 +- hw/adc/npcm7xx_adc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/adc/aspeed_adc.c b/hw/adc/aspeed_adc.c index 598f2bdf48..f94c6f2be3 100644 --- a/hw/adc/aspeed_adc.c +++ b/hw/adc/aspeed_adc.c @@ -286,7 +286,7 @@ static const VMStateDescription vmstate_aspeed_adc_engine = { } }; -static Property aspeed_adc_engine_properties[] = { +static const Property aspeed_adc_engine_properties[] = { DEFINE_PROP_UINT32("engine-id", AspeedADCEngineState, engine_id, 0), DEFINE_PROP_UINT32("nr-channels", AspeedADCEngineState, nr_channels, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/adc/npcm7xx_adc.c b/hw/adc/npcm7xx_adc.c index de8469dae4..1781ff4c0b 100644 --- a/hw/adc/npcm7xx_adc.c +++ b/hw/adc/npcm7xx_adc.c @@ -267,7 +267,7 @@ static const VMStateDescription vmstate_npcm7xx_adc = { }, }; -static Property npcm7xx_timer_properties[] = { +static const Property npcm7xx_timer_properties[] = { DEFINE_PROP_UINT32("iref", NPCM7xxADCState, iref, NPCM7XX_ADC_DEFAULT_IREF), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850225 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1684413wry; Fri, 13 Dec 2024 11:10:14 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXRO8YlLk8QY/pyKUClv920vL9p1jdMDhK0mIo+0IMiFvCLf4EymQE90Zbk5hRhkGWviAOnfg==@linaro.org X-Google-Smtp-Source: AGHT+IFLlIBuYu4VGybCE1pBw3/41oTs8JAaWwCcBj+9ddDFaROHpDWYX7iLD4NCqJoljiqDWw2H X-Received: by 2002:a05:620a:1b88:b0:7b6:72fc:b046 with SMTP id af79cd13be357-7b6fbf08477mr800922785a.7.1734117013743; Fri, 13 Dec 2024 11:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117013; cv=none; d=google.com; s=arc-20240605; b=VDv4hzFz/I9qk0EZm7Qv03AMjqzrgLoIfTu3T49lhef8G9fxntrFYeS9nYkB6HKC3i bq9jlJgkc4sKkzi50b/i6HxrfuADFxMj3bsEFNbqzJOi3RZs40QCekc/+rNln1o2WYg/ JTf1qVq80fbwOcd2s4iQL4QuWTCxKyAJWWpsg/AilB+qdKmk8G0Tdb9zS+sKmbc3aY0W IR9LOCDpBgsIkJk8+jww1dvl3eD84+ayVj2VQm4Ogzp121lERv8Xy5uKexQZqITJyHts a6havx0g7CSyOC8strZj17dkYC23yeSqPIWjEt545rYOcXebIDcbidjSX1n2ssCkibcW +h5Q== 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=LscTgJ5P5TtEk/dzbWNj9LwdfZF1GUDxnwbVdr9OdtQ=; fh=A4gbgPO2l9SVtztbFqCSl9i7Pq2Fi1X2lLhw1FSJ6k4=; b=Tp0EZ5O3Ts0jVGSe92sKm0TpZYlrCLkAdYbeEmNAnkbDfwnwMsrtFMOtjkxm+d05O8 bbLQpTFu33e7GEUDxducSomF941pGKT+DENRD6Og7PByE/5iYawjCAOS5Vaeg0uIP65l 1ekzWCl0kZv3aCMd0MOAfo3AHdhkRjfT1JKygfuF92M04GgE7sjodpX1uYwBAjwEQg/3 FAUBexflBRf0sXhSiA+85Dhaq914HzJAGb7bVRoefb76e/pogC2GZfagdKdhT4j87YTO wYPzLma49vXZlioJnCWfSGHeBscr9Q+XP3alJcznN+Xq6LjpEAw3x+VngPN1gZ3y+ENp ik2w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GwK7lDrU; 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 af79cd13be357-7b7047ca620si13471585a.136.2024.12.13.11.10.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:10:13 -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=GwK7lDrU; 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 1tMB2W-0003h4-FK; Fri, 13 Dec 2024 14:09:29 -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 1tMB2J-0003Gx-In for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB22-0006bU-HU for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-71e19fee3b3so1670011a34.0 for ; Fri, 13 Dec 2024 11:08:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116935; x=1734721735; 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=LscTgJ5P5TtEk/dzbWNj9LwdfZF1GUDxnwbVdr9OdtQ=; b=GwK7lDrUTcJ136FmZ6EVvIFdPeYAocA8BmX4vmuH4jcjjMdaE+KW9x1ME3GqGQ4jqN luUWsuQgpOYZlxxexTho1ZAU5W8dlGr6Y961bMQP1mItebv+oxby5QVwK+ly/VB6v08f c1Vo9T3/9M94pPlxwKajFPc0AoxGyEvofC1PqHaG9S17uoL98OU+ZhK1Zd+96SFIT79g fKaVi4wexJbo9fnWAJdnA6fz5E9rCco+5otsdqbGxIkmrk0Ky9U1RJJDgJeMT54jc5FI f6eOJhWidJ2QHcU4kp6AldaaB4GlAotSmPeckuFsmgWjgJF1vUg/4rICqXwiBjgyDycP NorQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116935; x=1734721735; 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=LscTgJ5P5TtEk/dzbWNj9LwdfZF1GUDxnwbVdr9OdtQ=; b=hF2wqKbIllYR+SEkIT2x79zGbz64CrSMAedB3XCbLMlBdvfKdBP4OQArKlv77z2OSO F+rXTkPO6Mr9iZ/BcjbldhCXGAiXz492603hTQKizCt/MnW/LUaNbeDsvvGQVuSlxjWK gZlC4yKMuDIweqCZ1J3G7FPBnN2smyhB9Oy1DPCdJ8aen3EzspRhR5Fueft4WSZ4N6lr 4IYRDFO1+1vjbjaKWRSBslN7Txh6DNHFF/xF5XQR8CHwK8UjX4B52lrrYgVBWSbUC0Cj /opB46pkjW3kH2inkuGsYa7FN7MYxQORwsL6XWdg1Ky9qe6oqX7l7yirldBbRwlMOWLT XPrA== X-Gm-Message-State: AOJu0Yxhhyz0XmJ704932g1H8RIMXcrkeRLnyTfzpe6q/b2gHlEpNrTh nGUSjikMShmtpzGicFKrtbdLlxQnF2GSUc6YNF0YCNqh2H1XlQRXBPmIYec8NljgxXane2L3ZVS kgBMLo00l X-Gm-Gg: ASbGncsYvAtEKdey5ZObim3E/Pp/Utf73aQU3oyteRcCb2rpi5WHbHYoUEnyBlrBIMk BTtLg0ryHNN6R1flWmHzrLB+LP9gogvTqHiKF+nJAXrEZPjWsqzehWGBrydBGOKtL25WtEwuQvR semPEfBRpf82ILqPQtiu9K1QNMwGtW4/6UI8YW4PO22q0jI15SNpaymnkgDxaYln3wdSmKPSIJq QscMI+7AumpWzt1afSKp5zodhKRPBPDwwjI69skHZgKusVFeYJpcQrb4xgTg2Dj X-Received: by 2002:a05:6830:2107:b0:709:3a3d:6cca with SMTP id 46e09a7af769-71e3be4782fmr1767368a34.11.1734116933764; Fri, 13 Dec 2024 11:08:53 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Maydell , =?utf-8?q?C=C3=A9dric_Le_Goate?= =?utf-8?q?r?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Jean-Christophe Dubois , Andrey Smirnov , Subbaraya Sundeep , Tyrone Ting , Hao Wu , Eric Auger , Alistair Francis , "Edgar E. Iglesias" , qemu-arm@nongnu.org (open list:MPS2 / MPS3) Subject: [PATCH 15/71] hw/arm: Constify all Property Date: Fri, 13 Dec 2024 13:06:49 -0600 Message-ID: <20241213190750.2513964-20-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=2607:f8b0:4864:20::32c; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32c.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/arm/armsse.c | 8 ++++---- hw/arm/armv7m.c | 4 ++-- hw/arm/aspeed_soc_common.c | 2 +- hw/arm/bcm2836.c | 2 +- hw/arm/fsl-imx25.c | 2 +- hw/arm/fsl-imx6.c | 2 +- hw/arm/fsl-imx6ul.c | 2 +- hw/arm/fsl-imx7.c | 2 +- hw/arm/integratorcp.c | 2 +- hw/arm/msf2-soc.c | 2 +- hw/arm/npcm7xx.c | 2 +- hw/arm/nrf51_soc.c | 2 +- hw/arm/smmu-common.c | 2 +- hw/arm/smmuv3.c | 2 +- hw/arm/stellaris.c | 2 +- hw/arm/strongarm.c | 2 +- hw/arm/xlnx-versal.c | 2 +- hw/arm/xlnx-zynqmp.c | 2 +- 18 files changed, 22 insertions(+), 22 deletions(-) diff --git a/hw/arm/armsse.c b/hw/arm/armsse.c index 58ed504b2b..1cd6b4a4b2 100644 --- a/hw/arm/armsse.c +++ b/hw/arm/armsse.c @@ -72,12 +72,12 @@ struct ARMSSEInfo { bool has_cpu_pwrctrl; bool has_sse_counter; bool has_tcms; - Property *props; + const Property *props; const ARMSSEDeviceInfo *devinfo; const bool *irq_is_common; }; -static Property iotkit_properties[] = { +static const Property iotkit_properties[] = { DEFINE_PROP_LINK("memory", ARMSSE, board_memory, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("EXP_NUMIRQ", ARMSSE, exp_numirq, 64), @@ -90,7 +90,7 @@ static Property iotkit_properties[] = { DEFINE_PROP_END_OF_LIST() }; -static Property sse200_properties[] = { +static const Property sse200_properties[] = { DEFINE_PROP_LINK("memory", ARMSSE, board_memory, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("EXP_NUMIRQ", ARMSSE, exp_numirq, 64), @@ -107,7 +107,7 @@ static Property sse200_properties[] = { DEFINE_PROP_END_OF_LIST() }; -static Property sse300_properties[] = { +static const Property sse300_properties[] = { DEFINE_PROP_LINK("memory", ARMSSE, board_memory, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("EXP_NUMIRQ", ARMSSE, exp_numirq, 64), diff --git a/hw/arm/armv7m.c b/hw/arm/armv7m.c index 7c68525a9e..e20f719c9b 100644 --- a/hw/arm/armv7m.c +++ b/hw/arm/armv7m.c @@ -538,7 +538,7 @@ static void armv7m_realize(DeviceState *dev, Error **errp) } } -static Property armv7m_properties[] = { +static const Property armv7m_properties[] = { DEFINE_PROP_STRING("cpu-type", ARMv7MState, cpu_type), DEFINE_PROP_LINK("memory", ARMv7MState, board_memory, TYPE_MEMORY_REGION, MemoryRegion *), @@ -631,7 +631,7 @@ void armv7m_load_kernel(ARMCPU *cpu, const char *kernel_filename, qemu_register_reset(armv7m_reset, cpu); } -static Property bitband_properties[] = { +static const Property bitband_properties[] = { DEFINE_PROP_UINT32("base", BitBandState, base, 0), DEFINE_PROP_LINK("source-memory", BitBandState, source_memory, TYPE_MEMORY_REGION, MemoryRegion *), diff --git a/hw/arm/aspeed_soc_common.c b/hw/arm/aspeed_soc_common.c index a5ff33c46d..4221cacd51 100644 --- a/hw/arm/aspeed_soc_common.c +++ b/hw/arm/aspeed_soc_common.c @@ -139,7 +139,7 @@ static bool aspeed_soc_boot_from_emmc(AspeedSoCState *s) return false; } -static Property aspeed_soc_properties[] = { +static const Property aspeed_soc_properties[] = { DEFINE_PROP_LINK("dram", AspeedSoCState, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_LINK("memory", AspeedSoCState, memory, TYPE_MEMORY_REGION, diff --git a/hw/arm/bcm2836.c b/hw/arm/bcm2836.c index 40a379bc36..95e16806fa 100644 --- a/hw/arm/bcm2836.c +++ b/hw/arm/bcm2836.c @@ -18,7 +18,7 @@ #include "target/arm/cpu-qom.h" #include "target/arm/gtimer.h" -static Property bcm2836_enabled_cores_property = +static const Property bcm2836_enabled_cores_property = DEFINE_PROP_UINT32("enabled-cpus", BCM283XBaseState, enabled_cpus, 0); static void bcm283x_base_init(Object *obj) diff --git a/hw/arm/fsl-imx25.c b/hw/arm/fsl-imx25.c index 5ed87edfe4..48763b03fe 100644 --- a/hw/arm/fsl-imx25.c +++ b/hw/arm/fsl-imx25.c @@ -309,7 +309,7 @@ static void fsl_imx25_realize(DeviceState *dev, Error **errp) &s->iram_alias); } -static Property fsl_imx25_properties[] = { +static const Property fsl_imx25_properties[] = { DEFINE_PROP_UINT32("fec-phy-num", FslIMX25State, phy_num, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c index 85748cb233..236d15bc9c 100644 --- a/hw/arm/fsl-imx6.c +++ b/hw/arm/fsl-imx6.c @@ -481,7 +481,7 @@ static void fsl_imx6_realize(DeviceState *dev, Error **errp) &s->ocram_alias); } -static Property fsl_imx6_properties[] = { +static const Property fsl_imx6_properties[] = { DEFINE_PROP_UINT32("fec-phy-num", FslIMX6State, phy_num, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/arm/fsl-imx6ul.c b/hw/arm/fsl-imx6ul.c index 19f443570b..1e0bbbb5d7 100644 --- a/hw/arm/fsl-imx6ul.c +++ b/hw/arm/fsl-imx6ul.c @@ -718,7 +718,7 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp) FSL_IMX6UL_OCRAM_ALIAS_ADDR, &s->ocram_alias); } -static Property fsl_imx6ul_properties[] = { +static const Property fsl_imx6ul_properties[] = { DEFINE_PROP_UINT32("fec1-phy-num", FslIMX6ULState, phy_num[0], 0), DEFINE_PROP_UINT32("fec2-phy-num", FslIMX6ULState, phy_num[1], 1), DEFINE_PROP_BOOL("fec1-phy-connected", FslIMX6ULState, phy_connected[0], diff --git a/hw/arm/fsl-imx7.c b/hw/arm/fsl-imx7.c index 9f2ef34555..0310c15b0c 100644 --- a/hw/arm/fsl-imx7.c +++ b/hw/arm/fsl-imx7.c @@ -736,7 +736,7 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp) &s->caam); } -static Property fsl_imx7_properties[] = { +static const Property fsl_imx7_properties[] = { DEFINE_PROP_UINT32("fec1-phy-num", FslIMX7State, phy_num[0], 0), DEFINE_PROP_UINT32("fec2-phy-num", FslIMX7State, phy_num[1], 1), DEFINE_PROP_BOOL("fec1-phy-connected", FslIMX7State, phy_connected[0], diff --git a/hw/arm/integratorcp.c b/hw/arm/integratorcp.c index feb0dd63df..ee6c7e0c0d 100644 --- a/hw/arm/integratorcp.c +++ b/hw/arm/integratorcp.c @@ -694,7 +694,7 @@ static void integratorcp_machine_init(MachineClass *mc) DEFINE_MACHINE("integratorcp", integratorcp_machine_init) -static Property core_properties[] = { +static const Property core_properties[] = { DEFINE_PROP_UINT32("memsz", IntegratorCMState, memsz, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/arm/msf2-soc.c b/hw/arm/msf2-soc.c index c4999ebce3..5d7c3f2e5a 100644 --- a/hw/arm/msf2-soc.c +++ b/hw/arm/msf2-soc.c @@ -222,7 +222,7 @@ static void m2sxxx_soc_realize(DeviceState *dev_soc, Error **errp) create_unimplemented_device("usb", 0x40043000, 0x1000); } -static Property m2sxxx_soc_properties[] = { +static const Property m2sxxx_soc_properties[] = { /* * part name specifies the type of SmartFusion2 device variant(this * property is for information purpose only. diff --git a/hw/arm/npcm7xx.c b/hw/arm/npcm7xx.c index af04c4b7ec..2960b63b59 100644 --- a/hw/arm/npcm7xx.c +++ b/hw/arm/npcm7xx.c @@ -810,7 +810,7 @@ static void npcm7xx_realize(DeviceState *dev, Error **errp) create_unimplemented_device("npcm7xx.spix", 0xfb001000, 4 * KiB); } -static Property npcm7xx_properties[] = { +static const Property npcm7xx_properties[] = { DEFINE_PROP_LINK("dram-mr", NPCM7xxState, dram, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/arm/nrf51_soc.c b/hw/arm/nrf51_soc.c index ac53441630..43fac8a8db 100644 --- a/hw/arm/nrf51_soc.c +++ b/hw/arm/nrf51_soc.c @@ -208,7 +208,7 @@ static void nrf51_soc_init(Object *obj) s->sysclk = qdev_init_clock_in(DEVICE(s), "sysclk", NULL, NULL, 0); } -static Property nrf51_soc_properties[] = { +static const Property nrf51_soc_properties[] = { DEFINE_PROP_LINK("memory", NRF51State, board_memory, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("sram-size", NRF51State, sram_size, NRF51822_SRAM_SIZE), diff --git a/hw/arm/smmu-common.c b/hw/arm/smmu-common.c index 3f82728758..6baa9d0fc3 100644 --- a/hw/arm/smmu-common.c +++ b/hw/arm/smmu-common.c @@ -934,7 +934,7 @@ static void smmu_base_reset_hold(Object *obj, ResetType type) g_hash_table_remove_all(s->iotlb); } -static Property smmu_dev_properties[] = { +static const Property smmu_dev_properties[] = { DEFINE_PROP_UINT8("bus_num", SMMUState, bus_num, 0), DEFINE_PROP_LINK("primary-bus", SMMUState, primary_bus, TYPE_PCI_BUS, PCIBus *), diff --git a/hw/arm/smmuv3.c b/hw/arm/smmuv3.c index 6e847e8773..026838f9ac 100644 --- a/hw/arm/smmuv3.c +++ b/hw/arm/smmuv3.c @@ -1976,7 +1976,7 @@ static const VMStateDescription vmstate_smmuv3 = { } }; -static Property smmuv3_properties[] = { +static const Property smmuv3_properties[] = { /* * Stages of translation advertised. * "1": Stage 1 diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index 376746251e..7fc13d96c9 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -438,7 +438,7 @@ static const VMStateDescription vmstate_stellaris_sys = { } }; -static Property stellaris_sys_properties[] = { +static const Property stellaris_sys_properties[] = { DEFINE_PROP_UINT32("user0", ssys_state, user0, 0), DEFINE_PROP_UINT32("user1", ssys_state, user1, 0), DEFINE_PROP_UINT32("did0", ssys_state, did0, 0), diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c index 612115ab5b..4c4ff21e80 100644 --- a/hw/arm/strongarm.c +++ b/hw/arm/strongarm.c @@ -1332,7 +1332,7 @@ static const VMStateDescription vmstate_strongarm_uart_regs = { }, }; -static Property strongarm_uart_properties[] = { +static const Property strongarm_uart_properties[] = { DEFINE_PROP_CHR("chardev", StrongARMUARTState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/arm/xlnx-versal.c b/hw/arm/xlnx-versal.c index 3a1e2e29f1..3adbe7b1fb 100644 --- a/hw/arm/xlnx-versal.c +++ b/hw/arm/xlnx-versal.c @@ -968,7 +968,7 @@ static void versal_init(Object *obj) "mr-rpu-ps-alias", &s->mr_ps, 0, UINT64_MAX); } -static Property versal_properties[] = { +static const Property versal_properties[] = { DEFINE_PROP_LINK("ddr", Versal, cfg.mr_ddr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_LINK("canbus0", Versal, lpd.iou.canbus[0], diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index ab2d50e31b..1082c62c30 100644 --- a/hw/arm/xlnx-zynqmp.c +++ b/hw/arm/xlnx-zynqmp.c @@ -857,7 +857,7 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) } } -static Property xlnx_zynqmp_props[] = { +static const Property xlnx_zynqmp_props[] = { DEFINE_PROP_STRING("boot-cpu", XlnxZynqMPState, boot_cpu), DEFINE_PROP_BOOL("secure", XlnxZynqMPState, secure, false), DEFINE_PROP_BOOL("virtualization", XlnxZynqMPState, virt, false), From patchwork Fri Dec 13 19:06:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850274 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1693771wry; Fri, 13 Dec 2024 11:31:45 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUt6DiumJz11VETGrLoTtKgnibP734DhVMh++MSJvoAWHOmIe7cGg7lCXv/T9wLbEDsTMaKbA==@linaro.org X-Google-Smtp-Source: AGHT+IEBsWaPfKPEkClE/F/s+YP1x34lzLuDZcSQsdzQN4OI6angDz9Pl2kBQ/GWFCSLjqv5E3dy X-Received: by 2002:a05:620a:260f:b0:7b6:eaa9:d6a4 with SMTP id af79cd13be357-7b6fbee8a0cmr642003385a.26.1734118304746; Fri, 13 Dec 2024 11:31:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118304; cv=none; d=google.com; s=arc-20240605; b=ZCU+N/KGJAEz4+gLiO35qfsy6sJm7QHLiPqcEtZZR5B/HOYTRQ3Uxu+zC955eiGQyQ cyFnOTfj9zT3vO/7w4sEpCK4FxQN5d5/5m4XvNYzI2TB69X5S76yfHddbvzTiSulynzq x88wXJnmKgCemRdSTlC/ZFaxlwO4Z/BwyxN4dSOGQ+chFiw5p28ep2KLURRboVE4NPM3 qC9ayKLOA3hjGO3F9jxIuUfnNRzqm+RGohY9rIufRg0DXkYY/6E5zkxfzamEV+ODlN2o 4Ecufk6YYxtlQ3igdV4ZltdZR3VcHso2ozUK+DYm0vtj1ct/CuNWsJzQbKofoyrDXNTA SVGw== 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=WPVKWgGGlxNMwJ/5ikAY8qQoL1FGwCZ0ZC/Ic6OB61c=; fh=BF3tUyZvxW6c8MNHYUq8ezQr+9ovNUwsRmgzZu6WjYE=; b=i9LrUaUnwS723gPr/zcAtG6VS59y8Du5rJXoNCuU+N2i9leL5kQUnDBd6i0eyZ9cdN QvIPjlE661cPN54GJmzjZhL2E1lW5zAZBgvmUxhSUnZ/R98ozaDMSes7OW05ToLpjQ+B qg9GNt+GIklGpOm71mIRj+g2z1zUy2LWnGGTpFe1FIRPbqFmW0Paz1YJ1PJlSlKMxOSH Nk+xxVkWvifv1KwLd8bX0n2CmaHr7N5ro3ujV4nOyPpVf58ZGyYil6Ll49OsdCr7iEHY xnV6/Q6UDnqnhM74VZupz3A6o+/BSStvfKLq4BxW/frGzeycEIS/xeA59X3FfvA/Mv3R T04A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Umt6+CUX; 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 af79cd13be357-7b7047ca65bsi19739685a.8.2024.12.13.11.31.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:31:44 -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=Umt6+CUX; 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 1tMB33-0004WS-JV; Fri, 13 Dec 2024 14:10:02 -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 1tMB2J-0003Gy-Ie for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB22-0006bi-K9 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3eb9de518e2so751518b6e.2 for ; Fri, 13 Dec 2024 11:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116936; x=1734721736; 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=WPVKWgGGlxNMwJ/5ikAY8qQoL1FGwCZ0ZC/Ic6OB61c=; b=Umt6+CUXQT5runt/quR0craxg7rrNJnp3wqAwfbce8fRoeDX2Rr7LaFyq1TJjA7TC1 OEzturid4z0iPikBvCEszZVC1NdHRtQhVK9HGYxkbwinLFr+jRm3ezZatpfuySgYpotj MrO1kvRVz/K8lGYRs74XuqCGcypExa1SNd4BqXQ0+ztDZhX3zBW10Yg9kaX090pab5Mq bwIFryPhcNDoWQnPdJ/jregO03bgsD4MJxQp5CkyshJRUj6qfeiJlGPAittTZa5oKxcb YX+rrpsMc0ByNEh7ps6fyzQYXQglmldSiMOmmVUvJKMfAOF/fLqgTEmGVyjOY6W9Jr9Q z+rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116936; x=1734721736; 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=WPVKWgGGlxNMwJ/5ikAY8qQoL1FGwCZ0ZC/Ic6OB61c=; b=V2umZxRdAO04dB7BMrdcBAw02FXfzsNZ5PWePYMvcx7cMuqNXwDbiWST/GdDzLjr+K PzcgGYDAxhN0kpS8NmfmXSgURLwF5TEozMh6NXZMhCluZ3+cXfpOM3CmNubXOgl2UYhW 5M++Vxne8DzZvURrMM4jWj4TgQkwPkNXUOlCopMGjI/VAe32JojlA59xq/YIH83z1k0d KvSW6hcnQnH/grTgn1D7aHRSQl9A7o+mnX/kIMk/jwPhpnaibtAyfF3Wg47NijQNzyrB 0qeStJ9B8J17nO/pRmxh4vYBnueyRODxkVnMYz0aS8MdBVUnkT2Y56MECuziP8iIj3Y4 xCPg== X-Gm-Message-State: AOJu0Yz+vK19Umi1tgdTCLPv6yGSXur1X5Lg82Sd/gxy0BaVBCnVdxU6 61vm2QP6yO7kdi4G748qZ0JTHgNQsJ3zWs6ntwSlSgh+zmXhDgl1cdgphPO8t/mrJ2nTUqS3hV7 VeSx95sCc X-Gm-Gg: ASbGncv93Kn5pHqOP2AS+1iq9P/J94hHN1n8LK0sGbKhysqHt3TqbsQqcGbJcAeLFOo TOfU8Q8jHGKwsO9qpTdNIyamez888VzhHNC/ZYwDhWk9fTdDQAiuawpA+IMQS1Hw0Yu+LZnE4uz bYaCmRwd4FVSUXWLl7gZMjV0zisMKI2DQjnt5Fsw7SNEpe26uX0aMTybmUB/abC96ETk2GxJyUr ZMlbRJi+vfx6SBcE/4SpR5MeIfa39KG06+rqb14S7rXMkJF+MBh4Y1EENWnh3t9 X-Received: by 2002:a05:6808:198e:b0:3eb:3b6e:a731 with SMTP id 5614622812f47-3eba67fe5c8mr2348947b6e.6.1734116936647; Fri, 13 Dec 2024 11:08:56 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:56 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Laurent Vivier , "Michael S. Tsirkin" , Manos Pitsidianakis Subject: [PATCH 16/71] hw/audio: Constify all Property Date: Fri, 13 Dec 2024 13:06:50 -0600 Message-ID: <20241213190750.2513964-21-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=2607:f8b0:4864:20::229; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x229.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/audio/ac97.c | 2 +- hw/audio/adlib.c | 2 +- hw/audio/asc.c | 2 +- hw/audio/cs4231a.c | 2 +- hw/audio/es1370.c | 2 +- hw/audio/gus.c | 2 +- hw/audio/hda-codec.c | 2 +- hw/audio/intel-hda.c | 4 ++-- hw/audio/pcspk.c | 2 +- hw/audio/pl041.c | 2 +- hw/audio/sb16.c | 2 +- hw/audio/via-ac97.c | 2 +- hw/audio/virtio-snd-pci.c | 2 +- hw/audio/virtio-snd.c | 2 +- hw/audio/wm8750.c | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c index e373f09d78..8033bbbaed 100644 --- a/hw/audio/ac97.c +++ b/hw/audio/ac97.c @@ -1324,7 +1324,7 @@ static void ac97_exit(PCIDevice *dev) AUD_remove_card(&s->card); } -static Property ac97_properties[] = { +static const Property ac97_properties[] = { DEFINE_AUDIO_PROPERTIES(AC97LinkState, card), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c index bd73806d83..c1d8faecb4 100644 --- a/hw/audio/adlib.c +++ b/hw/audio/adlib.c @@ -297,7 +297,7 @@ static void adlib_realizefn (DeviceState *dev, Error **errp) portio_list_add (&s->port_list, isa_address_space_io(&s->parent_obj), 0); } -static Property adlib_properties[] = { +static const Property adlib_properties[] = { DEFINE_AUDIO_PROPERTIES(AdlibState, card), DEFINE_PROP_UINT32 ("iobase", AdlibState, port, 0x220), DEFINE_PROP_UINT32 ("freq", AdlibState, freq, 44100), diff --git a/hw/audio/asc.c b/hw/audio/asc.c index 805416372c..452039418d 100644 --- a/hw/audio/asc.c +++ b/hw/audio/asc.c @@ -695,7 +695,7 @@ static void asc_init(Object *obj) sysbus_init_mmio(sbd, &s->asc); } -static Property asc_properties[] = { +static const Property asc_properties[] = { DEFINE_AUDIO_PROPERTIES(ASCState, card), DEFINE_PROP_UINT8("asctype", ASCState, type, ASC_TYPE_ASC), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/audio/cs4231a.c b/hw/audio/cs4231a.c index 2d69372087..abc38720a3 100644 --- a/hw/audio/cs4231a.c +++ b/hw/audio/cs4231a.c @@ -689,7 +689,7 @@ static void cs4231a_realizefn (DeviceState *dev, Error **errp) isa_register_ioport (d, &s->ioports, s->port); } -static Property cs4231a_properties[] = { +static const Property cs4231a_properties[] = { DEFINE_AUDIO_PROPERTIES(CSState, card), DEFINE_PROP_UINT32 ("iobase", CSState, port, 0x534), DEFINE_PROP_UINT32 ("irq", CSState, irq, 9), diff --git a/hw/audio/es1370.c b/hw/audio/es1370.c index 9a508e7b81..6170425a5a 100644 --- a/hw/audio/es1370.c +++ b/hw/audio/es1370.c @@ -868,7 +868,7 @@ static void es1370_exit(PCIDevice *dev) AUD_remove_card(&s->card); } -static Property es1370_properties[] = { +static const Property es1370_properties[] = { DEFINE_AUDIO_PROPERTIES(ES1370State, card), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/audio/gus.c b/hw/audio/gus.c index 4beb3fd74e..dd5a5a3441 100644 --- a/hw/audio/gus.c +++ b/hw/audio/gus.c @@ -290,7 +290,7 @@ static void gus_realizefn (DeviceState *dev, Error **errp) AUD_set_active_out (s->voice, 1); } -static Property gus_properties[] = { +static const Property gus_properties[] = { DEFINE_AUDIO_PROPERTIES(GUSState, card), DEFINE_PROP_UINT32 ("freq", GUSState, freq, 44100), DEFINE_PROP_UINT32 ("iobase", GUSState, port, 0x240), diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c index c340a9481d..8bd8f62c48 100644 --- a/hw/audio/hda-codec.c +++ b/hw/audio/hda-codec.c @@ -857,7 +857,7 @@ static const VMStateDescription vmstate_hda_audio = { } }; -static Property hda_audio_properties[] = { +static const Property hda_audio_properties[] = { DEFINE_AUDIO_PROPERTIES(HDAAudioState, card), DEFINE_PROP_UINT32("debug", HDAAudioState, debug, 0), DEFINE_PROP_BOOL("mixer", HDAAudioState, mixer, true), diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c index 6918e23c5d..3e4a755228 100644 --- a/hw/audio/intel-hda.c +++ b/hw/audio/intel-hda.c @@ -37,7 +37,7 @@ /* --------------------------------------------------------------------- */ /* hda bus */ -static Property hda_props[] = { +static const Property hda_props[] = { DEFINE_PROP_UINT32("cad", HDACodecDevice, cad, -1), DEFINE_PROP_END_OF_LIST() }; @@ -1215,7 +1215,7 @@ static const VMStateDescription vmstate_intel_hda = { } }; -static Property intel_hda_properties[] = { +static const Property intel_hda_properties[] = { DEFINE_PROP_UINT32("debug", IntelHDAState, debug, 0), DEFINE_PROP_ON_OFF_AUTO("msi", IntelHDAState, msi, ON_OFF_AUTO_AUTO), DEFINE_PROP_BOOL("old_msi_addr", IntelHDAState, old_msi_addr, false), diff --git a/hw/audio/pcspk.c b/hw/audio/pcspk.c index a4b89f1768..7a6b9f52d3 100644 --- a/hw/audio/pcspk.c +++ b/hw/audio/pcspk.c @@ -215,7 +215,7 @@ static const VMStateDescription vmstate_spk = { } }; -static Property pcspk_properties[] = { +static const Property pcspk_properties[] = { DEFINE_AUDIO_PROPERTIES(PCSpkState, card), DEFINE_PROP_UINT32("iobase", PCSpkState, iobase, 0x61), DEFINE_PROP_BOOL("migrate", PCSpkState, migrate, true), diff --git a/hw/audio/pl041.c b/hw/audio/pl041.c index eb96dc2898..6c66a240cb 100644 --- a/hw/audio/pl041.c +++ b/hw/audio/pl041.c @@ -625,7 +625,7 @@ static const VMStateDescription vmstate_pl041 = { } }; -static Property pl041_device_properties[] = { +static const Property pl041_device_properties[] = { DEFINE_AUDIO_PROPERTIES(PL041State, codec.card), /* Non-compact FIFO depth property */ DEFINE_PROP_UINT32("nc_fifo_depth", PL041State, fifo_depth, diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c index fd76e78d18..143b9e71e1 100644 --- a/hw/audio/sb16.c +++ b/hw/audio/sb16.c @@ -1440,7 +1440,7 @@ static void sb16_realizefn (DeviceState *dev, Error **errp) s->can_write = 1; } -static Property sb16_properties[] = { +static const Property sb16_properties[] = { DEFINE_AUDIO_PROPERTIES(SB16State, card), DEFINE_PROP_UINT32 ("version", SB16State, ver, 0x0405), /* 4.5 */ DEFINE_PROP_UINT32 ("iobase", SB16State, port, 0x220), diff --git a/hw/audio/via-ac97.c b/hw/audio/via-ac97.c index 85243e6313..e43ddf37f3 100644 --- a/hw/audio/via-ac97.c +++ b/hw/audio/via-ac97.c @@ -459,7 +459,7 @@ static void via_ac97_exit(PCIDevice *dev) AUD_remove_card(&s->card); } -static Property via_ac97_properties[] = { +static const Property via_ac97_properties[] = { DEFINE_AUDIO_PROPERTIES(ViaAC97State, card), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/audio/virtio-snd-pci.c b/hw/audio/virtio-snd-pci.c index ab58c6410e..b762d7e81e 100644 --- a/hw/audio/virtio-snd-pci.c +++ b/hw/audio/virtio-snd-pci.c @@ -27,7 +27,7 @@ struct VirtIOSoundPCI { VirtIOSound vdev; }; -static Property virtio_snd_pci_properties[] = { +static const Property virtio_snd_pci_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), diff --git a/hw/audio/virtio-snd.c b/hw/audio/virtio-snd.c index c5581d7b3d..e2b112e059 100644 --- a/hw/audio/virtio-snd.c +++ b/hw/audio/virtio-snd.c @@ -77,7 +77,7 @@ static const VMStateDescription vmstate_virtio_snd = { }, }; -static Property virtio_snd_properties[] = { +static const Property virtio_snd_properties[] = { DEFINE_AUDIO_PROPERTIES(VirtIOSound, card), DEFINE_PROP_UINT32("jacks", VirtIOSound, snd_conf.jacks, VIRTIO_SOUND_JACK_DEFAULT), diff --git a/hw/audio/wm8750.c b/hw/audio/wm8750.c index ec2c4e1374..19e7755060 100644 --- a/hw/audio/wm8750.c +++ b/hw/audio/wm8750.c @@ -706,7 +706,7 @@ void wm8750_set_bclk_in(void *opaque, int new_hz) wm8750_clk_update(s, 1); } -static Property wm8750_properties[] = { +static const Property wm8750_properties[] = { DEFINE_AUDIO_PROPERTIES(WM8750State, card), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850222 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1684286wry; Fri, 13 Dec 2024 11:09:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWaxrpOqJggQMN/J0Qn+och2qpaPTpRcC+uc6tcg894KTjjLxonCcpUOPXhZ/Z1jyiI09mSbg==@linaro.org X-Google-Smtp-Source: AGHT+IFrPqpNvqMmEod2WkBlbMf7qKJvJWMwuLs+sf5Qk1nNaJaIcwT5XbaWMaoNZlhZtsme/zEX X-Received: by 2002:a05:622a:580f:b0:467:6fa1:9e2a with SMTP id d75a77b69052e-467a57fb30cmr72384041cf.40.1734116996148; Fri, 13 Dec 2024 11:09:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734116996; cv=none; d=google.com; s=arc-20240605; b=YedJqvcINLLvwRiv6k+ebUbmwz8C+x5hWbGk3cUO+ADMornB4LLk8AnM2hq90iTMP5 5qENmysv3iKeDss3DJjdUaP61KIBf1gkC3BHvnag5VXbrU9qHfewEFZCYoc7/9o1kZ6k qDVE10+pbiJ6OZhfOOgZZ/I3alDhKZLTHGVHK3cFQr8XySA4zGX8fGcJBBB5Z5M9CBS7 +LbwPUOg1NYUyOW8xdsD3ClwNMMPRgTozVAyYGDWAmUknOuu8V5GFrkxIpoWVrbGh2Fu Zu11VSQgv2XL5sxpIr2rYcZo9lErdzdXRjqPcsKontWnCfbfPRu0PBtSdtFade5hmdSR z/+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yKW55J0w51PNOklb1SowP9V3cdDc2rdAjEh4kWiClk8=; fh=UWHPD0xBgQKCs3dgyo2BTdHMjmw88Vfu+HSRwwJh13c=; b=d1NhVdgdCTgRmIOq40WKwiMryFhlnea3gCgmMlf9z6bFdiKefEQCzdqSfEbQ39zsts y6RfTECME8Mtq0qDmuCRR0sIgMHtyDNGoZlyBOVNcJ6FdmH70AxTVrnAnycqWIeFaxzV D6CLhbHsdlpBft4bSUiJKRd79zq31SYiQXZRs11/r+hDrLjqLQgXFXhX6VDrtnZGhfii miW9wC8xFykW95VLfU6zQsLKBilFi23LKnuRkpd9leu+AcReUOdxMX688ecbr59Y42qa YIyFVoGAwhz2cB+BFIZO6GHdXG2dLsdEQfTTeoKqnCa+rulVkDvHTnVXD0PPAXOBKIXH whFA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fKXaCPhm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2e864a5si1358251cf.302.2024.12.13.11.09.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:09:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fKXaCPhm; 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 1tMB2W-0003kR-T7; Fri, 13 Dec 2024 14:09:29 -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 1tMB2J-0003Fo-1z for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB29-0006c2-4Z for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:14 -0500 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-71e3005916aso392507a34.2 for ; Fri, 13 Dec 2024 11:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116938; x=1734721738; 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=yKW55J0w51PNOklb1SowP9V3cdDc2rdAjEh4kWiClk8=; b=fKXaCPhmkqmHJwS5CQpeLarPVoxe78RqbY99cLED4XPq2Ojf0nn/w8uoH8TYpIA/do P15pxGDGtJy3Y/f5UGj1TOo4yP/26CutqLuL3bzC5hqqYoc2FdcEk3L5K5YPJzUjIzgP HzPZ0sTk2tWggfMT8nVmltKony4N1DyQZimlTMC7RBK+QPf4pgCan4qeRRDl9171PWSX oJXX0X21lSbDWGEuOAXP/r30CP7sk10/oIum6SSw/u1thL5Yn0ZH9VYXFa+geMwOr9yf l2u8BhVWZUBwzxFWHexR1lF3S3WzjmsPsqFAKtSilMlrjrAiZrA0rNSSebNt3BPs+R1k eoIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116938; x=1734721738; 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=yKW55J0w51PNOklb1SowP9V3cdDc2rdAjEh4kWiClk8=; b=XhPBnbzgUS6T2wKQkZxKqOCD4WrZ2xhIYj8BeSG+JjHkSvqnOUQxV8ggq9bDyUdlYZ hvKgkdN4JG1cAnq7ft8pKk7qkw9PIYkn2llbzsGZPltLYdwZn2nhpxhJkyP+P0o2wQtA fQNIra6LWRHppdsXuB96za1UlvK3LwTnlizC3VDW3aqOb/l3rFvDjEWpYEdT7dc7OQbF 22GBrZARY8fIYw15LNPh2DgrIiJVoP2zs1rQaUS9eVb9ZUvUuD9OsmCXwIplXMw/ELDM 2WJP9LxHKNUkzfX+eu/MkprBkjggwIQBnJVUjR/D/IZGFIyWRY/EudJPaXoegdq0UEvM QOig== X-Gm-Message-State: AOJu0Yzh5pcJrs5fL56dokMrlfnC2vL2eN5FDoLemdOdZTlf0x9mv9YT 2X2qRzSnKN1lSUFbjm8FsnZLZQB0ScS9rYPiBMA5c9pdTZn2xOVHx0QpOARfiVaY6OX59SEi3Jo 8YKUxdWpv X-Gm-Gg: ASbGncvICS+po8ZK4f1ve4IAqkz70p7T9LVMSVY05KgZBsWesWYVUxWSsi47jrTLJxp ct/LdpJeQOgnEWWGexYfvPJ/urQ+MZAQWcyQuxZG5hRxoZP+H4eEnqX/5woPlHDnJUuYFeZreaz A9rvruoJzmKM5Y4sM42gr1RquPBg6misO59pLkwVvAStcQWpA8bGtUb3XKSFNQ83XWuElBFWPJ4 4/Z5NDoBC7eU0CiKLYNOz8P9jpqH4YABcRMFgPDvkwia+V7T5FqMuDXP28EkC7o X-Received: by 2002:a05:6830:6e18:b0:718:9b8b:429d with SMTP id 46e09a7af769-71e3b816757mr2008706a34.4.1734116938397; Fri, 13 Dec 2024 11:08:58 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:58 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Michael Rolnik Subject: [PATCH 17/71] hw/avr: Constify all Property Date: Fri, 13 Dec 2024 13:06:51 -0600 Message-ID: <20241213190750.2513964-22-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=2607:f8b0:4864:20::330; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x330.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/avr/atmega.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/avr/atmega.c b/hw/avr/atmega.c index 31c8992d75..ce630ec572 100644 --- a/hw/avr/atmega.c +++ b/hw/avr/atmega.c @@ -355,7 +355,7 @@ static void atmega_realize(DeviceState *dev, Error **errp) create_unimplemented_device("avr-eeprom", OFFSET_DATA + 0x03f, 3); } -static Property atmega_props[] = { +static const Property atmega_props[] = { DEFINE_PROP_UINT64("xtal-frequency-hz", AtmegaMcuState, xtal_freq_hz, 0), DEFINE_PROP_END_OF_LIST() 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: 850224 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1684410wry; Fri, 13 Dec 2024 11:10:13 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVzTvS/M5fKaS2K1MGqWGin7T2OKwXd3RgPxJAvpCrkRW50wetmLPhprBMjN/IP/WAnaTIIVg==@linaro.org X-Google-Smtp-Source: AGHT+IFsZ+LcEVENqK+9W8P1IcPQJAkLcaFE2J+Lp/fkIRy4aywGV0Cme+LahPELw1gWowCpunYp X-Received: by 2002:ad4:5f0e:0:b0:6d8:88cf:e690 with SMTP id 6a1803df08f44-6dc8ca3ab05mr65021746d6.3.1734117013327; Fri, 13 Dec 2024 11:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117013; cv=none; d=google.com; s=arc-20240605; b=B6ck72bojVcdIrFusJgU4BKkNXabXHLghOot1b8BIqV55Nz+VCCFD5iYW+tc+wPRT5 pRi8NR8LfWgQx8NzluVousr61zKgTJ0YnNDxVy1jfT/J59OJA4JANdtUToyLBUfYkPv3 OZPuNCH6A72iYL58zelvJll35tnGyjc0rorssGZD1o/yCzaFqHiQcen5KEfqgKmF2Ei6 WL52TQ02QMA5UANjxj6wk93EOrj0PfW66POKjAWs7PhTubc5Hsf7WTfz2Eu2Jigg4aqo l25TN7rJHgR/7Hjpp1xGwV5fH7SofeJ7sRGwmEH+bzjMqG5e/TnDbODdgSAgC23HdYXN RwrA== 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=VBuAnCPgZLHdX0sVpQB+fbM15dWtrtdAGUwOdHBBqsc=; fh=K8P5TlVNNEXkKmHOhjTtYwA6wBqiRLX6Ewqz05T4B3Y=; b=RbAyMByLwIe4VuO766t/6hz10IxbS5HzUFop6nt86p2QQo2XTO4k7RLqZeJd4IXial e7jdaUsueMt9X0BEyuaqa7h1QJqIGhpx6ILAJG34Sc/lNP0UsLylT54Li8hqdD1C9XOY a7N8G9WAqWX9qDxOPTLFIAjPGSNREiHN5Ki/XBHBLJN0ai/vY/OnnFFcdPKSNPxz9Lk3 Be+0CjigASvw0WWVUy06efhRIeFo4x+zjC/6cWeawJF7t8KKozBCxiXlwnkP7/XFgufZ VZhF3TBPTGUWZXV/f3wvZzNlu1yE1B/Dl1nol1cuzq9JRqHwmn3ttSzu8Xo+VVUHkgEF 1eoA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HoNt0DaU; 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 6a1803df08f44-6dccd1c9d1esi523176d6.154.2024.12.13.11.10.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:10:13 -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=HoNt0DaU; 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 1tMB2w-0003yX-Ng; Fri, 13 Dec 2024 14:09:57 -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 1tMB2J-0003Gj-Cc for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2C-0006cX-KP for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:14 -0500 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-71e1158fe3eso974844a34.1 for ; Fri, 13 Dec 2024 11:09:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116940; x=1734721740; 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=VBuAnCPgZLHdX0sVpQB+fbM15dWtrtdAGUwOdHBBqsc=; b=HoNt0DaUOEkOA17O5Jr0EGkPPm+xC567V8+SQmEjcc2lQPqAZzgE+wHHEnAH0xfblT 2FYZbKjIQXFHDuPAImQcIu1kepnpq4JfX2CfDSqO26UI5wA8IW+G4z53VEZgV6Y1pMEp rDr0eSfvwGW4vyLtwK6A0AiMVKOv/2Ih3vDIbn1hhmD4EOz3MsJC42qJiuO5g3gESYjQ tGbegkHQaHFRmIOF4o3ysGQpxbY34a4fRDGEoazXmy5POoVPV63TVHfl99rkHqW+kmgR sjCCf8k1Dce9CoxJaK/CDhmAfJnftsoQp3/2kSEvD42Sz4krBktEPDvagOlqrwSKmX+h 7iNw== 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=Zstm31FmSk0eeVzVbCMv3RRYYWBFGxwSTlScPh2lKJHZFpEw5/EVELSyWy8hPgB0/n 8I0nK7ZfY2zsiifC2A5VE11Ii5nUhfa1utUY0pKoO05V4xGoLCxLs9A46tO1QOwyHQCP eSYfw1uj/Wk0NUWED9RoowQeZaLhnU/pKkCpyi4SdcUHjbbU4+ShFZ38i4BGCfB9K4f3 CvtdRzt74mf0+ckeKXEGSfL87GYRyLss8EVKmI2owjLuzHPZ7WDsac/HgH9Ih5pDJ1M6 kKaT+YD78w2NrSWn77uWLrNtDVXBXfbK4L4iV9eY+EeC45QHTc/5Px6OenDnudkjnPt6 dv5Q== X-Gm-Message-State: AOJu0YzqxuT3wtun9yB4fRutI2oo4FtSFIS6aP+w2gL18Ta5GakITVlZ 79iLOm4vCWdqw29p0hONenOYHl9njocGAq71+W0jsddjxP81XD1FGGjONKd+Sqv/KzuWgCAG9Ru GeKjRek97 X-Gm-Gg: ASbGncu1CzvNAo3fDxP+rcUFTdBmMFP3FcgsIOC+C3RFCm0PnpSvxlVW/vsdqJfW75I /FYpfMcPWxV9G5W9pdJNCUCDc839agYG9vujbx1Vf4H+c/lobz7KJ+rxVGIB8wriL6kY5cOVDIB w/uKWFIVmkb8SUi/30Ynnt80RyAri9pyQZzt7VJxhO9C9LTU5OSyROOFeEC2D+lgKXuLOY2vZ3L Wa52NITk3c5H7R3wtSSl2wONKmu2Mfzce/Pv6ZVpms2Kj5Gd4UKzMiJW64Lv3qH 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) 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) 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 Received-SPF: pass client-ip=2607:f8b0:4864:20::336; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x336.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 xen_block_prop_vdev is not used outside the file. Signed-off-by: Richard Henderson --- 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:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850264 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1691364wry; Fri, 13 Dec 2024 11:25:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWLYG75v52m1onZDo4MI2mWqdQBtx7WcfZfj+VRE5tQWgI06PZDiUE26+2OLVdyKiS51EswLg==@linaro.org X-Google-Smtp-Source: AGHT+IF8RvsS7Or/AKxbLmULYgCg5MwyQSbSeF1QFwvYwgdKoGlreKnG7a8b6gYPuUJQ+yrxwkmM X-Received: by 2002:a05:6214:4115:b0:6d8:9215:f462 with SMTP id 6a1803df08f44-6dc8ca8e871mr64959606d6.22.1734117947885; Fri, 13 Dec 2024 11:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117947; cv=none; d=google.com; s=arc-20240605; b=lfVzva202tQ7wF4gAAvkVtbEKgUrfELwg//sPWC2nbnAU8ZS6EZMIxd16gxapEt8E2 PK9aHUkvY3UPVVkJbxTyclPmv61GVzp6lyQTYEi6PdlFs7S1QfAPnUJtcjSfLCLDCzNp SWhL7ppgQyRXouI393QNanIN5qLFHQywz88Fuj9yIVJQXtEPum46wRPzNBZZORy2G99n v9Rta7gNxwv25oPH99q9uT4bboDGKJrC+mRvf/B2Q7QtrcHMpH92qK/aUUhE+cHD/Lj8 J9wdZIjpJJERuBs02kCyTFYaH7CisJkMR8rVQypj7e3b1ltwda9E3i3YuiM1h82CeNss hXMw== 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=1VHlG8PfMsBdkVBprTDqyuBAqBPyNMa5du4T9t6Csx4=; fh=1QND5hWvkA3Ghi1pBqFmK2ngH4+7IqfdkG6MX3oHDvQ=; b=R7RyYMC908oKXEzBpkeI+nig0EAedQv2xZVuhIEQdDTqVINJa+Yf17K4K7+aY557Xw yWZpx59UqY9sdJo9+tRF6KnMaimARPtq1PZNJZMyWjLeZxsdxQowdVHoY0BuORgZ3NIn J0ceXOj+9fMZSS4AEbNvQ+mQcyXvPxe0bogTJ3powGKGbruAWoKgDQsRKjQ31hKGmQHL NeeHFYK+sPASJRC1SRAwjWRyAwRNeu4Kaxe6ozpN3b4x2mmQ7UgfKRAMCQNOiRwiOznP cVNPUWnTcwTvqT5ixTSJyJapompTqnnJBTxFHRFF4J51MH0JgDjFxwVpF7yTtrYyBfaT VeGw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uVELerz4; 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 6a1803df08f44-6dccd39abc0si466986d6.450.2024.12.13.11.25.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:25:47 -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=uVELerz4; 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 1tMB3K-0005QZ-ET; Fri, 13 Dec 2024 14:10:18 -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 1tMB2P-0003ds-Ns for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:23 -0500 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2H-0006eF-KE for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:20 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e36b27b53so892077a34.1 for ; Fri, 13 Dec 2024 11:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116952; x=1734721752; 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=1VHlG8PfMsBdkVBprTDqyuBAqBPyNMa5du4T9t6Csx4=; b=uVELerz4HCplIJgdKTciJl3bWgtAjNOHPbJRMX/iVEJkIkW1hMNs0cJ5RFGrR8PnO7 xgawOaqH1W6Zrpbqs5Tf0JRkt6AYXlv4IJY6OjbPK0KNBuyrv5qPzufAvRlUOJhlV0Ff lWB+EpF11SMd0PPkMaJT4LHUGXL6DOG439UJgLrpgjYqPvmV6BMA165rq+r93W035KLH i5PQWxhO1bzmtnHFqNLzGTQmHisJN/nbm8udGYlCCSUVeWBbTrcvpruyjMHRgz77rGaU g1anh3IGQmnlT5KvZ3dCzuB1blixGCRS4IVwyH8ptcqczoocpjcViffuq+661PNbprKy ARPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116952; x=1734721752; 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=1VHlG8PfMsBdkVBprTDqyuBAqBPyNMa5du4T9t6Csx4=; b=dXBKA5z/F5ky0jDjieuBEJ5IgNJ9EOnmxWv23NaPUbA5XTpFy1ayVPgTNTG9uSQktX Y/xVpAp7KVioX/LafujoYtiDGFJ3QSSbFgNOebkvVolksROPanLc+XYuP1jwS9VKrLHt 7PlJQ0HlbiIprPz91tH5U5juZWUEZ2B+c1NkbMUrVUx2inMCrrRMJITygIgcC4nb/0VZ dNP1A1vsBEbITBUyzoP0aaV6B2xOMYHZ3DR3DU2+KP1Fyzdhbi+v+waX2LmuiGraqfOs /9Fj6DDClQnDAt9CLKrpqf/Eslvr+1raHjsdBBnZrKXV4y1g9m0Y3INOTnOtNGwpRITc HEVA== X-Gm-Message-State: AOJu0Yyv9TKonpMtO1mDiUQJlNVW+Xa18C/MRgXrvcd2Z4NC9oXFRLsO tsyVUFkJS35jIwhvv3nJPB7hWNo338ZfF9Sa77EqYWSwL/AtbEh5Pe1XNT3VBQ/BXMNuQhep9VB ji3oVetg+ X-Gm-Gg: ASbGncvgvXdetvRSgjh8lbtnPWBJWUIZA67pbOPVxDUZgLrmbUcTL1jBrZ08mEOyfJb rqF6a/Xj17BTyynuOKDDu6B9hoE7Bmj2H8nRKb2CiyHbbGAROtoVp7lpd3INI2XSwotWIUfjjGI Hzo9cMUzjcXpVybuChb8JVh8+Z9x/Y+ZuxGn5Yz/s6aIjKibQZzCeDSRzOYrw2ts1PII57Eo6CK byXA7wHjAKdmdMBylDoyHHeAdV6JpvFFkUx5CFUCdLPfxS837FJhafQeZHAHgXt X-Received: by 2002:a05:6830:6c14:b0:71d:f429:7f95 with SMTP id 46e09a7af769-71e3ba779d5mr2253520a34.29.1734116952105; Fri, 13 Dec 2024 11:09:12 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:11 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alistair Francis , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH 21/71] hw/core: Constify all Property Date: Fri, 13 Dec 2024 13:06:55 -0600 Message-ID: <20241213190750.2513964-26-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=2607:f8b0:4864:20::32d; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32d.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/core/generic-loader.c | 2 +- hw/core/guest-loader.c | 2 +- hw/core/or-irq.c | 2 +- hw/core/platform-bus.c | 2 +- hw/core/split-irq.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c index ea8628b892..c1cddecf60 100644 --- a/hw/core/generic-loader.c +++ b/hw/core/generic-loader.c @@ -179,7 +179,7 @@ static void generic_loader_unrealize(DeviceState *dev) qemu_unregister_reset(generic_loader_reset, dev); } -static Property generic_loader_props[] = { +static const Property generic_loader_props[] = { DEFINE_PROP_UINT64("addr", GenericLoaderState, addr, 0), DEFINE_PROP_UINT64("data", GenericLoaderState, data, 0), DEFINE_PROP_UINT8("data-len", GenericLoaderState, data_len, 0), diff --git a/hw/core/guest-loader.c b/hw/core/guest-loader.c index 391c875a29..74af00cee7 100644 --- a/hw/core/guest-loader.c +++ b/hw/core/guest-loader.c @@ -111,7 +111,7 @@ static void guest_loader_realize(DeviceState *dev, Error **errp) loader_insert_platform_data(s, size, errp); } -static Property guest_loader_props[] = { +static const Property guest_loader_props[] = { DEFINE_PROP_UINT64("addr", GuestLoaderState, addr, 0), DEFINE_PROP_STRING("kernel", GuestLoaderState, kernel), DEFINE_PROP_STRING("bootargs", GuestLoaderState, args), diff --git a/hw/core/or-irq.c b/hw/core/or-irq.c index b25468e38a..fc52796f54 100644 --- a/hw/core/or-irq.c +++ b/hw/core/or-irq.c @@ -115,7 +115,7 @@ static const VMStateDescription vmstate_or_irq = { }, }; -static Property or_irq_properties[] = { +static const Property or_irq_properties[] = { DEFINE_PROP_UINT16("num-lines", OrIRQState, num_lines, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/core/platform-bus.c b/hw/core/platform-bus.c index dc58bf505a..a29c9c6e59 100644 --- a/hw/core/platform-bus.c +++ b/hw/core/platform-bus.c @@ -204,7 +204,7 @@ static void platform_bus_realize(DeviceState *dev, Error **errp) plaform_bus_refresh_irqs(pbus); } -static Property platform_bus_properties[] = { +static const Property platform_bus_properties[] = { DEFINE_PROP_UINT32("num_irqs", PlatformBusDevice, num_irqs, 0), DEFINE_PROP_UINT32("mmio_size", PlatformBusDevice, mmio_size, 0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/core/split-irq.c b/hw/core/split-irq.c index 3b90af2e8f..40fc7e2e77 100644 --- a/hw/core/split-irq.c +++ b/hw/core/split-irq.c @@ -59,7 +59,7 @@ static void split_irq_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out(dev, s->out_irq, s->num_lines); } -static Property split_irq_properties[] = { +static const Property split_irq_properties[] = { DEFINE_PROP_UINT16("num-lines", SplitIRQ, num_lines, 1), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850231 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1685341wry; Fri, 13 Dec 2024 11:12:03 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWDkjXsAe+0mZw7xlL1Pq/YOaX37xUaaXlDH2M1nZoJ1TdA7et3GcpCG1oMWIrkhXjHnq7S3w==@linaro.org X-Google-Smtp-Source: AGHT+IGGFAPmTSVsBp2CKeEqAKAWSOYa/Uicr/rmH9zdJYm1B5F0/3nYBvuyZJh3lSjGraad80cN X-Received: by 2002:a05:620a:17aa:b0:7b6:d632:37be with SMTP id af79cd13be357-7b6fbeca7b8mr499251585a.4.1734117123294; Fri, 13 Dec 2024 11:12:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117123; cv=none; d=google.com; s=arc-20240605; b=ErCcJrFCIe2DG3sDFEcbraE4Ubgi75oxaH8sWmjTmBVvO5Gn7dg8+P1/XH1WJO1Nzr Vn7+qhgEsvECnpYNZLLwWLKhE/HogaTNb/R+5OL9bnN3OP+50Op4tTz+MIYEfpshtDpC hO5Tw5znkwebwR7L8L2q1vxbRNEZkDlnYcQBVn2UJCvg/RjFNKxQ4WXjCBEJQxY8PzEF nCM+Bh1WKSiywuUaPrEV8w6mYTpN5V763Y+nNYcYreiYjX88BHmyZnfXRSRqCOPpDO86 RClXAozQcgdg58h97zmaph9rob5CACqd80XL8eckFBuoSfuEpEl+O7bPkKPoGaM+kbxi HSMg== 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=kqsWYMuz61V4FPOOjOmLye30zpmvR8d0aYJuhAdGM4M=; fh=eZiEYjxvblUdPqSfGiHq3ZAyJ3Syr273hABYcbxXg4U=; b=ZHmsnJ04CDBtHvP4GEZRC0vPIB2AbuuyNLCmuhJZl95I3+8t9lZI+HM5Ndtwm4zUrg yQ5hOS0qAHaSNw1tnDR8z79SAusN7iJWlL5zhhY5OdZjZI1E2gfIxebDn99dJSUcutUl V38hZiCZbVUv+4kehtUjJe5mGGVjRR4gG/Zg4frD/LnoZ+QqIaTZ/Az9wyleTDT3G19N R2ibcltjBM8bqFddUcES+5fbMlIJRqr+JjVglMvm1YkP4kiEEmxOjw8g3IKPQwLXmDkI hPJW32UEpyH/VyOMAYbqsXABHkv6MkraNsO5BuXj+cXBU3FdT5OXlEqMZONjiR6YDn9N e4CQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kU+5TDMu; 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 af79cd13be357-7b7047c4aefsi14018985a.110.2024.12.13.11.12.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:12:03 -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=kU+5TDMu; 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 1tMB39-0004xI-Rd; Fri, 13 Dec 2024 14:10:08 -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 1tMB2P-0003du-OD for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:23 -0500 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2M-0006fF-G4 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:21 -0500 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-71e181fb288so940799a34.2 for ; Fri, 13 Dec 2024 11:09:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116956; x=1734721756; 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=kqsWYMuz61V4FPOOjOmLye30zpmvR8d0aYJuhAdGM4M=; b=kU+5TDMuO4VLB/YUavKKDNtpH/US961bs7fNLlnbq7482yo1NCX6grbZNoNZu5Hteb wugRo64oRBrvGFCAbOSbaf8YSLAJ2SrAb+d9sWIafmydsBzD2K2ga8JF+e7+yiqIGNkR Y7Wz5HuRE+fYZrlArCJXh3s7rFVV1TUaTZvkKDmA2K9ipk9YOkSzSzr6s2O02trBkjY8 3i8OQLZozQqOMitqcy0L7pVZAIEttOPjnd+iZdPU+eUM0kmdTvdrun5y+gBGrTk52Ms6 y5DDmn+mZIrt2EWeHC12ruDl2QSx9YTco9IbZxl3ac9Kz2cAwV8PrJRwT7gQJVk25Jwc +jMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116956; x=1734721756; 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=kqsWYMuz61V4FPOOjOmLye30zpmvR8d0aYJuhAdGM4M=; b=vcvoI/bQZ2TI81+p0XF/eZUwKHOn38z2z8WIoC8/TwQdEOtN2+a2u0ReXssCEsdA8n o8c1x+KY39Mn4KJ3cOjkF9w4QeOviFOSsGMnzJgcFJ2rszICB0kO60w2EYgg4iVksjQf X7QpqAbfW5+luylw8EIFIldwyzGr9jdAiKAYhQdA+5FNmKqcwJC7Mfgb0IM+4WpTIeqP VWSR+pCDyzYNf2MoeZysZal/lup2g6QWfND/Zi9pZVfutP9rIHBxsY5gCz88CIHrwG2B d75Gtzh1F3P1W5/ru6Zi1VHoZ9mkTw+PjxG1STfQRVKlgAmth29rVH3Vl3otu+1Bw+5x YYoQ== X-Gm-Message-State: AOJu0YyVA/0F7fo+IAAhyBG6KQVjvQwRIaNqf2MgFZ2RB6h3mTVOOcHS A/3xh8qwJXQ6H4Orl1Y+/uUNzqAZhS7xa1+BfyJGq16E67LOUNIoJuzqgqsgfa3CO1B62G0ev44 o7dwUUfnK X-Gm-Gg: ASbGnctHlAqfFGer0Eoa7DHOknx0Q8WsmxsQQch9SSpRSNWu+kV6HAICGyRJKkDsIam ApAULCF9eN1YovemGc36gJyrjWpOHWDC0Y8a3jQ+wST88UwuFlxuny/P1XxEGnP3PY0sHP9tkF5 LsHDXL8/GPKkVhwFnRsGl/6mY6JKAXCJj9qQzriWsslMA6GCMrbSCcBCAdyqr8aNvSu1sYPxSUT gEf5qRC53/eoTyTqtjRCO/wXnu7xGfg2pOUpwxXL+EeiaTavKaY+8NFCYgO15fh X-Received: by 2002:a05:6830:2713:b0:71d:f562:5f75 with SMTP id 46e09a7af769-71e3b81133cmr1994979a34.4.1734116955171; Fri, 13 Dec 2024 11:09:15 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:14 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Maydell , Eduardo Habkost , Marcel Apfelbaum , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?q?aud=C3=A9?= , Yanan Wang , Zhao Liu , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PATCH 22/71] hw/cpu: Constify all Property Date: Fri, 13 Dec 2024 13:06:56 -0600 Message-ID: <20241213190750.2513964-27-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=2607:f8b0:4864:20::332; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x332.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/cpu/a15mpcore.c | 2 +- hw/cpu/a9mpcore.c | 2 +- hw/cpu/arm11mpcore.c | 2 +- hw/cpu/cluster.c | 2 +- hw/cpu/realview_mpcore.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c index 967d8d3dd5..5346b8b6c6 100644 --- a/hw/cpu/a15mpcore.c +++ b/hw/cpu/a15mpcore.c @@ -144,7 +144,7 @@ static void a15mp_priv_realize(DeviceState *dev, Error **errp) } } -static Property a15mp_priv_properties[] = { +static const Property a15mp_priv_properties[] = { DEFINE_PROP_UINT32("num-cpu", A15MPPrivState, num_cpu, 1), /* The Cortex-A15MP may have anything from 0 to 224 external interrupt * IRQ lines (with another 32 internal). We default to 128+32, which diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c index c30ef72c66..c3fdfb92e1 100644 --- a/hw/cpu/a9mpcore.c +++ b/hw/cpu/a9mpcore.c @@ -158,7 +158,7 @@ static void a9mp_priv_realize(DeviceState *dev, Error **errp) } } -static Property a9mp_priv_properties[] = { +static const Property a9mp_priv_properties[] = { DEFINE_PROP_UINT32("num-cpu", A9MPPrivState, num_cpu, 1), /* The Cortex-A9MP may have anything from 0 to 224 external interrupt * IRQ lines (with another 32 internal). We default to 64+32, which diff --git a/hw/cpu/arm11mpcore.c b/hw/cpu/arm11mpcore.c index 89c4e35143..193fc182ab 100644 --- a/hw/cpu/arm11mpcore.c +++ b/hw/cpu/arm11mpcore.c @@ -131,7 +131,7 @@ static void mpcore_priv_initfn(Object *obj) object_initialize_child(obj, "wdtimer", &s->wdtimer, TYPE_ARM_MPTIMER); } -static Property mpcore_priv_properties[] = { +static const Property mpcore_priv_properties[] = { DEFINE_PROP_UINT32("num-cpu", ARM11MPCorePriveState, num_cpu, 1), /* The ARM11 MPCORE TRM says the on-chip controller may have * anything from 0 to 224 external interrupt IRQ lines (with another diff --git a/hw/cpu/cluster.c b/hw/cpu/cluster.c index 61289a840d..8e43621b5c 100644 --- a/hw/cpu/cluster.c +++ b/hw/cpu/cluster.c @@ -25,7 +25,7 @@ #include "hw/qdev-properties.h" #include "qapi/error.h" -static Property cpu_cluster_properties[] = { +static const Property cpu_cluster_properties[] = { DEFINE_PROP_UINT32("cluster-id", CPUClusterState, cluster_id, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/cpu/realview_mpcore.c b/hw/cpu/realview_mpcore.c index 72c792eef1..9a0ff1df86 100644 --- a/hw/cpu/realview_mpcore.c +++ b/hw/cpu/realview_mpcore.c @@ -108,7 +108,7 @@ static void mpcore_rirq_init(Object *obj) } } -static Property mpcore_rirq_properties[] = { +static const Property mpcore_rirq_properties[] = { DEFINE_PROP_UINT32("num-cpu", mpcore_rirq_state, num_cpu, 1), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06: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: 850288 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1707684wry; Fri, 13 Dec 2024 12:05:43 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXAb+rWYFXHH5Yvsh3efHuvLVR3I3Ax8m7O4Ctzt6z25f5SG/UC5K1u06jfJGnOgvq83ZGKFQ==@linaro.org X-Google-Smtp-Source: AGHT+IGr6zkJH7uoai1BG4aOIIs2/HuKzgKYqGeKs0i0HAtA3wib087oKhIZOlSoiKNScDHYQh34 X-Received: by 2002:a05:6122:d03:b0:515:3bb5:5736 with SMTP id 71dfb90a1353d-518ca32e2admr4833190e0c.11.1734120342937; Fri, 13 Dec 2024 12:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734120342; cv=none; d=google.com; s=arc-20240605; b=RIkK66XYaZAaTMegE2d9ciGmEc9T5kimwnMSqP9WlNS+/43H/RLN30UI6fvXSQRCzQ lLNy4WpgqMBjH4Hp7ZtLy85RkAcCnG0Hj9P3KM3V+6Z+VFRZiX68suwAA2Hw2nrB/XoF bU8OB2X2qYoO/bkWo5RSVFkW8bycZPoicZXEPbKz6eoJ+p/kjacd3yTq3vpycU6KrOcv ssXE0hQRC0SbQuo9HsakhvcTQadgXxdi/QA5jJlC8kd/3owAHj7FITTMV1cLQbeSlbgC n23sD33108APlmn1w3Am6x10QoM6yhYX6PkvQcxQu2YEIzDstcL/bgtv1+2794sQO6Id QeVQ== 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=MBYc4aQlrS1igcjODeijBs12yeJjZWYu4l53GmXO3AU=; fh=TS9sI5RmwWydQmHBgE+nK1TqcUxJ/jKmb/ngcVkuW7E=; b=Xj2LwJNiWIVt5VlOmsjp8hNtLZUPGSOOZhbO0M4yADiAZmgcxtR1Tefrz0X4kWtD+u zwEsF9GQLSOzubdWPdWlAOwfb/gU3L1pzaRy/UzZAcxw7llJVSVV8z8iiNEGEEAlgP4g 1HIdHRwO/fCt4BUHTCSekYqqv0ZTYV9W1ZGUcTtOh/Q2PzylGQyVKhOdaayZh4ozaV/Y H65DJhs+n7tqrVXw0wj3EvzRA/xa6BqHMIuJ5eYCbogjv2UXJxmW1w1VtqzGUyIsAW6i M5tc9XYeo4e1rU18Y/jq6o/aYQ1vTzMx6BljWHh9YHCoV31veVSh2iOnVbhQsEPujkfy xw2w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nF9UpnHG; 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-519eb78fa23si135479e0c.201.2024.12.13.12.05.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 12:05:42 -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=nF9UpnHG; 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 1tMBuW-00065g-FN; Fri, 13 Dec 2024 15:05:16 -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 1tMBuU-00064k-Sd for qemu-devel@nongnu.org; Fri, 13 Dec 2024 15:05:14 -0500 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBuS-0003YZ-Gj for qemu-devel@nongnu.org; Fri, 13 Dec 2024 15:05:13 -0500 Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-844d67eb693so145423439f.3 for ; Fri, 13 Dec 2024 12:05:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734120311; x=1734725111; 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=MBYc4aQlrS1igcjODeijBs12yeJjZWYu4l53GmXO3AU=; b=nF9UpnHGQRIYzvkTfQvGI4ubej2z6CQfLwGd6Rud1jKdE3moGdgE4/9iYa58vhLAsa qOa2ywQtBNrIWe11KkQia4bk4UAmGzZ8JvjTgTXkGNgR8dChx+45kjj5awvRTbFCyuiY HyiX4HmhjY9nfAeqRuW+cur9H4O8yB4n1sywOdJWnTFVWsvT8FWX7GlTwV7TK332k9g6 JzSxWm5T7vZhk9MOzUnKOJOOmxqBtayWj0gk+z2gtQOMn/V541Hjtwe21+HZvS3ex2M8 41L3K7Xw5IPswJW2rlEpCnC/Wxw1eKsXuTE7xREMX6axGzIJsmfS9vtLTFqp9t62NU2t fRXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734120311; x=1734725111; 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=MBYc4aQlrS1igcjODeijBs12yeJjZWYu4l53GmXO3AU=; b=O1/dk76Nf13OjNVmy7DvYU/ndntM0eylsmPnpP/KZ0XH8GA9fAdBHTOlD8IHMJOET/ d2jaqgfPDHdFKsIs56DeDynto/y/ys073g+XrULQdX2Qj+bN0OjYEg19/JCQDET5W1fF 1QuR0OMhUf/Nkl2M3uCOs2Tm+k3ePZdaslNOw3dgKxKSvxgRNVERg1s4ds+KcbP46BC3 ofzDP7I0vFmFUL68D91GbCL/0sOJcS3D2BaDM+RuCZCa88ANb0l3giKSPPis07g6Frm2 tjOY0xQ2xmtjzju4V3wcvMj0feCmtqISrB0o4RCMNUk3Cv8zWiVoiC7vS7Vg2+ktKgj8 u55Q== X-Gm-Message-State: AOJu0YwWPTO62mY6Yh1UllTMQJa16tILHEBsczKhMsRt0fEDqYyoQZCB ebcKgbi4sjrXxJqu4e3hwEY17Phj4ZpoGjos62WtJqu90ig3k47i85WzpIr0UgxWPKsC9qGoJeq j+iM61hue X-Gm-Gg: ASbGnctNkWxye9mXyQb53vObaXmYDTaMQ2kpH2xU+Gk4Gn568JAdtUg4wVj+JlYTw5Y 6zcYh3xBXSl3EC/GO3fhfC66IeK3xOpPjbzlpb+qGQxZ2ywfpXGCeUyMvVclLunFxKIAc1y1sda B+JMd8HgznOjdCD1Ryn3MgOquqU/Vy9McHiUxXVJwYu0IFHClbBQBMxa3i32HLdqDfNX2+6FzHE CyTN49Tcq32golGQ0/Rpc9D24TEi6a6E6BrzCu5ZTxtyQJg1ZqqqyZCourK7AJ1 X-Received: by 2002:a05:6871:582b:b0:29e:4346:7fb9 with SMTP id 586e51a60fabf-2a3ac7c1efbmr2259520fac.22.1734116956378; Fri, 13 Dec 2024 11:09:16 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Jonathan Cameron , Fan Ni Subject: [PATCH 23/71] hw/cxl: Constify all Property Date: Fri, 13 Dec 2024 13:06:57 -0600 Message-ID: <20241213190750.2513964-28-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=2607:f8b0:4864:20::d35; envelope-from=richard.henderson@linaro.org; helo=mail-io1-xd35.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/cxl/switch-mailbox-cci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/cxl/switch-mailbox-cci.c b/hw/cxl/switch-mailbox-cci.c index 4f419443ab..3fde0f8aae 100644 --- a/hw/cxl/switch-mailbox-cci.c +++ b/hw/cxl/switch-mailbox-cci.c @@ -65,7 +65,7 @@ static void cswmbcci_exit(PCIDevice *pci_dev) /* Nothing to do here yet */ } -static Property cxl_switch_cci_props[] = { +static const Property cxl_switch_cci_props[] = { DEFINE_PROP_LINK("target", CSWMBCCIDev, target, TYPE_CXL_USP, PCIDevice *), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:06:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850230 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1685326wry; Fri, 13 Dec 2024 11:12:02 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXva3w8P5CiHNKAYdPczYlbhUS0ni4bcOjErXUne6GrTZuEecRjS9umaTyByp2WLs2382yPPw==@linaro.org X-Google-Smtp-Source: AGHT+IEU6PIcm1jR9+LVQ6WZjS7+8O13dZG2SS0xWJGEB28k0HbMopLfVu1YhMWLiSb/v8HmGut/ X-Received: by 2002:a05:622a:1982:b0:466:ac58:df71 with SMTP id d75a77b69052e-467a574c925mr62693411cf.7.1734117122091; Fri, 13 Dec 2024 11:12:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117122; cv=none; d=google.com; s=arc-20240605; b=gYZQQsPbjrSzaBNOlUq1ClDigllJEReyuAm++x/i5mPAMa5pe7yoeATk2Q20fxCIoF yLcNmUA4Xz4+cioCCNreFE78/Je7JNtVNt+UUDhMsTyGZTw2qi9ujyFqbYVms3dmv1Xa ZlZIaGqh/WsNED1U6Ca9xI3mUWECkCEhv/HW8RCoibgJldHND04m1yKt2rlKNjKl8bkP Fhxmz6QiqTEAoLzD38koS2K9ItC3JD+9LUJeC4BzCyBoqi3kvYYI+de71B1BQoLGwyC4 KiRv4vFhx+KphslqXxQqPmvvSRgUG30MOcOINlAto5bXjXIWor2cEOP1UJAM4gDj7aKI pfbg== 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=3BjzBq3rSuTa5TGvVs8KXBIzlYp0tm0GRK6bqPTTYvs=; fh=awLd/N0zDBvICHL4DyS/olQtzyb3caacWfLNfvqxcsk=; b=ZDOosuRY5xypwtjZi6/FDuJAoTu00TY0YaBzLL2nib0F8uMFP7AgmGX82kVUlFl9Ux 1XcDPZ4NyBUyTMMCP89G2IQaLgt0MXCcFYItyEfJMovT6pdTHmkveI2KnKbxC+yENVee UJHnX7YiXU8rzD+WTaf6Y4WmvOs4Ed21e3mOh+u1pBEYg6nYs6M+yarRSD4kSKnncMWW Vfho+oO/PANt/3o0Y6XPah0fgNSnrEF2YlbCN/6Ht7Uar4ik334fYbNa/fGaeS+bR7cD YM73H155H0MPbrVgZmhO16NhHbghHlzNyn7oAhwmWG2zriuHw1D6vNU5SPJHRzMrbvk6 okTg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fW3wtppk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2f0aaaesi944161cf.591.2024.12.13.11.12.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:12:02 -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=fW3wtppk; 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 1tMB3O-0005Ww-Md; Fri, 13 Dec 2024 14:10:22 -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 1tMB2T-0003kh-G1 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:27 -0500 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2P-0006gM-QY for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:25 -0500 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-71e17ab806bso1118089a34.2 for ; Fri, 13 Dec 2024 11:09:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116960; x=1734721760; 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=3BjzBq3rSuTa5TGvVs8KXBIzlYp0tm0GRK6bqPTTYvs=; b=fW3wtppkQP5eT+s0jOpjQy7OKcacXlgH8x4jmvOcCN00mZQmAAD9M+ggxj3QOVhb/i oG+1kQ6TYqw/6pMzk1GVmSi7Ediv6Mf4DAw5MvkdHMX2AjRqspUFgCsgCFeT//Tz6mCc MQGezjuk3zMSoeY20yPiWaEl8YnuMf/pE4hsS2KHBLgWgayVNynCCXxJs7iPzbUr2zTM QVUgccNTlg9dPS7JBVkVAAi13695+Jj67DirowDSXTadeYsTa/S7X4fwoIaLmuUSO9cm oILpnCBOTywRAdxFuMs0B9Zlz8FrC6XwuoaSMFVqGsLS8hRDo1OgP52yGm8EVgUrhcNK axGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116960; x=1734721760; 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=3BjzBq3rSuTa5TGvVs8KXBIzlYp0tm0GRK6bqPTTYvs=; b=ReJxWFHf9hxlhJOtp7EIryzU1FWflEBTYgEP3ocCihqUD29G3GoylvQP9PSja6PxE9 8TqZq6PZKe9dqOiAvSp3znWLC2yM17QCWk++ZpyQegY8hhhn0CaCx2XeFR00NcxYRBzK ZUQ1ZIEtAeWSn3OcqGqO715HD6GIrOg+OdlQT3z1bynxbrWKykbsmGnPdOl3NWv2P+Sd E2L3gVi0FGowW5W81K+b0khfLkO2UB4pw3DQDSF9WfAhGguOLzyPy4Y8jrz3h78VssK+ SuR6jybVvvxPxkOj0DalVf3nFSsQ411n3a8Qu+9s/QUiEMz+6frcN2Tu9VJ2Ca2AbhkS Z36w== X-Gm-Message-State: AOJu0YwVJAwcVvSEZESNJ2fvQDnDkc3oa9EBdJzB4YvCEZN+HDu1FAI+ FpZlYJ/5OLf8wvxrjwVy5dodhSHsgtztM4Ub+wqOJwxgjj6ysJgFgScfgtlaADcZ+1x62PShofd ykU1LPD4V X-Gm-Gg: ASbGnct8PdMtASpfkVza2TWK4oD3o95Th3Y0fInh8OF/jM522U5fVR1bFUuVuM+AuP3 T2ephglyh+G2eFhVjL/C28k13cKSQjahD9PcpyY3yJxCbkwJ5F67JAmnEx/JB8Ru9MoV1bFc8Gg spxwaWf/AxnkRibjxLmlGqSc1eLsVKoDk7zROvWiRhVQDhpIe+q6IhRU7aZUmCRlzc5JXePfnEC nS1EI6+N8ULDNrQOAbk8YSQlInbLykjxP3+0C8IyfaAtivZxykHu2viayHBgKH/ X-Received: by 2002:a05:6830:4882:b0:71d:4ec6:8600 with SMTP id 46e09a7af769-71e3b8a3f7amr2716099a34.13.1734116960513; Fri, 13 Dec 2024 11:09:20 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:20 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Gerd Hoffmann , Mark Cave-Ayland , Igor Mitsyanko , =?utf-8?q?Herv=C3=A9_Poussineau?= , Aleksandar Rikalo , Laurent Vivier , BALATON Zoltan , "Michael S. Tsirkin" , Stefano Garzarella , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Dmitry Fleytman , Alistair Francis , "Edgar E. Iglesias" , qemu-arm@nongnu.org (open list:Raspberry Pi), qemu-ppc@nongnu.org (open list:sam460ex) Subject: [PATCH 24/71] hw/display: Constify all Property Date: Fri, 13 Dec 2024 13:06:58 -0600 Message-ID: <20241213190750.2513964-29-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=2607:f8b0:4864:20::32e; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32e.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=unavailable 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/display/artist.c | 2 +- hw/display/ati.c | 2 +- hw/display/bcm2835_fb.c | 2 +- hw/display/bochs-display.c | 2 +- hw/display/cg3.c | 2 +- hw/display/cirrus_vga.c | 2 +- hw/display/cirrus_vga_isa.c | 2 +- hw/display/exynos4210_fimd.c | 2 +- hw/display/g364fb.c | 2 +- hw/display/i2c-ddc.c | 2 +- hw/display/macfb.c | 4 ++-- hw/display/pl110.c | 2 +- hw/display/qxl.c | 2 +- hw/display/ramfb-standalone.c | 2 +- hw/display/sm501.c | 4 ++-- hw/display/tcx.c | 2 +- hw/display/vga-isa.c | 2 +- hw/display/vga-mmio.c | 2 +- hw/display/vga-pci.c | 4 ++-- hw/display/vhost-user-gpu.c | 2 +- hw/display/virtio-gpu-gl.c | 2 +- hw/display/virtio-gpu-pci.c | 2 +- hw/display/virtio-gpu-rutabaga.c | 2 +- hw/display/virtio-gpu.c | 2 +- hw/display/virtio-vga.c | 2 +- hw/display/vmware_vga.c | 2 +- hw/display/xlnx_dp.c | 2 +- 27 files changed, 30 insertions(+), 30 deletions(-) diff --git a/hw/display/artist.c b/hw/display/artist.c index 5790b7a64e..49deed328d 100644 --- a/hw/display/artist.c +++ b/hw/display/artist.c @@ -1474,7 +1474,7 @@ static const VMStateDescription vmstate_artist = { } }; -static Property artist_properties[] = { +static const Property artist_properties[] = { DEFINE_PROP_UINT16("width", ARTISTState, width, 1280), DEFINE_PROP_UINT16("height", ARTISTState, height, 1024), DEFINE_PROP_UINT16("depth", ARTISTState, depth, 8), diff --git a/hw/display/ati.c b/hw/display/ati.c index 593a25328d..e24e092bbc 100644 --- a/hw/display/ati.c +++ b/hw/display/ati.c @@ -1039,7 +1039,7 @@ static void ati_vga_exit(PCIDevice *dev) graphic_console_close(s->vga.con); } -static Property ati_vga_properties[] = { +static const Property ati_vga_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", ATIVGAState, vga.vram_size_mb, 16), DEFINE_PROP_STRING("model", ATIVGAState, model), DEFINE_PROP_UINT16("x-device-id", ATIVGAState, dev_id, diff --git a/hw/display/bcm2835_fb.c b/hw/display/bcm2835_fb.c index 7005d5bfea..2539fcc8ab 100644 --- a/hw/display/bcm2835_fb.c +++ b/hw/display/bcm2835_fb.c @@ -429,7 +429,7 @@ static void bcm2835_fb_realize(DeviceState *dev, Error **errp) qemu_console_resize(s->con, s->config.xres, s->config.yres); } -static Property bcm2835_fb_props[] = { +static const Property bcm2835_fb_props[] = { DEFINE_PROP_UINT32("vcram-base", BCM2835FBState, vcram_base, 0),/*required*/ DEFINE_PROP_UINT32("vcram-size", BCM2835FBState, vcram_size, DEFAULT_VCRAM_SIZE), diff --git a/hw/display/bochs-display.c b/hw/display/bochs-display.c index 3b1d922b6e..9a3263aa01 100644 --- a/hw/display/bochs-display.c +++ b/hw/display/bochs-display.c @@ -345,7 +345,7 @@ static void bochs_display_exit(PCIDevice *dev) graphic_console_close(s->con); } -static Property bochs_display_properties[] = { +static const Property bochs_display_properties[] = { DEFINE_PROP_SIZE("vgamem", BochsDisplayState, vgamem, 16 * MiB), DEFINE_PROP_BOOL("edid", BochsDisplayState, enable_edid, true), DEFINE_EDID_PROPERTIES(BochsDisplayState, edid_info), diff --git a/hw/display/cg3.c b/hw/display/cg3.c index 95f8f98b99..75b3312c24 100644 --- a/hw/display/cg3.c +++ b/hw/display/cg3.c @@ -361,7 +361,7 @@ static void cg3_reset(DeviceState *d) qemu_irq_lower(s->irq); } -static Property cg3_properties[] = { +static const Property cg3_properties[] = { DEFINE_PROP_UINT32("vram-size", CG3State, vram_size, -1), DEFINE_PROP_UINT16("width", CG3State, width, -1), DEFINE_PROP_UINT16("height", CG3State, height, -1), diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c index 150883a971..198ed9ed9b 100644 --- a/hw/display/cirrus_vga.c +++ b/hw/display/cirrus_vga.c @@ -2982,7 +2982,7 @@ static void pci_cirrus_vga_realize(PCIDevice *dev, Error **errp) } } -static Property pci_vga_cirrus_properties[] = { +static const Property pci_vga_cirrus_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", struct PCICirrusVGAState, cirrus_vga.vga.vram_size_mb, 4), DEFINE_PROP_BOOL("blitter", struct PCICirrusVGAState, diff --git a/hw/display/cirrus_vga_isa.c b/hw/display/cirrus_vga_isa.c index 84be51670e..d0d134470f 100644 --- a/hw/display/cirrus_vga_isa.c +++ b/hw/display/cirrus_vga_isa.c @@ -69,7 +69,7 @@ static void isa_cirrus_vga_realizefn(DeviceState *dev, Error **errp) /* FIXME not qdev yet */ } -static Property isa_cirrus_vga_properties[] = { +static const Property isa_cirrus_vga_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", struct ISACirrusVGAState, cirrus_vga.vga.vram_size_mb, 4), DEFINE_PROP_BOOL("blitter", struct ISACirrusVGAState, diff --git a/hw/display/exynos4210_fimd.c b/hw/display/exynos4210_fimd.c index f3d82498bf..4f097a172c 100644 --- a/hw/display/exynos4210_fimd.c +++ b/hw/display/exynos4210_fimd.c @@ -1925,7 +1925,7 @@ static const GraphicHwOps exynos4210_fimd_ops = { .gfx_update = exynos4210_fimd_update, }; -static Property exynos4210_fimd_properties[] = { +static const Property exynos4210_fimd_properties[] = { DEFINE_PROP_LINK("framebuffer-memory", Exynos4210fimdState, fbmem, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/display/g364fb.c b/hw/display/g364fb.c index fa2f184908..a7533c6908 100644 --- a/hw/display/g364fb.c +++ b/hw/display/g364fb.c @@ -512,7 +512,7 @@ static void g364fb_sysbus_reset(DeviceState *d) g364fb_reset(&s->g364); } -static Property g364fb_sysbus_properties[] = { +static const Property g364fb_sysbus_properties[] = { DEFINE_PROP_UINT32("vram_size", G364SysBusState, g364.vram_size, 8 * MiB), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/i2c-ddc.c b/hw/display/i2c-ddc.c index 465b00355e..a2d1f2b044 100644 --- a/hw/display/i2c-ddc.c +++ b/hw/display/i2c-ddc.c @@ -95,7 +95,7 @@ static const VMStateDescription vmstate_i2c_ddc = { } }; -static Property i2c_ddc_properties[] = { +static const Property i2c_ddc_properties[] = { DEFINE_EDID_PROPERTIES(I2CDDCState, edid_info), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/macfb.c b/hw/display/macfb.c index a5b4a499f3..977901bfdd 100644 --- a/hw/display/macfb.c +++ b/hw/display/macfb.c @@ -758,7 +758,7 @@ static void macfb_nubus_reset(DeviceState *d) macfb_reset(&s->macfb); } -static Property macfb_sysbus_properties[] = { +static const Property macfb_sysbus_properties[] = { DEFINE_PROP_UINT32("width", MacfbSysBusState, macfb.width, 640), DEFINE_PROP_UINT32("height", MacfbSysBusState, macfb.height, 480), DEFINE_PROP_UINT8("depth", MacfbSysBusState, macfb.depth, 8), @@ -777,7 +777,7 @@ static const VMStateDescription vmstate_macfb_sysbus = { } }; -static Property macfb_nubus_properties[] = { +static const Property macfb_nubus_properties[] = { DEFINE_PROP_UINT32("width", MacfbNubusState, macfb.width, 640), DEFINE_PROP_UINT32("height", MacfbNubusState, macfb.height, 480), DEFINE_PROP_UINT8("depth", MacfbNubusState, macfb.depth, 8), diff --git a/hw/display/pl110.c b/hw/display/pl110.c index 7f145bbdba..eca00b4279 100644 --- a/hw/display/pl110.c +++ b/hw/display/pl110.c @@ -535,7 +535,7 @@ static const GraphicHwOps pl110_gfx_ops = { .gfx_update = pl110_update_display, }; -static Property pl110_properties[] = { +static const Property pl110_properties[] = { DEFINE_PROP_LINK("framebuffer-memory", PL110State, fbmem, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 0c4b1c9bf2..949949d374 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -2458,7 +2458,7 @@ static const VMStateDescription qxl_vmstate = { } }; -static Property qxl_properties[] = { +static const Property qxl_properties[] = { DEFINE_PROP_UINT32("ram_size", PCIQXLDevice, vga.vram_size, 64 * MiB), DEFINE_PROP_UINT64("vram_size", PCIQXLDevice, vram32_size, 64 * MiB), DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision, diff --git a/hw/display/ramfb-standalone.c b/hw/display/ramfb-standalone.c index 20eab34ff4..e677f44be6 100644 --- a/hw/display/ramfb-standalone.c +++ b/hw/display/ramfb-standalone.c @@ -60,7 +60,7 @@ static const VMStateDescription ramfb_dev_vmstate = { } }; -static Property ramfb_properties[] = { +static const Property ramfb_properties[] = { DEFINE_PROP_BOOL("x-migrate", RAMFBStandaloneState, migrate, true), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/sm501.c b/hw/display/sm501.c index 38d005c168..446b648f1a 100644 --- a/hw/display/sm501.c +++ b/hw/display/sm501.c @@ -2054,7 +2054,7 @@ static void sm501_realize_sysbus(DeviceState *dev, Error **errp) /* TODO : chain irq to IRL */ } -static Property sm501_sysbus_properties[] = { +static const Property sm501_sysbus_properties[] = { DEFINE_PROP_UINT32("vram-size", SM501SysBusState, vram_size, 0), /* this a debug option, prefer PROP_UINT over PROP_BIT for simplicity */ DEFINE_PROP_UINT8("x-pixman", SM501SysBusState, state.use_pixman, DEFAULT_X_PIXMAN), @@ -2143,7 +2143,7 @@ static void sm501_realize_pci(PCIDevice *dev, Error **errp) &s->state.mmio_region); } -static Property sm501_pci_properties[] = { +static const Property sm501_pci_properties[] = { DEFINE_PROP_UINT32("vram-size", SM501PCIState, vram_size, 64 * MiB), DEFINE_PROP_UINT8("x-pixman", SM501PCIState, state.use_pixman, DEFAULT_X_PIXMAN), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/display/tcx.c b/hw/display/tcx.c index f000288fcd..3eb0a91ff9 100644 --- a/hw/display/tcx.c +++ b/hw/display/tcx.c @@ -879,7 +879,7 @@ static void tcx_realizefn(DeviceState *dev, Error **errp) qemu_console_resize(s->con, s->width, s->height); } -static Property tcx_properties[] = { +static const Property tcx_properties[] = { DEFINE_PROP_UINT32("vram_size", TCXState, vram_size, -1), DEFINE_PROP_UINT16("width", TCXState, width, -1), DEFINE_PROP_UINT16("height", TCXState, height, -1), diff --git a/hw/display/vga-isa.c b/hw/display/vga-isa.c index c025632635..a6cbf77103 100644 --- a/hw/display/vga-isa.c +++ b/hw/display/vga-isa.c @@ -88,7 +88,7 @@ static void vga_isa_realizefn(DeviceState *dev, Error **errp) rom_add_vga(VGABIOS_FILENAME); } -static Property vga_isa_properties[] = { +static const Property vga_isa_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", ISAVGAState, state.vram_size_mb, 8), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/vga-mmio.c b/hw/display/vga-mmio.c index be33204517..b759efdde7 100644 --- a/hw/display/vga-mmio.c +++ b/hw/display/vga-mmio.c @@ -111,7 +111,7 @@ static void vga_mmio_realizefn(DeviceState *dev, Error **errp) s->vga.con = graphic_console_init(dev, 0, s->vga.hw_ops, &s->vga); } -static Property vga_mmio_properties[] = { +static const Property vga_mmio_properties[] = { DEFINE_PROP_UINT8("it_shift", VGAMmioState, it_shift, 0), DEFINE_PROP_UINT32("vgamem_mb", VGAMmioState, vga.vram_size_mb, 8), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c index 6b51019966..3145c448f5 100644 --- a/hw/display/vga-pci.c +++ b/hw/display/vga-pci.c @@ -330,7 +330,7 @@ static void pci_secondary_vga_reset(DeviceState *dev) vga_common_reset(&d->vga); } -static Property vga_pci_properties[] = { +static const Property vga_pci_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", PCIVGAState, vga.vram_size_mb, 16), DEFINE_PROP_BIT("mmio", PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_MMIO, true), DEFINE_PROP_BIT("qemu-extended-regs", @@ -342,7 +342,7 @@ static Property vga_pci_properties[] = { DEFINE_PROP_END_OF_LIST(), }; -static Property secondary_pci_properties[] = { +static const Property secondary_pci_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", PCIVGAState, vga.vram_size_mb, 16), DEFINE_PROP_BIT("qemu-extended-regs", PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_QEXT, true), diff --git a/hw/display/vhost-user-gpu.c b/hw/display/vhost-user-gpu.c index 14548f1a57..a36eddcb12 100644 --- a/hw/display/vhost-user-gpu.c +++ b/hw/display/vhost-user-gpu.c @@ -645,7 +645,7 @@ static struct vhost_dev *vhost_user_gpu_get_vhost(VirtIODevice *vdev) return g->vhost ? &g->vhost->dev : NULL; } -static Property vhost_user_gpu_properties[] = { +static const Property vhost_user_gpu_properties[] = { VIRTIO_GPU_BASE_PROPERTIES(VhostUserGPU, parent_obj.conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/virtio-gpu-gl.c b/hw/display/virtio-gpu-gl.c index 7c0e448b46..6f31149e1e 100644 --- a/hw/display/virtio-gpu-gl.c +++ b/hw/display/virtio-gpu-gl.c @@ -154,7 +154,7 @@ static void virtio_gpu_gl_device_realize(DeviceState *qdev, Error **errp) virtio_gpu_device_realize(qdev, errp); } -static Property virtio_gpu_gl_properties[] = { +static const Property virtio_gpu_gl_properties[] = { DEFINE_PROP_BIT("stats", VirtIOGPU, parent_obj.conf.flags, VIRTIO_GPU_FLAG_STATS_ENABLED, false), DEFINE_PROP_BIT("venus", VirtIOGPU, parent_obj.conf.flags, diff --git a/hw/display/virtio-gpu-pci.c b/hw/display/virtio-gpu-pci.c index da6a99f038..89d27c9d85 100644 --- a/hw/display/virtio-gpu-pci.c +++ b/hw/display/virtio-gpu-pci.c @@ -21,7 +21,7 @@ #include "hw/virtio/virtio-gpu-pci.h" #include "qom/object.h" -static Property virtio_gpu_pci_base_properties[] = { +static const Property virtio_gpu_pci_base_properties[] = { DEFINE_VIRTIO_GPU_PCI_PROPERTIES(VirtIOPCIProxy), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/virtio-gpu-rutabaga.c b/hw/display/virtio-gpu-rutabaga.c index 17bf701a21..f6486acdda 100644 --- a/hw/display/virtio-gpu-rutabaga.c +++ b/hw/display/virtio-gpu-rutabaga.c @@ -1096,7 +1096,7 @@ static void virtio_gpu_rutabaga_realize(DeviceState *qdev, Error **errp) virtio_gpu_device_realize(qdev, errp); } -static Property virtio_gpu_rutabaga_properties[] = { +static const Property virtio_gpu_rutabaga_properties[] = { DEFINE_PROP_BIT64("gfxstream-vulkan", VirtIOGPURutabaga, capset_mask, RUTABAGA_CAPSET_GFXSTREAM_VULKAN, false), DEFINE_PROP_BIT64("cross-domain", VirtIOGPURutabaga, capset_mask, diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 7d22d03bbf..82741d19e5 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -1674,7 +1674,7 @@ static const VMStateDescription vmstate_virtio_gpu = { .post_load = virtio_gpu_post_load, }; -static Property virtio_gpu_properties[] = { +static const Property virtio_gpu_properties[] = { VIRTIO_GPU_BASE_PROPERTIES(VirtIOGPU, parent_obj.conf), DEFINE_PROP_SIZE("max_hostmem", VirtIOGPU, conf_max_hostmem, 256 * MiB), diff --git a/hw/display/virtio-vga.c b/hw/display/virtio-vga.c index 276f315108..532e4c62d5 100644 --- a/hw/display/virtio-vga.c +++ b/hw/display/virtio-vga.c @@ -209,7 +209,7 @@ static void virtio_vga_set_big_endian_fb(Object *obj, bool value, Error **errp) d->vga.big_endian_fb = value; } -static Property virtio_vga_base_properties[] = { +static const Property virtio_vga_base_properties[] = { DEFINE_VIRTIO_GPU_PCI_PROPERTIES(VirtIOPCIProxy), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c index f2d72c3fc7..f49bbf393a 100644 --- a/hw/display/vmware_vga.c +++ b/hw/display/vmware_vga.c @@ -1332,7 +1332,7 @@ static void pci_vmsvga_realize(PCIDevice *dev, Error **errp) &s->chip.fifo_ram); } -static Property vga_vmware_properties[] = { +static const Property vga_vmware_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", struct pci_vmsvga_state_s, chip.vga.vram_size_mb, 16), DEFINE_PROP_BOOL("global-vmstate", struct pci_vmsvga_state_s, diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c index 6ab2335499..7838f28bca 100644 --- a/hw/display/xlnx_dp.c +++ b/hw/display/xlnx_dp.c @@ -1387,7 +1387,7 @@ static void xlnx_dp_reset(DeviceState *dev) xlnx_dp_update_irq(s); } -static Property xlnx_dp_device_properties[] = { +static const Property xlnx_dp_device_properties[] = { DEFINE_AUDIO_PROPERTIES(XlnxDPState, aud_card), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850244 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1689084wry; Fri, 13 Dec 2024 11:19:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVI+Hd45Rnt+RLZWTxBTpLt49xN7ZmcsGTxyjouT6juJXnzPjLRgPf1LZ7WJPH/WdZSFXJw2g==@linaro.org X-Google-Smtp-Source: AGHT+IEa4/q5dXIbpcpS9EBB7T+ZE8Xv36vJgEi8NMW8F44qWFLFomkaxBKKpPAWqrhtgZ1EmmP6 X-Received: by 2002:a05:6214:27c2:b0:6d3:b936:60d1 with SMTP id 6a1803df08f44-6dc96838c6bmr64146986d6.33.1734117599754; Fri, 13 Dec 2024 11:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117599; cv=none; d=google.com; s=arc-20240605; b=U3dgKPobZtL09wLY4LYXtT0dQkGtRmOJOq/NqrlK/SNpWCDhFpGQbMKzxvE9tV6awL bE7HL87t1tCkjFG7ala++eJd1fT+iIJ3N5JPyIoI0O9RIb64LOUBmU/m63f6SAxgjZF8 mOzrkjxFDlXJBKyv0qBQwicX9A9Fv0gIJTu/wMf69OPauI/vueTSKLpiaPwW6u+yBY+n ddAM3CYDAo64/iHEUS7UfypyHQgmPidc42UM2O4umRrdAlwEk9buxVISKlGi84Lyy5B7 1BKiCc0V8ZuHzitDHjScCRHSZyAVs8yhm0HJ3NUv7kry71s6dVyeivKsVgUszcyuBwse T0Wg== 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=2QX322DCnm5cE0pXBGmrME5GjV/mM7P7qq+mljbXHQc=; fh=2/NVRShMjGGOPnVgu/0Bdj6u2Zjjp6qmQeSswPCwwCg=; b=K0B+ILiGk8hlap1KcCqUUGv2x4aFClGRc8esseOZcLxAHxHhFQOcqlumvtNoUFQGJE ksT3Tf2t0HaX71r2KLrAbDLIGKxEEsfMgT1y3EajlAagg/k8FxTDeY36H3/xLJn32Ha3 9IvIRb4AS/oZ0YIe8450Vh6O+jLFsOy38zYPT68JGpbThK5m4/fYDABJqZvqtFLz+aSd 1dzLXaQgimOuVDAzJKAFWQ49K7vV4SM+tG0KrEFkj2XQI83CZC20XIo82hvgtQTKAr8e K0dMxQwSXfPDaEcFGznJ7knTuqKd8ehsylMh1AtmjOv/9UrxDhI8xDf19S5lwh9K+f2r Q6qg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FYbPsRuL; 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 6a1803df08f44-6dccd34d191si492356d6.223.2024.12.13.11.19.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:19:59 -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=FYbPsRuL; 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 1tMB3I-0005Lp-2N; Fri, 13 Dec 2024 14:10:16 -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 1tMB2W-0003mf-Vh for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:30 -0500 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2R-0006go-6e for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:25 -0500 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71e181fb288so940814a34.2 for ; Fri, 13 Dec 2024 11:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116962; x=1734721762; 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=2QX322DCnm5cE0pXBGmrME5GjV/mM7P7qq+mljbXHQc=; b=FYbPsRuLN27DAsU+h5Gq1SIxYwAgHil+XRVB7v44rSfzJWKMCBmU4llcF9VQqWs2LH u4ShZjGNFYwHEhbjj0b7y9+oJzH4jpsfzhVjFR9dS3RMv1Uhry0AaoyyNvz6Pw0GXEbD /AKY17CxHS0ALGDISIWTBqNTVsyZNI9z7DchhMlemCZp67s747PjABjwt2mNYtJrJ9ml 2TVXlBe02fc/OnQoFjq4J1hpds+4Gyhu1OxfDXLugDTGcef/flBdwFKqD/SOuAJ3Lt1w wTNVZrLEck+zoEpD066C7KTo32V48oUmrMJgFjq/sLC3nRUcALmp5K8/TC9U72lWXhSP 8fwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116962; x=1734721762; 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=2QX322DCnm5cE0pXBGmrME5GjV/mM7P7qq+mljbXHQc=; b=Sg+bX8g1GrvCjVTKnCxN/+mhlZ6+lNq15Ji191lWUQg7QiUqxfajigni20XBhKyMGK hnxmxUdz6mtYiYRxN5Z2JHzN3eInhilxVGM8HwTtc0x6XdgVScJSnXpY1hZEzpAYY0vl qkQDHJy3hL0Y9O940TZEPf8S4TlkZGYEnBQdC0WkBXIHWleEOt7n5gMqA7KNMZ6wvbrX i/OcO7AT9ZSpdv7qKxwGpcn5EnH3Z4J+/E6o8LTwPLJyEm+M4BZHNW6Qfc/H7Rk9logt 09zVneLQKwtaC5LMHZsTxSmBbmJobdxnmw7D6AmuWV13wH39PtxuHBayzaJJaTFMYrmW Pz9g== X-Gm-Message-State: AOJu0YwmIyWzsRoqoFRfBhkPw6Wns5oSi/S/D5M9W9SDuApmi2UcrVZR UKthjOowTU/MwXg554+ojuYIT/5RnwM26cHgkHf5Q5k9TZuhvOg8odkTjVP5tTEpEUZADzeOrGn ekzECw6ce X-Gm-Gg: ASbGncskEkQ3LSH1DuUlSfKxsAeG8oS+x5knfVu1np4WUq9eCjCJM9fr5d+ToHzmRiO +q7yVPVZKzKZem3Wm2gxHmyUZIttNDpR0nBhkZiTH9OWnpqYFRNfPiq9SfUy3JfApd6g8/fWiYP juvW/QMcxRikOCuZVDs7OW3qFYkn5y8gLbZ7/uUvFJlT2xJy2pNg7r6GF9dDByxC75w6MStHfd3 an7wEWztKbUiCHiYdWuTj70i+d1dWSkdhZKzCoEK0NSndjRaD8wWklOxUeg9clJ X-Received: by 2002:a05:6830:2b2b:b0:71d:548d:6f76 with SMTP id 46e09a7af769-71e3ba4f66dmr1971252a34.26.1734116961994; Fri, 13 Dec 2024 11:09:21 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Herv=C3=A9_Poussineau?= , "Michael S. Tsirkin" , Paolo Bonzini , Peter Maydell , "Edgar E. Iglesias" , Alistair Francis , qemu-ppc@nongnu.org (open list:PReP), qemu-arm@nongnu.org (open list:ARM PrimeCell and...) Subject: [PATCH 25/71] hw/dma: Constify all Property Date: Fri, 13 Dec 2024 13:06:59 -0600 Message-ID: <20241213190750.2513964-30-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=2607:f8b0:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x334.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=unavailable 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/dma/i82374.c | 2 +- hw/dma/i8257.c | 2 +- hw/dma/pl080.c | 2 +- hw/dma/pl330.c | 2 +- hw/dma/xilinx_axidma.c | 2 +- hw/dma/xlnx-zdma.c | 2 +- hw/dma/xlnx_csu_dma.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c index e72aa2e1ce..032afedde2 100644 --- a/hw/dma/i82374.c +++ b/hw/dma/i82374.c @@ -139,7 +139,7 @@ static void i82374_realize(DeviceState *dev, Error **errp) memset(s->commands, 0, sizeof(s->commands)); } -static Property i82374_properties[] = { +static const Property i82374_properties[] = { DEFINE_PROP_UINT32("iobase", I82374State, iobase, 0x400), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index 3e6700e53b..8b04177393 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/i8257.c @@ -585,7 +585,7 @@ static void i8257_realize(DeviceState *dev, Error **errp) d->dma_bh = qemu_bh_new(i8257_dma_run, d); } -static Property i8257_properties[] = { +static const Property i8257_properties[] = { DEFINE_PROP_INT32("base", I8257State, base, 0x00), DEFINE_PROP_INT32("page-base", I8257State, page_base, 0x80), DEFINE_PROP_INT32("pageh-base", I8257State, pageh_base, 0x480), diff --git a/hw/dma/pl080.c b/hw/dma/pl080.c index 8e76f88a69..3f392822ed 100644 --- a/hw/dma/pl080.c +++ b/hw/dma/pl080.c @@ -408,7 +408,7 @@ static void pl081_init(Object *obj) s->nchannels = 2; } -static Property pl080_properties[] = { +static const Property pl080_properties[] = { DEFINE_PROP_LINK("downstream", PL080State, downstream, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c index 0668caed7c..d5a0a1caa2 100644 --- a/hw/dma/pl330.c +++ b/hw/dma/pl330.c @@ -1646,7 +1646,7 @@ static void pl330_realize(DeviceState *dev, Error **errp) pl330_fifo_init(&s->fifo, s->data_width / 4 * s->data_buffer_dep); } -static Property pl330_properties[] = { +static const Property pl330_properties[] = { /* CR0 */ DEFINE_PROP_UINT32("num_chnls", PL330State, num_chnls, 8), DEFINE_PROP_UINT8("num_periph_req", PL330State, num_periph_req, 4), diff --git a/hw/dma/xilinx_axidma.c b/hw/dma/xilinx_axidma.c index 73a480bfbf..f09452d0b5 100644 --- a/hw/dma/xilinx_axidma.c +++ b/hw/dma/xilinx_axidma.c @@ -611,7 +611,7 @@ static void xilinx_axidma_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property axidma_properties[] = { +static const Property axidma_properties[] = { DEFINE_PROP_UINT32("freqhz", XilinxAXIDMA, freqhz, 50000000), DEFINE_PROP_LINK("axistream-connected", XilinxAXIDMA, tx_data_dev, TYPE_STREAM_SINK, StreamSink *), diff --git a/hw/dma/xlnx-zdma.c b/hw/dma/xlnx-zdma.c index 46f50631ff..1a63d5f3b2 100644 --- a/hw/dma/xlnx-zdma.c +++ b/hw/dma/xlnx-zdma.c @@ -810,7 +810,7 @@ static const VMStateDescription vmstate_zdma = { } }; -static Property zdma_props[] = { +static const Property zdma_props[] = { DEFINE_PROP_UINT32("bus-width", XlnxZDMA, cfg.bus_width, 64), DEFINE_PROP_LINK("dma", XlnxZDMA, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), diff --git a/hw/dma/xlnx_csu_dma.c b/hw/dma/xlnx_csu_dma.c index 43738c4350..d78dc6444b 100644 --- a/hw/dma/xlnx_csu_dma.c +++ b/hw/dma/xlnx_csu_dma.c @@ -691,7 +691,7 @@ static const VMStateDescription vmstate_xlnx_csu_dma = { } }; -static Property xlnx_csu_dma_properties[] = { +static const Property xlnx_csu_dma_properties[] = { /* * Ref PG021, Stream Data Width: * Data width in bits of the AXI S2MM AXI4-Stream Data bus. From patchwork Fri Dec 13 19:07:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850236 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1686871wry; Fri, 13 Dec 2024 11:15:06 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWNQX9ECVN7oI8UjR6u2FwdjmjNMIuxdRDXaK6/kQ6Bq0CsXbSHjNsO58QPjeV9FjPF81l+2g==@linaro.org X-Google-Smtp-Source: AGHT+IGmj4UolXMIYR8PLNIzAHZqLJxGBoXDQQWcDmtVfgwwvcYD0uLhY9cO7MsPxWCQPt+gCwVu X-Received: by 2002:a05:6102:508a:b0:4af:f275:e747 with SMTP id ada2fe7eead31-4b25dae9d56mr4724367137.22.1734117306256; Fri, 13 Dec 2024 11:15:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117306; cv=none; d=google.com; s=arc-20240605; b=S+ZR0eVOBQmN4nrnwOeFJOwe+e/gKLyDY89UDGPF42UaDFP+f7GDSsC1X3qPdJsuqU xMRzHxWg42brdBSkyvB9reuIcCbFXbMW5GQ3QtzlmSFfH0KKWRQcxBssnbYPswepwNfH JiW3LX7RLfA8JUQPcJxcrPd5iRouvAkFWH0HyeMcA07vm9B1vXfhfqxbM0WzUz9aY1/N FZoQCQOOHZLsqtPF5/bdPa7mgyWFh0lvO7ohbmrZRmscTccaUNZuQJ5AzcHvoUSbecB+ fhd9ODUCjnD5MldqvZrE03IY8z5/ZkOhyNjWQjcaO/UTQeZqYB2F1JlVBHLtj5oFa/P9 iq6w== 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=gdY3dpYi7vhtPasvRS2TH4CuRkN2+rNlovkFrA09YtY=; fh=AyUiB8ZDtVtqICIDeV5onflD9jDKovMHIX+gjU1YvYo=; b=VEpX8vEeACq+JXkTfcGyqCrtk1vcpD5hDkApBi676WhQS9kATTpekYf8wz+0tDhT7Y M6GJfpSqria6OphtucgJTMemoXcuWHUGNyQhGl3ja9cGzcI/jtaFNraM84Nv3LJqqWQy U7pSl002oHNHUEh9wEUDo4JvAQ3uF52L1D12NXwOAF7udavQxatbCW8d4Z+As6j5bYge eFG1Q5AF8gqWoa0AKGiB66xjOr3ydc5XuHyfSTZDp6yrJ0bKjQhDvuZKUQjZR/EHRTUI dmXitnhCZRoflEO9GZTHJXOW6JTozBlzQ4q5bL6iueL7pBvzSEjPJI1BCeXUNoeCQ83J 9I3A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Drzv1QJJ; 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 ada2fe7eead31-4b2703eaca5si24942137.279.2024.12.13.11.15.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:15:06 -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=Drzv1QJJ; 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 1tMB4A-0006ce-1h; Fri, 13 Dec 2024 14:11:11 -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 1tMB3S-0005ax-Ga for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:29 -0500 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3P-000710-Af for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:26 -0500 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-288fa5ce8f0so584940fac.3 for ; Fri, 13 Dec 2024 11:10:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117021; x=1734721821; 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=gdY3dpYi7vhtPasvRS2TH4CuRkN2+rNlovkFrA09YtY=; b=Drzv1QJJxtheV98fd/3HUJN0hDDDzCtRXGIPV/xbCGp3A2bt8aD+8FKV0DyVGsjvPb 5a0fjup0G7kp1IB1KdbLgwGyCuxZoUZ0GqwIvuUHDXArn2KqudBG8hlRZMyKLTdqYqqf IDGG/i+20deHJxt2SM8CAzwIcT611h/XAirGnOdy+XRRTWIcXvQigBPVmSg8BJyuIZKv oNk6z4ubABR3DaRo8IzR+yn3WcPsM0wXhVryNlNHI6byiBsRI7TYLqjL/pLulNLf2EdF f8ISD7iRXb2aiXnfTDXv6G43/SS/OIAH3Alsy87ckm1J/f5VjjMoejVriZ5lbqlIUv9c g/eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117021; x=1734721821; 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=gdY3dpYi7vhtPasvRS2TH4CuRkN2+rNlovkFrA09YtY=; b=RL+RdjOwlQxIVBuCPMlHTaC+SNfqPZsCOtcRtUd2d/Sobo2onM/pF8ps/2uxQ2lHtl eCn3lZUNUYOGG0z9QpdOBYwYUgVnwSFiHekne9XrxZEqS3EDFfvEbwhOf74ma9LKFDa8 KUL1LitXIi1gRarN7XdPqqrSTDuEAOm21cLEvNXeHNY9IpbnWmQS7gLRfvFsjxRtJwI0 SCaToJNXAsLk07PmOD0YejhlX1iUV30sJ9BB74PxeUhN+uxn8WblfrWNqk+Hbi7xlbEr //4ga1uQ0k/JSEX60Lh5+gipCRxs/MHJu72DSwDE1djBpGdRIpSDO+83xkoEMmOQy6LV 43sQ== X-Gm-Message-State: AOJu0YyAb1ExfS5/31jF6ENiULGq+K3GxjyWeDc1mQFo4vNomAjbJYdN e03/GmYYhSanJHiw8oePoX5ut0Xff/5oLgp8jtF1XERrCekcoW90wuyalUyR0249Gw1zEODzuH8 UcaiQ/JwI X-Gm-Gg: ASbGncuIhrII9QkSn5SwiSmuzUsnjDq/8iu8GJLYY5IMRLd4JZhZyTnIpAgFMFb2Av9 4dNCq8yTra3YtbjYlfKm495DwmZsB0FsYLzPONPuuM7kgIuM06YNkOTZIhp2sZWRTtQHwfyLJvd RG+uThx1U7wKMbVLd4ago4q74uqHWtqiTAYFea2KW+LU2WW6Yk5BbOo7B3gaIYanxdJ/o3ZW2yl psQBxoT3012LZraLpDPuKZOYZubualSV9Y3cBQ/PCBxRFSNIR2kXiC4fM4+C6vG X-Received: by 2002:a05:6808:1b10:b0:3eb:4f4d:c298 with SMTP id 5614622812f47-3eba6872124mr1614521b6e.15.1734117021214; Fri, 13 Dec 2024 11:10:21 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:20 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Maydell , Tyrone Ting , Hao Wu , Glenn Miles , Alistair Francis , Bin Meng , Palmer Dabbelt , Samuel Tardieu , qemu-arm@nongnu.org (open list:i.MX31 (kzm)), qemu-ppc@nongnu.org (open list:pca955x), qemu-riscv@nongnu.org (open list:SiFive Machines) Subject: [PATCH 26/71] hw/gpio: Constify all Property Date: Fri, 13 Dec 2024 13:07:00 -0600 Message-ID: <20241213190750.2513964-31-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::2b; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2b.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=unavailable 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/gpio/imx_gpio.c | 2 +- hw/gpio/npcm7xx_gpio.c | 2 +- hw/gpio/omap_gpio.c | 2 +- hw/gpio/pca9552.c | 2 +- hw/gpio/pca9554.c | 2 +- hw/gpio/pl061.c | 2 +- hw/gpio/sifive_gpio.c | 2 +- hw/gpio/stm32l4x5_gpio.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/gpio/imx_gpio.c b/hw/gpio/imx_gpio.c index 27535a577f..919d53701f 100644 --- a/hw/gpio/imx_gpio.c +++ b/hw/gpio/imx_gpio.c @@ -290,7 +290,7 @@ static const VMStateDescription vmstate_imx_gpio = { } }; -static Property imx_gpio_properties[] = { +static const Property imx_gpio_properties[] = { DEFINE_PROP_BOOL("has-edge-sel", IMXGPIOState, has_edge_sel, true), DEFINE_PROP_BOOL("has-upper-pin-irq", IMXGPIOState, has_upper_pin_irq, false), diff --git a/hw/gpio/npcm7xx_gpio.c b/hw/gpio/npcm7xx_gpio.c index ba19b9ebad..db6792b2ad 100644 --- a/hw/gpio/npcm7xx_gpio.c +++ b/hw/gpio/npcm7xx_gpio.c @@ -386,7 +386,7 @@ static const VMStateDescription vmstate_npcm7xx_gpio = { }, }; -static Property npcm7xx_gpio_properties[] = { +static const Property npcm7xx_gpio_properties[] = { /* Bit n set => pin n has pullup enabled by default. */ DEFINE_PROP_UINT32("reset-pullup", NPCM7xxGPIOState, reset_pu, 0), /* Bit n set => pin n has pulldown enabled by default. */ diff --git a/hw/gpio/omap_gpio.c b/hw/gpio/omap_gpio.c index a47a2167a6..03ee9e47c6 100644 --- a/hw/gpio/omap_gpio.c +++ b/hw/gpio/omap_gpio.c @@ -225,7 +225,7 @@ void omap_gpio_set_clk(Omap1GpioState *gpio, omap_clk clk) gpio->clk = clk; } -static Property omap_gpio_properties[] = { +static const Property omap_gpio_properties[] = { DEFINE_PROP_INT32("mpu_model", Omap1GpioState, mpu_model, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/gpio/pca9552.c b/hw/gpio/pca9552.c index 59b233339a..427419d218 100644 --- a/hw/gpio/pca9552.c +++ b/hw/gpio/pca9552.c @@ -428,7 +428,7 @@ static void pca955x_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, pca955x_gpio_in_handler, k->pin_count); } -static Property pca955x_properties[] = { +static const Property pca955x_properties[] = { DEFINE_PROP_STRING("description", PCA955xState, description), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/gpio/pca9554.c b/hw/gpio/pca9554.c index 68cc9e1de4..e8b0458aac 100644 --- a/hw/gpio/pca9554.c +++ b/hw/gpio/pca9554.c @@ -291,7 +291,7 @@ static void pca9554_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, pca9554_gpio_in_handler, PCA9554_PIN_COUNT); } -static Property pca9554_properties[] = { +static const Property pca9554_properties[] = { DEFINE_PROP_STRING("description", PCA9554State, description), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/gpio/pl061.c b/hw/gpio/pl061.c index d5838b8e98..9b8ca6de32 100644 --- a/hw/gpio/pl061.c +++ b/hw/gpio/pl061.c @@ -562,7 +562,7 @@ static void pl061_realize(DeviceState *dev, Error **errp) } } -static Property pl061_props[] = { +static const Property pl061_props[] = { DEFINE_PROP_UINT32("pullups", PL061State, pullups, 0xff), DEFINE_PROP_UINT32("pulldowns", PL061State, pulldowns, 0x0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/gpio/sifive_gpio.c b/hw/gpio/sifive_gpio.c index e85c0406a2..5603f0c235 100644 --- a/hw/gpio/sifive_gpio.c +++ b/hw/gpio/sifive_gpio.c @@ -349,7 +349,7 @@ static const VMStateDescription vmstate_sifive_gpio = { } }; -static Property sifive_gpio_properties[] = { +static const Property sifive_gpio_properties[] = { DEFINE_PROP_UINT32("ngpio", SIFIVEGPIOState, ngpio, SIFIVE_GPIO_PINS), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/gpio/stm32l4x5_gpio.c b/hw/gpio/stm32l4x5_gpio.c index 30d8d6cba4..d1394f3f55 100644 --- a/hw/gpio/stm32l4x5_gpio.c +++ b/hw/gpio/stm32l4x5_gpio.c @@ -447,7 +447,7 @@ static const VMStateDescription vmstate_stm32l4x5_gpio = { } }; -static Property stm32l4x5_gpio_properties[] = { +static const Property stm32l4x5_gpio_properties[] = { DEFINE_PROP_STRING("name", Stm32l4x5GpioState, name), DEFINE_PROP_UINT32("mode-reset", Stm32l4x5GpioState, moder_reset, 0), DEFINE_PROP_UINT32("ospeed-reset", Stm32l4x5GpioState, ospeedr_reset, 0), From patchwork Fri Dec 13 19:07:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850246 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1689105wry; Fri, 13 Dec 2024 11:20:02 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX+UUjH3bK/6PkJM3FUnBF67amzGszzCtPqpRrhva3OwjUyEroNvcVdF/23C2TgT3lOLL61Sw==@linaro.org X-Google-Smtp-Source: AGHT+IHDRcmroJykZrUdTegbz7V4IwaAD6jTjW0HW5TUTIiDuE/A8wcpm54qKUni9ePpGgHlUzYB X-Received: by 2002:a05:6102:3c8f:b0:4b2:5ca2:48fe with SMTP id ada2fe7eead31-4b25dcef6e9mr5207279137.15.1734117602151; Fri, 13 Dec 2024 11:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117602; cv=none; d=google.com; s=arc-20240605; b=dX0Q5U2d17T/AgchukTMt6DKeUZ3AFjcHKDD7XGgsHzE4C+GB2c0IJQJsaLMzkMNss j2ssdPOhntnZ4VUkV9untGDT3/BheEmG9ieKkrNAnkFc0+7zwxlUYypfu11htADGp9y/ ihYfOlh+8XXQCDoszNS+YEdY4Sr8aKYUj+bDhrolVFY7QSvAfuU9qj+Ua53xB8ggbW59 xFGjcAzoTvKlSOkjvZTj5Y6j5LgiaKofC69IsnmMXFvwvPEvopguiT2w5YIzGN9rZk53 pMIFAxWM5Uuq3BywF37QPHPDZGZo8O82nNkghihEFCum3m2/S7t6Lv0iaIup0G2EqV3w YoqQ== 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=YNM7GoGVjyi9pb6tl93/GE1pyMMqg1z6U/rJvq0HOPE=; fh=sUY13iTyrzF63cZyehTrle2CFPM54nPhhOLfU1Q05WM=; b=BbduvSvVnEPWhSN4iuCmf8mTCkYEXhR2v37CEiFpkLP1LCt0fM6C/d7FY9FH/oFwwG Kp/NKRJ/GR111Dzn6fETSV8ZjSN+VzvdnlwMgV6kNOfuDMo00kiuKCy7OISy8V6NncoG 1r9Ei7aQpCsYe8vCl0b8iOuR2AQxjFV6WMYrTcVWMiSFO57JCKwhpOc2FdXN3MCBcrF/ ICvWYkC4I/aIjFweUiPtrxwEa1q1EU7MDTCpEwQHrApREFSoBFkt4R5BfaIUTPpCtrcG uuQlzIPXzCMb11C+gSRs7rN1F1aJfE5IGIEqjBsC1YZaZeCdqexEeYHriH8pv1d4E+Zj VeuA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kio51QST; 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 a1e0cc1a2514c-860ab75564esi13007241.94.2024.12.13.11.20.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:20:02 -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=Kio51QST; 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 1tMB3n-00066D-8j; Fri, 13 Dec 2024 14:10:47 -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 1tMB3S-0005an-C1 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:29 -0500 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3P-00071B-GR for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:26 -0500 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-71e15d9629bso528382a34.1 for ; Fri, 13 Dec 2024 11:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117022; x=1734721822; 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=YNM7GoGVjyi9pb6tl93/GE1pyMMqg1z6U/rJvq0HOPE=; b=Kio51QSThz88XZ7IqsIPF0CupWyYUBZT82tpVw4ixlr9pcnKvywGlVqfbQTykxdqg1 nhuUoRgLlW1Q2Sm7HLgxJb1ppp/9DxHUQ+IXpuiDC527lQUxaL9tGhRS1iBjli9lOTw3 xbg4WGkX0CAkQUbc6S5dZ8lFOV8uFjtU6n5RcZIxWoVBT/wfjNJLlZFm1kyO/evoP7O5 xAtgaxBxidYpmjunbJyY5UikNmD4mcr7FuDKj38/ObzaxoXbmhgeaq3fAtxcTtmJnBC/ EKQD6Fum5atlmXidGrrolpSQb3uNhxP9XmmtzECgq5mfSb3ljn7Vmgsj3pxTKUT/yz3V 2GtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117022; x=1734721822; 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=YNM7GoGVjyi9pb6tl93/GE1pyMMqg1z6U/rJvq0HOPE=; b=ccA9puFoMqWAS73QfEtXuQJIbEsccgoRzmJ4cewGFBo4jMEK2Cw1BCb8BS/RjM7RKD ehML1HALX0ZzOsz84CVPalJrOpc7oEKXOUZzO9wg31ENpLMXNTgPoCZ7TIW1+BXVGi5h XXs7Tr3CYSCfeYw9GC9MuQ3xZX3ImJREs7DAYagSjKL1mMoAINGqFIjO1Kh8DoN36+LT hfuDPklgxMqKgYcMWpgh5+FZfxREtdjQBbndrEksMswZJO8Kf5MgNJ+4I0RsNGepLvI9 aXmmM27wdbksq04SDypCcCxgqp5jRnLFsDub1nbWYS5QvDwQQN6WYXVqetGPVzjpISQb RJpQ== X-Gm-Message-State: AOJu0YwEXUlE34vD8IALybM5z8v7nmGJ7cVkS7IpNPpdxeUCBhs/X+f2 jc9VUFLJzpQlUXRQ+V+COXwi/uLEzeXQSPAjoU1GpkSMXma70FRiTVAFSmtJ1nDzaRDx9JL9xvF rhUWA5sJU X-Gm-Gg: ASbGncuupQnRhnpwL7KzfuwRT8eFoxuqU+ILlkx+qeSa0AUohJ3RUrxToVw/2mbSNrq l5gorcRSPYT+qo4UpHdoqw7O1Rq/R8g2qyVEKi37xKqsGgU5hvgvOgu9c+yyQ0AGctu32+/5iii 3JvstvZ0WhugXdlMU1WSdoWVHacKdArzbsXpzCmsne04iFn9BLpj9LbGEVA4jV9IXC2HudM/E+4 1eCuGEJI210pcw1R6eu3OJX7rPS4BVnjDQ7TX+4f20Dtg1iXcGeLw2+FhtY8N0P X-Received: by 2002:a05:6830:658a:b0:71d:e0b8:5f0f with SMTP id 46e09a7af769-71e3ba43471mr2152421a34.29.1734117022151; Fri, 13 Dec 2024 11:10:22 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Maciej S. Szmigiero" Subject: [PATCH 27/71] hw/hyperv: Constify all Property Date: Fri, 13 Dec 2024 13:07:01 -0600 Message-ID: <20241213190750.2513964-32-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=2607:f8b0:4864:20::336; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x336.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/hyperv/hv-balloon.c | 2 +- hw/hyperv/syndbg.c | 2 +- hw/hyperv/vmbus.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/hyperv/hv-balloon.c b/hw/hyperv/hv-balloon.c index 3a9ef07691..74897b1604 100644 --- a/hw/hyperv/hv-balloon.c +++ b/hw/hyperv/hv-balloon.c @@ -1733,7 +1733,7 @@ static void hv_balloon_finalize(Object *obj) hv_balloon_unrealize_finalize_common(balloon); } -static Property hv_balloon_properties[] = { +static const Property hv_balloon_properties[] = { DEFINE_PROP_BOOL("status-report", HvBalloon, status_report.enabled, false), diff --git a/hw/hyperv/syndbg.c b/hw/hyperv/syndbg.c index 065e12fb1e..0193addd42 100644 --- a/hw/hyperv/syndbg.c +++ b/hw/hyperv/syndbg.c @@ -366,7 +366,7 @@ static const VMStateDescription vmstate_hv_syndbg = { .unmigratable = 1, }; -static Property hv_syndbg_properties[] = { +static const Property hv_syndbg_properties[] = { DEFINE_PROP_STRING("host_ip", HvSynDbg, host_ip), DEFINE_PROP_UINT16("host_port", HvSynDbg, host_port, 50000), DEFINE_PROP_BOOL("use_hcalls", HvSynDbg, use_hcalls, false), diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c index b36bd3d67d..3d1f4d14e8 100644 --- a/hw/hyperv/vmbus.c +++ b/hw/hyperv/vmbus.c @@ -2346,7 +2346,7 @@ static void vmbus_dev_unrealize(DeviceState *dev) free_channels(vdev); } -static Property vmbus_dev_props[] = { +static const Property vmbus_dev_props[] = { DEFINE_PROP_UUID("instanceid", VMBusDevice, instanceid), DEFINE_PROP_END_OF_LIST() }; @@ -2653,7 +2653,7 @@ static const VMStateDescription vmstate_vmbus_bridge = { }, }; -static Property vmbus_bridge_props[] = { +static const Property vmbus_bridge_props[] = { DEFINE_PROP_UINT8("irq", VMBusBridge, irq, 7), DEFINE_PROP_END_OF_LIST() }; From patchwork Fri Dec 13 19:07: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: 850282 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1695249wry; Fri, 13 Dec 2024 11:35:06 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXHH+r7SIVmbNyFoZ91m4dtYAQQ2YSWe2Lf8ly9Ttup2AKMQPj/Q9nNHJrq+R/Ign8sdVCgBQ==@linaro.org X-Google-Smtp-Source: AGHT+IG0f/WLXSzQYhSO3/pcMLioJfJt1HNfL0eDlIXmFGlczUSyDFfWe8mEVD4gg8VZ3q4JsG8w X-Received: by 2002:a05:6102:548f:b0:4af:bb06:62d with SMTP id ada2fe7eead31-4b25d98e88emr5959133137.11.1734118506675; Fri, 13 Dec 2024 11:35:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118506; cv=none; d=google.com; s=arc-20240605; b=hCqzfwMIc3SOp2X1IOyWOu2T+Qqz+VRB8ToqkiT5JEmzPvOUF1pnQNyi8OhLqtrdDc +A8gGNRrlbVNUr55/31H6sj4nSdz9dMZeylaVxi9uEJtVQJ6fUSyYDPXOC1XB+GQxlv6 v1D1gr4h0FQ2un/HkV3z/l+bCe6kd8XIPyHUCoXDvqSd9g1bk4VFESUKlzNyypsBPvjh PrWxJLFbH9mD7ytdfncG/SmWz7tnD93aBgVi40K8Fb54PLPiQTOyQfmRxtcsVikhG7xI VF8UGC+mHVxhczyxdvQUrzkKD+eMBFLCiL7S13vJgSNIzeUgHxFhZDOO2l5FpDo3VAtn /LCA== 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=4K+Ow/kpxla1hHfSMb1r5BWBj60XilhZFUT+PuNLeCM=; fh=KBOsE4mzyBK8o12p7AiiXi92eC5hlX2BNzgRyt34QKk=; b=gdYGOgj/0wCdeNBLgvwnf1rGANUtZsrn/neG9+2ZUa+isDL4qqH40kORG3It6zDnZe 7mD5rVnnWyiDOTn9EDOwsDVXYYZ3HaPO1nmiF/dLOPMPh7JOvKWtYIwRnvzVF2LlgFbf 1WRyEBTjqI2LIz5qhPK74s2SHDyjj+Ky6pUtZyFIVyQNVjmoTlujsDia8fcU6C5HA4CK 5AUnNE1KuiAQn0WglPCz4nM9pxv6LkRpGZoFRd6jlS7cr+0CcNimo7rLG544EPYH1vtY U8GMqnvpfYcUb9CHBxtOBwXptYQGr/iNHokcYC3PxZM+CotmU8ES9T5Ywbylzs6l0HoS W8Lw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rJ1zB70l; 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 ada2fe7eead31-4b270204587si50166137.45.2024.12.13.11.35.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:35:06 -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=rJ1zB70l; 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 1tMB43-0006YU-Vm; Fri, 13 Dec 2024 14:11:05 -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 1tMB3T-0005bY-UQ for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:31 -0500 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3Q-00071R-PY for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:27 -0500 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71e35be77b5so458107a34.1 for ; Fri, 13 Dec 2024 11:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117023; x=1734721823; 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=4K+Ow/kpxla1hHfSMb1r5BWBj60XilhZFUT+PuNLeCM=; b=rJ1zB70ld3fkZYYS0SLH3sC+Yp5bJPEKdCsDse0YW66Ci8Oa8wijrkO/QtCUvdUuKK BkTph2MufouxJuk1CoSXxN6ZG+GsTdGYCIqV4WSnaP9wSCyEVqrJMDR/zOlv7c6hPDGT HHRDKl8S8LsgAJeYUmj75S/3vXagjzZe9k/bn9XBoZn+hdiOaFejx89Y9O6voIQITUvv FaGTUiFC3KRuqyUQB1RypQY1FkdRti+5pkJktA9TGbYdVFqWC5/PFGX7HTcm0wqKcI4Q G0zRMu2A3LYBAclAmIsc9WjleMsQFfIrKfpJFsmnndU89iYyz9ZfbbYYTv0xTiOm6cW3 c/Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117023; x=1734721823; 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=4K+Ow/kpxla1hHfSMb1r5BWBj60XilhZFUT+PuNLeCM=; b=b9PNUvzlbi1/IjVjUSBHzxyY8Jh85zznaol8fiStpqAP0q3q9xnTNAZnsxoBQ2U8Ug WWlX9mD4i2sK1mNKJci0lOtnCS5k1vKwWwc0Yexu6HxhlNut6wDEeeJ3AKkZJtJe/0UP 2TBq4zkXAkFzC5DDOQ9ZMAzwSihTleun4ahvL49BQPf0eQCurDunQe6O0gs0hVM3faXT lI4yRyvCGwOWmnmyvtMJAeJ0mGWgORd5gjiVMLcs6wlDL3CM7liF35T97gCE5q5soL6c Ozs00Zsn3ClwT+qC+D9GZ76KzLcKCf+aPrVXnuGkVc6rGAjc8KGJSVGYefwpicc0YIWo pBog== X-Gm-Message-State: AOJu0YxCwxpvT9JUTQ52FHZHkD+QaPVmCuaum71kURKoFFoejg8PP6bH iV67mQboWTUtar3LQPljCYqiUGk68aYouoBPOhM8isiV7tHx3MbUffitLaHvids5RJZUw1coG0I 4EK0qJaiZ X-Gm-Gg: ASbGnct/Ntc+4k36BGxP97MR37UMqyIi3/zXojdhVSuoSsYeDwYUIcLUwiKAwVgdX52 5GfKw9SvRN607+X2GE9R7iQqrLxVHrEil86W2PF0LaNRYDXGsjc5vc6NagU50AMymo6IB5sHF/r yNq2C+vo/DcVWo/Pkd5WYH19dhrJQuSMeLaP+TVthX2MuozjaxlALysBaCmg92MkfHwyzt6NYk6 FWpMKs7j0Uy+emyLxgThggElKGk5JsE9+hp41nvsbX5Nc0nFjWa46L+Y/oAq9AT X-Received: by 2002:a05:6830:258c:b0:710:fef4:3c92 with SMTP id 46e09a7af769-71e3ba26862mr2771330a34.21.1734117023633; Fri, 13 Dec 2024 11:10:23 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:23 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Corey Minyard , Patrick Leis , qemu-arm@nongnu.org (open list:ASPEED BMCs) Subject: [PATCH 28/71] hw/i2c: Constify all Property Date: Fri, 13 Dec 2024 13:07:02 -0600 Message-ID: <20241213190750.2513964-33-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=2607:f8b0:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x334.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 Acked-by: Corey Minyard --- hw/i2c/aspeed_i2c.c | 4 ++-- hw/i2c/core.c | 2 +- hw/i2c/i2c_mux_pca954x.c | 2 +- hw/i2c/omap_i2c.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c index 3ae22cb052..2ea68c3090 100644 --- a/hw/i2c/aspeed_i2c.c +++ b/hw/i2c/aspeed_i2c.c @@ -1258,7 +1258,7 @@ static void aspeed_i2c_realize(DeviceState *dev, Error **errp) } } -static Property aspeed_i2c_properties[] = { +static const Property aspeed_i2c_properties[] = { DEFINE_PROP_LINK("dram", AspeedI2CState, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), @@ -1446,7 +1446,7 @@ static void aspeed_i2c_bus_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->mr_pool); } -static Property aspeed_i2c_bus_properties[] = { +static const Property aspeed_i2c_bus_properties[] = { DEFINE_PROP_UINT8("bus-id", AspeedI2CBus, id, 0), DEFINE_PROP_LINK("controller", AspeedI2CBus, controller, TYPE_ASPEED_I2C, AspeedI2CState *), diff --git a/hw/i2c/core.c b/hw/i2c/core.c index 4cf30b2c86..4118d3db50 100644 --- a/hw/i2c/core.c +++ b/hw/i2c/core.c @@ -18,7 +18,7 @@ #define I2C_BROADCAST 0x00 -static Property i2c_props[] = { +static const Property i2c_props[] = { DEFINE_PROP_UINT8("address", struct I2CSlave, address, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/i2c/i2c_mux_pca954x.c b/hw/i2c/i2c_mux_pca954x.c index db5db956a6..80c570fd10 100644 --- a/hw/i2c/i2c_mux_pca954x.c +++ b/hw/i2c/i2c_mux_pca954x.c @@ -211,7 +211,7 @@ static void pca954x_init(Object *obj) } } -static Property pca954x_props[] = { +static const Property pca954x_props[] = { DEFINE_PROP_STRING("name", Pca954xState, name), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/i2c/omap_i2c.c b/hw/i2c/omap_i2c.c index e78505ebdd..172df135f5 100644 --- a/hw/i2c/omap_i2c.c +++ b/hw/i2c/omap_i2c.c @@ -511,7 +511,7 @@ void omap_i2c_set_fclk(OMAPI2CState *i2c, omap_clk clk) i2c->fclk = clk; } -static Property omap_i2c_properties[] = { +static const Property omap_i2c_properties[] = { DEFINE_PROP_UINT8("revision", OMAPI2CState, revision, 0), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850237 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1687066wry; Fri, 13 Dec 2024 11:15:29 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX1PXJuqZ/wlJvq0UjsY1zFTmusfULIecUsJgbaEsGdiuduYYxiELHHu4UjLulzj7XaeQjHUQ==@linaro.org X-Google-Smtp-Source: AGHT+IGn4OqX/rhPVs3C+FHfu1bEtOZbypmXw0oWguFhOSysTMvtgwixlUfE/Vjj/c38ionuqJSL X-Received: by 2002:a67:e70d:0:b0:4af:df15:7d6d with SMTP id ada2fe7eead31-4b25db3a50emr5284140137.21.1734117329367; Fri, 13 Dec 2024 11:15:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117329; cv=none; d=google.com; s=arc-20240605; b=RU0UENm+RGLlvusOL8vOos0Uo4YVmwfrKZLg5P9qvTYOmN4G5KDsj9zAb0Y0irfsm1 DZ41VMnVDFi4cOlwOx1hNgIJU7w/ItfhRXKYGNxQDykH5McBY3wF/y5Jg5v3UOg13Scv TLNwMZlLKhjUJ/5sbGgUURfc0ekbjkYuu/YAyXaDe0e5aDxaTI5Q76tHBpYDQoxjmH5S oV1Y54RFH3JMIcs3zshk2fiOvvs+pJuZNyUecmi2CPkhZDfciNH1pCGmTYkbP+U+qxft Uz60TtILo1/e/oA8nDY1xTqy8oRylQ2kIi7y7EY5h7eUC4th0WIdvep65LOebE6bzvVC /iRQ== 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=z+mms+h6mMl8LvMiwooLKz6H/+GF1JGIljwNgmRuw7A=; fh=oxYhIRFU/WWRP2ZSdpxp4eUIzbMy4dTPBH4hgRafBAw=; b=iibXvD3mwQfWuPtdxmeD/9NoFUFxS6MX7yULmEvKXkYkWAsB8u9z5tFpbQRlqCMcuq XkHx6BzYzQKRe1r4PdEqcsTawGdEcG3+qt1Giky8Rwj6VsgUEKXPdSpluu9HmXLe5ufk 7KCMiPQ6OfOGsKPF7iK2Dc/ZCQhg1mw7G5MFOxVgU1nclBSf51QI5qFfBBcUd3vob7FG L0sdJv4yMbjih3MS4GX3f6NzCWkpENh6iHjH5/ToAsNDRg6RxKEcBBYvNLRAKRhTVJAt mEuc1Sn1m3ckrRPQoRJvm4PzgujFA1YAfw5iOhwBsB0Gg3LoDjni9qV1Y6WHB+heUq2z NtsQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jMAnYe53; 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 a1e0cc1a2514c-860ab75569csi6287241.133.2024.12.13.11.15.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:15:29 -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=jMAnYe53; 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 1tMB3v-0006OX-Jz; Fri, 13 Dec 2024 14:10:55 -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 1tMB3W-0005d2-Dg for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:31 -0500 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3T-00072O-7D for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:30 -0500 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-71e2bc5b90fso1010400a34.0 for ; Fri, 13 Dec 2024 11:10:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117026; x=1734721826; 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=z+mms+h6mMl8LvMiwooLKz6H/+GF1JGIljwNgmRuw7A=; b=jMAnYe53Pf8ZBN4kx+VQlfqfURiLI9kjQg/+KqHYDzFZs9WNVaNp4eE2rTJLU4z+qF h1JWz45jgKGL1o5dx3zLKu/37soEsPcobpyDCeV9pocOnc0I6iff4NITYs00Epy8w6zW 0Cw2+lgMU3WgDFu5HUppK7NMoBfEi/O8t60+142xBrY0cxeEPoIkeTp5MJZLKSbm8OEC r03hV9hKSHV4+Qpjk3fRLv7iD1oZ6HYnOzFOUXGZhlv2PQn3SceEWBkoEtP8EQanDp3r EBQXc6zhK/CkwRfZX61/g34gJ3424ha7QvjSZkl5VBAFq1Vti9r88W2e+aFy8lbY/f2+ yr7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117026; x=1734721826; 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=z+mms+h6mMl8LvMiwooLKz6H/+GF1JGIljwNgmRuw7A=; b=Ki6EllSW4hsGANyQUW1en1KkQmWrGg+xxmbAnsxcta2HFbhUGQnzEST794MaCwp85I 0QoBz5Wasll3SuGjYSKK0JJuiuiS5bQ6DJPx7uTfz98+2kYhVA7J3kq1YDGWOVXxUWag NaIsdF+eMtk7KDNdUsZGGGioYpb5JBf9j9E1JB08Pdnn/4hPgGJQwp9NVMrxfZg1MwnP 1dFPILa6rS2wx/zTV99blgTRtUaYQjpk9/PRY0X6zdj16qSBxc4uTBxH3+GujklciuE4 rsmWoIC4LI7nyS5K9wiZKwzoEwWvxfSLDM4MG4j8+/27j4a/EWfAR2twBLBMahZizjdF LYzg== X-Gm-Message-State: AOJu0YzaBCHAvlaBteJIYQLlqRF/to7wgUPShaAhFoPRv6IVfTIUkXXG x4qo0S4OvYPaHagNfqOvT62+VwoBulTSylav7QGgdpWjxOGTFDz/DdSvUljDvqVvc0rtBoK5X95 NKaey9lVk X-Gm-Gg: ASbGnctKazGjyqh1TMXZ5FIgIqma5YEaTOA326qyUm2FqDxladaaHEp0qj+Nbm+zkKS YzlOH2/mMxwgmBEMH525qdCsD3FuTeICWFCJVACoPzPUumpRL9TpIq7r89rO6VpYrQUtwGFByF+ dTdmb+7UU/Yd2BV8+ylnUD4PonX6vbqFmdJ2IDD0/topWnUOiMMzN4Mm0teoxfeaaV13NyhQMdL EmGYFlQ7yQldx0T32dtEyJ2XlsMj23w7zIJJ5uNX3UOkKgApju+IqVz82RzNCzP X-Received: by 2002:a05:6830:f95:b0:71e:5a:f4e7 with SMTP id 46e09a7af769-71e3b922adfmr2207514a34.19.1734117026028; 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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:25 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: John Snow , qemu-block@nongnu.org (open list:IDE) Subject: [PATCH 30/71] hw/ide: Constify all Property Date: Fri, 13 Dec 2024 13:07:04 -0600 Message-ID: <20241213190750.2513964-35-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=2607:f8b0:4864:20::32c; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32c.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/ide/ahci.c | 2 +- hw/ide/cf.c | 2 +- hw/ide/cmd646.c | 2 +- hw/ide/ide-dev.c | 6 +++--- hw/ide/isa.c | 2 +- hw/ide/macio.c | 2 +- hw/ide/mmio.c | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 0eb24304ee..8ee015c1a4 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1867,7 +1867,7 @@ static void sysbus_ahci_realize(DeviceState *dev, Error **errp) ahci_realize(&s->ahci, dev, &address_space_memory); } -static Property sysbus_ahci_properties[] = { +static const Property sysbus_ahci_properties[] = { DEFINE_PROP_UINT32("num-ports", SysbusAHCIState, ahci.ports, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ide/cf.c b/hw/ide/cf.c index 2a425cb0f2..190914f513 100644 --- a/hw/ide/cf.c +++ b/hw/ide/cf.c @@ -24,7 +24,7 @@ static void ide_cf_realize(IDEDevice *dev, Error **errp) ide_dev_initfn(dev, IDE_CFATA, errp); } -static Property ide_cf_properties[] = { +static const Property ide_cf_properties[] = { DEFINE_IDE_DEV_PROPERTIES(), DEFINE_BLOCK_CHS_PROPERTIES(IDEDrive, dev.conf), DEFINE_PROP_BIOS_CHS_TRANS("bios-chs-trans", diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 6b02fc81ec..942f6c470c 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -313,7 +313,7 @@ static void pci_cmd646_ide_exitfn(PCIDevice *dev) } } -static Property cmd646_ide_properties[] = { +static const Property cmd646_ide_properties[] = { DEFINE_PROP_UINT32("secondary", PCIIDEState, secondary, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ide/ide-dev.c b/hw/ide/ide-dev.c index 03f7967798..cc92531f1c 100644 --- a/hw/ide/ide-dev.c +++ b/hw/ide/ide-dev.c @@ -29,7 +29,7 @@ #include "qapi/visitor.h" #include "ide-internal.h" -static Property ide_props[] = { +static const Property ide_props[] = { DEFINE_PROP_UINT32("unit", IDEDevice, unit, -1), DEFINE_PROP_BOOL("win2k-install-hack", IDEDevice, win2k_install_hack, false), DEFINE_PROP_END_OF_LIST(), @@ -191,7 +191,7 @@ static void ide_cd_realize(IDEDevice *dev, Error **errp) ide_dev_initfn(dev, IDE_CD, errp); } -static Property ide_hd_properties[] = { +static const Property ide_hd_properties[] = { DEFINE_IDE_DEV_PROPERTIES(), DEFINE_BLOCK_CHS_PROPERTIES(IDEDrive, dev.conf), DEFINE_PROP_BIOS_CHS_TRANS("bios-chs-trans", @@ -218,7 +218,7 @@ static const TypeInfo ide_hd_info = { .class_init = ide_hd_class_init, }; -static Property ide_cd_properties[] = { +static const Property ide_cd_properties[] = { DEFINE_IDE_DEV_PROPERTIES(), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ide/isa.c b/hw/ide/isa.c index 211ebc9ba7..a0a7e4837c 100644 --- a/hw/ide/isa.c +++ b/hw/ide/isa.c @@ -101,7 +101,7 @@ ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int irqnum, return isadev; } -static Property isa_ide_properties[] = { +static const Property isa_ide_properties[] = { DEFINE_PROP_UINT32("iobase", ISAIDEState, iobase, 0x1f0), DEFINE_PROP_UINT32("iobase2", ISAIDEState, iobase2, 0x3f6), DEFINE_PROP_UINT32("irq", ISAIDEState, irqnum, 14), diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 99477a3d13..25f8403e80 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -459,7 +459,7 @@ static void macio_ide_initfn(Object *obj) qdev_prop_allow_set_link_before_realize, 0); } -static Property macio_ide_properties[] = { +static const Property macio_ide_properties[] = { DEFINE_PROP_UINT32("channel", MACIOIDEState, channel, 0), DEFINE_PROP_UINT32("addr", MACIOIDEState, addr, -1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ide/mmio.c b/hw/ide/mmio.c index 53d22fb37f..43ab66f347 100644 --- a/hw/ide/mmio.c +++ b/hw/ide/mmio.c @@ -141,7 +141,7 @@ static void mmio_ide_initfn(Object *obj) sysbus_init_irq(d, &s->irq); } -static Property mmio_ide_properties[] = { +static const Property mmio_ide_properties[] = { DEFINE_PROP_UINT32("shift", MMIOIDEState, shift, 0), DEFINE_PROP_END_OF_LIST() }; From patchwork Fri Dec 13 19:07:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850226 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1684945wry; Fri, 13 Dec 2024 11:11:19 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW7ni+lo4+6/bQPjmiWfXOILzTK8ZEf+0v2MDVJ60VYjB+6VhVPil3pFNGYsLMrZosRQxT+SQ==@linaro.org X-Google-Smtp-Source: AGHT+IFtOvCdrnWgnifjL900NVJRTAgA8mXbPHfDmuf0zrZjBIzHcAhecHG4BJAUKm4nMOazr3Jx X-Received: by 2002:ac8:57c1:0:b0:467:60a8:8a9d with SMTP id d75a77b69052e-467a570d642mr66597641cf.8.1734117079377; Fri, 13 Dec 2024 11:11:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117079; cv=none; d=google.com; s=arc-20240605; b=gPawizSOS42my6wP1FIrj/UTGNofsVNl0yNi7/3WlVL63g66Ybdh1bGfIx6aN5MZNl 2nVRSBQdUKGc3wwhGrZdDZDBWggw4ARG02OeOrxNO8kLMbPIhGpHoxq0WlvbwCAV1aH2 BuuBlYHzueGqA0ac6sFL2O16ZclQhtvR9hJj7oSV2wMMkGcYD+RYhjK9Fh4Ego1pJ8CP 3Oszjikg1tpyjQZgvhSleGZOT1L+AIjjauboFCyPQGUDX25s012AilEEQW5lBx0Z/IXu NhqPWm+Cc2g4Cg4CkWAzfZinhBid6vGrAviKXnmNE1yu28KFYuylDfuz06l7v23xME4N 2J+w== 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=AxHsxoCqVHXq4MPkg5fUEdQj30fdSGU3LBmK9dFYU78=; fh=77txB257sOdgLNuvisiWOC6NjEYicCd0m3MUadCmuWE=; b=XUPZVZm6+UZU4ETm98zCgKlSDKMsmr/gCFHu/Z+xm7yDxZL5HQFLLQqxAYtHjRb8gC rdFcVsaCRXhNlgR06TOd5ajWIgtgTZkVLKVd5VOF15SyA5BpVOzPWawyjPzKjL3IuQDO 5oyFs+QwuaIeSpHdLUrXhtjqDHL0jdSQf0998cfcmiJLJavN51Z8VqJ20iI/lmJNaudh jo5C51OtAfJUepliCLWzHAe3hW7fAYNMZrRZZGVDzi3pqzLOIU/YFSzlEk/CLyeJt2Ke 2F9u5eI10K91LdjnBDls5vYKw3+e9czrFYJpwbY+nZWeS0EXgHSMUt20Tt4LT5AvQ4EU Mfxw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xWUFBqJ9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2e86febsi1460781cf.252.2024.12.13.11.11.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:11:19 -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=xWUFBqJ9; 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 1tMB4C-0006i0-U5; Fri, 13 Dec 2024 14:11:13 -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 1tMB3Y-0005fB-Al for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:33 -0500 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3V-00072i-K6 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:32 -0500 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71e1e051e50so556917a34.0 for ; Fri, 13 Dec 2024 11:10:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117028; x=1734721828; 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=AxHsxoCqVHXq4MPkg5fUEdQj30fdSGU3LBmK9dFYU78=; b=xWUFBqJ94WeVAGQydxd0PzWE7SxFfJ/QmHjXxK5Q2Oh5E1pgo0W7fI0KDzWFbyhK1U VpAfLOLzLl5ZiICXP7mZULWtHh2WIO5Eg/qsuDhyMlFh1cnL/npcuD52WtQw1j0h8/bf GOfFPP1Hkmp8DkZas9lEjpVdDHs3s2/cDxuy1TJJzEc+JcaRTsIEkzYPV/+a8wto4mwK fF0qqZvqe4VwsX5VbXx5Y+cxA9mORQ+C+askOVJlek+R8STK49K3bXRsj7O4WNqVpV30 BXDsZf96c3l/35gdKjirRh4T7m1uknivdwGw88zjtpB0Rwc2MrfKDPsRUk0gJSY8The/ 8ZKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117028; x=1734721828; 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=AxHsxoCqVHXq4MPkg5fUEdQj30fdSGU3LBmK9dFYU78=; b=W7W0eFerJjefLKflBOng3NMxjazo8wgil89KrAwFEHzouaGoNTSeWEuv2r9D1fkOGz O0n9fNlY+ivbMh5r+X3xhlPDOk2lDgtStNIwvMzEfbsT1s9kMlqqpReKYnUxijA9yNuY OQjcoCVI9OzS1jJKTxO3Erg4UEoyFyz/NeA+hJuyhEO2wn4bWfAxALbj4ENUpctFa7x4 x8rm1ckxqBk9FI4cnipJJhtyePLO2BIIhaPiY6Rwmf00Xf+u/5FTcvi1jwfA4tmIbrDE YVIAQIK0NuLq1qZ4wWh+MSgMWTPwktHkwzwbWvoexmJnD4FLCMbLA8FhQcRewU7tVSz1 hfAw== X-Gm-Message-State: AOJu0YzWomf0n0+Y+CJSCIxdtssE++BbOfnC2MCCDNSgclDevBSPzJH4 JD5QEY7XoDqY92FjW7JOKYj2HUimzaCV7FrAva9R4JrWZZT2eJkSfDKXzN+WaTz3tORUbWf4bZa dBeKGXHx+ X-Gm-Gg: ASbGncskVwtwEoyxMTIxzgKUffLw9uiWec4Gfcc/lGeNbLTjrS5SWc5OHznJOAYrA4i d60b/hLMCsNBozZe3i68yrzytyjnXnzUH7G+TDdXuBNs0yJ5ASYu7Y8CsdRiNxswFJKF35/DCeP iVSI38/vLJ0nHwZC4qVCY325rHQ+h7FUgqQ05lJ6zLlVnO3FAKiDcugIzgLGk8C1/7coBfSWSJh Dp7s9H3q7foBX86Qxt3jqeBPDcv6Jbx48M2/NhYpyzuWbWahdeUg7dRi1kM8jGr X-Received: by 2002:a05:6830:dc8:b0:718:186a:497d with SMTP id 46e09a7af769-71e3b8164f2mr2133808a34.5.1734117028407; Fri, 13 Dec 2024 11:10:28 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:28 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Paolo Bonzini , Peter Maydell , Gerd Hoffmann , qemu-arm@nongnu.org (open list:Stellaris) Subject: [PATCH 31/71] hw/input: Constify all Property Date: Fri, 13 Dec 2024 13:07:05 -0600 Message-ID: <20241213190750.2513964-36-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=2607:f8b0:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x334.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/input/pckbd.c | 4 ++-- hw/input/stellaris_gamepad.c | 2 +- hw/input/virtio-input-hid.c | 6 +++--- hw/input/virtio-input-host.c | 2 +- hw/input/virtio-input.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c index 04c1b3cbf9..24a133fd25 100644 --- a/hw/input/pckbd.c +++ b/hw/input/pckbd.c @@ -735,7 +735,7 @@ static void i8042_mmio_init(Object *obj) "ps2-mouse-input-irq", 1); } -static Property i8042_mmio_properties[] = { +static const Property i8042_mmio_properties[] = { DEFINE_PROP_UINT64("mask", MMIOKBDState, kbd.mask, UINT64_MAX), DEFINE_PROP_UINT32("size", MMIOKBDState, size, -1), DEFINE_PROP_END_OF_LIST(), @@ -933,7 +933,7 @@ static void i8042_build_aml(AcpiDevAmlIf *adev, Aml *scope) aml_append(scope, mou); } -static Property i8042_properties[] = { +static const Property i8042_properties[] = { DEFINE_PROP_BOOL("extended-state", ISAKBDState, kbd.extended_state, true), DEFINE_PROP_BOOL("kbd-throttle", ISAKBDState, kbd_throttle, false), DEFINE_PROP_UINT8("kbd-irq", ISAKBDState, kbd_irq, 1), diff --git a/hw/input/stellaris_gamepad.c b/hw/input/stellaris_gamepad.c index 17ee42b9fc..b1cc693189 100644 --- a/hw/input/stellaris_gamepad.c +++ b/hw/input/stellaris_gamepad.c @@ -77,7 +77,7 @@ static void stellaris_gamepad_reset_enter(Object *obj, ResetType type) memset(s->pressed, 0, s->num_buttons * sizeof(uint8_t)); } -static Property stellaris_gamepad_properties[] = { +static const Property stellaris_gamepad_properties[] = { DEFINE_PROP_ARRAY("keycodes", StellarisGamepad, num_buttons, keycodes, qdev_prop_uint32, uint32_t), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/input/virtio-input-hid.c b/hw/input/virtio-input-hid.c index 45e4d4c75d..7396385508 100644 --- a/hw/input/virtio-input-hid.c +++ b/hw/input/virtio-input-hid.c @@ -237,7 +237,7 @@ static void virtio_input_hid_handle_status(VirtIOInput *vinput, } } -static Property virtio_input_hid_properties[] = { +static const Property virtio_input_hid_properties[] = { DEFINE_PROP_STRING("display", VirtIOInputHID, display), DEFINE_PROP_UINT32("head", VirtIOInputHID, head, 0), DEFINE_PROP_END_OF_LIST(), @@ -380,7 +380,7 @@ static struct virtio_input_config virtio_mouse_config_v2[] = { { /* end of list */ }, }; -static Property virtio_mouse_properties[] = { +static const Property virtio_mouse_properties[] = { DEFINE_PROP_BOOL("wheel-axis", VirtIOInputHID, wheel_axis, true), DEFINE_PROP_END_OF_LIST(), }; @@ -505,7 +505,7 @@ static struct virtio_input_config virtio_tablet_config_v2[] = { { /* end of list */ }, }; -static Property virtio_tablet_properties[] = { +static const Property virtio_tablet_properties[] = { DEFINE_PROP_BOOL("wheel-axis", VirtIOInputHID, wheel_axis, true), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/input/virtio-input-host.c b/hw/input/virtio-input-host.c index fea7139382..2be2c633ab 100644 --- a/hw/input/virtio-input-host.c +++ b/hw/input/virtio-input-host.c @@ -221,7 +221,7 @@ static const VMStateDescription vmstate_virtio_input_host = { .unmigratable = 1, }; -static Property virtio_input_host_properties[] = { +static const Property virtio_input_host_properties[] = { DEFINE_PROP_STRING("evdev", VirtIOInputHost, evdev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/input/virtio-input.c b/hw/input/virtio-input.c index 3bcdae41b2..edcd94dedb 100644 --- a/hw/input/virtio-input.c +++ b/hw/input/virtio-input.c @@ -300,7 +300,7 @@ static const VMStateDescription vmstate_virtio_input = { .post_load = virtio_input_post_load, }; -static Property virtio_input_properties[] = { +static const Property virtio_input_properties[] = { DEFINE_PROP_STRING("serial", VirtIOInput, serial), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850232 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1685497wry; Fri, 13 Dec 2024 11:12:18 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVoiL6xhPmRMnDJ/QF2asaOyxZUhvCgwmoQJZADd8HusO2fnN7SDFD8+5oKgVUg4QWaFfgaZQ==@linaro.org X-Google-Smtp-Source: AGHT+IFYHwR+j9j41WjXRrZ9Q7L+gbz1i9iR+0nqAwVgV60B7Bk11VQNsN0Nj9QVNlTYk1oZjZI0 X-Received: by 2002:ac8:5808:0:b0:466:886f:3773 with SMTP id d75a77b69052e-467a5723938mr64259261cf.1.1734117138424; Fri, 13 Dec 2024 11:12:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117138; cv=none; d=google.com; s=arc-20240605; b=hhufY5mbCGtow3izGsD6XDEp3HB/rXTn6Lot9S5XMogQnavdeKDq1/zlhRZnD6QPpe vEF9OurMxFFaszJweDDZUdf1d49TBRO3SAHVLLL8bCiCCx9bOtvOB4wBXn2130OGqgYw df+WIjrggQYxVmSoLOcJ51dyIVsISio15K0PY6xv4EA4nwlWSl3QlCL84Dh+yso3vMM5 FKWDLXKrovWU3cq8/IkRz+9Ie7YTcI3PBGEVInN76vAelHLcbolXv4xKIqStxO8nO8NI Rgxk4fRtKgLP9tyLuHuHjurGgpa4yQuVvDQj8t53oyTo6xO4B80zdfr8Qdzfq7Kc+ZjD h0BA== 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=Sp+3GJP1lzXsMdSS4qJT06SIeuNyeMXonBECjOXGBXk=; fh=n7lOj5u0SZLyPUAK77kmPUOfElJbwwp666kA471Yr/E=; b=HSQGSpUYR7E0CuRwVeFOLPxft+EjuHFkTF+UaYhpR0w+gM3qV8cdMMkbAQrqGD7WeB oAcokLmpo1TZgKzdm1BpTnC+gmB3o/BLrNrsNfM8dO3hwGCrCOB6BA6JKIluEuyXOuDY KetSzG+AUseYpwx+eGQyeZbI5pSIr+5eAMWv49vqiGzuZbFd2zRfO7xKVi4UzASCWr7I 41o9/hOYZUCRnZ/3GknVrheEyOXHx/7AQrlPXfDzFHPm/65iePehNdod36wtiFCZp42T 4Ugwyl/9iiTwpSrZLJUGXGfsipUR82ufy7VavN90c4vGo89Is4/dKJoQavcWKrM+5whj XCyw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pmt59n1k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2ed3668si1192741cf.408.2024.12.13.11.12.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:12:18 -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=pmt59n1k; 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 1tMB3n-00066l-Qr; Fri, 13 Dec 2024 14:10:48 -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 1tMB3i-0005wW-Lh for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:42 -0500 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3c-00074c-C3 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:42 -0500 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-5f2c34ae517so849365eaf.1 for ; Fri, 13 Dec 2024 11:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117035; x=1734721835; 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=Sp+3GJP1lzXsMdSS4qJT06SIeuNyeMXonBECjOXGBXk=; b=pmt59n1kHdD9hznu9syGalHHXYu3Euyd00poT/hoe2OofeemOUA3C1zk3yoGRNq8V1 pwUM89Mgrr0GrBs5KYgHSJOzXHCCd5TMgLlqaVXfyT83tbKd6iqaQbhcB90RThDRO+9j RLI4IdrfhW9dkKOc+Q0x6QQEI4C/QbwQOt+vD0cygFVx9JSZ+Rbf1mA2s6h4qqdX7BRy dIzmjtYJgHHxIJpVzjrJMkKzQcs2N4wwJGOYO/TiTEEiZ5966MGQ198cUBwDm6ySuk3i U05YYqLU5UJxTpsd4kFt5NlL/dAemHt5qFb+2uhHuotFd2zAkXuB6Pd4Kck/GJishjl5 FAaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117035; x=1734721835; 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=Sp+3GJP1lzXsMdSS4qJT06SIeuNyeMXonBECjOXGBXk=; b=sH+rRdGQ7ch43Lk1tyB126vSORjXKfRQg2V0wTXIYsN/T9pBR0JnqqZV9F1D+fGgLy tjTs/nHrbQiNp/MMQ7x/bwKuD0IKzuAELF3HW4gYFfiPpGF/jNlKY0rvP//U+DpAfcNR EF1xbCeo1JuKnZDNiN5tHQZozb0AzQT+vLGQETkc/qjjLEZg6R92dO8ZqpjpodfjlAKw VLhEml8aLd/9jtVa2RW062pRcoKxhToNSKV3zyd3BP34v0yh6lPgqkqKmyLrLuLuZ2Po 03v/n/izu066JKApchlNxwOHnmWWgt24x7fvi9wFKjdcMp7o4FjY4wIgmjE99tjRGx9D GYOA== X-Gm-Message-State: AOJu0YwFAocHs/hbdT5mQ+K53sAZVqG/fQUjWW1NwwRSP+PYWpV+WiBl GA7H39LzaZ1SkmLacXClCE25JexJPZB7cvdAV+401aKpu1JvXys7mBPqyvXoAWstj/Dsq1PSjsq 3XaKUSONQ X-Gm-Gg: ASbGncta+PwqAJ96AjAe8/aeuYf013aXwqib4imdqmahWUU3ix36h0Z61YF3eVaPPoy zynfJLV7lzS9hc/wyruQTCUVtv97eqQfoutWXpS/qerv06pyCvK2Alza54Zb6EHJbLMW/mk213A xMQYxnGFM2bjL7MzZ7gschLqFi3pckoKyn5NkLTTVAcIG0Pb4CuSfBl1nQBdLluhhJZ0bL0OMep 0CVyDwFkWnUB3hSzBYlsrsfa/oTL9ZU+1ycF1ksyhnmrrGkVZjg9ID98NuI/YBF X-Received: by 2002:a05:6830:7312:b0:71d:dda1:210a with SMTP id 46e09a7af769-71e3ba78c6bmr2149541a34.30.1734117034795; Fri, 13 Dec 2024 11:10:34 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:34 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Paolo Bonzini , Peter Maydell , Igor Mitsyanko , Laurent Vivier , =?utf-8?q?Cl=C3=A9ment_Chigot?= , Frederic Konrad , Song Gao , Bibo Mao , Jiaxun Yang , Huacai Chen , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Jia Liu , Mark Cave-Ayland , Bernhard Beschow , =?utf-8?b?RnLDqWTDqXJpYyBCYXJyYXQ=?= , Nicholas Piggin , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Yoshinori Sato , Thomas Huth , Halil Pasic , Christian Borntraeger , David Hildenbrand , Harsh Prateek Bora , "Edgar E. Iglesias" , qemu-arm@nongnu.org (open list:ARM cores), qemu-ppc@nongnu.org (open list:e500), qemu-riscv@nongnu.org (open list:RISC-V TCG CPUs), qemu-s390x@nongnu.org (open list:S390 general arch...) Subject: [PATCH 32/71] hw/intc: Constify all Property Date: Fri, 13 Dec 2024 13:07:06 -0600 Message-ID: <20241213190750.2513964-37-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=2607:f8b0:4864:20::c2d; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza --- hw/intc/apic_common.c | 2 +- hw/intc/arm_gic_common.c | 2 +- hw/intc/arm_gicv2m.c | 2 +- hw/intc/arm_gicv3_common.c | 2 +- hw/intc/arm_gicv3_its.c | 2 +- hw/intc/arm_gicv3_its_kvm.c | 2 +- hw/intc/armv7m_nvic.c | 2 +- hw/intc/exynos4210_combiner.c | 2 +- hw/intc/exynos4210_gic.c | 2 +- hw/intc/goldfish_pic.c | 2 +- hw/intc/grlib_irqmp.c | 2 +- hw/intc/i8259_common.c | 2 +- hw/intc/ioapic.c | 2 +- hw/intc/loongarch_extioi.c | 2 +- hw/intc/loongarch_pch_msi.c | 2 +- hw/intc/loongarch_pch_pic.c | 2 +- hw/intc/loongson_ipi_common.c | 2 +- hw/intc/m68k_irqc.c | 2 +- hw/intc/mips_gic.c | 2 +- hw/intc/omap_intc.c | 2 +- hw/intc/ompic.c | 2 +- hw/intc/openpic.c | 2 +- hw/intc/openpic_kvm.c | 2 +- hw/intc/pnv_xive.c | 2 +- hw/intc/pnv_xive2.c | 2 +- hw/intc/ppc-uic.c | 2 +- hw/intc/riscv_aclint.c | 4 ++-- hw/intc/riscv_aplic.c | 2 +- hw/intc/riscv_imsic.c | 2 +- hw/intc/rx_icu.c | 2 +- hw/intc/s390_flic.c | 4 ++-- hw/intc/sifive_plic.c | 2 +- hw/intc/spapr_xive.c | 2 +- hw/intc/xics.c | 4 ++-- hw/intc/xilinx_intc.c | 2 +- hw/intc/xive.c | 8 ++++---- hw/intc/xive2.c | 4 ++-- hw/intc/xlnx-pmu-iomod-intc.c | 2 +- 38 files changed, 45 insertions(+), 45 deletions(-) diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index 62f3bbf203..8be9f22de8 100644 --- a/hw/intc/apic_common.c +++ b/hw/intc/apic_common.c @@ -408,7 +408,7 @@ static const VMStateDescription vmstate_apic_common = { } }; -static Property apic_properties_common[] = { +static const Property apic_properties_common[] = { DEFINE_PROP_UINT8("version", APICCommonState, version, 0x14), DEFINE_PROP_BIT("vapic", APICCommonState, vapic_control, VAPIC_ENABLE_BIT, true), diff --git a/hw/intc/arm_gic_common.c b/hw/intc/arm_gic_common.c index 53fb2c4e2d..e961cd9156 100644 --- a/hw/intc/arm_gic_common.c +++ b/hw/intc/arm_gic_common.c @@ -348,7 +348,7 @@ static void arm_gic_common_linux_init(ARMLinuxBootIf *obj, } } -static Property arm_gic_common_properties[] = { +static const Property arm_gic_common_properties[] = { DEFINE_PROP_UINT32("num-cpu", GICState, num_cpu, 1), DEFINE_PROP_UINT32("num-irq", GICState, num_irq, 32), /* Revision can be 1 or 2 for GIC architecture specification diff --git a/hw/intc/arm_gicv2m.c b/hw/intc/arm_gicv2m.c index d564b857eb..ffa830b433 100644 --- a/hw/intc/arm_gicv2m.c +++ b/hw/intc/arm_gicv2m.c @@ -170,7 +170,7 @@ static void gicv2m_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property gicv2m_properties[] = { +static const Property gicv2m_properties[] = { DEFINE_PROP_UINT32("base-spi", ARMGICv2mState, base_spi, 0), DEFINE_PROP_UINT32("num-spi", ARMGICv2mState, num_spi, 64), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/arm_gicv3_common.c b/hw/intc/arm_gicv3_common.c index bd50a1b079..a8ec615a3f 100644 --- a/hw/intc/arm_gicv3_common.c +++ b/hw/intc/arm_gicv3_common.c @@ -605,7 +605,7 @@ static void arm_gic_common_linux_init(ARMLinuxBootIf *obj, } } -static Property arm_gicv3_common_properties[] = { +static const Property arm_gicv3_common_properties[] = { DEFINE_PROP_UINT32("num-cpu", GICv3State, num_cpu, 1), DEFINE_PROP_UINT32("num-irq", GICv3State, num_irq, 32), DEFINE_PROP_UINT32("revision", GICv3State, revision, 3), diff --git a/hw/intc/arm_gicv3_its.c b/hw/intc/arm_gicv3_its.c index bf31158470..f50b1814ea 100644 --- a/hw/intc/arm_gicv3_its.c +++ b/hw/intc/arm_gicv3_its.c @@ -2002,7 +2002,7 @@ static void gicv3_its_post_load(GICv3ITSState *s) } } -static Property gicv3_its_props[] = { +static const Property gicv3_its_props[] = { DEFINE_PROP_LINK("parent-gicv3", GICv3ITSState, gicv3, "arm-gicv3", GICv3State *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/arm_gicv3_its_kvm.c b/hw/intc/arm_gicv3_its_kvm.c index 35539c099f..68a6144add 100644 --- a/hw/intc/arm_gicv3_its_kvm.c +++ b/hw/intc/arm_gicv3_its_kvm.c @@ -234,7 +234,7 @@ static void kvm_arm_its_reset_hold(Object *obj, ResetType type) } } -static Property kvm_arm_its_props[] = { +static const Property kvm_arm_its_props[] = { DEFINE_PROP_LINK("parent-gicv3", GICv3ITSState, gicv3, "kvm-arm-gicv3", GICv3State *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/armv7m_nvic.c b/hw/intc/armv7m_nvic.c index 98f3cf59bc..6e2803b123 100644 --- a/hw/intc/armv7m_nvic.c +++ b/hw/intc/armv7m_nvic.c @@ -2569,7 +2569,7 @@ static const VMStateDescription vmstate_nvic = { } }; -static Property props_nvic[] = { +static const Property props_nvic[] = { /* Number of external IRQ lines (so excluding the 16 internal exceptions) */ DEFINE_PROP_UINT32("num-irq", NVICState, num_irq, 64), /* diff --git a/hw/intc/exynos4210_combiner.c b/hw/intc/exynos4210_combiner.c index afecef1e15..221dfa912a 100644 --- a/hw/intc/exynos4210_combiner.c +++ b/hw/intc/exynos4210_combiner.c @@ -325,7 +325,7 @@ static void exynos4210_combiner_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property exynos4210_combiner_properties[] = { +static const Property exynos4210_combiner_properties[] = { DEFINE_PROP_UINT32("external", Exynos4210CombinerState, external, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/exynos4210_gic.c b/hw/intc/exynos4210_gic.c index fcca85c6c6..e1b956d990 100644 --- a/hw/intc/exynos4210_gic.c +++ b/hw/intc/exynos4210_gic.c @@ -111,7 +111,7 @@ static void exynos4210_gic_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(sbd, &s->dist_container); } -static Property exynos4210_gic_properties[] = { +static const Property exynos4210_gic_properties[] = { DEFINE_PROP_UINT32("num-cpu", Exynos4210GicState, num_cpu, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/goldfish_pic.c b/hw/intc/goldfish_pic.c index 166a3cba1e..f5343c9d2f 100644 --- a/hw/intc/goldfish_pic.c +++ b/hw/intc/goldfish_pic.c @@ -181,7 +181,7 @@ static void goldfish_pic_instance_init(Object *obj) qdev_init_gpio_in(DEVICE(obj), goldfish_irq_request, GOLDFISH_PIC_IRQ_NB); } -static Property goldfish_pic_properties[] = { +static const Property goldfish_pic_properties[] = { DEFINE_PROP_UINT8("index", GoldfishPICState, idx, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/grlib_irqmp.c b/hw/intc/grlib_irqmp.c index 37ac63fd80..bf53251ea2 100644 --- a/hw/intc/grlib_irqmp.c +++ b/hw/intc/grlib_irqmp.c @@ -376,7 +376,7 @@ static void grlib_irqmp_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(dev), &irqmp->iomem); } -static Property grlib_irqmp_properties[] = { +static const Property grlib_irqmp_properties[] = { DEFINE_PROP_UINT32("ncpus", IRQMP, ncpus, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/i8259_common.c b/hw/intc/i8259_common.c index d9558e3940..c3174f4fdc 100644 --- a/hw/intc/i8259_common.c +++ b/hw/intc/i8259_common.c @@ -193,7 +193,7 @@ static const VMStateDescription vmstate_pic_common = { } }; -static Property pic_properties_common[] = { +static const Property pic_properties_common[] = { DEFINE_PROP_UINT32("iobase", PICCommonState, iobase, -1), DEFINE_PROP_UINT32("elcr_addr", PICCommonState, elcr_addr, -1), DEFINE_PROP_UINT8("elcr_mask", PICCommonState, elcr_mask, -1), diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c index e73c8d4f07..6d566165b0 100644 --- a/hw/intc/ioapic.c +++ b/hw/intc/ioapic.c @@ -476,7 +476,7 @@ static void ioapic_unrealize(DeviceState *dev) timer_free(s->delayed_ioapic_service_timer); } -static Property ioapic_properties[] = { +static const Property ioapic_properties[] = { DEFINE_PROP_UINT8("version", IOAPICCommonState, version, IOAPIC_VER_DEF), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/loongarch_extioi.c b/hw/intc/loongarch_extioi.c index 97d1af5ccc..dd91f89361 100644 --- a/hw/intc/loongarch_extioi.c +++ b/hw/intc/loongarch_extioi.c @@ -423,7 +423,7 @@ static const VMStateDescription vmstate_loongarch_extioi = { } }; -static Property extioi_properties[] = { +static const Property extioi_properties[] = { DEFINE_PROP_UINT32("num-cpu", LoongArchExtIOI, num_cpu, 1), DEFINE_PROP_BIT("has-virtualization-extension", LoongArchExtIOI, features, EXTIOI_HAS_VIRT_EXTENSION, 0), diff --git a/hw/intc/loongarch_pch_msi.c b/hw/intc/loongarch_pch_msi.c index ecf3ed0267..e2eca30660 100644 --- a/hw/intc/loongarch_pch_msi.c +++ b/hw/intc/loongarch_pch_msi.c @@ -83,7 +83,7 @@ static void loongarch_pch_msi_init(Object *obj) } -static Property loongarch_msi_properties[] = { +static const Property loongarch_msi_properties[] = { DEFINE_PROP_UINT32("msi_irq_base", LoongArchPCHMSI, irq_base, 0), DEFINE_PROP_UINT32("msi_irq_num", LoongArchPCHMSI, irq_num, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/loongarch_pch_pic.c b/hw/intc/loongarch_pch_pic.c index b958180591..6a87b1aab7 100644 --- a/hw/intc/loongarch_pch_pic.c +++ b/hw/intc/loongarch_pch_pic.c @@ -411,7 +411,7 @@ static void loongarch_pch_pic_init(Object *obj) } -static Property loongarch_pch_pic_properties[] = { +static const Property loongarch_pch_pic_properties[] = { DEFINE_PROP_UINT32("pch_pic_irq_num", LoongArchPCHPIC, irq_num, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/loongson_ipi_common.c b/hw/intc/loongson_ipi_common.c index a6ce0181f6..d3f894a5bd 100644 --- a/hw/intc/loongson_ipi_common.c +++ b/hw/intc/loongson_ipi_common.c @@ -315,7 +315,7 @@ static const VMStateDescription vmstate_loongson_ipi_common = { } }; -static Property ipi_common_properties[] = { +static const Property ipi_common_properties[] = { DEFINE_PROP_UINT32("num-cpu", LoongsonIPICommonState, num_cpu, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/m68k_irqc.c b/hw/intc/m68k_irqc.c index b4471e185a..b5d10ab1f6 100644 --- a/hw/intc/m68k_irqc.c +++ b/hw/intc/m68k_irqc.c @@ -85,7 +85,7 @@ static const VMStateDescription vmstate_m68k_irqc = { } }; -static Property m68k_irqc_properties[] = { +static const Property m68k_irqc_properties[] = { DEFINE_PROP_LINK("m68k-cpu", M68KIRQCState, cpu, TYPE_M68K_CPU, ArchCPU *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/mips_gic.c b/hw/intc/mips_gic.c index 77ba7348a3..996db095c3 100644 --- a/hw/intc/mips_gic.c +++ b/hw/intc/mips_gic.c @@ -438,7 +438,7 @@ static void mips_gic_realize(DeviceState *dev, Error **errp) } } -static Property mips_gic_properties[] = { +static const Property mips_gic_properties[] = { DEFINE_PROP_UINT32("num-vp", MIPSGICState, num_vps, 1), DEFINE_PROP_UINT32("num-irq", MIPSGICState, num_irq, 256), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/omap_intc.c b/hw/intc/omap_intc.c index a98358d92e..28606f102b 100644 --- a/hw/intc/omap_intc.c +++ b/hw/intc/omap_intc.c @@ -375,7 +375,7 @@ void omap_intc_set_fclk(OMAPIntcState *intc, omap_clk clk) intc->fclk = clk; } -static Property omap_intc_properties[] = { +static const Property omap_intc_properties[] = { DEFINE_PROP_UINT32("size", OMAPIntcState, size, 0x100), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/ompic.c b/hw/intc/ompic.c index 99032ea7f7..8ee1bd64bd 100644 --- a/hw/intc/ompic.c +++ b/hw/intc/ompic.c @@ -128,7 +128,7 @@ static void or1k_ompic_realize(DeviceState *dev, Error **errp) } } -static Property or1k_ompic_properties[] = { +static const Property or1k_ompic_properties[] = { DEFINE_PROP_UINT32("num-cpus", OR1KOMPICState, num_cpus, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/openpic.c b/hw/intc/openpic.c index 2ead4b9ba0..2257ae2ee7 100644 --- a/hw/intc/openpic.c +++ b/hw/intc/openpic.c @@ -1606,7 +1606,7 @@ static void openpic_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, openpic_set_irq, opp->max_irq); } -static Property openpic_properties[] = { +static const Property openpic_properties[] = { DEFINE_PROP_UINT32("model", OpenPICState, model, OPENPIC_MODEL_FSL_MPIC_20), DEFINE_PROP_UINT32("nb_cpus", OpenPICState, nb_cpus, 1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/openpic_kvm.c b/hw/intc/openpic_kvm.c index 838c6b9d99..135fe8301a 100644 --- a/hw/intc/openpic_kvm.c +++ b/hw/intc/openpic_kvm.c @@ -262,7 +262,7 @@ int kvm_openpic_connect_vcpu(DeviceState *d, CPUState *cs) kvm_arch_vcpu_id(cs)); } -static Property kvm_openpic_properties[] = { +static const Property kvm_openpic_properties[] = { DEFINE_PROP_UINT32("model", KVMOpenPICState, model, OPENPIC_MODEL_FSL_MPIC_20), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/pnv_xive.c b/hw/intc/pnv_xive.c index 5bacbce6a4..581659839b 100644 --- a/hw/intc/pnv_xive.c +++ b/hw/intc/pnv_xive.c @@ -2059,7 +2059,7 @@ static int pnv_xive_dt_xscom(PnvXScomInterface *dev, void *fdt, return 0; } -static Property pnv_xive_properties[] = { +static const Property pnv_xive_properties[] = { DEFINE_PROP_UINT64("ic-bar", PnvXive, ic_base, 0), DEFINE_PROP_UINT64("vc-bar", PnvXive, vc_base, 0), DEFINE_PROP_UINT64("pc-bar", PnvXive, pc_base, 0), diff --git a/hw/intc/pnv_xive2.c b/hw/intc/pnv_xive2.c index 834d32287b..5dd305453a 100644 --- a/hw/intc/pnv_xive2.c +++ b/hw/intc/pnv_xive2.c @@ -2354,7 +2354,7 @@ static void pnv_xive2_realize(DeviceState *dev, Error **errp) qemu_register_reset(pnv_xive2_reset, dev); } -static Property pnv_xive2_properties[] = { +static const Property pnv_xive2_properties[] = { DEFINE_PROP_UINT64("ic-bar", PnvXive2, ic_base, 0), DEFINE_PROP_UINT64("esb-bar", PnvXive2, esb_base, 0), DEFINE_PROP_UINT64("end-bar", PnvXive2, end_base, 0), diff --git a/hw/intc/ppc-uic.c b/hw/intc/ppc-uic.c index f2a224f3aa..d683413a83 100644 --- a/hw/intc/ppc-uic.c +++ b/hw/intc/ppc-uic.c @@ -259,7 +259,7 @@ static void ppc_uic_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, ppcuic_set_irq, UIC_MAX_IRQ); } -static Property ppc_uic_properties[] = { +static const Property ppc_uic_properties[] = { DEFINE_PROP_UINT32("dcr-base", PPCUIC, dcr_base, 0xc0), DEFINE_PROP_BOOL("use-vectors", PPCUIC, use_vectors, true), DEFINE_PROP_END_OF_LIST() diff --git a/hw/intc/riscv_aclint.c b/hw/intc/riscv_aclint.c index e9f0536b1c..db195fb1ff 100644 --- a/hw/intc/riscv_aclint.c +++ b/hw/intc/riscv_aclint.c @@ -262,7 +262,7 @@ static const MemoryRegionOps riscv_aclint_mtimer_ops = { } }; -static Property riscv_aclint_mtimer_properties[] = { +static const Property riscv_aclint_mtimer_properties[] = { DEFINE_PROP_UINT32("hartid-base", RISCVAclintMTimerState, hartid_base, 0), DEFINE_PROP_UINT32("num-harts", RISCVAclintMTimerState, num_harts, 1), @@ -462,7 +462,7 @@ static const MemoryRegionOps riscv_aclint_swi_ops = { } }; -static Property riscv_aclint_swi_properties[] = { +static const Property riscv_aclint_swi_properties[] = { DEFINE_PROP_UINT32("hartid-base", RISCVAclintSwiState, hartid_base, 0), DEFINE_PROP_UINT32("num-harts", RISCVAclintSwiState, num_harts, 1), DEFINE_PROP_UINT32("sswi", RISCVAclintSwiState, sswi, false), diff --git a/hw/intc/riscv_aplic.c b/hw/intc/riscv_aplic.c index 4a262c82f0..353eec8136 100644 --- a/hw/intc/riscv_aplic.c +++ b/hw/intc/riscv_aplic.c @@ -904,7 +904,7 @@ static void riscv_aplic_realize(DeviceState *dev, Error **errp) msi_nonbroken = true; } -static Property riscv_aplic_properties[] = { +static const Property riscv_aplic_properties[] = { DEFINE_PROP_UINT32("aperture-size", RISCVAPLICState, aperture_size, 0), DEFINE_PROP_UINT32("hartid-base", RISCVAPLICState, hartid_base, 0), DEFINE_PROP_UINT32("num-harts", RISCVAPLICState, num_harts, 0), diff --git a/hw/intc/riscv_imsic.c b/hw/intc/riscv_imsic.c index 9ef65d4012..adc36151b4 100644 --- a/hw/intc/riscv_imsic.c +++ b/hw/intc/riscv_imsic.c @@ -388,7 +388,7 @@ static void riscv_imsic_realize(DeviceState *dev, Error **errp) msi_nonbroken = true; } -static Property riscv_imsic_properties[] = { +static const Property riscv_imsic_properties[] = { DEFINE_PROP_BOOL("mmode", RISCVIMSICState, mmode, 0), DEFINE_PROP_UINT32("hartid", RISCVIMSICState, hartid, 0), DEFINE_PROP_UINT32("num-pages", RISCVIMSICState, num_pages, 0), diff --git a/hw/intc/rx_icu.c b/hw/intc/rx_icu.c index b2d4338f61..dfe11ade20 100644 --- a/hw/intc/rx_icu.c +++ b/hw/intc/rx_icu.c @@ -361,7 +361,7 @@ static const VMStateDescription vmstate_rxicu = { } }; -static Property rxicu_properties[] = { +static const Property rxicu_properties[] = { DEFINE_PROP_ARRAY("ipr-map", RXICUState, nr_irqs, map, qdev_prop_uint8, uint8_t), DEFINE_PROP_ARRAY("trigger-level", RXICUState, nr_sense, init_sense, diff --git a/hw/intc/s390_flic.c b/hw/intc/s390_flic.c index c3d2b8d765..2963bd5bd6 100644 --- a/hw/intc/s390_flic.c +++ b/hw/intc/s390_flic.c @@ -445,7 +445,7 @@ static void qemu_s390_flic_instance_init(Object *obj) } } -static Property qemu_s390_flic_properties[] = { +static const Property qemu_s390_flic_properties[] = { DEFINE_PROP_BOOL("migrate-all-state", QEMUS390FLICState, migrate_all_state, true), DEFINE_PROP_END_OF_LIST(), @@ -471,7 +471,7 @@ static void qemu_s390_flic_class_init(ObjectClass *oc, void *data) fsc->inject_crw_mchk = qemu_s390_inject_crw_mchk; } -static Property s390_flic_common_properties[] = { +static const Property s390_flic_common_properties[] = { DEFINE_PROP_UINT32("adapter_routes_max_batch", S390FLICState, adapter_routes_max_batch, ADAPTER_ROUTES_MAX_GSI), DEFINE_PROP_BOOL("migration-enabled", S390FLICState, diff --git a/hw/intc/sifive_plic.c b/hw/intc/sifive_plic.c index ed74490dba..49895be803 100644 --- a/hw/intc/sifive_plic.c +++ b/hw/intc/sifive_plic.c @@ -430,7 +430,7 @@ static const VMStateDescription vmstate_sifive_plic = { } }; -static Property sifive_plic_properties[] = { +static const Property sifive_plic_properties[] = { DEFINE_PROP_STRING("hart-config", SiFivePLICState, hart_config), DEFINE_PROP_UINT32("hartid-base", SiFivePLICState, hartid_base, 0), /* number of interrupt sources including interrupt source 0 */ diff --git a/hw/intc/spapr_xive.c b/hw/intc/spapr_xive.c index 283a6b8fd2..09f643d633 100644 --- a/hw/intc/spapr_xive.c +++ b/hw/intc/spapr_xive.c @@ -627,7 +627,7 @@ static void spapr_xive_free_irq(SpaprInterruptController *intc, int lisn) xive->eat[lisn].w &= cpu_to_be64(~EAS_VALID); } -static Property spapr_xive_properties[] = { +static const Property spapr_xive_properties[] = { DEFINE_PROP_UINT32("nr-irqs", SpaprXive, nr_irqs, 0), DEFINE_PROP_UINT32("nr-ends", SpaprXive, nr_ends, 0), DEFINE_PROP_UINT64("vc-base", SpaprXive, vc_base, SPAPR_XIVE_VC_BASE), diff --git a/hw/intc/xics.c b/hw/intc/xics.c index e893363dc9..81bbfdd84b 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -344,7 +344,7 @@ static void icp_unrealize(DeviceState *dev) vmstate_unregister(NULL, &vmstate_icp_server, icp); } -static Property icp_properties[] = { +static const Property icp_properties[] = { DEFINE_PROP_LINK(ICP_PROP_XICS, ICPState, xics, TYPE_XICS_FABRIC, XICSFabric *), DEFINE_PROP_LINK(ICP_PROP_CPU, ICPState, cs, TYPE_CPU, CPUState *), @@ -676,7 +676,7 @@ static const VMStateDescription vmstate_ics = { }, }; -static Property ics_properties[] = { +static const Property ics_properties[] = { DEFINE_PROP_UINT32("nr-irqs", ICSState, nr_irqs, 0), DEFINE_PROP_LINK(ICS_PROP_XICS, ICSState, xics, TYPE_XICS_FABRIC, XICSFabric *), diff --git a/hw/intc/xilinx_intc.c b/hw/intc/xilinx_intc.c index 6e5012e66e..3e860ab582 100644 --- a/hw/intc/xilinx_intc.c +++ b/hw/intc/xilinx_intc.c @@ -176,7 +176,7 @@ static void xilinx_intc_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &p->mmio); } -static Property xilinx_intc_properties[] = { +static const Property xilinx_intc_properties[] = { DEFINE_PROP_UINT32("kind-of-intr", XpsIntc, c_kind_of_intr, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/xive.c b/hw/intc/xive.c index 245e4d181a..308e5743bd 100644 --- a/hw/intc/xive.c +++ b/hw/intc/xive.c @@ -927,7 +927,7 @@ static const VMStateDescription vmstate_xive_tctx = { }, }; -static Property xive_tctx_properties[] = { +static const Property xive_tctx_properties[] = { DEFINE_PROP_LINK("cpu", XiveTCTX, cs, TYPE_CPU, CPUState *), DEFINE_PROP_LINK("presenter", XiveTCTX, xptr, TYPE_XIVE_PRESENTER, XivePresenter *), @@ -1403,7 +1403,7 @@ static const VMStateDescription vmstate_xive_source = { * The default XIVE interrupt source setting for the ESB MMIOs is two * 64k pages without Store EOI, to be in sync with KVM. */ -static Property xive_source_properties[] = { +static const Property xive_source_properties[] = { DEFINE_PROP_UINT64("flags", XiveSource, esb_flags, 0), DEFINE_PROP_UINT32("nr-irqs", XiveSource, nr_irqs, 0), DEFINE_PROP_UINT32("shift", XiveSource, esb_shift, XIVE_ESB_64K_2PAGE), @@ -2002,7 +2002,7 @@ void xive_router_notify(XiveNotifier *xn, uint32_t lisn, bool pq_checked) xive_router_end_notify_handler(xrtr, &eas); } -static Property xive_router_properties[] = { +static const Property xive_router_properties[] = { DEFINE_PROP_LINK("xive-fabric", XiveRouter, xfb, TYPE_XIVE_FABRIC, XiveFabric *), DEFINE_PROP_END_OF_LIST(), @@ -2170,7 +2170,7 @@ static void xive_end_source_realize(DeviceState *dev, Error **errp) (1ull << (xsrc->esb_shift + 1)) * xsrc->nr_ends); } -static Property xive_end_source_properties[] = { +static const Property xive_end_source_properties[] = { DEFINE_PROP_UINT32("nr-ends", XiveENDSource, nr_ends, 0), DEFINE_PROP_UINT32("shift", XiveENDSource, esb_shift, XIVE_ESB_64K), DEFINE_PROP_LINK("xive", XiveENDSource, xrtr, TYPE_XIVE_ROUTER, diff --git a/hw/intc/xive2.c b/hw/intc/xive2.c index d1df35e9b3..3233d3f14e 100644 --- a/hw/intc/xive2.c +++ b/hw/intc/xive2.c @@ -1028,7 +1028,7 @@ void xive2_router_notify(XiveNotifier *xn, uint32_t lisn, bool pq_checked) xive_get_field64(EAS2_END_DATA, eas.w)); } -static Property xive2_router_properties[] = { +static const Property xive2_router_properties[] = { DEFINE_PROP_LINK("xive-fabric", Xive2Router, xfb, TYPE_XIVE_FABRIC, XiveFabric *), DEFINE_PROP_END_OF_LIST(), @@ -1242,7 +1242,7 @@ static void xive2_end_source_realize(DeviceState *dev, Error **errp) (1ull << (xsrc->esb_shift + 1)) * xsrc->nr_ends); } -static Property xive2_end_source_properties[] = { +static const Property xive2_end_source_properties[] = { DEFINE_PROP_UINT32("nr-ends", Xive2EndSource, nr_ends, 0), DEFINE_PROP_UINT32("shift", Xive2EndSource, esb_shift, XIVE_ESB_64K), DEFINE_PROP_LINK("xive", Xive2EndSource, xrtr, TYPE_XIVE2_ROUTER, diff --git a/hw/intc/xlnx-pmu-iomod-intc.c b/hw/intc/xlnx-pmu-iomod-intc.c index 48cd3ae94b..21b9c83658 100644 --- a/hw/intc/xlnx-pmu-iomod-intc.c +++ b/hw/intc/xlnx-pmu-iomod-intc.c @@ -474,7 +474,7 @@ static const MemoryRegionOps xlnx_pmu_io_intc_ops = { }, }; -static Property xlnx_pmu_io_intc_properties[] = { +static const Property xlnx_pmu_io_intc_properties[] = { DEFINE_PROP_UINT32("intc-intr-size", XlnxPMUIOIntc, cfg.intr_size, 0), DEFINE_PROP_UINT32("intc-level-edge", XlnxPMUIOIntc, cfg.level_edge, 0), DEFINE_PROP_UINT32("intc-positive", XlnxPMUIOIntc, cfg.positive, 0), From patchwork Fri Dec 13 19:07:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850233 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1686292wry; Fri, 13 Dec 2024 11:13:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWLZC6Q0UBBhOsQWk6QKMvmo9GRxmlONw818d1CrU3itvVXvlNjQkuwKD3PCiRvHbD9/+9LeA==@linaro.org X-Google-Smtp-Source: AGHT+IHLJGO6y9q6+MzX/fQB7kA4QYc2zvI+DH1cVaU35akAcxdcT2oKzz3wV5y4LhsbA3kTfRac X-Received: by 2002:a05:6214:19c6:b0:6d8:a64d:da51 with SMTP id 6a1803df08f44-6dc8ca3eec2mr61361346d6.8.1734117235564; Fri, 13 Dec 2024 11:13:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117235; cv=none; d=google.com; s=arc-20240605; b=O8BfsGSMbyp4W9Jwrcs41RFk9RK9C5PKGJE+fC9FX7Mo9EbnEbvTOioZjafTO/lp/s Y0qF48GvuVmNDCPdf8IS/GUYnFlJU2amDIky3QdiOg2te2k6pAHAZYe/p+y+pb2B8Bgj 9kPQKlQIuj6kBbNaKvF0k618ll78zss8Iu7NgYoSOKxu0sjj7C0zY2snJKXQBNkCjsaa rQX3TdBTnpDGFJHXFoxh/rnuua4dfdA7eoStjt+JuTwl17f6JqRcEbPOOmeUgsMHpnxx DxjG6RopMbkxUiV1w/bVs26U2C5NsxqycgVIcWWGmQZ82X2p+PtBpdV+3l/dLmwXakpg TFLA== 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=QrrJ4RvuuoGOGZrV9FD04T9DsliVJZ1San+rsea4fSw=; fh=TfZ3X+hhbEYhbEWiRM0DD65CjKY0qEtJrRuV0IObhsU=; b=XOR+gL6SNeIN8B+T4PISztwihsxI+g7ecFGQwk1lJBzF9DLkBwIELfR9GOb3RVwMM7 QydJD5n8gE7XUxWBA9weAQqWkj61EMJqGVpBl7OlcnZcNLAWKYrodNQ46fU6hnGo/uS8 edYonxbPSoCuSAaFpcBdD9Iam2T2AYZ4gTyhVACsA0msIeYn+CwDxZwuyjdY+0MXen4C yBEzdZR9IMWkbaWy0g+PyV3/nafbMU18LmW4aTxHTOJAwN/rdMGG8Q4Xmnp/8IPhqDw2 DFHIPyYMZwy+IE/3/n8rvuJ+mPqEaK7AAGrdZQIQNeUM+JukrOPKRw8Q7s0bZrwnAXv+ EbIg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j79VYs2X; 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 6a1803df08f44-6dccd396113si238086d6.420.2024.12.13.11.13.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:13:55 -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=j79VYs2X; 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 1tMB4G-0006r5-10; Fri, 13 Dec 2024 14:11:16 -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 1tMB3i-0005v9-18 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:42 -0500 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3c-00074m-Mk for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:41 -0500 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5f31e8c2bfaso459675eaf.0 for ; Fri, 13 Dec 2024 11:10:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117035; x=1734721835; 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=QrrJ4RvuuoGOGZrV9FD04T9DsliVJZ1San+rsea4fSw=; b=j79VYs2XZz+S9zc+GSIzSnErTkcQLxL7dPXRMPeQFCu49SVRcW49sU3J2Uwq4jR6T8 /Llj/Tatyz7KOK/oI1oCzy+CjKH68zcNCTRnUhrXWl+s3tGNRC3U7H4WVQndRmsFLPc7 xjgY67X/f+a9OLNifn/IIeJ5vjtaKlnJRsQXmFrnbfgiEgRuNw/PEPFJFwr1ssk2xP3p uPGIUsUSvNc/FUvpyYsewHOF0Oiqv3Jq0zplr3ypRM5kfSTVQ8442aI8gBcJuJT4e8Gg neJv8uHjww7QSmN/WoB5iloWN/sEB7Zklg4Hn1OujKeC5LFVo2+gWjNkQik71D7qZtmL ItjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117035; x=1734721835; 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=QrrJ4RvuuoGOGZrV9FD04T9DsliVJZ1San+rsea4fSw=; b=pOChcrGlJtzDefrpEZ26T1KbY5MXPovFiHPB82tUWcvqH3nizoUUc39a8ZYEikw7N2 wVDI+0EUd+s2eOeSWgJVG60Q+s/3oYGUCxz5h8U5zqTG80lEqIuHXn+PArSuLihjUM7U VZWNhQdKGs4CK3ES+Zod3lEiPkgiuVmVkM3TRD75Nw08ZuwC8U01zpYYiwx6o8dnQ1Gm QREUOKto23ls39gY5c1lCnbV0/4gCI1qIBUA6xBrWv0wGGfQawSzs6pDEmeAxuihKLEu HuJnJ9UNcBCCmigqXgsahLX3Dl5ShBm71s2wuJ43hNbf9VdHqWKZstQArnoluH2FtUsO 15jA== X-Gm-Message-State: AOJu0YyVQBfD/2t73dZUO9k0epG64+WvvEU+ru8fDWycWeRnwyhBHOxD ciDnux//ZXF+lHJY739lYKiYWc+Uw63RArN9wA1NyhzhwydbkX7g4fGV5on3hngyU2Vk2SIQroY VaINw0kUW X-Gm-Gg: ASbGncuPgY5JNKDUqHfZ4YBJehAelo2uR+KLNXhfPPDrcS/M0uZ8lCVVdWPHIspl3+d udoVehBJhBncr8jZxU9MG5gvnhCrEjl5oGiyk56WQe/bVKWZwbMMBEIiraCXn+DPumenJOrdaa1 HZ8C1VlmPWrQP9FWJqPKmCc5YMHmPnVsJVePLdLU04rKIF6Mtb0CztZkvA5em24KxPPdj3Ug0Fk XAja7RDt5PIqaSfaRQGWOIeAJnDJWXXDsGHOFkyGwhHT4Kg4D91G5GQ3wII3kyz X-Received: by 2002:a05:6820:221d:b0:5f2:bb17:f072 with SMTP id 006d021491bc7-5f32948bd92mr2094280eaf.5.1734117035626; Fri, 13 Dec 2024 11:10:35 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:35 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alberto Garcia Subject: [PATCH 33/71] hw/ipack: Constify all Property Date: Fri, 13 Dec 2024 13:07:07 -0600 Message-ID: <20241213190750.2513964-38-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=2607:f8b0:4864:20::c31; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc31.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 Acked-by: Alberto Garcia --- hw/ipack/ipack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ipack/ipack.c b/hw/ipack/ipack.c index c39dbb481f..7ffc4ffe6f 100644 --- a/hw/ipack/ipack.c +++ b/hw/ipack/ipack.c @@ -73,7 +73,7 @@ static void ipack_device_unrealize(DeviceState *dev) qemu_free_irqs(idev->irq, 2); } -static Property ipack_device_props[] = { +static const Property ipack_device_props[] = { DEFINE_PROP_INT32("slot", IPackDevice, slot, -1), DEFINE_PROP_END_OF_LIST() }; From patchwork Fri Dec 13 19:07:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850265 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1691453wry; Fri, 13 Dec 2024 11:26:03 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUAF1PcpTp9ZEm9Lc0bpd2nL1TShjPOe9j8wdXm/KfsBFFiBQ5YDwzrzF9T1MUQCLZM0ZWVsA==@linaro.org X-Google-Smtp-Source: AGHT+IGz4C8BRj6W55KrCX13TgKgUlp2hpbm3wPNTlu+2y34tRmnHLDB5uXGszE4tBWvGp+5y83p X-Received: by 2002:a05:620a:29ca:b0:7b6:d383:3cca with SMTP id af79cd13be357-7b6fbf16063mr542831685a.35.1734117963062; Fri, 13 Dec 2024 11:26:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117963; cv=none; d=google.com; s=arc-20240605; b=IrXzwT8/xi1X2qCVexEtPDm64E4B1lCar1UrfSKvP+Xx63rVDSJTxMbzW9HwZZ01pP 0hDCfKCrmdKPIYgB72G1Ci4hKktGpRW5x/tZGtYY7pRcWt5918AY1NkJpdZZYmRK8fCi J+Wj4qzJJeRdy3wktE147DIty0EM5bXL79R/p6dgkaDmSY8qA4pCBOU4MZKAsbWahSq4 DpBJmJFYVCFvX2tlq2tHeaN/CyYBKoO0NZrkoe5ZZnZorYmZ21eOT6KUq0Ps9jNa+Cn1 dtVk38jzODEbx20VeATsATwY4GFpjJmPKH5gBXLbFesJRSJvnIxvHgG2sphfA1q8Uxhh XOzw== 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=eBPUqFgXPqVkLv31et38XzRlVXlzY7DGcAmres7QK70=; fh=S4XMjC4d3gpQcbNZdWt29G+qH+ozcOvyvWx1qEXvV3c=; b=BNi4p4HOP8am8AyqVleJOrhtRetP9MXpdvxlKBZpHdQIr+BT6jksacu6MOXV8D5Q8V FhLQPp3FyVD8ccB7qNSQurQ2OJE6k+E+MDc4sFv8tU9GIoAz0g7jdACfyPTTAKGZQFIC T6eCo0BTSXKcieRm989fnNPSYve2OCg0BBI5j9XDSnsIZanymSW2bWZpHvNns3smcvZm u4WtjDi3sG/k9hKAjxJf1wdBxFMEpOa+cJ7JN5nsSUletoncWl3+Ve/Mvod9/qhsStB9 Ee0WDxUg4PUHZQEuQU+Ag0fzKJZ9+HHMzyQUwrfNrNCn56o+dDdFl0zbQj3meh480E6K IXKQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZcZ7zT4t; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2f4adecsi1180461cf.722.2024.12.13.11.26.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:26:03 -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=ZcZ7zT4t; 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 1tMB3r-0006IG-EZ; Fri, 13 Dec 2024 14:10:51 -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 1tMB3k-0005z1-2S for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:44 -0500 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3f-000753-2h for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:43 -0500 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-71e3cbd0583so199472a34.1 for ; Fri, 13 Dec 2024 11:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117037; x=1734721837; 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=eBPUqFgXPqVkLv31et38XzRlVXlzY7DGcAmres7QK70=; b=ZcZ7zT4tdhk11j3515x4EThsO3rDbeU0jMFeUU2bb+/imCFBVZM4d9cjArcmWCQNLb AcdHv3KYq6L/i/+J5pw/oZdyGxN87Xrt11ojlFWjEOP6e1l9LZgzO1hUGuDVo/KIqnqO IxTGtFMzUfFmk6kuUHs3fDKZhllED7x9MiqRV4sWos5UPEyDVjce/PRzUu8L5agzvL/z nsQJp96X7tbZuc9ILIXaJe4HsfELkzkLVNvmyU9cFjKobUUrAT3ddgmHwWAWGw+mzcac LYaHoNmVXlXgaMT9N61SjZaQ1frNAQ89K6TcvKOC19vR+9bTnowsRftkfkMiIMD7JggR H0VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117037; x=1734721837; 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=eBPUqFgXPqVkLv31et38XzRlVXlzY7DGcAmres7QK70=; b=k9sxvulS6DpQ0RLrX9T7DlJKL8NilwzXsQnfnhx6LwZ7/pudhzu0/c3P/Vazt17gdy uIO7S2X0jqma/PLu7s2SHN4kIQzGH0c2llGzhpi+rWvWIChCRr+dc8eMt2Pt3pmNFCMr aG7c0KdRTUCG35LbaHdaQSCU0KQsZbQP6B/81Ki5cSJ+UKpt7LDl9zlnXpjFGGHavlVJ CRqDl86/v4pxBR5NCnYJcxCKQu0OSErWJUuijB/GqQL2/sPSH6rS+4ZIRK3OSSpjh6GU Pocmt28rv32rMOzkxV4sAQ9xECUy9M9U0/5ncZctnC/42/2ByXVlIXcO96bf8XUNW0et rWww== X-Gm-Message-State: AOJu0Yz9ECZy6Y9pZs/Mbiq5pqAxjo4l2HsRQiHZBwb5W+NOAs7NujlU Inn/fi0ZYLim1UXldtRWIKotzDCFZLuQuXY00g4rPdaopL18dv6hHB6hiQTcsWhwZCxNmd5irrd sCPL3OJzM X-Gm-Gg: ASbGnctqtpslTiqjxEiXign1OjN2xY8SlTHhBzLCkuBvQ0pFyQjfUqyh7fBnCqrjLeA 5lAXrdDWmZ6FEMTNqjWBDC3S2teRu5IgJighgtF+YbGfvLsxhwCayzbwi+p35F9MdNET0cXKyu8 Y9LXk/6a8jQp5If0G2CnwGbyAZBP47EMBQ8juUwFOufjK0OW6yyYP15LgfTQYr96XD47CWQjm53 yUxFaMlscEHFrSV/w1qif96jjJIzFcXlOR8+UrjktN+MDregCXc00+hLVg15/k5 X-Received: by 2002:a05:6830:f95:b0:71e:1c5:4f77 with SMTP id 46e09a7af769-71e3ba2b104mr2132805a34.20.1734117036827; Fri, 13 Dec 2024 11:10:36 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Corey Minyard Subject: [PATCH 34/71] hw/ipmi: Constify all Property Date: Fri, 13 Dec 2024 13:07:08 -0600 Message-ID: <20241213190750.2513964-39-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=2607:f8b0:4864:20::32b; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32b.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 Acked-by: Corey Minyard --- hw/ipmi/ipmi.c | 2 +- hw/ipmi/ipmi_bmc_extern.c | 2 +- hw/ipmi/ipmi_bmc_sim.c | 2 +- hw/ipmi/isa_ipmi_bt.c | 2 +- hw/ipmi/isa_ipmi_kcs.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/ipmi/ipmi.c b/hw/ipmi/ipmi.c index bbb07b151e..850b3bc463 100644 --- a/hw/ipmi/ipmi.c +++ b/hw/ipmi/ipmi.c @@ -108,7 +108,7 @@ void ipmi_bmc_find_and_link(Object *obj, Object **bmc) OBJ_PROP_LINK_STRONG); } -static Property ipmi_bmc_properties[] = { +static const Property ipmi_bmc_properties[] = { DEFINE_PROP_UINT8("slave_addr", IPMIBmc, slave_addr, 0x20), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ipmi/ipmi_bmc_extern.c b/hw/ipmi/ipmi_bmc_extern.c index 29c5af3cc3..cfec1da87c 100644 --- a/hw/ipmi/ipmi_bmc_extern.c +++ b/hw/ipmi/ipmi_bmc_extern.c @@ -515,7 +515,7 @@ static void ipmi_bmc_extern_finalize(Object *obj) timer_free(ibe->extern_timer); } -static Property ipmi_bmc_extern_properties[] = { +static const Property ipmi_bmc_extern_properties[] = { DEFINE_PROP_CHR("chardev", IPMIBmcExtern, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ipmi/ipmi_bmc_sim.c index 33c839c65a..8a55893e89 100644 --- a/hw/ipmi/ipmi_bmc_sim.c +++ b/hw/ipmi/ipmi_bmc_sim.c @@ -2191,7 +2191,7 @@ static void ipmi_sim_realize(DeviceState *dev, Error **errp) vmstate_register(NULL, 0, &vmstate_ipmi_sim, ibs); } -static Property ipmi_sim_properties[] = { +static const Property ipmi_sim_properties[] = { DEFINE_PROP_UINT16("fruareasize", IPMIBmcSim, fru.areasize, 1024), DEFINE_PROP_STRING("frudatafile", IPMIBmcSim, fru.filename), DEFINE_PROP_STRING("sdrfile", IPMIBmcSim, sdr_filename), diff --git a/hw/ipmi/isa_ipmi_bt.c b/hw/ipmi/isa_ipmi_bt.c index 7b36d51494..16062abb31 100644 --- a/hw/ipmi/isa_ipmi_bt.c +++ b/hw/ipmi/isa_ipmi_bt.c @@ -135,7 +135,7 @@ static void *isa_ipmi_bt_get_backend_data(IPMIInterface *ii) return &iib->bt; } -static Property ipmi_isa_properties[] = { +static const Property ipmi_isa_properties[] = { DEFINE_PROP_UINT32("ioport", ISAIPMIBTDevice, bt.io_base, 0xe4), DEFINE_PROP_INT32("irq", ISAIPMIBTDevice, isairq, 5), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ipmi/isa_ipmi_kcs.c b/hw/ipmi/isa_ipmi_kcs.c index f52b32e590..7e7a37659e 100644 --- a/hw/ipmi/isa_ipmi_kcs.c +++ b/hw/ipmi/isa_ipmi_kcs.c @@ -142,7 +142,7 @@ static void *isa_ipmi_kcs_get_backend_data(IPMIInterface *ii) return &iik->kcs; } -static Property ipmi_isa_properties[] = { +static const Property ipmi_isa_properties[] = { DEFINE_PROP_UINT32("ioport", ISAIPMIKCSDevice, kcs.io_base, 0xca2), DEFINE_PROP_INT32("irq", ISAIPMIKCSDevice, isairq, 5), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:07:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850234 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1686379wry; Fri, 13 Dec 2024 11:14:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU+Ge/dmoRoHvD9tXq5MsvxuZWIUS3XNvlAqB/bI9OgJ619JUNmd7xMwdLzGj5xja74YNW9fQ==@linaro.org X-Google-Smtp-Source: AGHT+IFjk7na9STOq2FnsEbC4I2Pdciuk2WNpmPy51KscAKmGKKEaeMcRdT9FtynvqE4m6fdcKkd X-Received: by 2002:a05:620a:2404:b0:7b6:785e:ce1a with SMTP id af79cd13be357-7b6fbec78dfmr604594885a.4.1734117249549; Fri, 13 Dec 2024 11:14:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117249; cv=none; d=google.com; s=arc-20240605; b=EAiIMqQw9GjruozDrJVhzM/s86r9FCtpubnubYR7GOeInSZ0EjyV0jI8Viw261MjjZ sTpWJMCILXuBbZNEtQAuo6ifXr/guzUaAkF4SWph2f65LFwNtmx/a33DHiWraor/VgRX OD//A6J5kPkGPo0+BH3xAnZ7Q+5cfHbU8ah9NIEIDCFxQi79bM9RFETXk6T7PE9xpGvi 4FsTkfZzQo3oAkw8Ru+kf/hVAUPhgL4OfQnBBl+kg0guc9zZqE2HAIbC/OwyPQIoXE4A fLkAhI498z0exBmb4H0EMahh1Eber3i2U+ay/6Kb+psxbmbc+VJtiN2qdGK50oUy9j6x N8EA== 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=1Z1t6swvy8upy2Om0CJmkfNPeZpdljfu+4C2dIJjYZg=; fh=z6Tyby9adcluQJHRMH5Onm0DVTg7hXtNwDBoRuZEeXk=; b=EDlND3Hzzj5zZ2ZjNLm64pImcnrE0q6SzoGWf0+cpyJ0VQfIwI9GXg2RnxCADszzdg 9yCa8Pit4Q71REtN9luycyMVU/G19VWpHWAiHt3OgvjnAXGDhM1t6UGWSlPWH4XDjo1J +d4NnydJ/bEJnX2zwKQaweWAhBr8Du32Mdnf7Sw52FZCHM772eT/+xoLAL3hjfVLqc6U o9LmEns/OraaKqnzR40tTUuu/ykma2qEYdFQ9sIzSPto4I2YWBoM7V3cnekLuWbtOiji r8dRTE3xPc2z9V/mqykfCCz1RWnx3aLGPP5+TAyCiaRw/leeHR1Qvat+l2z4Heq3cowN f42Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SVvyCLQz; 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 af79cd13be357-7b7048d63b4si9708585a.463.2024.12.13.11.14.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:14:09 -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=SVvyCLQz; 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 1tMB4K-0007DZ-8l; Fri, 13 Dec 2024 14:11:21 -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 1tMB3m-00065T-LA for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:47 -0500 Received: from mail-oa1-x33.google.com ([2001:4860:4864:20::33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3f-00075C-GX for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:46 -0500 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-29e70c9dc72so1004749fac.0 for ; Fri, 13 Dec 2024 11:10:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117038; x=1734721838; 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=1Z1t6swvy8upy2Om0CJmkfNPeZpdljfu+4C2dIJjYZg=; b=SVvyCLQzy8LfC2/DSkjt92EKLvHQu5cSpIcsulwgGj367bUsm029tJi0ub3P5wpNiZ Tji35/1NSwY4cX7d9l/5PQeE5Dnd75wE4kHdluNVDpGOnjcbXxRz4erreFlmucndRx4L jb+dxOj6FibBWsDCX2bHgwgHF94VOJGIt6GJtsRbCtXYBEzd4MYBRAS0kovRD6HONjUa vSlNslhGiW8tdRFbOFbS0xX9+5KLdf6B+PTWdMGPX2/Kz64iqqwvW63cK2jOk6L3hlPp +SXXg7VmE3jFe8zR59EXXvWrZA4nIPcfmscVIEy6AOWtwBvBYEGcoqFjfTTRQObOEMV2 FBYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117038; x=1734721838; 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=1Z1t6swvy8upy2Om0CJmkfNPeZpdljfu+4C2dIJjYZg=; b=pHpDYHa831hbCNf/jOZ9l0svYLWItnogMbeYs/s4+D0CxbwgjXtx8voSQc+9cKWy9+ ZIz1H0jhk2MKdDlWIvu4XKqPSuC8JbM3Jc2n4fTo5MMEk4f9o0K7n6G+tjMFpgurMA+6 omDGfVMF4K2YqQ9zjuHrzjUDtnL6xOX+aRlURTspK7UAVLHuc5EOS/6iPtXZ/PZUOjym nxyuLD0intUmR9m/06Afyy6Itn/AB6hbYSf0r5ks5kf6kecLGtD2hs1TLEsBDEixYY6L 7pmGPVCETPn6nH+0xksTw8sirtYKZEQarofpZZO4XrNBCz/jf4ZQqev7ylrXTFZEMlYt i5nA== X-Gm-Message-State: AOJu0Yw4jxUS6FypZ4nEU6exTyWJ9E91JUK7RZc/b6HneSPBh+5ghciX rzLIU1ZFmw3YKsj+ZOvku0hYCBOFV4Dw/bp5SAKiHZgQj4GOQiIK1f0+YcwX/wd0mLd6fZtrmaF M9l/WIzUh X-Gm-Gg: ASbGnctZaWNwXh2sP3UoZ+nSk+HR0t6RQrfKgvwsM3jDfaUNIjgdX6VolebU42+RDXo SRuupw/Kuvi93G7FAy0eiXtqQHURYfK1Xp/MXLdBm0AUY+A33OqStefkVAZz7BZrqfhx88vMXED SCISd6ak7SgSmcl1whXs/ubmGKVPZUzaC1nA2OQ6RkSCGvAwFXWqW8J5p7gXBy5Z5m1Hqh2vZ0D 4ennwabhM0Q9OOfANfws63qQ/xrSBYBxZL6bDkBoeFJvlS7ZYcibZuFXCyy30qZ X-Received: by 2002:a05:6808:189e:b0:3eb:5d3a:5b20 with SMTP id 5614622812f47-3eba67f5459mr2225644b6e.4.1734117038116; Fri, 13 Dec 2024 11:10:38 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:37 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Marcel Apfelbaum , =?utf-8?q?Herv=C3=A9_Poussin?= =?utf-8?q?eau?= , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Aurelien Jarno , qemu-ppc@nongnu.org (open list:PReP) Subject: [PATCH 35/71] hw/isa: Constify all Property Date: Fri, 13 Dec 2024 13:07:09 -0600 Message-ID: <20241213190750.2513964-40-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::33; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x33.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=unavailable 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/isa/lpc_ich9.c | 2 +- hw/isa/pc87312.c | 2 +- hw/isa/piix.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c index dabd1217dd..378244aa8f 100644 --- a/hw/isa/lpc_ich9.c +++ b/hw/isa/lpc_ich9.c @@ -826,7 +826,7 @@ static const VMStateDescription vmstate_ich9_lpc = { } }; -static Property ich9_lpc_properties[] = { +static const Property ich9_lpc_properties[] = { DEFINE_PROP_BOOL("noreboot", ICH9LPCState, pin_strap.spkr_hi, false), DEFINE_PROP_BOOL("smm-compat", ICH9LPCState, pm.smm_compat, false), DEFINE_PROP_BOOL("smm-enabled", ICH9LPCState, pm.smm_enabled, false), diff --git a/hw/isa/pc87312.c b/hw/isa/pc87312.c index f67155498d..7bb2af817d 100644 --- a/hw/isa/pc87312.c +++ b/hw/isa/pc87312.c @@ -327,7 +327,7 @@ static const VMStateDescription vmstate_pc87312 = { } }; -static Property pc87312_properties[] = { +static const Property pc87312_properties[] = { DEFINE_PROP_UINT16("iobase", PC87312State, iobase, 0x398), DEFINE_PROP_UINT8("config", PC87312State, config, 1), DEFINE_PROP_END_OF_LIST() diff --git a/hw/isa/piix.c b/hw/isa/piix.c index b4a402f61b..8ec9c63b8a 100644 --- a/hw/isa/piix.c +++ b/hw/isa/piix.c @@ -408,7 +408,7 @@ static void pci_piix_init(Object *obj) object_initialize_child(obj, "rtc", &d->rtc, TYPE_MC146818_RTC); } -static Property pci_piix_props[] = { +static const Property pci_piix_props[] = { DEFINE_PROP_UINT32("smb_io_base", PIIXState, smb_io_base, 0), DEFINE_PROP_BOOL("has-acpi", PIIXState, has_acpi, true), DEFINE_PROP_BOOL("has-pic", PIIXState, has_pic, true), From patchwork Fri Dec 13 19:07:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850279 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1694592wry; Fri, 13 Dec 2024 11:33:35 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU0xZFmLD9VbmnBQIBrpS/X7iUajkHm7rt62bLFqHaZdj/sYPaDRX9h498Sk/bsEZ3HYQ9pKg==@linaro.org X-Google-Smtp-Source: AGHT+IGmP+O6KZKKDSQG0Bb8KW/lZ7wlEy39wfIMpH1WUgSrKSFc1rhvcvV2EnUSQecseVXX4qYh X-Received: by 2002:a05:622a:296:b0:467:7ff3:e4bf with SMTP id d75a77b69052e-467a5873d68mr61667901cf.51.1734118415459; Fri, 13 Dec 2024 11:33:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118415; cv=none; d=google.com; s=arc-20240605; b=DW2bQC7y/Xnrv8A0iNutJ8t+btp1NM+mlF4PnKeLt9ehRIuleJPqvKo19CiQlNQ4bf e24G+OD0FMYQto9miKRaaIHRr2QveUoAOoj60+sMyxXH6fBZtCL2vCLE0+7egs4cKz+0 4rL7fUBfq8J/CZo7Z7HjAVYEfxxLuIPrZSgt6JI0K3I9a/x56YXlsPMsPJd1yji1n58b cymrtcFmwK6PMnE8dld92w6AzJxro2RDagRG8EE9yET15ASHem89PBLzhXbJTJByO4Cb msSFbmdkZatCvT0xU2H78JoAvDquwkc7uM/oGHV3SDE/RpfW2kZO/A16XOB2TF6xZP3e oETw== 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=sYpzCIIWLR+bvPU5Npbd9jfQ0yZt4mKlJCxKK1JYabc=; fh=jEMUlOhRchVnwxdOriHWDghOaH0lX23dQXVcYqElGvo=; b=P1EGKk4LPDtMH0JrbKXgYL0nOta1B7h4fdOg3KLWv3uP6Zb6eudJBM+SzQpk9C4HC8 Abgt9nrQskibT1mN3GDytgoKXQYvR+8M3XVs4/6hxQDI4Vjk4/LiGy/U5IXDZM0MadYh Bi3Uo9QNdGKb3m2TnP17JlSluFF98cNW/j6mnb43AxlBKj3CIKGYI+W1quKJJoNbHkjG oj1qtAguKlnKqQA9+C8ODP/3hqvBSsGenDcu9JXAptHFnZwikIJ2X8U/fCMTmnj5iL3j f4yxwTI9ge13oidcZfoVKmM4PSxvJtac19hchBPQAbev6DrTYuYh6HXQjmApjwYeO2Ih jK3A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZaqTBO0F; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2f1c5f4si1314191cf.616.2024.12.13.11.33.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:33:35 -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=ZaqTBO0F; 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 1tMB6l-0005nL-Ih; Fri, 13 Dec 2024 14:13:51 -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 1tMB6j-0005bM-B4 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:49 -0500 Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6c-0007SD-Of for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:49 -0500 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-2a383315d96so998183fac.3 for ; Fri, 13 Dec 2024 11:13:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117221; x=1734722021; 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=sYpzCIIWLR+bvPU5Npbd9jfQ0yZt4mKlJCxKK1JYabc=; b=ZaqTBO0FNtQVwgom9XtgEvI30PJTwyd/ilPv8Lql9H6wkUFnzUgKcIaqDv6SD2AJ/D ss7JMB8urm25g7dN7QS+ygXo3ZNB7BCFeuWLVUGvnUIUtYUGBuvigu8Z8KbmWf9mlzi9 M8D5p1qi2rp03NmFxBhVxLJX4V9Nmvbd0iezJY5/Hzge30QjO96O5Z8+zY2SPKfbTTvc VyweYR9ToQo7vBXvctOKhoQUjZjHMGs8RJVLpAQLsXpu0S1djSS1HPGmuvwKD/OUH+Cw nisDTEd06UCqAQ+kXCoz9gVMkr3+JEd23yORUPHG8TwIl380C6Y/D6oPsJIju21Y6q8d nnXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117221; x=1734722021; 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=sYpzCIIWLR+bvPU5Npbd9jfQ0yZt4mKlJCxKK1JYabc=; b=rCmaFL8amHwbNlyygJ2sbcA+7ZMzHcgvU03pChbVrLJSnRiEAaETAKUQ6kiq0YTi4O 7Ka1OagBS/ixj1UnPaqcrzkvJF38S4JNtXZfV6yZ65ssTDbxjWzhfYwsWz5UHPIH0N0L /yo7Dy1ZHHc2vnNzpNLY2YmMaYNVbHLzSEteKdLOLdi30M3TY3l3tqonyBZInVDb2nzj ibKKGSjQ/p+lfB2ToieXCNKwt5Wu6j54+rvaNESrg8UXYHdbfHsMUlNcZFMdMuYq38Fe fCMkl+YE9RAsv+xHVduF0bEBWPQoSVrAYITERnDDqKC1x90NLJLjaTzgAaCNG77hEpCr IQKw== X-Gm-Message-State: AOJu0YxYUO7JX8qZgI2Im0/toOzLU9UeFP+CB8VNbou2FxxoqxY1yaHr A5vI/w37LWR5cKZZtf9b2a0piMH9HZwURnU8Sf3MgEj/RAqBG5KCQEia9JzQoG7bOhgcfwq4IPE INjMPTL0T X-Gm-Gg: ASbGncs33RIDNfEwDY68U4BxiH0D+yk9SszZ3Esu6H1EvuX2VCXLXO1e1jKYa+MQGe3 viXKKLune8IeEGYBqlr/iji9w/o8/kvImrOmdOGBIeGLPiq/GRGH0yu7v6/D6l6gAxuK1S+OS9t f6ITHBf9ALM83mCWyfsvCi+P5gtzoAIi55nc/LQ/ImlPxLrCK/Ih+uDg2S4Ax9HTQPH+tV1eHUS f/saMFpqxbKwPclNhSwh5Xis+A3lUq3XcBc/VwaQlaJrzp12VMI0mAawFEt/Cbq X-Received: by 2002:a05:6808:f88:b0:3e8:1f5d:b804 with SMTP id 5614622812f47-3eba6871639mr1726929b6e.15.1734117221467; Fri, 13 Dec 2024 11:13:41 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:40 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Thomas Huth , Laurent Vivier Subject: [PATCH 36/71] hw/m68k: Constify all Property Date: Fri, 13 Dec 2024 13:07:10 -0600 Message-ID: <20241213190750.2513964-41-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::31; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Thomas Huth --- hw/m68k/mcf5206.c | 2 +- hw/m68k/mcf_intc.c | 2 +- hw/m68k/next-cube.c | 2 +- hw/m68k/q800-glue.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/m68k/mcf5206.c b/hw/m68k/mcf5206.c index 7247cdbe5e..45e5f74600 100644 --- a/hw/m68k/mcf5206.c +++ b/hw/m68k/mcf5206.c @@ -600,7 +600,7 @@ static void mcf5206_mbar_realize(DeviceState *dev, Error **errp) s->uart[1] = mcf_uart_create(s->pic[13], serial_hd(1)); } -static Property mcf5206_mbar_properties[] = { +static const Property mcf5206_mbar_properties[] = { DEFINE_PROP_LINK("m68k-cpu", m5206_mbar_state, cpu, TYPE_M68K_CPU, M68kCPU *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/m68k/mcf_intc.c b/hw/m68k/mcf_intc.c index 9fc30b03ba..c24b0b715d 100644 --- a/hw/m68k/mcf_intc.c +++ b/hw/m68k/mcf_intc.c @@ -177,7 +177,7 @@ static void mcf_intc_instance_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->iomem); } -static Property mcf_intc_properties[] = { +static const Property mcf_intc_properties[] = { DEFINE_PROP_LINK("m68k-cpu", mcf_intc_state, cpu, TYPE_M68K_CPU, M68kCPU *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/m68k/next-cube.c b/hw/m68k/next-cube.c index 08886d432c..a37ce00874 100644 --- a/hw/m68k/next-cube.c +++ b/hw/m68k/next-cube.c @@ -914,7 +914,7 @@ static void next_pc_realize(DeviceState *dev, Error **errp) * this cpu link property and could instead provide outbound IRQ lines * that the board could wire up to the CPU. */ -static Property next_pc_properties[] = { +static const Property next_pc_properties[] = { DEFINE_PROP_LINK("cpu", NeXTPC, cpu, TYPE_M68K_CPU, M68kCPU *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/m68k/q800-glue.c b/hw/m68k/q800-glue.c index e2ae7c3201..0d8cb8b1cb 100644 --- a/hw/m68k/q800-glue.c +++ b/hw/m68k/q800-glue.c @@ -203,7 +203,7 @@ static const VMStateDescription vmstate_glue = { * this cpu link property and could instead provide outbound IRQ lines * that the board could wire up to the CPU. */ -static Property glue_properties[] = { +static const Property glue_properties[] = { DEFINE_PROP_LINK("cpu", GLUEState, cpu, TYPE_M68K_CPU, M68kCPU *), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850273 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1693566wry; Fri, 13 Dec 2024 11:31:19 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVcvywWliPoSeGnJRnbBBMeHBzBcaSdNTyWzT12F3WYezv1iyIXwZx15Xv3R9pW9AIZA9C8GA==@linaro.org X-Google-Smtp-Source: AGHT+IFJtqSBudewn5e6ZrNjrpfHeXNsjCHVcfnv6R6RPnbFVNm56CjgVjGrIOeXOSVaS62RuatZ X-Received: by 2002:a05:620a:438b:b0:7b6:cbfb:4830 with SMTP id af79cd13be357-7b6fbf44fcbmr537157685a.62.1734118279150; Fri, 13 Dec 2024 11:31:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118279; cv=none; d=google.com; s=arc-20240605; b=IJTOAiO+Eduj0qggUbHN9mKS3yI2EO3HGPULEyUsNZhowThJZ2QWT1zAN+VcFQtTcJ BDAm7vZqrpPTYYQNft2FZiXngpvWD6KElEbnGusk2V8UlO4yaaxEpfQy9MifmEnN2aJu KBWDk3T5QfioDbeO+P+fQStTSSWnKNcTOPyNHpAqlt/K0ABBiMV/bk/9O6grr1waP+lZ HxhawAaDuA0/BVrBi1cq0Qie4GvssvZOb0y0mP6F4DrX2zxpyfTxEMxKYZRtdPoyB4JN Phw9WTISLr6Tq0Q68lApJwLg6P6VSIXrGX7E8U9TdUPRn0iQ4HMJrlXc1BVQZwbLrqRE ATmw== 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=gHwJArgtR7CjMdMdWS4p4NXW2ugDhJf5dpnL9eQostM=; fh=+NtcpIaa+wlXI4uXPcdDd6nPRCuEO6DkIkuoJoJ8qLM=; b=GZpw0kfRO6ABwjNDsThtEc5KPUxkSHglnMZkjk0e5QeCSytSx9bk5FElKaer9cinGi id9lmEFtw/7DaKIx6FuRYBz8l2QYsSvzLZo+M2yqzZPQ5v3R1NOzkYb5RNfu0LueSU3R eCdoV8rExjX+EvPuKLsLlSgcLJQXk4usP5PKyft9/3ciatMSoV6plkn1jl81Y+f9f66x B1oSrH8wumaGWywhwnCHFKL5ZYG8eVrZbRPsdgXJrl6FH3nA2XWj9R+PGUJsnvgZ4Jl4 GfjdC8GtNUZ7pn1b6iRnHa9eGAh6b+1rT+bPbi1qnTHfmdaGrVOkrdW6buh0PWrcQOIq vVag==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SXcrlsGG; 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 af79cd13be357-7b7048e2918si13719085a.494.2024.12.13.11.31.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:31:19 -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=SXcrlsGG; 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 1tMB6n-0005uC-S8; Fri, 13 Dec 2024 14:13:55 -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 1tMB6l-0005mQ-6O for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:51 -0500 Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6f-0007SU-9Q for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:49 -0500 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-294ec8e1d8aso1684567fac.1 for ; Fri, 13 Dec 2024 11:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117223; x=1734722023; 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=gHwJArgtR7CjMdMdWS4p4NXW2ugDhJf5dpnL9eQostM=; b=SXcrlsGG66rbccSDoUWD1lH8x2od0SxfJZHZxdxnKcKYGBBuVDiI7yShG4eukwvv2F Uvo8dNNeaPwwqGSluNxgV0NYolYt9WPx0vKScg2OIAsOgbu95RdJSgFmsDvk6MG0w5Ws OeFnboJIuRgUmGyR6ZAAEC/5I/Jn+Qcv7nHktXmn56r8cK/bELpLjSQs+jwr25GeUwEz YWC19wtI9jcOkjVJiHOsRT4yBdrF3+BgBLAsncLIqFJZLC1Dt3ZGm6CIt4A4Uaz8wQOF JXBAgnxT2tWCEpCk4Gum7exoagOmJscOwapKnQYlx4I8q8HQQzJGzu8ueJCxdf6TAqMQ XksA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117223; x=1734722023; 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=gHwJArgtR7CjMdMdWS4p4NXW2ugDhJf5dpnL9eQostM=; b=W0MEv4eNDea/DWfOo/W11maYrVFGnMwRM6zWH4rutMo9wxOw4XERYGtd4vwojuaxQf DA4SfbsvWMJ6pn1Iy6mqCHVB7VwyGv3SA9sHMfMupeBzRIThgWHkpULZKAEwkZF2SnDV BDC1KygG6+P34OvLKAkM7JxUN198cRFkKvMLSqbipDD/ukTtqA1RbKYrS7WjjkjTKlFr c3+WJ2dTeB8cnZz0O6L3TvZ+9UK/2dxKNOL/0RG7MQMVDAak6r32HOsG2RZuIkc0oWYY ih3/C3IUK+XjsUX2P8oXC297vB1qVLvx8WRisA44/RzWi9aJmspFoQ57/xQ7MnQZmCgy mbxg== X-Gm-Message-State: AOJu0Yz2+yFQhN2K4Rj19xF4HmZEg7gWTjT37Tuolxp11070YTDsxqyC j2LKOnyUVla53LoANynEWLY/T2UviDTB/nHiWg5hEUhHA7ZKj7IlHOMijqGxMyIZ4lRLRUw9MUZ lzDVVxxYM X-Gm-Gg: ASbGncs0Iw6Gc+uKorDfcAQ3hMStFS2Rc6UyRH5+Ix1/EpQV6na6hoGgoax5QSgc8KE tWn07tJQBkS38N6qeS7QSqNxHZmli2KKx90mDWgmVGQo6AZev5pMjLHYA4RM/onHR7Ckb4Giyws XYxviDyzKJXQ2AY3uzLUQvQf5FVe9lI9eFhFFY5h8pZW9WeB7MtgMMbCNqn20g8/gL3TKDkh4l+ vu6Z1pkdKMGcBd85m3VT6Ocw+3uPBdtlNOrhN8CQvcA+xKr/F0pdxpY9h51ts9R X-Received: by 2002:a05:6808:f12:b0:3eb:5ab2:5db2 with SMTP id 5614622812f47-3eba69993acmr2562050b6e.37.1734117223453; Fri, 13 Dec 2024 11:13:43 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Jonathan Cameron , Fan Ni , David Hildenbrand , Igor Mammedov , Xiao Guangrong , Alexander Bulekov , Paolo Bonzini , Bandan Das , Stefan Hajnoczi , Fabiano Rosas , Darren Kenny , Qiuhao Li Subject: [PATCH 37/71] hw/mem: Constify all Property Date: Fri, 13 Dec 2024 13:07:11 -0600 Message-ID: <20241213190750.2513964-42-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::2a; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2a.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- hw/mem/cxl_type3.c | 2 +- hw/mem/nvdimm.c | 2 +- hw/mem/pc-dimm.c | 2 +- hw/mem/sparse-mem.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mem/cxl_type3.c b/hw/mem/cxl_type3.c index 5cf754b38f..12205c4d32 100644 --- a/hw/mem/cxl_type3.c +++ b/hw/mem/cxl_type3.c @@ -1216,7 +1216,7 @@ static void ct3d_reset(DeviceState *dev) } -static Property ct3_props[] = { +static const Property ct3_props[] = { DEFINE_PROP_LINK("memdev", CXLType3Dev, hostmem, TYPE_MEMORY_BACKEND, HostMemoryBackend *), /* for backward compatibility */ DEFINE_PROP_LINK("persistent-memdev", CXLType3Dev, hostpmem, diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c index 1631a7d13f..10506d52e4 100644 --- a/hw/mem/nvdimm.c +++ b/hw/mem/nvdimm.c @@ -246,7 +246,7 @@ static void nvdimm_write_label_data(NVDIMMDevice *nvdimm, const void *buf, memory_region_set_dirty(mr, backend_offset, size); } -static Property nvdimm_properties[] = { +static const Property nvdimm_properties[] = { DEFINE_PROP_BOOL(NVDIMM_UNARMED_PROP, NVDIMMDevice, unarmed, false), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c index 27919ca45d..49c5f9fd44 100644 --- a/hw/mem/pc-dimm.c +++ b/hw/mem/pc-dimm.c @@ -150,7 +150,7 @@ out: return slot; } -static Property pc_dimm_properties[] = { +static const Property pc_dimm_properties[] = { DEFINE_PROP_UINT64(PC_DIMM_ADDR_PROP, PCDIMMDevice, addr, 0), DEFINE_PROP_UINT32(PC_DIMM_NODE_PROP, PCDIMMDevice, node, 0), DEFINE_PROP_INT32(PC_DIMM_SLOT_PROP, PCDIMMDevice, slot, diff --git a/hw/mem/sparse-mem.c b/hw/mem/sparse-mem.c index 6e8f4f84fb..8d681adfc0 100644 --- a/hw/mem/sparse-mem.c +++ b/hw/mem/sparse-mem.c @@ -96,7 +96,7 @@ static const MemoryRegionOps sparse_mem_ops = { }, }; -static Property sparse_mem_properties[] = { +static const Property sparse_mem_properties[] = { /* The base address of the memory */ DEFINE_PROP_UINT64("baseaddr", SparseMemState, baseaddr, 0x0), /* The length of the sparse memory region */ From patchwork Fri Dec 13 19:07:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850252 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1689406wry; Fri, 13 Dec 2024 11:20:39 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVfBd3VsDMJOAPMs0b/tgfcTh0kvw1Z5hWeRvg7nYA+xyQj3o9QvswSXizZNBGGqnFaMSEjaQ==@linaro.org X-Google-Smtp-Source: AGHT+IF5iAJfhFVOhNvg8j8ZeSUnfTWruBCGzajrQ360FkuEs25T28I/S5P7ZEtU7oga/6ieP+xY X-Received: by 2002:a05:620a:4629:b0:7b6:eb12:d732 with SMTP id af79cd13be357-7b6fbf459bcmr555008285a.61.1734117639306; Fri, 13 Dec 2024 11:20:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117639; cv=none; d=google.com; s=arc-20240605; b=TUKfnM40pHg39rwMvGgF65/KliIfxy5A4Yz9U/Txyrpz7IL0rv8RLADHQrdIjXYuel E0WZRaC75TJlbuEr23/ZdF0PRLgpV/wUcHeZO9KI0RDPeEEI4uGvjx9ckZltukWjSHN6 KeuONFdUM/qb7ZxCAkAr3HtD5CyrCgWKnbBFTggAvwx4kEhVkbT1vLitUvtUmOcb4lcJ 5zx+lEj/y9yWKkSOpKLNiNaMsNMuNaV9K+k8o4dEyIykzottnDSVvO4j2EF4SboPMHzv YnX6LhViNkQTW2hO90w4FESllo7E9vHyBpeglMnT+JncTyLOh7gZ0h0YWw5J27GrANMK Ik6Q== 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=2mACfDBbl1zp2rBr4xmrT6K6hg/pPK23y61jj5zZUfg=; fh=T6EAW5wAIwJc94Hf988QOQsVlLgYkOpEiwIqp9A3GQs=; b=IEcPDT/BK/WB1eLD7ArQtxQB4FhN4BMmvvkcdJA/YjZ84X/K1c4D6iD+Bnu9/zZQU0 AbXcK2LqzIcnBxNJnarCTpi2e6fV77FAwM2mUlspgsfPwmxdvAQOubdpArMVMDovaZ0z BOm6nknq2HVbKZbD1zHUN+8e6g89YgxE5MFZxBtpPuLSK11UYrJi/WLJzTr3uLQkWt8w d365YXCOUn9uKarvNjjXX1LB+84rAkO8WNGo3RVDlqU5l+Spg0QoirYyqY5XigMWrmJd VeJbiTtrohdTJfyQ2UQtupp12/tN61wLbo17GCzaSNMRFMX755xdqbxYbxpgsPNrYmDJ mRTw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XynybG96; 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 af79cd13be357-7b7047e0fe4si16799085a.143.2024.12.13.11.20.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:20:39 -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=XynybG96; 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 1tMB6k-0005gr-G5; Fri, 13 Dec 2024 14:13:50 -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 1tMB6i-0005XN-PA for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:48 -0500 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6h-0007Sj-3z for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:48 -0500 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-2a01707db44so650420fac.2 for ; Fri, 13 Dec 2024 11:13:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117224; x=1734722024; 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=2mACfDBbl1zp2rBr4xmrT6K6hg/pPK23y61jj5zZUfg=; b=XynybG96KeT2sSBCym8ibYLPyLKT+Lf/l2IFNsS2ymEQPzRh3X0tZlVoOKbZ2iAGmR c6f8nEE1qhgjSoXY9o+aZsW0WuEhCtxER2soDx45+iJsDb0RhSU00LoO6oIHKuQD9stt Vkt6s0s20lwLM7Dh2RXIe2d819muw7k1rdtdqbOLc00GsyAoUnRPUxyxWiEmFvhrzrzZ n5k3zEBZ61H/w/EJfbSmzNqXhm2TFJzD/QgpBW3TpQgtT51wXVei5uH0WSfH71IaHU1S cD5wF24r/jE9tzxHwg012g3P02s82ONlgxTMzMU6W24NgWlocCIYqAQmaqF94QTno96R vX4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117224; x=1734722024; 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=2mACfDBbl1zp2rBr4xmrT6K6hg/pPK23y61jj5zZUfg=; b=BSOUqKYmZ4nfOyUHm6d/o9lM5GQWKD7Me5apr5o8MpUHziq/G7rh8O5VC0UxuR1JiC mLW4Ux8oBQ6Iea1dOLCEugt51KSRfNwqRVdmla8JDk7773JdgdVSe9nekesBU3Gu3QQv O6ZycIQjNXvhXOKzkMkjIT4QIAIX5PsCA6cV17ISvdN6Fp4xN/hZYn+HIo49PykaIf/m DkRDlJXWQwkW4aIBhtpm0RwfcYKzPJ+BNUORAE+WqHmK1cOaa1c28Y/KNB1LZDisWe1k LyYnW6ER029+m2xVQYy6OQWB31WcFbOGvozG8LDg++5cFhl21FjeKJScTkJ1otqntCCZ qAPQ== X-Gm-Message-State: AOJu0YzhBFp9fwHtf4H7TceSr8yRtqo18KFS2AUWPPOZnxqTpxxYDTSc 4ax8AgHQhkjL1hv62n7OkFo5bfnwgR1mdQikVzaZk2vG6TugUXDtUkzq11eHjneLzNnjq93mVpm NzNP3ZplM X-Gm-Gg: ASbGncsfDpDFVV57JJInKQWOxJ61kUP53ET0wK/A5uUlOtYbTVp+Ly03t233PJgNZBf FEakzi168w8Wzeo02KO6OROcTBPZDr7RGCpOxpv/9bd3rrwLR4rNCoxAvzlq/66epQCq2aHfdds EnyW+7P6GIFOtma3Wt32Q4HqfyND3siniKHOC94vT9SnLOdcinHq5eBDbd3O0uweBd9lE5VYrRM zj+PzPomyv12YWfCv+V2+WSb8UcvkOHBOnfsz8UU6VO/+0ayWzfPMVcFmR/juRi X-Received: by 2002:a05:6808:f88:b0:3eb:5160:f859 with SMTP id 5614622812f47-3eba681d8f8mr2365306b6e.9.1734117224684; Fri, 13 Dec 2024 11:13:44 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:44 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Jiaxun Yang Subject: [PATCH 38/71] hw/mips: Constify all Property Date: Fri, 13 Dec 2024 13:07:12 -0600 Message-ID: <20241213190750.2513964-43-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::35; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x35.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/mips/cps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mips/cps.c b/hw/mips/cps.c index 13046628cd..1a2208666c 100644 --- a/hw/mips/cps.c +++ b/hw/mips/cps.c @@ -166,7 +166,7 @@ static void mips_cps_realize(DeviceState *dev, Error **errp) sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->gcr), 0)); } -static Property mips_cps_properties[] = { +static const Property mips_cps_properties[] = { DEFINE_PROP_UINT32("num-vp", MIPSCPSState, num_vp, 1), DEFINE_PROP_UINT32("num-irq", MIPSCPSState, num_irq, 256), DEFINE_PROP_STRING("cpu-type", MIPSCPSState, cpu_type), From patchwork Fri Dec 13 19:07:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850286 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1696283wry; Fri, 13 Dec 2024 11:37:53 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWnJrwOzx2MdDCfM5BMofhiokBccEXVTnrbzwzm7KOsbqRLxvOWx9/tbGVWBFBzUasLsU8gKQ==@linaro.org X-Google-Smtp-Source: AGHT+IFnG70B8+RUnjrV9PLz5Pg3ItKROBB+rnDfs+JRuVtLn8iDIOJ1tIYb1CUh5rv4GFUko2fu X-Received: by 2002:a05:6214:124d:b0:6d8:9d28:ff07 with SMTP id 6a1803df08f44-6dc96853437mr67409766d6.45.1734118673165; Fri, 13 Dec 2024 11:37:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118673; cv=none; d=google.com; s=arc-20240605; b=Jdls3ZuVX6o+sisfv0PSe7ZXhAo1bY/FH3txxPgoL2eyvO1R7TkX6U90WmYyr07gA5 xXKgBSMCoMdCJeA14RCQEw/tdWr3Xu9go3ZD6Pjbaj/97gtOdjmjQEgQxz6rtF5W64f6 jQqXFBTsFl3oGt3dEleQiAV7ACMX7XlyIZ2TmFK5bdMMfuiYQ1HqZlTAi+3JoDG3IsTS GprK3865TKW36R6Lc9UobKNPU7owCG8RXtgtCe78MbBc+ewbQXRaFUypC4GHKdMJSO3D XQofaNGG7JUBYEUrnBjXYwcRSvAaWVaPvGnD78oWKLwprrrhHiQN7ducdUVNkFIgmSzo w+fw== 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=6I71WCIZYeQ5yV8uCldLsOTnUpTDKGYy0sk8GaKQTI8=; fh=IDUlU6ypbuCr0Vie4XT+3fe5/NXXK5vJJBm15M8/nJo=; b=VdoXhCbz/egwsIS+Ov1z1Z6NwCypOUSOYrN2zCIAWpSghlfIaFY5SRQDlMINNOutQW 4L0K3U3NsUbjXGel8JozF4WkKwuL8NdDIDNAJxdgZ78OB5WQ67IQS6NDrkDU0OnGfbCM XVhaCMxzHL+VFtWssFDSO9/nNBTNZKfl/j70HoTGX57lwE+lomXZEZ81tu/V6XDUesYx 4FNoMpb+4ZU7mKVvlxLet9x1Xd8kSyyOgEEOKSrNwvSc3u4GG57TdHyWJST5ThRaBuY/ hnyh6+YMUd/jNTlR8P+SqzmCMVr3bMXSJZi7otltRXu413G2STMm/8toBB266elkmQiY frWQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cp97yayD; 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 6a1803df08f44-6dccd39aa73si723696d6.452.2024.12.13.11.37.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:37:53 -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=Cp97yayD; 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 1tMB6m-0005sh-QH; Fri, 13 Dec 2024 14:13:52 -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 1tMB6k-0005fz-2F for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:50 -0500 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6h-0007Sy-IX for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:49 -0500 Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3eb7f3b1342so910410b6e.1 for ; Fri, 13 Dec 2024 11:13:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117226; x=1734722026; 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=6I71WCIZYeQ5yV8uCldLsOTnUpTDKGYy0sk8GaKQTI8=; b=Cp97yayDM4zb9c9kRp16YDDMfoZLMRp6QXyG0Z2dgm+1SREITx+uUauiHPi2rNoby6 lRSc5RncSifJ2Au8JiHt1d5zotJYrCrXFIaaCa3sWeYlmgMwOGdpXaiNjteFQUx/Zv9h j4GojxcE4lPPsWVQDzVAQ2dei5OPWTE/vFPQQiQfqN6epy4btllB5+08/BePd48Dmmu2 xWON4gq45nEqfA3f5T0B8RwqWg6q1g5DInmnWw2WuBCfBAu45gooS79mW96t0JYJ1w7S JO9EX2IHXHYGnh76ymPl44/TOi4ZmvD+WjXojl0+mQozACSwjmS+eqFEw15TZwMGFK+b mxPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117226; x=1734722026; 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=6I71WCIZYeQ5yV8uCldLsOTnUpTDKGYy0sk8GaKQTI8=; b=H7bm7jtoU48FqrZwCKw23bm87+RZEEBNC1HLxaEYpnU2gmjt8OWoXmlpMpmpxLH9Vm FunbFxK+y+1D7fl8Fia689YBihbuw2CXc5wN4LoX9LfdBe31Po50Fltw2IFVMbVkRaFW PKbdaAuz1efHIRaXzzh1+3l0q2nxB9Ea4UwGYYzkBfLdQ1hXcQ4CdafsmG7LJ4Snranr JlRyJg3byyhfgFJYe/3bLK6+k6lYpwJRScm/7O/fpC/U+UvumFRxv3a7k/ODG8SoXLye UIwHBJU+jKgTKeznJqSakkdCBU/2eZp21s+f2SP+yh0zFQxiebNbtstJnzy4Z+pXnOwA Sb2A== X-Gm-Message-State: AOJu0YyiaiCnT6xnIDwtG4P2XAzMgWT2uHsmhcrrJfn+7g+LjzFWBkYg fUUEb+Agrc5SeChwnfD8XknCw3mD+xpXk0sjoJUxxP0CX3equ/RGwPRyhnwMUmGIO9WjXZdp3pn P4oRfK8yt X-Gm-Gg: ASbGnctgPrXcBlHkQagXzzDqXzm+TJ2St2DKu6+dMm9u0xAXFaV8OLT+Z8SuZ0Wwl+Z 62BPxHbRP3kKo92ClGVVjizZ5yAha9d2f9y7M5eEWXnSiv82O5xDiE8DlnSWBNf1qHMKFyBh1hl mhHZezGks7W7c931D5JXV6CYwCuQfW5By1/+9C9lyD/9eZg2Y/H7jgFzgcwNoZDbPq4T3sKv2uf sIvo/R2tw2+R71Qs5CDwlRO2Sj8vhHVZ4np1A5YbwOq6rEGYI/CifFpm+esT7XW X-Received: by 2002:a05:6808:2208:b0:3eb:4b4c:80d8 with SMTP id 5614622812f47-3eba65ba0admr1866208b6e.0.1734117226116; Fri, 13 Dec 2024 11:13:46 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:45 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alistair Francis , "Edgar E. Iglesias" , Peter Maydell , qemu-arm@nongnu.org (open list:Xilinx ZynqMP and...) Subject: [PATCH 39/71] hw/misc/xlnx-versal-trng: Constify trng_props Date: Fri, 13 Dec 2024 13:07:13 -0600 Message-ID: <20241213190750.2513964-44-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=2607:f8b0:4864:20::22b; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22b.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 Use DEFINE_PROP_UNSIGNED instead of DEFINE_PROP_UINT64 so that we can set the PropertyInfo during initialization, instead of updating within trng_class_init. Signed-off-by: Richard Henderson --- hw/misc/xlnx-versal-trng.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/misc/xlnx-versal-trng.c b/hw/misc/xlnx-versal-trng.c index 86905479b8..2f6af4f680 100644 --- a/hw/misc/xlnx-versal-trng.c +++ b/hw/misc/xlnx-versal-trng.c @@ -660,8 +660,9 @@ static const PropertyInfo trng_prop_fault_events = { static PropertyInfo trng_prop_uint64; /* to extend qdev_prop_uint64 */ -static Property trng_props[] = { - DEFINE_PROP_UINT64("forced-prng", XlnxVersalTRng, forced_prng_seed, 0), +static const Property trng_props[] = { + DEFINE_PROP_UNSIGNED("forced-prng", XlnxVersalTRng, forced_prng_seed, + 0, trng_prop_uint64, uint64_t), DEFINE_PROP_UINT32("hw-version", XlnxVersalTRng, hw_version, 0x0200), DEFINE_PROP("fips-fault-events", XlnxVersalTRng, forced_faults, trng_prop_fault_events, uint32_t), @@ -694,7 +695,6 @@ static void trng_class_init(ObjectClass *klass, void *data) /* Clone uint64 property with set allowed after realized */ trng_prop_uint64 = qdev_prop_uint64; trng_prop_uint64.realized_set_allowed = true; - trng_props[0].info = &trng_prop_uint64; device_class_set_props(dc, trng_props); } From patchwork Fri Dec 13 19:07:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850271 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1692384wry; Fri, 13 Dec 2024 11:28:45 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXQ3Ti2JqDSMSPYcCzd1xtKUwwt8I2m1NzQJFoX3dTs4c/Iy/MYoY56yz5C4BwO38zhovhGwQ==@linaro.org X-Google-Smtp-Source: AGHT+IGnQ5u/X4MAyrpH93bHEnGdbv/e3jN65Bx6Fg0VNb2tQrJrcFcbrePGyCziBqzZ3wGhf0dr X-Received: by 2002:ac8:5a93:0:b0:466:a983:a15a with SMTP id d75a77b69052e-467a581d253mr59720411cf.42.1734118125274; Fri, 13 Dec 2024 11:28:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118125; cv=none; d=google.com; s=arc-20240605; b=K3LN90qnLDpKK6i0WzpWX7kayc59ShCgje4QxPNNoqWmVy9eor4JuKWEZZ3+XqDRqT 6P2vWikLWN9yEbqtVKdnWo3JnB0vlfLsiG13Oo+GP9FyAukcmYtvVTF3AFi28dqiQ58b PlN8MS4nqRIB588Fky8pcScRfH2Rt88JyqU9UYk61JSN0aJCBIeNCx0qeRkKZt7EZB1h TK8ESXLrNkivRls6QQx98GlwHMeiofbncKD9X+dM9N9sGWFntDzoIvEBA1qn62gG4hwN nE5HD3l2G8Isw8FIepA2E8+4/YnSvxvEBobRDXvIZB2RYfLc4ZhyQaUpKVGyWZz1r7eb zxrQ== 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=qhtLMeXH9xU4x0jis7KGD8/ZeE+4vnFmuGlGyWuIyIU=; fh=QdXqUfVEMZjQllIb1lSftP+4bIBEN4UMvuEpHpkXnFA=; b=fP5xpEWRn8EOz1oGReMzY0h4vP6eBFDv8YuQU6slPaIOKxJD6LTZgQxEFE1tw0/34y HurgNaoreh0Ug1tR3XVfHv1XpGWg2o9LqQzh6sTBlpC0nfPEwWVnRXIG6B+itsS3CfZU 4f5ihkDkvwPj4BNatGNF2FLMorqNKq/LXriar+4Q3B+5XrrHbG38IbyfTRK5NBhZPOZ3 xdbb1Dg+F0/l2uLRt1vGFbBqHsfOcBrzzdFlfNXQTAYkpJ6Y3yuDejewSx5A37lRyzwZ 4M38dMtEFzDlmLQuKAF866pG2+zViPzC26PaY7RdilOgae81e8rYUOzH1nGvQHfBX42G fAPg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IvAAJOG8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2f27401si1330521cf.648.2024.12.13.11.28.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:28:45 -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=IvAAJOG8; 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 1tMB76-0006IC-Sm; Fri, 13 Dec 2024 14:14:14 -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 1tMB6u-000666-BE for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:01 -0500 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6m-0007U1-7p for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:59 -0500 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-2a01bcd0143so1103899fac.2 for ; Fri, 13 Dec 2024 11:13:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117231; x=1734722031; 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=qhtLMeXH9xU4x0jis7KGD8/ZeE+4vnFmuGlGyWuIyIU=; b=IvAAJOG8oK0BDsDYAZx48SuAksg8Ido2v1FP4Ku15CURHjFSxyw/5xnwLYVgXPE9vN ndYajtz/LUjacoSxhGRr+rpQWhAU2ur6Z0lVae75xB0YpE9CmBleLLNQmQ0HUuOGqyGY WYFDvHcGlsQxQz1TBSBq4eRiLU302pAbEniqw0fzl2rrico3CIjYyNx7whvtSHYl3hLq N6UCJW5C8+8M3e3fLKc6Q+PkfkDOz6VZCBHU/x5jx0Ij51qzARPHA7U2H/AaA/Dfln1N oBI8VJN0gVoWHto4e+nDVXIg9xizjSzA/x4qGbuNSEDWoHHRizyvgmvir2mmtimqY1jD lQag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117231; x=1734722031; 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=qhtLMeXH9xU4x0jis7KGD8/ZeE+4vnFmuGlGyWuIyIU=; b=k4L8TjNwq0cOz3n4p3tlzROifSbd3LvEm8Dg2jcBn+kziePTD0AhYl64m8i21XWISC ZgllABlk7zlWsWrYPFJjf2RRwWL9RQVu9E9QvUm+3N4K2e0nJdu0Et6KYeOWMsl1ksRl Pg1Y3h2Ezrlf4I+wO/zrJ508ewTVCPDT9pESwEuriXrKEe2CvuSxA3dqIzAe9Fl2kb1h zVY198noEBGKSkX/A2k0kfGZxbYUzLBCMsA+H+LtfP4AwifVKsWex4bvHfgG0lrE+opl W0xYe6Zxh1mYg9BbrUF73s8ain+qTNw4D04RseZlbX3eM+prPv9MXAJujtvstKd3cDLX AquQ== X-Gm-Message-State: AOJu0Yw8asUtJWNq0kZ9t9Kp8APcp59rZBAdD9vfYa7HemHruTP0GXHq JO1HEfFG6YOSBV6p17IoaN1uiaX/D49JiizmfqYBdnoVJ6RMehlI1HUBvENLOIQPWC3gPhShqJ0 ze0iIv4ND X-Gm-Gg: ASbGnct2RMV/GVv1BftAMPc4+bqUHVU7QkPez4HkXchrEafV488VzweETdnzMVyiIKm nORPhYQuzSYIN50Ex86NA2bd/EXOg7/xa03NtCep/UjXRGivfpzs6LZhES7x5fUVduZSmjdzWzh 1d4wQPtfKREYphWWV2gPjIxh9d5ssd3IFPJO3ZqR0FFPz5rwPnVaFmyQY/AsYm5GHDgTUSuJJoc ingKHBOFFbiaM3PLvEG6NVXwggRGk848zp0jUujg8wEKqEUY+o4wYk0cMcaej9e X-Received: by 2002:a05:6808:f08:b0:3eb:575d:5063 with SMTP id 5614622812f47-3eba6891dc0mr2146153b6e.23.1734117230661; Fri, 13 Dec 2024 11:13:50 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:50 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Maydell , Niek Linnenbank , Beniamino Galvani , Strahinja Jankovic , =?utf-8?q?C=C3=A9dric_?= =?utf-8?q?Le_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , "Michael S. Tsirkin" , Paolo Bonzini , Mark Cave-Ayland , Artyom Tarasenko , Ani Sinha , Laurent Vivier , Subbaraya Sundeep , Tyrone Ting , Hao Wu , Marcel Apfelbaum , Alistair Francis , Bin Meng , Palmer Dabbelt , Samuel Tardieu , Francisco Iglesias , "Edgar E. Iglesias" , qemu-arm@nongnu.org (open list:ARM cores), qemu-ppc@nongnu.org (open list:New World (mac99)), qemu-riscv@nongnu.org (open list:SiFive Machines) Subject: [PATCH 40/71] hw/misc: Constify all Property Date: Fri, 13 Dec 2024 13:07:14 -0600 Message-ID: <20241213190750.2513964-45-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::36; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x36.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=unavailable 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/misc/a9scu.c | 2 +- hw/misc/allwinner-h3-dramc.c | 2 +- hw/misc/allwinner-r40-dramc.c | 2 +- hw/misc/allwinner-sid.c | 2 +- hw/misc/applesmc.c | 2 +- hw/misc/arm11scu.c | 2 +- hw/misc/arm_l2x0.c | 2 +- hw/misc/arm_sysctl.c | 2 +- hw/misc/armsse-cpuid.c | 2 +- hw/misc/aspeed_hace.c | 2 +- hw/misc/aspeed_i3c.c | 2 +- hw/misc/aspeed_lpc.c | 2 +- hw/misc/aspeed_sbc.c | 2 +- hw/misc/aspeed_scu.c | 2 +- hw/misc/aspeed_sdmc.c | 2 +- hw/misc/bcm2835_cprman.c | 2 +- hw/misc/bcm2835_property.c | 2 +- hw/misc/debugexit.c | 2 +- hw/misc/eccmemctl.c | 2 +- hw/misc/empty_slot.c | 2 +- hw/misc/iotkit-secctl.c | 2 +- hw/misc/iotkit-sysctl.c | 2 +- hw/misc/iotkit-sysinfo.c | 2 +- hw/misc/ivshmem.c | 4 ++-- hw/misc/led.c | 2 +- hw/misc/mac_via.c | 2 +- hw/misc/macio/cuda.c | 2 +- hw/misc/macio/macio.c | 4 ++-- hw/misc/macio/pmu.c | 2 +- hw/misc/mips_cmgcr.c | 2 +- hw/misc/mips_cpc.c | 2 +- hw/misc/mips_itu.c | 2 +- hw/misc/mos6522.c | 2 +- hw/misc/mps2-fpgaio.c | 2 +- hw/misc/mps2-scc.c | 2 +- hw/misc/msf2-sysreg.c | 2 +- hw/misc/npcm7xx_gcr.c | 2 +- hw/misc/nrf51_rng.c | 2 +- hw/misc/pci-testdev.c | 2 +- hw/misc/pvpanic-isa.c | 2 +- hw/misc/pvpanic-pci.c | 2 +- hw/misc/sifive_e_aon.c | 2 +- hw/misc/sifive_u_otp.c | 2 +- hw/misc/stm32l4x5_rcc.c | 2 +- hw/misc/tz-mpc.c | 2 +- hw/misc/tz-msc.c | 2 +- hw/misc/tz-ppc.c | 2 +- hw/misc/unimp.c | 2 +- hw/misc/xlnx-versal-cframe-reg.c | 4 ++-- hw/misc/xlnx-versal-cfu.c | 4 ++-- hw/misc/xlnx-versal-xramc.c | 2 +- hw/misc/zynq_slcr.c | 2 +- 52 files changed, 56 insertions(+), 56 deletions(-) diff --git a/hw/misc/a9scu.c b/hw/misc/a9scu.c index a40d5072de..e2d73edde8 100644 --- a/hw/misc/a9scu.c +++ b/hw/misc/a9scu.c @@ -123,7 +123,7 @@ static const VMStateDescription vmstate_a9_scu = { } }; -static Property a9_scu_properties[] = { +static const Property a9_scu_properties[] = { DEFINE_PROP_UINT32("num-cpu", A9SCUState, num_cpu, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/allwinner-h3-dramc.c b/hw/misc/allwinner-h3-dramc.c index eeab0dc5d2..247bf62c43 100644 --- a/hw/misc/allwinner-h3-dramc.c +++ b/hw/misc/allwinner-h3-dramc.c @@ -314,7 +314,7 @@ static void allwinner_h3_dramc_init(Object *obj) sysbus_init_mmio(sbd, &s->dramphy_iomem); } -static Property allwinner_h3_dramc_properties[] = { +static const Property allwinner_h3_dramc_properties[] = { DEFINE_PROP_UINT64("ram-addr", AwH3DramCtlState, ram_addr, 0x0), DEFINE_PROP_UINT32("ram-size", AwH3DramCtlState, ram_size, 256 * MiB), DEFINE_PROP_END_OF_LIST() diff --git a/hw/misc/allwinner-r40-dramc.c b/hw/misc/allwinner-r40-dramc.c index 3ae4890037..a51284ff91 100644 --- a/hw/misc/allwinner-r40-dramc.c +++ b/hw/misc/allwinner-r40-dramc.c @@ -464,7 +464,7 @@ static void allwinner_r40_dramc_init(Object *obj) sysbus_init_mmio(sbd, &s->dramphy_iomem); } -static Property allwinner_r40_dramc_properties[] = { +static const Property allwinner_r40_dramc_properties[] = { DEFINE_PROP_UINT64("ram-addr", AwR40DramCtlState, ram_addr, 0x0), DEFINE_PROP_UINT32("ram-size", AwR40DramCtlState, ram_size, 256), /* MiB */ DEFINE_PROP_END_OF_LIST() diff --git a/hw/misc/allwinner-sid.c b/hw/misc/allwinner-sid.c index 19ff17d24a..3a09dca111 100644 --- a/hw/misc/allwinner-sid.c +++ b/hw/misc/allwinner-sid.c @@ -127,7 +127,7 @@ static void allwinner_sid_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property allwinner_sid_properties[] = { +static const Property allwinner_sid_properties[] = { DEFINE_PROP_UUID_NODEFAULT("identifier", AwSidState, identifier), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/applesmc.c b/hw/misc/applesmc.c index 5b766277d6..9d0e273e33 100644 --- a/hw/misc/applesmc.c +++ b/hw/misc/applesmc.c @@ -350,7 +350,7 @@ static void applesmc_unrealize(DeviceState *dev) } } -static Property applesmc_isa_properties[] = { +static const Property applesmc_isa_properties[] = { DEFINE_PROP_UINT32(APPLESMC_PROP_IO_BASE, AppleSMCState, iobase, APPLESMC_DEFAULT_IOBASE), DEFINE_PROP_STRING("osk", AppleSMCState, osk), diff --git a/hw/misc/arm11scu.c b/hw/misc/arm11scu.c index 17c36a0545..37feed9da7 100644 --- a/hw/misc/arm11scu.c +++ b/hw/misc/arm11scu.c @@ -75,7 +75,7 @@ static void arm11_scu_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property arm11_scu_properties[] = { +static const Property arm11_scu_properties[] = { DEFINE_PROP_UINT32("num-cpu", ARM11SCUState, num_cpu, 1), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/arm_l2x0.c b/hw/misc/arm_l2x0.c index 1902ebd3bc..9c209f13b0 100644 --- a/hw/misc/arm_l2x0.c +++ b/hw/misc/arm_l2x0.c @@ -173,7 +173,7 @@ static void l2x0_priv_init(Object *obj) sysbus_init_mmio(dev, &s->iomem); } -static Property l2x0_properties[] = { +static const Property l2x0_properties[] = { DEFINE_PROP_UINT32("cache-type", L2x0State, cache_type, 0x1c100100), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/arm_sysctl.c b/hw/misc/arm_sysctl.c index 9c4dce350a..69e379fa10 100644 --- a/hw/misc/arm_sysctl.c +++ b/hw/misc/arm_sysctl.c @@ -623,7 +623,7 @@ static void arm_sysctl_finalize(Object *obj) g_free(s->db_clock_reset); } -static Property arm_sysctl_properties[] = { +static const Property arm_sysctl_properties[] = { DEFINE_PROP_UINT32("sys_id", arm_sysctl_state, sys_id, 0), DEFINE_PROP_UINT32("proc_id", arm_sysctl_state, proc_id, 0), /* Daughterboard power supply voltages (as reported via SYS_CFG) */ diff --git a/hw/misc/armsse-cpuid.c b/hw/misc/armsse-cpuid.c index e785a09051..b05bcdcabc 100644 --- a/hw/misc/armsse-cpuid.c +++ b/hw/misc/armsse-cpuid.c @@ -92,7 +92,7 @@ static const MemoryRegionOps armsse_cpuid_ops = { .valid.max_access_size = 4, }; -static Property armsse_cpuid_props[] = { +static const Property armsse_cpuid_props[] = { DEFINE_PROP_UINT32("CPUID", ARMSSECPUID, cpuid, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/aspeed_hace.c b/hw/misc/aspeed_hace.c index bc1d66ad80..5cefbadf9a 100644 --- a/hw/misc/aspeed_hace.c +++ b/hw/misc/aspeed_hace.c @@ -436,7 +436,7 @@ static void aspeed_hace_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(sbd, &s->iomem); } -static Property aspeed_hace_properties[] = { +static const Property aspeed_hace_properties[] = { DEFINE_PROP_LINK("dram", AspeedHACEState, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/aspeed_i3c.c b/hw/misc/aspeed_i3c.c index 371ee7dba8..7f5a389864 100644 --- a/hw/misc/aspeed_i3c.c +++ b/hw/misc/aspeed_i3c.c @@ -323,7 +323,7 @@ static void aspeed_i3c_realize(DeviceState *dev, Error **errp) } -static Property aspeed_i3c_device_properties[] = { +static const Property aspeed_i3c_device_properties[] = { DEFINE_PROP_UINT8("device-id", AspeedI3CDevice, id, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/aspeed_lpc.c b/hw/misc/aspeed_lpc.c index f2d4ca6f43..bb9066b0f0 100644 --- a/hw/misc/aspeed_lpc.c +++ b/hw/misc/aspeed_lpc.c @@ -454,7 +454,7 @@ static const VMStateDescription vmstate_aspeed_lpc = { } }; -static Property aspeed_lpc_properties[] = { +static const Property aspeed_lpc_properties[] = { DEFINE_PROP_UINT32("hicr7", AspeedLPCState, hicr7, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/aspeed_sbc.c b/hw/misc/aspeed_sbc.c index f5eb2a0e37..b97cf51fa1 100644 --- a/hw/misc/aspeed_sbc.c +++ b/hw/misc/aspeed_sbc.c @@ -136,7 +136,7 @@ static const VMStateDescription vmstate_aspeed_sbc = { } }; -static Property aspeed_sbc_properties[] = { +static const Property aspeed_sbc_properties[] = { DEFINE_PROP_BOOL("emmc-abr", AspeedSBCState, emmc_abr, 0), DEFINE_PROP_UINT32("signing-settings", AspeedSBCState, signing_settings, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/aspeed_scu.c b/hw/misc/aspeed_scu.c index 2c919349cf..ac33b8d6cb 100644 --- a/hw/misc/aspeed_scu.c +++ b/hw/misc/aspeed_scu.c @@ -602,7 +602,7 @@ static const VMStateDescription vmstate_aspeed_scu = { } }; -static Property aspeed_scu_properties[] = { +static const Property aspeed_scu_properties[] = { DEFINE_PROP_UINT32("silicon-rev", AspeedSCUState, silicon_rev, 0), DEFINE_PROP_UINT32("hw-strap1", AspeedSCUState, hw_strap1, 0), DEFINE_PROP_UINT32("hw-strap2", AspeedSCUState, hw_strap2, 0), diff --git a/hw/misc/aspeed_sdmc.c b/hw/misc/aspeed_sdmc.c index 4bc9faf691..4980080f74 100644 --- a/hw/misc/aspeed_sdmc.c +++ b/hw/misc/aspeed_sdmc.c @@ -294,7 +294,7 @@ static const VMStateDescription vmstate_aspeed_sdmc = { } }; -static Property aspeed_sdmc_properties[] = { +static const Property aspeed_sdmc_properties[] = { DEFINE_PROP_UINT64("max-ram-size", AspeedSDMCState, max_ram_size, 0), DEFINE_PROP_BOOL("unlocked", AspeedSDMCState, unlocked, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/bcm2835_cprman.c b/hw/misc/bcm2835_cprman.c index 63e1045abf..1a20cd0bc8 100644 --- a/hw/misc/bcm2835_cprman.c +++ b/hw/misc/bcm2835_cprman.c @@ -778,7 +778,7 @@ static const VMStateDescription cprman_vmstate = { } }; -static Property cprman_properties[] = { +static const Property cprman_properties[] = { DEFINE_PROP_UINT32("xosc-freq-hz", BCM2835CprmanState, xosc_freq, 19200000), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/bcm2835_property.c b/hw/misc/bcm2835_property.c index 8ca3128f29..09a6f2c6e3 100644 --- a/hw/misc/bcm2835_property.c +++ b/hw/misc/bcm2835_property.c @@ -551,7 +551,7 @@ static void bcm2835_property_realize(DeviceState *dev, Error **errp) bcm2835_property_reset(dev); } -static Property bcm2835_property_props[] = { +static const Property bcm2835_property_props[] = { DEFINE_PROP_UINT32("board-rev", BCM2835PropertyState, board_rev, 0), DEFINE_PROP_STRING("command-line", BCM2835PropertyState, command_line), DEFINE_PROP_END_OF_LIST() diff --git a/hw/misc/debugexit.c b/hw/misc/debugexit.c index c5c562fd93..639a8cc3e3 100644 --- a/hw/misc/debugexit.c +++ b/hw/misc/debugexit.c @@ -56,7 +56,7 @@ static void debug_exit_realizefn(DeviceState *d, Error **errp) isa->iobase, &isa->io); } -static Property debug_exit_properties[] = { +static const Property debug_exit_properties[] = { DEFINE_PROP_UINT32("iobase", ISADebugExitState, iobase, 0x501), DEFINE_PROP_UINT32("iosize", ISADebugExitState, iosize, 0x02), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/eccmemctl.c b/hw/misc/eccmemctl.c index 0f68fbe1b6..4fc88bd4e5 100644 --- a/hw/misc/eccmemctl.c +++ b/hw/misc/eccmemctl.c @@ -325,7 +325,7 @@ static void ecc_realize(DeviceState *dev, Error **errp) } } -static Property ecc_properties[] = { +static const Property ecc_properties[] = { DEFINE_PROP_UINT32("version", ECCState, version, -1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/empty_slot.c b/hw/misc/empty_slot.c index 37b0ddfb02..79572c5be0 100644 --- a/hw/misc/empty_slot.c +++ b/hw/misc/empty_slot.c @@ -79,7 +79,7 @@ static void empty_slot_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->iomem); } -static Property empty_slot_properties[] = { +static const Property empty_slot_properties[] = { DEFINE_PROP_UINT64("size", EmptySlot, size, 0), DEFINE_PROP_STRING("name", EmptySlot, name), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/iotkit-secctl.c b/hw/misc/iotkit-secctl.c index 6e22f2aad6..abb6a963ca 100644 --- a/hw/misc/iotkit-secctl.c +++ b/hw/misc/iotkit-secctl.c @@ -814,7 +814,7 @@ static const VMStateDescription iotkit_secctl_vmstate = { }, }; -static Property iotkit_secctl_props[] = { +static const Property iotkit_secctl_props[] = { DEFINE_PROP_UINT32("sse-version", IoTKitSecCtl, sse_version, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/iotkit-sysctl.c b/hw/misc/iotkit-sysctl.c index c1b357e6b7..23b49d7dff 100644 --- a/hw/misc/iotkit-sysctl.c +++ b/hw/misc/iotkit-sysctl.c @@ -835,7 +835,7 @@ static const VMStateDescription iotkit_sysctl_vmstate = { } }; -static Property iotkit_sysctl_props[] = { +static const Property iotkit_sysctl_props[] = { DEFINE_PROP_UINT32("sse-version", IoTKitSysCtl, sse_version, 0), DEFINE_PROP_UINT32("CPUWAIT_RST", IoTKitSysCtl, cpuwait_rst, 0), DEFINE_PROP_UINT32("INITSVTOR0_RST", IoTKitSysCtl, initsvtor0_rst, diff --git a/hw/misc/iotkit-sysinfo.c b/hw/misc/iotkit-sysinfo.c index aaa9305b2e..7d4eea6bfb 100644 --- a/hw/misc/iotkit-sysinfo.c +++ b/hw/misc/iotkit-sysinfo.c @@ -131,7 +131,7 @@ static const MemoryRegionOps iotkit_sysinfo_ops = { .valid.max_access_size = 4, }; -static Property iotkit_sysinfo_props[] = { +static const Property iotkit_sysinfo_props[] = { DEFINE_PROP_UINT32("SYS_VERSION", IoTKitSysInfo, sys_version, 0), DEFINE_PROP_UINT32("SYS_CONFIG", IoTKitSysInfo, sys_config, 0), DEFINE_PROP_UINT32("sse-version", IoTKitSysInfo, sse_version, 0), diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 5ce3fc0949..6d735ec29f 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -1022,7 +1022,7 @@ static const VMStateDescription ivshmem_plain_vmsd = { }, }; -static Property ivshmem_plain_properties[] = { +static const Property ivshmem_plain_properties[] = { DEFINE_PROP_ON_OFF_AUTO("master", IVShmemState, master, ON_OFF_AUTO_OFF), DEFINE_PROP_LINK("memdev", IVShmemState, hostmem, TYPE_MEMORY_BACKEND, HostMemoryBackend *), @@ -1077,7 +1077,7 @@ static const VMStateDescription ivshmem_doorbell_vmsd = { }, }; -static Property ivshmem_doorbell_properties[] = { +static const Property ivshmem_doorbell_properties[] = { DEFINE_PROP_CHR("chardev", IVShmemState, server_chr), DEFINE_PROP_UINT32("vectors", IVShmemState, vectors, 1), DEFINE_PROP_BIT("ioeventfd", IVShmemState, features, IVSHMEM_IOEVENTFD, diff --git a/hw/misc/led.c b/hw/misc/led.c index 4bb6ce8d29..76efdbc3f1 100644 --- a/hw/misc/led.c +++ b/hw/misc/led.c @@ -101,7 +101,7 @@ static void led_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(DEVICE(s), led_set_state_gpio_handler, 1); } -static Property led_properties[] = { +static const Property led_properties[] = { DEFINE_PROP_STRING("color", LEDState, color), DEFINE_PROP_STRING("description", LEDState, description), DEFINE_PROP_BOOL("gpio-active-high", LEDState, gpio_active_high, true), diff --git a/hw/misc/mac_via.c b/hw/misc/mac_via.c index af2b2b1af3..a376a2b8a0 100644 --- a/hw/misc/mac_via.c +++ b/hw/misc/mac_via.c @@ -1322,7 +1322,7 @@ static const VMStateDescription vmstate_q800_via1 = { } }; -static Property mos6522_q800_via1_properties[] = { +static const Property mos6522_q800_via1_properties[] = { DEFINE_PROP_DRIVE("drive", MOS6522Q800VIA1State, blk), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c index 1db7ebf3e2..cfc8afd1dc 100644 --- a/hw/misc/macio/cuda.c +++ b/hw/misc/macio/cuda.c @@ -554,7 +554,7 @@ static void cuda_init(Object *obj) DEVICE(obj), "adb.0"); } -static Property cuda_properties[] = { +static const Property cuda_properties[] = { DEFINE_PROP_UINT64("timebase-frequency", CUDAState, tb_frequency, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c index 3f449f91c0..7e3d5aa977 100644 --- a/hw/misc/macio/macio.c +++ b/hw/misc/macio/macio.c @@ -405,7 +405,7 @@ static const VMStateDescription vmstate_macio_newworld = { } }; -static Property macio_newworld_properties[] = { +static const Property macio_newworld_properties[] = { DEFINE_PROP_BOOL("has-pmu", NewWorldMacIOState, has_pmu, false), DEFINE_PROP_BOOL("has-adb", NewWorldMacIOState, has_adb, false), DEFINE_PROP_END_OF_LIST() @@ -422,7 +422,7 @@ static void macio_newworld_class_init(ObjectClass *oc, void *data) device_class_set_props(dc, macio_newworld_properties); } -static Property macio_properties[] = { +static const Property macio_properties[] = { DEFINE_PROP_UINT64("frequency", MacIOState, frequency, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/macio/pmu.c b/hw/misc/macio/pmu.c index 4b451e0af3..64bf44f67f 100644 --- a/hw/misc/macio/pmu.c +++ b/hw/misc/macio/pmu.c @@ -760,7 +760,7 @@ static void pmu_init(Object *obj) sysbus_init_mmio(d, &s->mem); } -static Property pmu_properties[] = { +static const Property pmu_properties[] = { DEFINE_PROP_BOOL("has-adb", PMUState, has_adb, true), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/mips_cmgcr.c b/hw/misc/mips_cmgcr.c index 04256aacdc..80ca224f76 100644 --- a/hw/misc/mips_cmgcr.c +++ b/hw/misc/mips_cmgcr.c @@ -211,7 +211,7 @@ static const VMStateDescription vmstate_mips_gcr = { }, }; -static Property mips_gcr_properties[] = { +static const Property mips_gcr_properties[] = { DEFINE_PROP_UINT32("num-vp", MIPSGCRState, num_vps, 1), DEFINE_PROP_INT32("gcr-rev", MIPSGCRState, gcr_rev, 0x800), DEFINE_PROP_UINT64("gcr-base", MIPSGCRState, gcr_base, GCR_BASE_ADDR), diff --git a/hw/misc/mips_cpc.c b/hw/misc/mips_cpc.c index 2f7fb8167f..86ff0f7ad8 100644 --- a/hw/misc/mips_cpc.c +++ b/hw/misc/mips_cpc.c @@ -163,7 +163,7 @@ static const VMStateDescription vmstate_mips_cpc = { }, }; -static Property mips_cpc_properties[] = { +static const Property mips_cpc_properties[] = { DEFINE_PROP_UINT32("num-vp", MIPSCPCState, num_vp, 0x1), DEFINE_PROP_UINT64("vp-start-running", MIPSCPCState, vp_start_running, 0x1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/mips_itu.c b/hw/misc/mips_itu.c index c5214c8b30..d84a7dbf15 100644 --- a/hw/misc/mips_itu.c +++ b/hw/misc/mips_itu.c @@ -533,7 +533,7 @@ static void mips_itu_reset(DeviceState *dev) itc_reset_cells(s); } -static Property mips_itu_properties[] = { +static const Property mips_itu_properties[] = { DEFINE_PROP_UINT32("num-fifo", MIPSITUState, num_fifo, ITC_FIFO_NUM_MAX), DEFINE_PROP_UINT32("num-semaphores", MIPSITUState, num_semaphores, diff --git a/hw/misc/mos6522.c b/hw/misc/mos6522.c index 515f62e687..0225a5869b 100644 --- a/hw/misc/mos6522.c +++ b/hw/misc/mos6522.c @@ -696,7 +696,7 @@ static void mos6522_finalize(Object *obj) timer_free(s->timers[1].timer); } -static Property mos6522_properties[] = { +static const Property mos6522_properties[] = { DEFINE_PROP_UINT64("frequency", MOS6522State, frequency, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/mps2-fpgaio.c b/hw/misc/mps2-fpgaio.c index 20359254ba..2e8d1c721c 100644 --- a/hw/misc/mps2-fpgaio.c +++ b/hw/misc/mps2-fpgaio.c @@ -319,7 +319,7 @@ static const VMStateDescription mps2_fpgaio_vmstate = { }, }; -static Property mps2_fpgaio_properties[] = { +static const Property mps2_fpgaio_properties[] = { /* Frequency of the prescale counter */ DEFINE_PROP_UINT32("prescale-clk", MPS2FPGAIO, prescale_clk, 20000000), /* Number of LEDs controlled by LED0 register */ diff --git a/hw/misc/mps2-scc.c b/hw/misc/mps2-scc.c index d45ff77bd6..f378b75571 100644 --- a/hw/misc/mps2-scc.c +++ b/hw/misc/mps2-scc.c @@ -456,7 +456,7 @@ static const VMStateDescription mps2_scc_vmstate = { } }; -static Property mps2_scc_properties[] = { +static const Property mps2_scc_properties[] = { /* Values for various read-only ID registers (which are specific * to the board model or FPGA image) */ diff --git a/hw/misc/msf2-sysreg.c b/hw/misc/msf2-sysreg.c index b8dde198c6..0d7a713c76 100644 --- a/hw/misc/msf2-sysreg.c +++ b/hw/misc/msf2-sysreg.c @@ -118,7 +118,7 @@ static const VMStateDescription vmstate_msf2_sysreg = { } }; -static Property msf2_sysreg_properties[] = { +static const Property msf2_sysreg_properties[] = { /* default divisors in Libero GUI */ DEFINE_PROP_UINT8("apb0divisor", MSF2SysregState, apb0div, 2), DEFINE_PROP_UINT8("apb1divisor", MSF2SysregState, apb1div, 2), diff --git a/hw/misc/npcm7xx_gcr.c b/hw/misc/npcm7xx_gcr.c index c4c4e246d7..17aeaf22cb 100644 --- a/hw/misc/npcm7xx_gcr.c +++ b/hw/misc/npcm7xx_gcr.c @@ -229,7 +229,7 @@ static const VMStateDescription vmstate_npcm7xx_gcr = { }, }; -static Property npcm7xx_gcr_properties[] = { +static const Property npcm7xx_gcr_properties[] = { DEFINE_PROP_UINT32("disabled-modules", NPCM7xxGCRState, reset_mdlr, 0), DEFINE_PROP_UINT32("power-on-straps", NPCM7xxGCRState, reset_pwron, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/nrf51_rng.c b/hw/misc/nrf51_rng.c index 2d67f3f766..2b550a6bca 100644 --- a/hw/misc/nrf51_rng.c +++ b/hw/misc/nrf51_rng.c @@ -219,7 +219,7 @@ static void nrf51_rng_reset(DeviceState *dev) } -static Property nrf51_rng_properties[] = { +static const Property nrf51_rng_properties[] = { DEFINE_PROP_UINT16("period_unfiltered_us", NRF51RNGState, period_unfiltered_us, 167), DEFINE_PROP_UINT16("period_filtered_us", NRF51RNGState, diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev.c index 0b5f236a20..7927397a23 100644 --- a/hw/misc/pci-testdev.c +++ b/hw/misc/pci-testdev.c @@ -319,7 +319,7 @@ static void qdev_pci_testdev_reset(DeviceState *dev) pci_testdev_reset(d); } -static Property pci_testdev_properties[] = { +static const Property pci_testdev_properties[] = { DEFINE_PROP_SIZE("membar", PCITestDevState, membar_size, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/pvpanic-isa.c b/hw/misc/pvpanic-isa.c index 9a923b7869..824a2e4528 100644 --- a/hw/misc/pvpanic-isa.c +++ b/hw/misc/pvpanic-isa.c @@ -98,7 +98,7 @@ static void build_pvpanic_isa_aml(AcpiDevAmlIf *adev, Aml *scope) aml_append(scope, dev); } -static Property pvpanic_isa_properties[] = { +static const Property pvpanic_isa_properties[] = { DEFINE_PROP_UINT16(PVPANIC_IOPORT_PROP, PVPanicISAState, ioport, 0x505), DEFINE_PROP_UINT8("events", PVPanicISAState, pvpanic.events, PVPANIC_EVENTS), diff --git a/hw/misc/pvpanic-pci.c b/hw/misc/pvpanic-pci.c index 106d03ccd6..1c3eafc137 100644 --- a/hw/misc/pvpanic-pci.c +++ b/hw/misc/pvpanic-pci.c @@ -53,7 +53,7 @@ static void pvpanic_pci_realizefn(PCIDevice *dev, Error **errp) pci_register_bar(dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &ps->mr); } -static Property pvpanic_pci_properties[] = { +static const Property pvpanic_pci_properties[] = { DEFINE_PROP_UINT8("events", PVPanicPCIState, pvpanic.events, PVPANIC_EVENTS), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/sifive_e_aon.c b/hw/misc/sifive_e_aon.c index f819fc10e6..c48429b131 100644 --- a/hw/misc/sifive_e_aon.c +++ b/hw/misc/sifive_e_aon.c @@ -289,7 +289,7 @@ static void sifive_e_aon_init(Object *obj) sysbus_init_irq(sbd, &r->wdog_irq); } -static Property sifive_e_aon_properties[] = { +static const Property sifive_e_aon_properties[] = { DEFINE_PROP_UINT64("wdogclk-frequency", SiFiveEAONState, wdogclk_freq, SIFIVE_E_LFCLK_DEFAULT_FREQ), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/sifive_u_otp.c b/hw/misc/sifive_u_otp.c index 8965f5c22a..32cd8e8dfb 100644 --- a/hw/misc/sifive_u_otp.c +++ b/hw/misc/sifive_u_otp.c @@ -194,7 +194,7 @@ static const MemoryRegionOps sifive_u_otp_ops = { } }; -static Property sifive_u_otp_properties[] = { +static const Property sifive_u_otp_properties[] = { DEFINE_PROP_UINT32("serial", SiFiveUOTPState, serial, 0), DEFINE_PROP_DRIVE("drive", SiFiveUOTPState, blk), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/stm32l4x5_rcc.c b/hw/misc/stm32l4x5_rcc.c index 59d428fa66..b61241d195 100644 --- a/hw/misc/stm32l4x5_rcc.c +++ b/hw/misc/stm32l4x5_rcc.c @@ -1426,7 +1426,7 @@ static void stm32l4x5_rcc_realize(DeviceState *dev, Error **errp) clock_update(s->gnd, 0); } -static Property stm32l4x5_rcc_properties[] = { +static const Property stm32l4x5_rcc_properties[] = { DEFINE_PROP_UINT64("hse_frequency", Stm32l4x5RccState, hse_frequency, HSE_DEFAULT_FRQ), DEFINE_PROP_UINT64("sai1_extclk_frequency", Stm32l4x5RccState, diff --git a/hw/misc/tz-mpc.c b/hw/misc/tz-mpc.c index 66a46a7b9f..b06eb9f119 100644 --- a/hw/misc/tz-mpc.c +++ b/hw/misc/tz-mpc.c @@ -587,7 +587,7 @@ static const VMStateDescription tz_mpc_vmstate = { } }; -static Property tz_mpc_properties[] = { +static const Property tz_mpc_properties[] = { DEFINE_PROP_LINK("downstream", TZMPC, downstream, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/tz-msc.c b/hw/misc/tz-msc.c index 82ccaa014a..96413a502d 100644 --- a/hw/misc/tz-msc.c +++ b/hw/misc/tz-msc.c @@ -278,7 +278,7 @@ static const VMStateDescription tz_msc_vmstate = { } }; -static Property tz_msc_properties[] = { +static const Property tz_msc_properties[] = { DEFINE_PROP_LINK("downstream", TZMSC, downstream, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_LINK("idau", TZMSC, idau, diff --git a/hw/misc/tz-ppc.c b/hw/misc/tz-ppc.c index 922dcf7f63..1943d8d165 100644 --- a/hw/misc/tz-ppc.c +++ b/hw/misc/tz-ppc.c @@ -305,7 +305,7 @@ static const VMStateDescription tz_ppc_vmstate = { DEFINE_PROP_LINK("port[" #N "]", TZPPC, port[N].downstream, \ TYPE_MEMORY_REGION, MemoryRegion *) -static Property tz_ppc_properties[] = { +static const Property tz_ppc_properties[] = { DEFINE_PROP_UINT32("NONSEC_MASK", TZPPC, nonsec_mask, 0), DEFINE_PORT(0), DEFINE_PORT(1), diff --git a/hw/misc/unimp.c b/hw/misc/unimp.c index 6cfc5727f0..62e1153627 100644 --- a/hw/misc/unimp.c +++ b/hw/misc/unimp.c @@ -70,7 +70,7 @@ static void unimp_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(s), &s->iomem); } -static Property unimp_properties[] = { +static const Property unimp_properties[] = { DEFINE_PROP_UINT64("size", UnimplementedDeviceState, size, 0), DEFINE_PROP_STRING("name", UnimplementedDeviceState, name), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/xlnx-versal-cframe-reg.c b/hw/misc/xlnx-versal-cframe-reg.c index 3fc838bd54..8281a9baff 100644 --- a/hw/misc/xlnx-versal-cframe-reg.c +++ b/hw/misc/xlnx-versal-cframe-reg.c @@ -720,7 +720,7 @@ static const VMStateDescription vmstate_cframe_reg = { } }; -static Property cframe_regs_props[] = { +static const Property cframe_regs_props[] = { DEFINE_PROP_LINK("cfu-fdro", XlnxVersalCFrameReg, cfg.cfu_fdro, TYPE_XLNX_CFI_IF, XlnxCfiIf *), DEFINE_PROP_UINT32("blktype0-frames", XlnxVersalCFrameReg, @@ -771,7 +771,7 @@ static const VMStateDescription vmstate_cframe_bcast_reg = { } }; -static Property cframe_bcast_regs_props[] = { +static const Property cframe_bcast_regs_props[] = { DEFINE_PROP_LINK("cframe0", XlnxVersalCFrameBcastReg, cfg.cframe[0], TYPE_XLNX_CFI_IF, XlnxCfiIf *), DEFINE_PROP_LINK("cframe1", XlnxVersalCFrameBcastReg, cfg.cframe[1], diff --git a/hw/misc/xlnx-versal-cfu.c b/hw/misc/xlnx-versal-cfu.c index 94f85814c8..7cfdabdb8e 100644 --- a/hw/misc/xlnx-versal-cfu.c +++ b/hw/misc/xlnx-versal-cfu.c @@ -426,7 +426,7 @@ static void cfu_fdro_cfi_transfer_packet(XlnxCfiIf *cfi_if, XlnxCfiPacket *pkt) } } -static Property cfu_props[] = { +static const Property cfu_props[] = { DEFINE_PROP_LINK("cframe0", XlnxVersalCFUAPB, cfg.cframe[0], TYPE_XLNX_CFI_IF, XlnxCfiIf *), DEFINE_PROP_LINK("cframe1", XlnxVersalCFUAPB, cfg.cframe[1], @@ -460,7 +460,7 @@ static Property cfu_props[] = { DEFINE_PROP_END_OF_LIST(), }; -static Property cfu_sfr_props[] = { +static const Property cfu_sfr_props[] = { DEFINE_PROP_LINK("cfu", XlnxVersalCFUSFR, cfg.cfu, TYPE_XLNX_VERSAL_CFU_APB, XlnxVersalCFUAPB *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/xlnx-versal-xramc.c b/hw/misc/xlnx-versal-xramc.c index ad839ce7e9..a06b9fbc05 100644 --- a/hw/misc/xlnx-versal-xramc.c +++ b/hw/misc/xlnx-versal-xramc.c @@ -218,7 +218,7 @@ static const VMStateDescription vmstate_xram_ctrl = { } }; -static Property xram_ctrl_properties[] = { +static const Property xram_ctrl_properties[] = { DEFINE_PROP_UINT64("size", XlnxXramCtrl, cfg.size, 1 * MiB), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/zynq_slcr.c b/hw/misc/zynq_slcr.c index ad814c3a79..ffa14ecb84 100644 --- a/hw/misc/zynq_slcr.c +++ b/hw/misc/zynq_slcr.c @@ -623,7 +623,7 @@ static const VMStateDescription vmstate_zynq_slcr = { } }; -static Property zynq_slcr_props[] = { +static const Property zynq_slcr_props[] = { DEFINE_PROP_UINT8("boot-mode", ZynqSLCRState, boot_mode, 1), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850239 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1687467wry; Fri, 13 Dec 2024 11:16:17 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWwo58TcAopgJdhz7p9hP+nT1GTGjFzxQe5tYqtJ5BqDz8HqNWYGY+7SecmDEkGIhwBJpsEAQ==@linaro.org X-Google-Smtp-Source: AGHT+IEcbz4IqcKy/JnM5Kb8UQdmkP719OMxr1pg7O1b2TPgPW8EYHWj6i8LHR6nh/D2uo5T0Hqt X-Received: by 2002:a05:622a:1454:b0:463:4bb6:bfe2 with SMTP id d75a77b69052e-467a586d403mr85474671cf.50.1734117377220; Fri, 13 Dec 2024 11:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117377; cv=none; d=google.com; s=arc-20240605; b=FafS8jRkotrobiqjE4S4EQAEF6t4Nrw0YsZINJjLG+RDGX1BzE1JXXu5+oJ6XcZNkt iKIhh3irKiRPWP0hmUFzFhh8TwpSnbLjz9GKZXm8NuEUSqM6C0zw7jAGsfKuT2TE3MQk DFupYs8AP/+sw9Qmr+qj/9iH+u1sbHK1HeFSBBkUkZNk85/JtOkS/++6paZpzulJXg9j G0JbJ1p8I6HGodmsp6ib9xqWZReTLF+DNC6jwj14SQ25PZZjGxNHMGIpp2ScOpsuG2Mi h/2B9ji+W8HuznQpUaOpYuYUejVXeQyaZKIAzHxa07tJi0d9trxKwh6y+0TJGsNf/LMC M10w== 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=nUKbNfLNV7tMpEPRQXiu5pUDo41X11Gr2PRR67Zp9bQ=; fh=4FhJE64OdjKWic7VxHFsOJ2gMzyrLs7T842YzM1IHHE=; b=BfURyoHJKSbwdPmCZmcX/gplJD6jJTFu+E8r23lCzqhkZOGpqSr/U+W/1WQ5mdaOTT hynvffrKhh0ZyKNCdTMBS0lWWSv9uHYmdLve79TOSfnG0/yP+oikAOgScii5+Qizspbc HUpd0mzuegrm5f8PjelpZ4rLdfJWwnQRH7ojWNlnfJGaKI5+BNb1jXQUj/KI5qHSifxS VB7kKw5llERWMT+U9FE0jeir26r90z+RQL6j9m127kBhzcSSvibWKm6brSP9lUQSqGwd Aqmph/FDbtVjfi6vzrgt1Ba6ZRYp3jjUjlzFd0C4HU1DSw1KI0NBFbKKRjo9wfe73Hyv Eh3Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y6O9yECd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2eefed6si1351851cf.518.2024.12.13.11.16.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:16:17 -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=y6O9yECd; 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 1tMB7R-0007Sk-CC; Fri, 13 Dec 2024 14:14:33 -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 1tMB6v-0006CQ-LH for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:03 -0500 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6r-0007V0-2T for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:01 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-29fc424237bso905223fac.0 for ; Fri, 13 Dec 2024 11:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117235; x=1734722035; 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=nUKbNfLNV7tMpEPRQXiu5pUDo41X11Gr2PRR67Zp9bQ=; b=y6O9yECdk1IEQeyjfZ18sFJICDheGvB0V0h1RXGzfkwehBKJi+LJu7+XJAYBbtVUFx peX3WkhAT/KOil+FJ1yVYcTdXb0odBfLA8Sy5J4o/Lwgbmc+Vs2/Lt9z9I6wOeEi++Cc XqKD1GfQ2RnWI7L4EHoy/lB6rqOxpPqs16uBRnsANzaLu562viA6HqqAskhtC7D1PXyX Vmy8FSsYxSQXqKUq/eUlq98KOpxwG7QdzYYIgD9tfYVCDZnH9VKuLTz9CRu+nDRpM73v GDiFO/5MQOyklzr9yHHxmhZ9H1kKm3EApAjzWffzel7HUCjRXORlXbEY3ryeiKsGILmB wlNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117235; x=1734722035; 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=nUKbNfLNV7tMpEPRQXiu5pUDo41X11Gr2PRR67Zp9bQ=; b=pKOmD2gEMNJ0wFexDGdNGyqUoxigCScxV6Icy6VtFlhHvxtB0PHCZXptuTs3FC7fCR X7tDh6gr6Boe5pttaHK2zeouCLJGoCvNQfASsLsv+V95LKp0Nbd4HZC33rE66hVzY+Co oIvWDl53skrM3+mRubnnM1dPvkn4EqY2UiRb3NboK58y9+gadQFYu3Qhd/3igw3oW/9u VZ89RMQj0nImMcXHlEdfPHACFl4JKhUDBAQm3JQdaObs/7oNMk/AYyeu5AJw0s/ERw5M oS5+m/qrMbLjii8l5B97uNE3Tn74QOtFdiweJn+TcNSMTtkCYlpZ5iDuET2ZNLihZ+rs OvFA== X-Gm-Message-State: AOJu0Yxk5gW6Se+ytUf1ZJJh3pKxxAcUxy1w+DHFZ9XDkk5UevZ2KRRl OhZ+Ic3OxZaJyAjFopIh5bBgd9bLQ7SFUsgKOTB/snNkLj4MddvWDWjmVbxfXzkFpU8GhldkVD+ MoYtSKWPv X-Gm-Gg: ASbGncsJ4xwITSacAKtbo6wqsIwQupOeCaK8oyHi0RuOJ8quVceA+VlQhpjZgCcv+68 gFJB/Qyga0JS5ouZyvy0Q5cZ0G0nSP9vQKILXeegxeXiL6mbfeNphBHmI0n2pKPU/qrzQHShmO6 H4oWbBXaL6DWCZZlb7oGNS/VOBIANKLDcutQ3ftGnSQe+mHISsJucywkvx7Kdan/u03x4JG66MR +0iT3qqVHngYcsSvkwtrd4C/TNEqGksEcUbLAtmz9dC0IspMz+q7cdOQlyJUZ9l X-Received: by 2002:a05:6808:1482:b0:3eb:63c9:fe87 with SMTP id 5614622812f47-3eba6864579mr2334125b6e.16.1734117235695; 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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:55 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Laurent Vivier Subject: [PATCH 42/71] hw/nubus: Constify all Property Date: Fri, 13 Dec 2024 13:07:16 -0600 Message-ID: <20241213190750.2513964-47-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::30; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x30.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/nubus/nubus-bridge.c | 2 +- hw/nubus/nubus-device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/nubus/nubus-bridge.c b/hw/nubus/nubus-bridge.c index a42c86080f..83893e5a46 100644 --- a/hw/nubus/nubus-bridge.c +++ b/hw/nubus/nubus-bridge.c @@ -23,7 +23,7 @@ static void nubus_bridge_init(Object *obj) qdev_init_gpio_out(DEVICE(s), bus->irqs, NUBUS_IRQS); } -static Property nubus_bridge_properties[] = { +static const Property nubus_bridge_properties[] = { DEFINE_PROP_UINT16("slot-available-mask", NubusBridge, bus.slot_available_mask, 0xffff), DEFINE_PROP_END_OF_LIST() diff --git a/hw/nubus/nubus-device.c b/hw/nubus/nubus-device.c index 26fbcf29a2..7cafc13427 100644 --- a/hw/nubus/nubus-device.c +++ b/hw/nubus/nubus-device.c @@ -107,7 +107,7 @@ static void nubus_device_realize(DeviceState *dev, Error **errp) } } -static Property nubus_device_properties[] = { +static const Property nubus_device_properties[] = { DEFINE_PROP_INT32("slot", NubusDevice, slot, -1), DEFINE_PROP_STRING("romfile", NubusDevice, romfile), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:07:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850270 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1692343wry; Fri, 13 Dec 2024 11:28:39 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXi6zaIP4C8rfHOs1Fb0fiAxfZK4ELbZcf5X0CA/eQZCdX7JQ2HVKmGAkrtZA7p9h1aNHXm3A==@linaro.org X-Google-Smtp-Source: AGHT+IGNlta0mIaV4Xp7FQZx/yHjZqw6g0MazPiyqPVMQA8HpS9BTTcDJwcfzt2sX5vUmZycAmHF X-Received: by 2002:a05:620a:2943:b0:7b1:543d:c99 with SMTP id af79cd13be357-7b6fbef6a01mr676011185a.24.1734118118748; Fri, 13 Dec 2024 11:28:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118118; cv=none; d=google.com; s=arc-20240605; b=DlAqJfwcvNGhUzGj1GY3WSOSX4ALjaj8653KLI0LyINvQELHKNjeVCx5CqxPSrKYeC ODtMCKNGyBU5fIFx2836UjsPGXP53yyGNXaQAnZaa3RTv3WeReR4tPusu0erBi8K3Gxu Tp6K0IYABE7FAOisRqX17BxA2Tw8f1x7CY4O6D/oXRhBym8y7ncSjwNZtNkCWmFeTpVo C7l2ayoWN02l9Ym+NTQMaiVVOFlDKcmiQFWGBJpS+mPia+ZMdEXpZO/A9aFun1Qqh+ql XpASvYYLnZkhvZpb/Uc4gVzwsh4H7z24QnW8Y3q9S+Uu89bgeRPyWCOMf6gfPufNYWnG +Qyw== 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=FiW+nVfejzKaY0iptH499hOz00aUO6MutHuzR37Z/m0=; fh=/4ozd0f5kAG+ezpHehPc2EoPAG6YPNkWH7QZelO3K94=; b=MdXTKOeAs1HbcHio1qaAj3PqfsNmUK4gfxV4gIQFBVf1s+YU0+cyfFD/FAiaVz4/Nz lN9nBiBgO1+uhXGlw4RvWzbLL/11XIKCe4D6OZbkK/RTDyQ1mvi4O1h0nbWwHqMqzY8K 6x0kxQ/MzkKPmNc7rOqqsmXa8bzt/wkVn7nJyd919RPss3OT7m9NSxFRrNeWXAAqBnf2 Gwu/VzvD6fQ7ajrEIWDuBBknlG8Gl64eJwBjdeVhEF/unjELbOycI2dIxupDOziN7w72 UCQ/5A0FHNy8JoRX1K3mvldobcRM/+lo0RvCbgH5Rn/So6/Q/eoPcLbfLkj7GJR1Twoc DytQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AwRwh+25; 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 af79cd13be357-7b7047ca79dsi16060885a.124.2024.12.13.11.28.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:28:38 -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=AwRwh+25; 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 1tMB79-0006WH-At; Fri, 13 Dec 2024 14:14: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 1tMB6x-0006CT-2P for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:03 -0500 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6t-0007VL-1x for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:02 -0500 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-29e61fcc3d2so1616999fac.2 for ; Fri, 13 Dec 2024 11:13:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117237; x=1734722037; 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=FiW+nVfejzKaY0iptH499hOz00aUO6MutHuzR37Z/m0=; b=AwRwh+25T8+CXpngTjJBJP5G7E6kciV3InQg/fPVQhKgGajnxkLwtL5QbGklZiRefE px+348etybMUjdNN0OdaW7wC0DKlTar1bZUxGKGCN6SXEJmXBsreY3W7JWyld+/bTLnJ uv4lbc9GcxftPz34SuOKbDx7gFVzGYfWEl/T44kisGoxJrgOvod1PARCbxS+zkjuKlo8 srglzu/SyvOdZN0cqzfJECkwim7/ijvgSbABbab9nCTYvXEhhueeAewYlot0p7AaSGkf oqwiyQ7A4QuCQZxz/LsgU9jW0QR2RjXmNkLl4x9OwcOWdgdgK/RefUUkyJjkmDBklabe PMnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117237; x=1734722037; 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=FiW+nVfejzKaY0iptH499hOz00aUO6MutHuzR37Z/m0=; b=Px3lEy/dUVSxnHmrIcRMXaaS/1gleEelEEZXVUFlgF72CYJYigVCXV4kBhPxEjwgGY yVDHZRJoXsoWUP8y3QMbwi+cH97FvSCI8p9hOA8JS9s1dJF6GFKi1vLwQDmIsgWDusLN Efo/l+SUQl6ngms+ib//QIoZT5xDw0h88VKN/tw/89llBUo7G3POZkDtosk1zNnngaIK qbRW+kZpBueAZuLGPbCSLXhH7zKO5SUPDgF8OeVeB5nf2wflyfeTZMcsXRxU7ZCttUrm 66HRf/q2wxLV8xwV8KdelwdGUjByOZlv34qAOXPyZIv7Oyu+6cfV0+qrSH80pWj2xEGh I3zw== X-Gm-Message-State: AOJu0Yxi6cRAvB6bhrarhovpST/GlS6fwe/7phQxejgWr9teRP0JXGkS 7tRktiKXvJf5rQOoXncE+psLxKwtEqpKf1mA/hle2A1SQkzvqbp0NIzhkAyhaV92RR+XGPjPuG0 msOj30ywG X-Gm-Gg: ASbGncuH5Mqg0+mpk0X9tR7h8x7WhuLcx1THDzm0W5b1B6/xuG93ncxggAZ5fZnLCzZ dhnN6prbI5PEFa486IDTFv8uEQDsABitLMyDD/heXwShQnN0BTaXuq4YGYUPvDAyXRCPtMbAArp djyRrSNeB8iqY2rrnCKR5vhDfJqtguyzdYQCZj4HEsy0lypfYWMXJJic4OV8h75//j5F2Ve7Wqh kIcRrAG0EU9JcFsEUDERyj2+FY7uXSROKrJI4vM0JjH1ExyGxtEgyXyJxzswZxb X-Received: by 2002:a05:6808:158c:b0:3eb:6351:c265 with SMTP id 5614622812f47-3eba6864516mr2393535b6e.16.1734117237556; Fri, 13 Dec 2024 11:13:57 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:57 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Keith Busch , Klaus Jensen , Jesper Devantier , qemu-block@nongnu.org (open list:nvme) Subject: [PATCH 43/71] hw/nvme: Constify all Property Date: Fri, 13 Dec 2024 13:07:17 -0600 Message-ID: <20241213190750.2513964-48-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::29; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x29.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/nvme/ctrl.c | 2 +- hw/nvme/ns.c | 2 +- hw/nvme/subsys.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index ec75419566..33a3062466 100644 --- a/hw/nvme/ctrl.c +++ b/hw/nvme/ctrl.c @@ -8927,7 +8927,7 @@ static void nvme_exit(PCIDevice *pci_dev) memory_region_del_subregion(&n->bar0, &n->iomem); } -static Property nvme_props[] = { +static const Property nvme_props[] = { DEFINE_BLOCK_PROPERTIES(NvmeCtrl, namespace.blkconf), DEFINE_PROP_LINK("pmrdev", NvmeCtrl, pmr.dev, TYPE_MEMORY_BACKEND, HostMemoryBackend *), diff --git a/hw/nvme/ns.c b/hw/nvme/ns.c index 526e15aa80..192b80f18d 100644 --- a/hw/nvme/ns.c +++ b/hw/nvme/ns.c @@ -799,7 +799,7 @@ static void nvme_ns_realize(DeviceState *dev, Error **errp) nvme_attach_ns(n, ns); } -static Property nvme_ns_props[] = { +static const Property nvme_ns_props[] = { DEFINE_BLOCK_PROPERTIES(NvmeNamespace, blkconf), DEFINE_PROP_BOOL("detached", NvmeNamespace, params.detached, false), DEFINE_PROP_BOOL("shared", NvmeNamespace, params.shared, true), diff --git a/hw/nvme/subsys.c b/hw/nvme/subsys.c index 77deaf2c2c..3171c3888c 100644 --- a/hw/nvme/subsys.c +++ b/hw/nvme/subsys.c @@ -216,7 +216,7 @@ static void nvme_subsys_realize(DeviceState *dev, Error **errp) nvme_subsys_setup(subsys, errp); } -static Property nvme_subsystem_props[] = { +static const Property nvme_subsystem_props[] = { DEFINE_PROP_STRING("nqn", NvmeSubsystem, params.nqn), DEFINE_PROP_BOOL("fdp", NvmeSubsystem, params.fdp.enabled, false), DEFINE_PROP_SIZE("fdp.runs", NvmeSubsystem, params.fdp.runs, From patchwork Fri Dec 13 19:07:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850248 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1689162wry; Fri, 13 Dec 2024 11:20:07 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVr8dxf3rhQSbOkBHkhF7Y4JUP/GuwXoHq785OUj6hQGBUEJs/sTFGKgPcoBfiJcjnNdFQQNg==@linaro.org X-Google-Smtp-Source: AGHT+IHOOSPQgXx9gQn4JezhwI1frhLhn/ryUEIv244AAqlfCVQJWRuSaRYqQCsz67yv4px5M8pE X-Received: by 2002:a05:620a:6285:b0:7b6:6642:b5f0 with SMTP id af79cd13be357-7b6fbecb7b5mr553633785a.11.1734117606532; Fri, 13 Dec 2024 11:20:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117606; cv=none; d=google.com; s=arc-20240605; b=d69q75asys2cUB+LrnGLfuCxeE0CGWJNog/0orxQkE67yuDwerLpnKzghtZ0z6ANIi rwIpGlDrIzoCvgEx8ZBvOeAhmonPuwwN0x1LRy4aFKZaviXjqOT6EpHzt2LA8Epk1fGT Jb6gflIX3Qnf75X4rr/muVD8fGbsDJYxzC+VDR6zQVbG60XcbXHLZg/+1HYOfslB2wyT UyWGnBPlre7tb/UU79gl6fznyfOpAbcSFaUf+nd6PgFlZDXKUTqB0fThf20rWPIlTTp+ QsRBQP+Qo5LwaBVnRXBrhsAgjpnTa6L/mUtQiPmSwyyIxNg/Ke6+7usBCdoy5luYxFEX 4uGw== 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=iFwnVaMVK9pfiO5zNGncf7wC5DNSQZHLJ7Ggx4d/5SQ=; fh=aFu8GgTC7l716EelWtS+xk8bZpYHfd5oBbSw+lZgjEY=; b=bVrzDLbHRKnbphmnnQKnsk1td3T0LrUiFtZ0XhGfPZi5oRRZcPQhzFguoqa3pDhgEu 5v94Ly4sfxJsN7BWz49RNa0bQuWz/hcfro8vNGMIjFEBZUxtZPyH0T6EMn/XaDmIIdqO m80IFrKCUgKA7qU3Y+gOp1gA1HFW3yaGXCeF919bycqO6LNujmAXj7RLhw55wNbdD6ZX jvBn4aF+rLq3kZUIlxREC0gR0TZ/GRpMqZzHn8ZVafDndpsELVAFGEizwhYEgbtlwHP9 d72/CsdQ/x/R6CwU3+aCjN4HCpgzfu9sjYmjX3PZ5+ykfAoO4pFwrx3rN1hG7LvRHjga ZRHQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sKnlxahX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2c96653si1800341cf.129.2024.12.13.11.20.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:20:06 -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=sKnlxahX; 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 1tMB7f-0007kb-1s; Fri, 13 Dec 2024 14:14:48 -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 1tMB72-0006ID-Ek for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:08 -0500 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6v-0007W2-8S for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:07 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-29ff039dab2so1026455fac.3 for ; Fri, 13 Dec 2024 11:14:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117240; x=1734722040; 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=iFwnVaMVK9pfiO5zNGncf7wC5DNSQZHLJ7Ggx4d/5SQ=; b=sKnlxahX6wqEJSFG+WnvlZQUoJWj744b+1YJAqBpY08GBHLUHnB2YDrMTpNMT257/B Hohe6oxbUDraKwcrTFUWedkiDgN20miNn04AJ8SZ/yt3gZhrwPM+FgOKFWl9i2i0P7u/ 1Ypp5SXVMWjKNhmkzKQm0brP/ys1vY3yBVS9vqIN3Z7//r5SbfYOZkQiFe70+o0HxJ7K cGXcidnw5A2plafY6Slb6T1L8ddn1v0WWvqUjuG+mKfD68lgUZtYYc+UucLD0gT3SjJT vYWB4ETPL4KrxVqq6e/cLUthj8/wg/adKdG16hwQ+HnKzqnOBYJqn+oLe83Ts/TWSPqQ /Sgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117240; x=1734722040; 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=iFwnVaMVK9pfiO5zNGncf7wC5DNSQZHLJ7Ggx4d/5SQ=; b=OG6PI9YnJWwm5Vkkp7D1OkolZLzbePdrTbPWlB6f80AYaS20QPwWRxh2hpKWaMEP8I GIJ6fEFBhrr896D0tPF60nN/d6FmnNMqysHW6I/r7hYeIQkAgrVzI3KYxbvt6Mp1IGnY 7vf09VA7XbBH7bGAS3k5TYlkWNmFO04JrETL2oPfwGtZsUbAq6LfA3FBj9HPMk6EXxve pvehnZdt1D4X/ChQcP61yRIXDK74MoD3zZilssgmOvU2Fmks+RJJgG8eoyOKYwS/q8kJ aFIz9pSQqZoA3lGjCZvOHX+BiIs5oOUAo7Vs0RfOl7GofS7aLyeFZDADRgt+D2jRrUxt wZSQ== X-Gm-Message-State: AOJu0YwJAw6OuHAgey2FMyPFo4jdZsMvJCMZzj36Qa6aYJBBgro7PV4f QSimROsCRkrVXfsqWoe7+5gVKpGmNAVvaRaeDCzuCSKtWJxzwrTimh8mfrr9wFlpSYH8RJgn/BN dVvCPgtbC X-Gm-Gg: ASbGncuagcM7tXM0KVWArAOj8Wk5Y9jbFjpWGuOfhzA6wSk/GOVnQB4Mmw48p9HQ8pl FHMBlm+NItxhQjM1X3J7lPRN2tanotGU42nJ7iDTfVgVfOpvC0Ze1857yODxex8vFgi6RuzXx56 ia3tmo0EUHfIpRHYK7rwqSVMrEJ8vv/QnSDR/6ACS7l88OuS2Gv6MzR+OE9rlMT7tdhp1KZm00F fEwnTOjS0EFOgVAsGCh71gcT3eZbc4ito8YBDUEiTb9fqSeMGYNv8+MocDqtCib X-Received: by 2002:a05:6808:1596:b0:3ea:37a7:394 with SMTP id 5614622812f47-3eba6955bd8mr1970139b6e.34.1734117240023; Fri, 13 Dec 2024 11:14:00 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Herv=C3=A9_Poussineau?= , Aleksandar Rikalo , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Gerd Hoffmann , Mark Cave-Ayland , Joel Stanley , Peter Maydell , Nicholas Piggin , Daniel Henrique Barboza , Harsh Prateek Bora , Alistair Francis , "Edgar E. Iglesias" , qemu-ppc@nongnu.org (open list:New World (mac99)), qemu-arm@nongnu.org (open list:NRF51) Subject: [PATCH 44/71] hw/nvram: Constify all Property Date: Fri, 13 Dec 2024 13:07:18 -0600 Message-ID: <20241213190750.2513964-49-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::30; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x30.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=unavailable 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/nvram/ds1225y.c | 2 +- hw/nvram/eeprom_at24c.c | 2 +- hw/nvram/fw_cfg.c | 6 +++--- hw/nvram/mac_nvram.c | 2 +- hw/nvram/nrf51_nvm.c | 2 +- hw/nvram/spapr_nvram.c | 2 +- hw/nvram/xlnx-bbram.c | 2 +- hw/nvram/xlnx-efuse.c | 2 +- hw/nvram/xlnx-versal-efuse-cache.c | 2 +- hw/nvram/xlnx-versal-efuse-ctrl.c | 2 +- hw/nvram/xlnx-zynqmp-efuse.c | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/hw/nvram/ds1225y.c b/hw/nvram/ds1225y.c index 6d510dcc68..19bf8d2091 100644 --- a/hw/nvram/ds1225y.c +++ b/hw/nvram/ds1225y.c @@ -142,7 +142,7 @@ static void nvram_sysbus_realize(DeviceState *dev, Error **errp) nvram_post_load(s, 0); } -static Property nvram_sysbus_properties[] = { +static const Property nvram_sysbus_properties[] = { DEFINE_PROP_UINT32("size", SysBusNvRamState, nvram.chip_size, 0x2000), DEFINE_PROP_STRING("filename", SysBusNvRamState, nvram.filename), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/nvram/eeprom_at24c.c b/hw/nvram/eeprom_at24c.c index ec748e58e7..669920b2b9 100644 --- a/hw/nvram/eeprom_at24c.c +++ b/hw/nvram/eeprom_at24c.c @@ -234,7 +234,7 @@ void at24c_eeprom_reset(DeviceState *state) ee->haveaddr = 0; } -static Property at24c_eeprom_props[] = { +static const Property at24c_eeprom_props[] = { DEFINE_PROP_UINT32("rom-size", EEPROMState, rsize, 0), DEFINE_PROP_UINT8("address-size", EEPROMState, asize, 0), DEFINE_PROP_BOOL("writable", EEPROMState, writable, true), diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c index b644577734..fe73a2c1ef 100644 --- a/hw/nvram/fw_cfg.c +++ b/hw/nvram/fw_cfg.c @@ -1103,7 +1103,7 @@ static void fw_cfg_machine_ready(struct Notifier *n, void *data) qemu_register_reset(fw_cfg_machine_reset, s); } -static Property fw_cfg_properties[] = { +static const Property fw_cfg_properties[] = { DEFINE_PROP_BOOL("acpi-mr-restore", FWCfgState, acpi_mr_restore, true), DEFINE_PROP_END_OF_LIST(), }; @@ -1294,7 +1294,7 @@ static void fw_cfg_file_slots_allocate(FWCfgState *s, Error **errp) s->entry_order = g_new0(int, fw_cfg_max_entry(s)); } -static Property fw_cfg_io_properties[] = { +static const Property fw_cfg_io_properties[] = { DEFINE_PROP_BOOL("dma_enabled", FWCfgIoState, parent_obj.dma_enabled, true), DEFINE_PROP_UINT16("x-file-slots", FWCfgIoState, parent_obj.file_slots, @@ -1343,7 +1343,7 @@ static const TypeInfo fw_cfg_io_info = { }; -static Property fw_cfg_mem_properties[] = { +static const Property fw_cfg_mem_properties[] = { DEFINE_PROP_UINT32("data_width", FWCfgMemState, data_width, -1), DEFINE_PROP_BOOL("dma_enabled", FWCfgMemState, parent_obj.dma_enabled, true), diff --git a/hw/nvram/mac_nvram.c b/hw/nvram/mac_nvram.c index e47e52a677..d62ad719c8 100644 --- a/hw/nvram/mac_nvram.c +++ b/hw/nvram/mac_nvram.c @@ -134,7 +134,7 @@ static void macio_nvram_unrealizefn(DeviceState *dev) g_free(s->data); } -static Property macio_nvram_properties[] = { +static const Property macio_nvram_properties[] = { DEFINE_PROP_UINT32("size", MacIONVRAMState, size, 0), DEFINE_PROP_UINT32("it_shift", MacIONVRAMState, it_shift, 0), DEFINE_PROP_DRIVE("drive", MacIONVRAMState, blk), diff --git a/hw/nvram/nrf51_nvm.c b/hw/nvram/nrf51_nvm.c index b1f81752a3..236049462b 100644 --- a/hw/nvram/nrf51_nvm.c +++ b/hw/nvram/nrf51_nvm.c @@ -354,7 +354,7 @@ static void nrf51_nvm_reset(DeviceState *dev) memset(s->uicr_content, 0xFF, sizeof(s->uicr_content)); } -static Property nrf51_nvm_properties[] = { +static const Property nrf51_nvm_properties[] = { DEFINE_PROP_UINT32("flash-size", NRF51NVMState, flash_size, 0x40000), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/nvram/spapr_nvram.c b/hw/nvram/spapr_nvram.c index bfd8aa367e..2251ff2f4c 100644 --- a/hw/nvram/spapr_nvram.c +++ b/hw/nvram/spapr_nvram.c @@ -252,7 +252,7 @@ static const VMStateDescription vmstate_spapr_nvram = { }, }; -static Property spapr_nvram_properties[] = { +static const Property spapr_nvram_properties[] = { DEFINE_SPAPR_PROPERTIES(SpaprNvram, sdev), DEFINE_PROP_DRIVE("drive", SpaprNvram, blk), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/nvram/xlnx-bbram.c b/hw/nvram/xlnx-bbram.c index 1bc58e90ad..4fa528f048 100644 --- a/hw/nvram/xlnx-bbram.c +++ b/hw/nvram/xlnx-bbram.c @@ -520,7 +520,7 @@ static const VMStateDescription vmstate_bbram_ctrl = { } }; -static Property bbram_ctrl_props[] = { +static const Property bbram_ctrl_props[] = { DEFINE_PROP("drive", XlnxBBRam, blk, bbram_prop_drive, BlockBackend *), DEFINE_PROP_UINT32("crc-zpads", XlnxBBRam, crc_zpads, 1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/nvram/xlnx-efuse.c b/hw/nvram/xlnx-efuse.c index f7b849f7de..5dae9e8e9a 100644 --- a/hw/nvram/xlnx-efuse.c +++ b/hw/nvram/xlnx-efuse.c @@ -265,7 +265,7 @@ static const PropertyInfo efuse_prop_drive = { .release = efuse_prop_release_drive, }; -static Property efuse_properties[] = { +static const Property efuse_properties[] = { DEFINE_PROP("drive", XlnxEFuse, blk, efuse_prop_drive, BlockBackend *), DEFINE_PROP_UINT8("efuse-nr", XlnxEFuse, efuse_nr, 3), DEFINE_PROP_UINT32("efuse-size", XlnxEFuse, efuse_size, 64 * 32), diff --git a/hw/nvram/xlnx-versal-efuse-cache.c b/hw/nvram/xlnx-versal-efuse-cache.c index eaec64d785..1aea27afd3 100644 --- a/hw/nvram/xlnx-versal-efuse-cache.c +++ b/hw/nvram/xlnx-versal-efuse-cache.c @@ -83,7 +83,7 @@ static void efuse_cache_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property efuse_cache_props[] = { +static const Property efuse_cache_props[] = { DEFINE_PROP_LINK("efuse", XlnxVersalEFuseCache, efuse, TYPE_XLNX_EFUSE, XlnxEFuse *), diff --git a/hw/nvram/xlnx-versal-efuse-ctrl.c b/hw/nvram/xlnx-versal-efuse-ctrl.c index 8252a5cabe..599aa126fb 100644 --- a/hw/nvram/xlnx-versal-efuse-ctrl.c +++ b/hw/nvram/xlnx-versal-efuse-ctrl.c @@ -743,7 +743,7 @@ static const VMStateDescription vmstate_efuse_ctrl = { } }; -static Property efuse_ctrl_props[] = { +static const Property efuse_ctrl_props[] = { DEFINE_PROP_LINK("efuse", XlnxVersalEFuseCtrl, efuse, TYPE_XLNX_EFUSE, XlnxEFuse *), diff --git a/hw/nvram/xlnx-zynqmp-efuse.c b/hw/nvram/xlnx-zynqmp-efuse.c index 4e2d1b9d1e..af53187905 100644 --- a/hw/nvram/xlnx-zynqmp-efuse.c +++ b/hw/nvram/xlnx-zynqmp-efuse.c @@ -833,7 +833,7 @@ static const VMStateDescription vmstate_efuse = { } }; -static Property zynqmp_efuse_props[] = { +static const Property zynqmp_efuse_props[] = { DEFINE_PROP_LINK("efuse", XlnxZynqMPEFuse, efuse, TYPE_XLNX_EFUSE, XlnxEFuse *), From patchwork Fri Dec 13 19:07:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850238 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1687267wry; Fri, 13 Dec 2024 11:15:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWVJ1suGFSC0cudGaNSU2IGVIgCTA184uzPXKKC+3zJ7bkCNr5qVyYqS4s3I/D9LH3wX9a4rA==@linaro.org X-Google-Smtp-Source: AGHT+IE9KHutR3Vo6eIPpXtrfJ8TWWtP/eSDAlpmk3I+VLE32OuguJtXTfjyWDwNolc8QopHEjDC X-Received: by 2002:a05:6122:ca4:b0:518:8bfe:d5f0 with SMTP id 71dfb90a1353d-518ca2144f9mr4561306e0c.0.1734117347935; Fri, 13 Dec 2024 11:15:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117347; cv=none; d=google.com; s=arc-20240605; b=kBfsLMWqeW6qgF17x284fll7Nn3zN3QapDi0Ljfh8RRa+iPiPaDlfMsN+JHRyK/2S8 9nkB62xu6dZNhPuCgc49NlSHFXzwEvMelAVmq9AtWy7TsyZncKV/bnnBQd1iZIuYCwXe gCZiL01mGawn0BYRqwOqrmlvGde/MP3X/zKJceVDahv56ofJVuL1HhZZUeUVgt4I1yGc nb9nTdob81UQklEyHNFf02TkFwdMfsL/IZCyPsCIrKCOvWCQe2JuPXJNCJMj3mg5U4cp rx4BZ3+NzSS/vvKVZABAEVIGjpNM+dE270PhFnAik3dDXkQvIA7Ggw+jTVbKRwzgBRsn iQbw== 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=MdpsJAhLYte2lIkZLag9WCSXb1FF/foqWHpt7GOwf7s=; fh=E41Q2P+Cu+CvYV24CLTB+qaT7Cyj2ap7SWyOeE+O12c=; b=As41N7qtQhWJuKbQTLHFf7neOJ+n/zqfDRF1EPmkWz+NviLX/evR2M0efP6/x6pSpR U2JQsTLnRvqwKq2eNG549gsW9usbTtLxfOl8q/q0ZKc7/2w5syQSsnLqG4pCGej+v0Mw E5XDdYF5cdMGfb8dIptBA1wvsj+tZsOuW4ONoC3TOd2SkmW2gT+lLyWTVvFktehjN/y6 8IAeQ6vX4/rjTVowG9uy9kxImy9dlXPYSDkQjcX83jrp/3n78koxy+yfh0z0Cf2Zyhkl 5lGwdnGdgOu+SMw6ikrrSNPxn5+dfGaxnnquxUbWSm+jeZu+XAUz41ZRDf18lYpQWQNW gPdw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bnHlpISB; 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-519eb790e2bsi89890e0c.204.2024.12.13.11.15.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:15:47 -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=bnHlpISB; 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 1tMB7F-00070J-TG; Fri, 13 Dec 2024 14:14:22 -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 1tMB71-0006Hi-7P for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:08 -0500 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6y-0007WY-1g for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:06 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-2a3c075ddb6so324162fac.2 for ; Fri, 13 Dec 2024 11:14:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117241; x=1734722041; 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=MdpsJAhLYte2lIkZLag9WCSXb1FF/foqWHpt7GOwf7s=; b=bnHlpISBDSoPoBKNV7266WyYnn1Q63g1/bdLGaJmYHczIG2t6sdSpJZP3h+BzBRwZ3 F6qCAfheX4xeGkENvYO6V3K+hJDuyC7S49r4TCsh9OBR68eXnbeaccdYL5vCcqLw+5Wo XTCk19t03acNLQYMFss5R3UOPTqYtM6qOajDFUJcv5L/GBOFtxz57D/jjeYycixTLy6x AV+v4G3sCHW9wVZaxy/WdKIBZ7tM75nZRQ3c8+cWJw5xBS1ed3w/88KzRRvhAaqY3v6+ HuGkhfwWZ/dTb7XXqJ5XEKSovNuOjGw8XXOIc1DqsxxS2XgETcE8QIaXFX28jvo3zgnI elFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117241; x=1734722041; 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=MdpsJAhLYte2lIkZLag9WCSXb1FF/foqWHpt7GOwf7s=; b=ftFp0weP535HJ+ZSxb9zZi0N7kNERInQoME8mRBZbT5O9w3rMIuXXfK5J9pVIZTCWv GoU9rBhpdnmXASM9kJIsehVP7gJXR+JMzOXwYVi2gsJu/7GjOpFaeFKo9YulY0YHHWW9 d96vBiVYYocyHAb+pAMSq6hs0bAvdjUBdx4+oYABN+hKS0ci2heZAtwh1FiEAloX688q 6h4pVBImFZE58VLRhFytBDdXeIP6vvY/n6ATCZuQErPlSKUODpB+Ou8VIVEO3NMbuxUg qqmcYqwqEPzu0tcOSQxhyf81Yybh2ckjT0Ds1a6rzzEWarU1JIFWgqCJLi3BNF1dyFYJ npRA== X-Gm-Message-State: AOJu0YwsyuSVEhA77sTJjs5PEM7xUR+Z3Mw6bLocEte7MoCg7rwn2f2K 4xz4epJpz0uTQ7mSoC5fhpSv5lwS3YHpXhWsa2NiOcux6EYiyRaAi7KlTNNynbw3tqn1fSo9Ho9 n9cD3G1ye X-Gm-Gg: ASbGncuIetPm1Ut9/pG2ppcfVbjFuCmGLkemx07sNc5jBkXKL++ouhvtG0IqK6dJWsT GbizjHutuFqU8YDcVgJ+S2HYIXyB9kDzi22DU9a/qJjOhTYkZMng+yCcc3QKs7m3HmGD4m/GFiF 1nFtEFIKB4WYtHYw5s/nb3/z8B4Pfo0rR/5Yv99gfBQewu90tLK6ayn8cEbfHDJrznAKz6D5ON+ pKCos6+VpQM8Z5+i+JSu5LTuYas+xh+4svcZxC79Gmls9E8WBS6oizkcWj2D7zm X-Received: by 2002:a05:6808:151f:b0:3eb:5f1a:d083 with SMTP id 5614622812f47-3eba6896469mr2487136b6e.20.1734117241423; Fri, 13 Dec 2024 11:14:01 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:00 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Marcel Apfelbaum Subject: [PATCH 45/71] hw/pci-bridge: Constify all Property Date: Fri, 13 Dec 2024 13:07:19 -0600 Message-ID: <20241213190750.2513964-50-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::30; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x30.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/pci-bridge/cxl_downstream.c | 2 +- hw/pci-bridge/cxl_root_port.c | 2 +- hw/pci-bridge/cxl_upstream.c | 2 +- hw/pci-bridge/gen_pcie_root_port.c | 2 +- hw/pci-bridge/pci_bridge_dev.c | 2 +- hw/pci-bridge/pci_expander_bridge.c | 4 ++-- hw/pci-bridge/pcie_pci_bridge.c | 2 +- hw/pci-bridge/pcie_root_port.c | 2 +- hw/pci-bridge/xio3130_downstream.c | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/pci-bridge/cxl_downstream.c b/hw/pci-bridge/cxl_downstream.c index c347ac06f3..cfe50e60e9 100644 --- a/hw/pci-bridge/cxl_downstream.c +++ b/hw/pci-bridge/cxl_downstream.c @@ -212,7 +212,7 @@ static void cxl_dsp_exitfn(PCIDevice *d) pci_bridge_exitfn(d); } -static Property cxl_dsp_props[] = { +static const Property cxl_dsp_props[] = { DEFINE_PROP_PCIE_LINK_SPEED("x-speed", PCIESlot, speed, PCIE_LINK_SPEED_64), DEFINE_PROP_PCIE_LINK_WIDTH("x-width", PCIESlot, diff --git a/hw/pci-bridge/cxl_root_port.c b/hw/pci-bridge/cxl_root_port.c index 5e2156d7ba..5824ba3c75 100644 --- a/hw/pci-bridge/cxl_root_port.c +++ b/hw/pci-bridge/cxl_root_port.c @@ -199,7 +199,7 @@ static void cxl_rp_reset_hold(Object *obj, ResetType type) latch_registers(crp); } -static Property gen_rp_props[] = { +static const Property gen_rp_props[] = { DEFINE_PROP_UINT32("bus-reserve", CXLRootPort, res_reserve.bus, -1), DEFINE_PROP_SIZE("io-reserve", CXLRootPort, res_reserve.io, -1), DEFINE_PROP_SIZE("mem-reserve", CXLRootPort, res_reserve.mem_non_pref, -1), diff --git a/hw/pci-bridge/cxl_upstream.c b/hw/pci-bridge/cxl_upstream.c index 55f8b0053f..ef94aa3654 100644 --- a/hw/pci-bridge/cxl_upstream.c +++ b/hw/pci-bridge/cxl_upstream.c @@ -362,7 +362,7 @@ static void cxl_usp_exitfn(PCIDevice *d) pci_bridge_exitfn(d); } -static Property cxl_upstream_props[] = { +static const Property cxl_upstream_props[] = { DEFINE_PROP_UINT64("sn", CXLUpstreamPort, sn, UI64_NULL), DEFINE_PROP_STRING("cdat", CXLUpstreamPort, cxl_cstate.cdat.filename), DEFINE_PROP_PCIE_LINK_SPEED("x-speed", CXLUpstreamPort, diff --git a/hw/pci-bridge/gen_pcie_root_port.c b/hw/pci-bridge/gen_pcie_root_port.c index 784507c826..c319ca8263 100644 --- a/hw/pci-bridge/gen_pcie_root_port.c +++ b/hw/pci-bridge/gen_pcie_root_port.c @@ -128,7 +128,7 @@ static const VMStateDescription vmstate_rp_dev = { } }; -static Property gen_rp_props[] = { +static const Property gen_rp_props[] = { DEFINE_PROP_BOOL("x-migrate-msix", GenPCIERootPort, migrate_msix, true), DEFINE_PROP_UINT32("bus-reserve", GenPCIERootPort, diff --git a/hw/pci-bridge/pci_bridge_dev.c b/hw/pci-bridge/pci_bridge_dev.c index 8e7f926621..35a37e056a 100644 --- a/hw/pci-bridge/pci_bridge_dev.c +++ b/hw/pci-bridge/pci_bridge_dev.c @@ -168,7 +168,7 @@ static void qdev_pci_bridge_dev_reset(DeviceState *qdev) } } -static Property pci_bridge_dev_properties[] = { +static const Property pci_bridge_dev_properties[] = { /* Note: 0 is not a legal chassis number. */ DEFINE_PROP_UINT8(PCI_BRIDGE_DEV_PROP_CHASSIS_NR, PCIBridgeDev, chassis_nr, 0), diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expander_bridge.c index 07d411cff5..01997c1ab3 100644 --- a/hw/pci-bridge/pci_expander_bridge.c +++ b/hw/pci-bridge/pci_expander_bridge.c @@ -420,7 +420,7 @@ static void pxb_dev_exitfn(PCIDevice *pci_dev) pxb_dev_list = g_list_remove(pxb_dev_list, pxb); } -static Property pxb_dev_properties[] = { +static const Property pxb_dev_properties[] = { /* Note: 0 is not a legal PXB bus number. */ DEFINE_PROP_UINT8("bus_nr", PXBDev, bus_nr, 0), DEFINE_PROP_UINT16("numa_node", PXBDev, numa_node, NUMA_NODE_UNASSIGNED), @@ -507,7 +507,7 @@ static void pxb_cxl_dev_realize(PCIDevice *dev, Error **errp) pxb_cxl_dev_reset(DEVICE(dev)); } -static Property pxb_cxl_dev_properties[] = { +static const Property pxb_cxl_dev_properties[] = { DEFINE_PROP_BOOL("hdm_for_passthrough", PXBCXLDev, hdm_for_passthrough, false), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/pci-bridge/pcie_pci_bridge.c b/hw/pci-bridge/pcie_pci_bridge.c index 6e8d7d9478..8834ff3dbf 100644 --- a/hw/pci-bridge/pcie_pci_bridge.c +++ b/hw/pci-bridge/pcie_pci_bridge.c @@ -124,7 +124,7 @@ static void pcie_pci_bridge_write_config(PCIDevice *d, shpc_cap_write_config(d, address, val, len); } -static Property pcie_pci_bridge_dev_properties[] = { +static const Property pcie_pci_bridge_dev_properties[] = { DEFINE_PROP_ON_OFF_AUTO("msi", PCIEPCIBridge, msi, ON_OFF_AUTO_AUTO), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/pci-bridge/pcie_root_port.c b/hw/pci-bridge/pcie_root_port.c index 09a34786bc..a7f87a1bc4 100644 --- a/hw/pci-bridge/pcie_root_port.c +++ b/hw/pci-bridge/pcie_root_port.c @@ -148,7 +148,7 @@ static void rp_exit(PCIDevice *d) pci_bridge_exitfn(d); } -static Property rp_props[] = { +static const Property rp_props[] = { DEFINE_PROP_BIT(COMPAT_PROP_PCP, PCIDevice, cap_present, QEMU_PCIE_SLTCAP_PCP_BITNR, true), DEFINE_PROP_BOOL("disable-acs", PCIESlot, disable_acs, false), diff --git a/hw/pci-bridge/xio3130_downstream.c b/hw/pci-bridge/xio3130_downstream.c index 473e2dd950..92e5fb72ec 100644 --- a/hw/pci-bridge/xio3130_downstream.c +++ b/hw/pci-bridge/xio3130_downstream.c @@ -134,7 +134,7 @@ static void xio3130_downstream_exitfn(PCIDevice *d) pci_bridge_exitfn(d); } -static Property xio3130_downstream_props[] = { +static const Property xio3130_downstream_props[] = { DEFINE_PROP_BIT(COMPAT_PROP_PCP, PCIDevice, cap_present, QEMU_PCIE_SLTCAP_PCP_BITNR, true), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:07:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850263 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1691042wry; Fri, 13 Dec 2024 11:24:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUlbDrDhfDIAVO9MGYcKG6RqK6JOzU9w29GR0R/PS33VbQYHee5fc6yU4U0j3VCzbPDpRVOMA==@linaro.org X-Google-Smtp-Source: AGHT+IEl1SeKuLn7tFsLo0a+8AlyfST+L/vuKrqcuXQIjsiAGDvBwqaLdu06XXJE/AKClQORJvKM X-Received: by 2002:a05:620a:28c7:b0:7b6:e0aa:48b6 with SMTP id af79cd13be357-7b6fbf45901mr500312985a.62.1734117896751; Fri, 13 Dec 2024 11:24:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117896; cv=none; d=google.com; s=arc-20240605; b=VXlK+Qi/yQqyE1OudwVMFi57rONfoykVf466O2EpUGdGP/ILD90Yg0ZEClB8UuqVQv CkOHTCtsOVQsWtrfAxOG9LEzFTf+S5zSbGqDVgkHf66lnYbVM5L5ojYBla1JTxBeOpJ2 Jyaszd8KHe9v/hkezsPc1Qe/s5tcwrM+mz8R2Fm95ZLhlrSnde7yDoscd6YjamyKpfNT 2+g3r9DABU0OMoXW2P0yGL0CFm6Sg2CyGjKyKERNNK8aVQeJCagziovkLcQSXWu/Cuq1 XPCvE3IG2FD9w4MHzwwwShmMNqvv0ChWHkkYbNe4YxbJ13DtOYJyZdhLSiGmKjkVfXgK EEAA== 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=ht4ZlthGspVYtEWG+5uRpgdlGJS5T3fuIdiO1kKsIqU=; fh=wDljmxUHXfz9MGj2//jPHYRc53BMWF157v8rVKELrf4=; b=FZ7xNKB0gxeEddCCZ2+u8srbYKuRgjK8Gg2cDczmqWRKLd7a59V75qsAWi0N7Uo/Zd CkhEBREy6KbfG+cQLa33k5p/3zW+4B/rd8vbjJ4+JZ2nPtV0X9BxxUgO69oMLeWR5nMm 4ti53+oh0gTuefW0pKGpniBU0TpVBB0JySpfJQSLR+nI51og44UJbCqXBTgXrf/7BD/v naetvRt2cSvtcEd4TT6HYCxMP/WoXD3I7IXV4Uc7gsaZCoRpxfdUNDoxQSPGLJsH0Cs4 hXJls3xHSaxNKDI3GbI0MjpbkBxMj5t12PtBpOooCOzaCV4uCDGPL6YhA9FcHJD4t2SK jvKg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mONUwRD2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2ef2ba8si1124291cf.524.2024.12.13.11.24.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:24:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mONUwRD2; 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 1tMB8C-0008IR-QX; Fri, 13 Dec 2024 14:15:24 -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 1tMB71-0006HX-7J for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:08 -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 1tMB6z-0007Ws-4N for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:06 -0500 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-29f88004a92so1252808fac.1 for ; Fri, 13 Dec 2024 11:14:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117242; x=1734722042; 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=ht4ZlthGspVYtEWG+5uRpgdlGJS5T3fuIdiO1kKsIqU=; b=mONUwRD2MXRaN0nY/A0cU+d3qyXomnOqz/2q06pw+bmo/FVow1VUfB8Ej/0m84lSWo xUUAcc9fnVRqPQNvekIhcbx00LHKZ3tAWkEiKhi//e9DNHShvRGh3EpFicVnGCJskTkc YOOoU4W/Qkf6sKzXkSUUjvwevZaECIpealOztPaAd2dqndazI9EVXb1V3F5BCUaUbB+/ 0CIdEqjTGjqrLh6zSK4sSBv+gIQxPZIneaLMz7rk0swuhjNJZriFEIgI7Q9t785v3oay pARksdA0e8nNzMFzYAWj7B0ujYQUfEGXCyHiVzIt9030Rcq9Rkduxh8VSkWkv7ogFjCt Krxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117242; x=1734722042; 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=ht4ZlthGspVYtEWG+5uRpgdlGJS5T3fuIdiO1kKsIqU=; b=v4hm5ApXTYQyunL3yWHMsyKC1d7D7/Sqjz3St0hmI58SRmPUfxCoPVKzUg2sht/2pd ZjX/lXG8Lw7TYr6us/6x/nboT8LIID3QVv4FlOc5fdPE77Ds+Jpn4mci8zIzVOVcZVoh kk1xWDSCKzNCyYa20W/Jncl/gJ5RdSMAqty5wJhyaldlG+YSV9uzlkfjKe6cX90S86v9 pTwi83IJyPQORAHrRBhZGo0hID+IM0rtadPtqhhehUONOrSdT93rmA5octnkoxmhdV2X +3WKhOk0yg5a7GKwRlUvQ9l+F7UxqZD7OFbD0f+S2uCBaRlJQUOrhpJz1uyTyN9woHsa idDQ== X-Gm-Message-State: AOJu0Yx1xFs0dCR6LsCMR9/fye9uqLpSFAEPhVXLL5tJpMe0ZptwNdZP Iz5zdK6MHw+MCPPFyHVvXaNRIVkyE3UkJKbi7HQaKKhCvDgpHqtR5HN+lpouTKtjing2liIvhxO s0msJlWnb X-Gm-Gg: ASbGncthzfxpt7cl9YiI/Hg4IIVf3He4VLszcr2yPtJL96d/tLwCcSMuaT5zJXI6wSK BkTVAYQyYHciSiTibXDb69hNP2fyktEXnEwXtDKFTQL7QEMvoGScWjKozly3R0c1At0ZWEnfai+ 4Or7MqU5hYaarIyzs6+8vXSk3QgALEnebduDuKK22S7n98HvOzmeEd5jTr3NWaM9yatS5iSgKFt 4h+2s7jmCgW3QBzp1gniRB7SgX1ep0DfVb6bR6xWvEXS/bEYFQHZr8b7agkKX1Z X-Received: by 2002:a05:6808:218d:b0:3eb:3619:6a90 with SMTP id 5614622812f47-3eba693ab5bmr1514702b6e.33.1734117242461; Fri, 13 Dec 2024 11:14:02 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:02 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller Subject: [PATCH 46/71] hw/pci-host/astro: Remove empty Property list Date: Fri, 13 Dec 2024 13:07:20 -0600 Message-ID: <20241213190750.2513964-51-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/pci-host/astro.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hw/pci-host/astro.c b/hw/pci-host/astro.c index 379095b356..62e9c8acbf 100644 --- a/hw/pci-host/astro.c +++ b/hw/pci-host/astro.c @@ -461,10 +461,6 @@ static void elroy_pcihost_init(Object *obj) qdev_init_gpio_in(DEVICE(obj), elroy_set_irq, ELROY_IRQS); } -static Property elroy_pcihost_properties[] = { - DEFINE_PROP_END_OF_LIST(), -}; - static const VMStateDescription vmstate_elroy = { .name = "Elroy", .version_id = 1, @@ -490,7 +486,6 @@ static void elroy_pcihost_class_init(ObjectClass *klass, void *data) DeviceClass *dc = DEVICE_CLASS(klass); device_class_set_legacy_reset(dc, elroy_reset); - device_class_set_props(dc, elroy_pcihost_properties); dc->vmsd = &vmstate_elroy; dc->user_creatable = false; } From patchwork Fri Dec 13 19:07:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850275 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1694219wry; Fri, 13 Dec 2024 11:32:42 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU4c6CjuQWmS0FoyDjIMiEAEjQy6+SDJIb6zkftw3+MZDFxMBrHJE7Mjv1hNUj7CEAQ8qD9XQ==@linaro.org X-Google-Smtp-Source: AGHT+IG1TGVUdNNVt/R6KKKHEee0tE3peUSVXE6i0zb0wP/3TH4xfHMqTG4HPibDWHP5WQUtKkBY X-Received: by 2002:a05:620a:1a22:b0:7b6:cef9:4f10 with SMTP id af79cd13be357-7b6f8c307dfmr1060558285a.3.1734118362035; Fri, 13 Dec 2024 11:32:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118362; cv=none; d=google.com; s=arc-20240605; b=iFG8cmA9OiuThNijVMrSH34mz7v4kpTOVXoazh8fxhKMpzCLs0/qLzsuMELoMmKG3E I6g0A44+q3UKRPk9TXdWUC1S8MqT1ASXGIDvnfBPdwqM7lQnjrt6kKDUEHbdUyBGJZj2 Ml8LfU0IYQPZ6I72IlTmXuam8pDlx7RiaWZcUyIs7ZotwVKEJ0SrLgp/TSseuXzSyHeN QkEpn4qe9btINK6THM7RRJKNuGUguafL/YtrX+x41IImTlYkAaAswiif0ZVgLX+bfmzU lrlFVim+WNxFhtyPSCavVgs7jtnnm7YLxRWikMJb+NLmRj+RQ80tHY/jcp5uhA8zqpAd YdeQ== 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=87UWZos2QKdOl0brnZZzf+GGdw2+NZalufbZuF6TgSQ=; fh=5gekTL2pOE0o14yhLLciAc9xQIctANo/4x/qECz3I1s=; b=BhZF/xZ8/sexQ7x2B5EXCXYFPSLFL9iHO/JpMe4pi+VEgxsxAmRC/wstIVuyQMaw4r K9qv/eZjmHumnSV/sUjgq+J3BfHgaXnIHKXWL8mcjytLBjWLf6QnXbmE2SDvkok71LLR gS1l2U3xVxMDZPuoV/ymRIKnhgzE7F5yzowGk8NunPxcGfvgHwFD7BMakw1kwpEAqWTe NiOd7gaWQZYeRo4MuBQQ26Ny9HTXPUehWqi0B2d8CWr1g8RJ8WRdyke6Xtw0K8y1uVz6 F/8rdL0cxSkPofG0ax9aDj5CYWLEv6rGUt3Ri3DEYFVemTJfz/HYWmqyF2LUQ5z+KMA7 8NRQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MQ3RBmVL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2ecf100si1544781cf.369.2024.12.13.11.32.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:32:42 -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=MQ3RBmVL; 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 1tMB7X-0007d9-O3; Fri, 13 Dec 2024 14:14: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 1tMB74-0006Oh-Hs for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:12 -0500 Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB71-0007XV-SE for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:09 -0500 Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-5f2da12248fso1551820eaf.1 for ; Fri, 13 Dec 2024 11:14:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117246; x=1734722046; 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=87UWZos2QKdOl0brnZZzf+GGdw2+NZalufbZuF6TgSQ=; b=MQ3RBmVLu9FzGooJu6WgHnUPKi9Gwy0HivyBxGTU38ea850dNP28Fq8u8IiUu6962N e579h/k/ScYxP/ndGFRQSuaBkdOagCbo4JCL4cktOlGR5shrL3N/6RTuqBwFJGp7zDA9 vvib+tHvdshTnXE+mAoQyf9oQO9jhhpI0iWn1LVrcv0+HMK7eok+qYBStmJq27A2XD0p Xigaqg/t2XzutdPuX04D0YbVAY9q1iyD0hzaGHRObvOnDVTX7ouvStns1eO6AGvQ0G2e HRMK8ONE0c3kbftzASryeKHd1u6gTI1HmxZYiiYSmlmxI0ClLcU7jZ3x09qvnXG9l7iB TOLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117246; x=1734722046; 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=87UWZos2QKdOl0brnZZzf+GGdw2+NZalufbZuF6TgSQ=; b=oWaAbilD5luf7LuMc8aAips7mj/tQyqQG8bLrULo85vjoezxzHU8IJrwAHZK2RL4LO ImD6t6j84gsy7ikJDF/2zSdd/0fTPU406rQbwtClZfRvSIWc9xIcM+BzK1NPb1ZkI86o xkDDuGsViSjB1YoIecO1l2A59fWlGrorTxCseFslgmCsc69n/E1BzAOSwCBA9CYAxdDs cRBg+ind50kAde3obWL+neofcaKZOMmyKrc7pafQPYwOWXFCkdT8V/UTcclKfDlEmgOv RW/QHqRxoFkQqT0eGDAuyKux/OuJg66ax8ELBW1LUG9UrcxDqVgcfUEKUMMfADM29dYK K1/w== X-Gm-Message-State: AOJu0YxRkxNrE7LNDB8FzmTjXTxzTsP6pTxkounDGeQNab4g9xDYpSCm 8eQjNncY/bliNbqc03tlf/50A+++ww2aMCXdHZXy6BIh3KKkHb1Vklo4VRi/FK6h0wZhojSHubQ Fmeof5EOS X-Gm-Gg: ASbGncskXb7qb/Yf/mtiOs2tr3mbKregvo+fziwW6wNI8EVpc1mSwQ2CelFJWZu7Adz 9qHbAhXHQSw3TLVuYiKH6R9kumFFKXfmrrNOdk5ulA4Zumq2qkb61sWgJ8T9VPCfyoOwHe562CY EHknBx+Jci2/7doiUEat56Sg3SOkQ3/OI5JZdyuYJr0tRIEIi6a36TxVJ0UKy21CBw0GNSD2DEk 5MxQuMBipZA7jiU/hheVwIu3EouvAouvbylYIAEBEW6HBbedm7vSM0P+oHXmV6R X-Received: by 2002:a05:6808:2191:b0:3eb:4783:df7e with SMTP id 5614622812f47-3eb94f9328bmr4978559b6e.17.1734117245676; Fri, 13 Dec 2024 11:14:05 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller , Mark Cave-Ayland , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Aurelien Jarno , "Michael S. Tsirkin" , Marcel Apfelbaum , BALATON Zoltan , Nicholas Piggin , =?utf-8?b?RnLDqWTDqXJpYyBCYXJyYXQ=?= , Bernhard Beschow , =?utf-8?q?Herv=C3=A9_Poussineau?= , Peter Maydell , Paul Burton , Aleksandar Rikalo , qemu-ppc@nongnu.org (open list:Old World (g3beige)), qemu-arm@nongnu.org (open list:Versatile PB) Subject: [PATCH 47/71] hw/pci-host: Constify all Property Date: Fri, 13 Dec 2024 13:07:21 -0600 Message-ID: <20241213190750.2513964-52-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=2607:f8b0:4864:20::c2b; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2b.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=unavailable 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/pci-host/dino.c | 2 +- hw/pci-host/gpex.c | 2 +- hw/pci-host/grackle.c | 2 +- hw/pci-host/gt64120.c | 2 +- hw/pci-host/i440fx.c | 2 +- hw/pci-host/mv64361.c | 2 +- hw/pci-host/pnv_phb.c | 4 ++-- hw/pci-host/pnv_phb3.c | 2 +- hw/pci-host/pnv_phb4.c | 2 +- hw/pci-host/pnv_phb4_pec.c | 2 +- hw/pci-host/ppce500.c | 2 +- hw/pci-host/q35.c | 4 ++-- hw/pci-host/raven.c | 2 +- hw/pci-host/sabre.c | 2 +- hw/pci-host/uninorth.c | 2 +- hw/pci-host/versatile.c | 2 +- hw/pci-host/xilinx-pcie.c | 2 +- 17 files changed, 19 insertions(+), 19 deletions(-) diff --git a/hw/pci-host/dino.c b/hw/pci-host/dino.c index 283fc0dc57..ead9893f21 100644 --- a/hw/pci-host/dino.c +++ b/hw/pci-host/dino.c @@ -492,7 +492,7 @@ static void dino_pcihost_init(Object *obj) qdev_init_gpio_in(DEVICE(obj), dino_set_irq, DINO_IRQS); } -static Property dino_pcihost_properties[] = { +static const Property dino_pcihost_properties[] = { DEFINE_PROP_LINK("memory-as", DinoState, memory_as, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci-host/gpex.c b/hw/pci-host/gpex.c index e9cf455bf5..8a955ca130 100644 --- a/hw/pci-host/gpex.c +++ b/hw/pci-host/gpex.c @@ -147,7 +147,7 @@ static const char *gpex_host_root_bus_path(PCIHostState *host_bridge, return "0000:00"; } -static Property gpex_host_properties[] = { +static const Property gpex_host_properties[] = { /* * Permit CPU accesses to unmapped areas of the PIO and MMIO windows * (discarding writes and returning -1 for reads) rather than aborting. diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c index 8e589ff2c9..d64de73774 100644 --- a/hw/pci-host/grackle.c +++ b/hw/pci-host/grackle.c @@ -129,7 +129,7 @@ static char *grackle_ofw_unit_address(const SysBusDevice *dev) return g_strdup_printf("%x", s->ofw_addr); } -static Property grackle_properties[] = { +static const Property grackle_properties[] = { DEFINE_PROP_UINT32("ofw-addr", GrackleState, ofw_addr, -1), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/pci-host/gt64120.c b/hw/pci-host/gt64120.c index 14fc803d27..3c73ebe83f 100644 --- a/hw/pci-host/gt64120.c +++ b/hw/pci-host/gt64120.c @@ -1274,7 +1274,7 @@ static const TypeInfo gt64120_pci_info = { }, }; -static Property gt64120_properties[] = { +static const Property gt64120_properties[] = { DEFINE_PROP_BOOL("cpu-little-endian", GT64120State, cpu_little_endian, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci-host/i440fx.c b/hw/pci-host/i440fx.c index 4f0a0438d7..40780fbc52 100644 --- a/hw/pci-host/i440fx.c +++ b/hw/pci-host/i440fx.c @@ -353,7 +353,7 @@ static const char *i440fx_pcihost_root_bus_path(PCIHostState *host_bridge, return "0000:00"; } -static Property i440fx_props[] = { +static const Property i440fx_props[] = { DEFINE_PROP_SIZE(PCI_HOST_PROP_PCI_HOLE64_SIZE, I440FXState, pci_hole64_size, I440FX_PCI_HOST_HOLE64_SIZE_DEFAULT), DEFINE_PROP_SIZE(PCI_HOST_BELOW_4G_MEM_SIZE, I440FXState, diff --git a/hw/pci-host/mv64361.c b/hw/pci-host/mv64361.c index 421c287eb0..2518d5abe6 100644 --- a/hw/pci-host/mv64361.c +++ b/hw/pci-host/mv64361.c @@ -98,7 +98,7 @@ static void mv64361_pcihost_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out(dev, s->irq, ARRAY_SIZE(s->irq)); } -static Property mv64361_pcihost_props[] = { +static const Property mv64361_pcihost_props[] = { DEFINE_PROP_UINT8("index", MV64361PCIState, index, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/pci-host/pnv_phb.c b/hw/pci-host/pnv_phb.c index d4c118d443..888f0786a0 100644 --- a/hw/pci-host/pnv_phb.c +++ b/hw/pci-host/pnv_phb.c @@ -183,7 +183,7 @@ static const char *pnv_phb_root_bus_path(PCIHostState *host_bridge, return phb->bus_path; } -static Property pnv_phb_properties[] = { +static const Property pnv_phb_properties[] = { DEFINE_PROP_UINT32("index", PnvPHB, phb_id, 0), DEFINE_PROP_UINT32("chip-id", PnvPHB, chip_id, 0), DEFINE_PROP_UINT32("version", PnvPHB, version, 0), @@ -302,7 +302,7 @@ static void pnv_phb_root_port_realize(DeviceState *dev, Error **errp) pci_config_set_interrupt_pin(pci->config, 0); } -static Property pnv_phb_root_port_properties[] = { +static const Property pnv_phb_root_port_properties[] = { DEFINE_PROP_UINT32("version", PnvPHBRootPort, version, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci-host/pnv_phb3.c b/hw/pci-host/pnv_phb3.c index 2a74dbe45f..529b33b5a2 100644 --- a/hw/pci-host/pnv_phb3.c +++ b/hw/pci-host/pnv_phb3.c @@ -1090,7 +1090,7 @@ void pnv_phb3_update_regions(PnvPHB3 *phb) pnv_phb3_check_all_m64s(phb); } -static Property pnv_phb3_properties[] = { +static const Property pnv_phb3_properties[] = { DEFINE_PROP_UINT32("index", PnvPHB3, phb_id, 0), DEFINE_PROP_UINT32("chip-id", PnvPHB3, chip_id, 0), DEFINE_PROP_LINK("chip", PnvPHB3, chip, TYPE_PNV_CHIP, PnvChip *), diff --git a/hw/pci-host/pnv_phb4.c b/hw/pci-host/pnv_phb4.c index 99991008c1..482fe25803 100644 --- a/hw/pci-host/pnv_phb4.c +++ b/hw/pci-host/pnv_phb4.c @@ -1688,7 +1688,7 @@ static void pnv_phb4_xive_notify(XiveNotifier *xf, uint32_t srcno, } } -static Property pnv_phb4_properties[] = { +static const Property pnv_phb4_properties[] = { DEFINE_PROP_UINT32("index", PnvPHB4, phb_id, 0), DEFINE_PROP_UINT32("chip-id", PnvPHB4, chip_id, 0), DEFINE_PROP_LINK("pec", PnvPHB4, pec, TYPE_PNV_PHB4_PEC, diff --git a/hw/pci-host/pnv_phb4_pec.c b/hw/pci-host/pnv_phb4_pec.c index ce8e228f98..f8975403d3 100644 --- a/hw/pci-host/pnv_phb4_pec.c +++ b/hw/pci-host/pnv_phb4_pec.c @@ -283,7 +283,7 @@ static int pnv_pec_dt_xscom(PnvXScomInterface *dev, void *fdt, return 0; } -static Property pnv_pec_properties[] = { +static const Property pnv_pec_properties[] = { DEFINE_PROP_UINT32("index", PnvPhb4PecState, index, 0), DEFINE_PROP_UINT32("chip-id", PnvPhb4PecState, chip_id, 0), DEFINE_PROP_LINK("chip", PnvPhb4PecState, chip, TYPE_PNV_CHIP, diff --git a/hw/pci-host/ppce500.c b/hw/pci-host/ppce500.c index b70631045a..54071fc125 100644 --- a/hw/pci-host/ppce500.c +++ b/hw/pci-host/ppce500.c @@ -507,7 +507,7 @@ static void e500_host_bridge_class_init(ObjectClass *klass, void *data) dc->user_creatable = false; } -static Property pcihost_properties[] = { +static const Property pcihost_properties[] = { DEFINE_PROP_UINT32("first_slot", PPCE500PCIState, first_slot, 0x11), DEFINE_PROP_UINT32("first_pin_irq", PPCE500PCIState, first_pin_irq, 0x1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index f3e713318e..af0b77ea1e 100644 --- a/hw/pci-host/q35.c +++ b/hw/pci-host/q35.c @@ -170,7 +170,7 @@ static void q35_host_get_pci_hole64_end(Object *obj, Visitor *v, * properties need to be initialized manually by * q35_host_initfn() after the object_initialize() call. */ -static Property q35_host_props[] = { +static const Property q35_host_props[] = { DEFINE_PROP_UINT64(PCIE_HOST_MCFG_BASE, Q35PCIHost, parent_obj.base_addr, MCH_HOST_BRIDGE_PCIEXBAR_DEFAULT), DEFINE_PROP_SIZE(PCI_HOST_PROP_PCI_HOLE64_SIZE, Q35PCIHost, @@ -662,7 +662,7 @@ static void mch_realize(PCIDevice *d, Error **errp) OBJECT(&mch->smram)); } -static Property mch_props[] = { +static const Property mch_props[] = { DEFINE_PROP_UINT16("extended-tseg-mbytes", MCHPCIState, ext_tseg_mbytes, 16), DEFINE_PROP_BOOL("smbase-smram", MCHPCIState, has_smram_at_smbase, true), diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index a7dfddd69e..b0a4a669f5 100644 --- a/hw/pci-host/raven.c +++ b/hw/pci-host/raven.c @@ -422,7 +422,7 @@ static const TypeInfo raven_info = { }, }; -static Property raven_pcihost_properties[] = { +static const Property raven_pcihost_properties[] = { DEFINE_PROP_UINT32("elf-machine", PREPPCIState, pci_dev.elf_machine, EM_NONE), DEFINE_PROP_STRING("bios-name", PREPPCIState, pci_dev.bios_name), diff --git a/hw/pci-host/sabre.c b/hw/pci-host/sabre.c index 1707feb951..623afed644 100644 --- a/hw/pci-host/sabre.c +++ b/hw/pci-host/sabre.c @@ -492,7 +492,7 @@ static char *sabre_ofw_unit_address(const SysBusDevice *dev) (uint32_t)(s->special_base & 0xffffffff)); } -static Property sabre_properties[] = { +static const Property sabre_properties[] = { DEFINE_PROP_UINT64("special-base", SabreState, special_base, 0), DEFINE_PROP_UINT64("mem-base", SabreState, mem_base, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci-host/uninorth.c b/hw/pci-host/uninorth.c index e4c1abd871..bd670cfa9d 100644 --- a/hw/pci-host/uninorth.c +++ b/hw/pci-host/uninorth.c @@ -423,7 +423,7 @@ static const TypeInfo unin_internal_pci_host_info = { }, }; -static Property pci_unin_main_pci_host_props[] = { +static const Property pci_unin_main_pci_host_props[] = { DEFINE_PROP_UINT32("ofw-addr", UNINHostState, ofw_addr, -1), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c index d257acee17..5d59640691 100644 --- a/hw/pci-host/versatile.c +++ b/hw/pci-host/versatile.c @@ -498,7 +498,7 @@ static const TypeInfo versatile_pci_host_info = { }, }; -static Property pci_vpb_properties[] = { +static const Property pci_vpb_properties[] = { DEFINE_PROP_UINT8("broken-irq-mapping", PCIVPBState, irq_mapping_prop, PCI_VPB_IRQMAP_ASSUME_OK), DEFINE_PROP_END_OF_LIST() diff --git a/hw/pci-host/xilinx-pcie.c b/hw/pci-host/xilinx-pcie.c index 24f691ea82..848403970b 100644 --- a/hw/pci-host/xilinx-pcie.c +++ b/hw/pci-host/xilinx-pcie.c @@ -156,7 +156,7 @@ static void xilinx_pcie_host_init(Object *obj) qdev_prop_set_bit(DEVICE(root), "multifunction", false); } -static Property xilinx_pcie_host_props[] = { +static const Property xilinx_pcie_host_props[] = { DEFINE_PROP_UINT32("bus_nr", XilinxPCIEHost, bus_nr, 0), DEFINE_PROP_SIZE("cfg_base", XilinxPCIEHost, cfg_base, 0), DEFINE_PROP_SIZE("cfg_size", XilinxPCIEHost, cfg_size, 32 * MiB), From patchwork Fri Dec 13 19:07:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850268 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1692158wry; Fri, 13 Dec 2024 11:28:06 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVmYgMEhUwgxW5DGHW2inby/Ww1JatNfsqxY9ETUylVFOBsHMnxGPKQ7O1KmZDo51mCMWLzdw==@linaro.org X-Google-Smtp-Source: AGHT+IGxN+zfdHjDBnQjNmCRSgJC8ljAF5Z3S+cV2pP2dH9yp9+sc++gW6roJH3oGAwE7p4lCQX0 X-Received: by 2002:ac8:7d45:0:b0:467:674d:237f with SMTP id d75a77b69052e-467a572396emr58558601cf.11.1734118085906; Fri, 13 Dec 2024 11:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118085; cv=none; d=google.com; s=arc-20240605; b=VPwNy4u4KoTAQG/Kl6Wia41WmH3MuPRuKcXfLejct9jq0s01c1TJkPh7IO3mrFqqwk b5755CNa/lZbrxnnkrJtmIwulUmswGdb6oNoZ0fLHFUU8Gy2lb8TloAG+Et/6V1mnsio G04jRxz1KyC0QRyA65Of/XmUNGEiLPus/Qvtl3edG4LQH++dfMPXDarPfJbbRv62wJdb C5Gv7PLZmuSjecew2pqNnNdNuJZRyDRFR3Jkg4z4Qgqen4+fBVeIm2+ojXOIFQu8eOf9 bIKKsCtOe9HW10l+tKLbg+rAw/IHAaYQH5wYAHLdO8TdN04mXh4JEN3cAJORcZH4Wi9J JZsw== 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=HMNcGFi52Uwl+0HNftyeCD60t2xD+7lCeBeevmzpoWs=; fh=E41Q2P+Cu+CvYV24CLTB+qaT7Cyj2ap7SWyOeE+O12c=; b=ERCYF4S+MIa0eGTXhkQQ4ItHxhSfi7AGAFeQrhqxYnqo7+GQXh+A+nITzWjI6zj3x1 bG15BtxoCh9GWY+NuCl6zfyCLJea38xgh7KU43T9j1bMzqBY39BCTGy3UCJw1AxUCm4P hc5TQuWeU7/Re+M1j8NTbGcDwg8jKdKhgTG1ooGnj80j9jWZ8DaDuFxvXX2PLYEyWLMw ozC5hlcpqcDLuy8+z7H9pyBIDnX0m7UDEHaUamYeKj2SrkPBM6fI37p1nvTim0yOZDF0 52Ws47atINeH1L4YS4vq8O34u8744Vs3RXXdDQKv1xzOcvywbglLCNxsCoE7+FUcTGBC ox+w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iyWsTBuL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2c976a5si2279221cf.48.2024.12.13.11.28.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:28:05 -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=iyWsTBuL; 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 1tMB8M-0008NY-F7; Fri, 13 Dec 2024 14:15:36 -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 1tMB77-0006SR-4A for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:13 -0500 Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB73-0007Xv-E1 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:11 -0500 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-5f2e13cb356so1021794eaf.2 for ; Fri, 13 Dec 2024 11:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117247; x=1734722047; 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=HMNcGFi52Uwl+0HNftyeCD60t2xD+7lCeBeevmzpoWs=; b=iyWsTBuLKPHUdXwDzfi00LOYT0qzHPApxCPp99gSKCRWdMcxx1Ad0BSFv0Z5pHLvUC 37deW9rCH2botfJhwpDtTQwa73HH0afxY+Ffr7AL0w0pzsUlxM7SFPXZQ2QH/QV0VgLj uZF2oDei6/EAGTj6cZSSvF5jM9mO6mNFA+cAgscpNfq2U1vQ7ZuCSLJYfvoHRUqxwMlp AuvBHVOvxu1YLLEqnj43sq/UZJee29ePT+XbGVqLiE4NjOUpHai2PYZpkvvjRxjro8VT wD+q6cc6sciEoM5h1kKdr2OXEHDtJwAoXz3GhqEgMXTwHAQ+rueiSl9aFOSVT33RkQkb C/Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117247; x=1734722047; 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=HMNcGFi52Uwl+0HNftyeCD60t2xD+7lCeBeevmzpoWs=; b=qMM2rhfxCd5/rqkd/mKwIOEIOJpnJ2LQFz1VXjoW3kqlSYItYiCxlAT6JVvxR2+WBD S/q3CEIxu9zhdWD6WDIWmeqhjxCenP7rU3XgPCqnAB9t28iwO/Q1xYjtTZSgKab/9Nwf +kE0CqYCiMM1K4hXs+k/aABjTtsHO4luqZEotb6DUK5h5mGnQBOyKpZ55FinSXVPl/Om EdfbHPzQ2dDLk6yrS63JwYw7TPd2wxjiVWRUK5pdqzmBFQ7aHsda8ldROOhHaUQqr4n6 G5tzvCa5Okgmo1MDwkMdu1VkDu3zH1RhdJ3VbgBlia8GD/qEa22ECuGn0JpdAK8+vf5r IMQA== X-Gm-Message-State: AOJu0Yzf7RDI7ZehMgSZEYI4gC4h+6lWx/bYvG0E3DernQR7SEr3Naq1 vRjhMjg/pMMlTPGJUPQHlXspQXOBGceUN3dzmCMCh0lp936hs3ClvGSfpASClmYcootO2e8PCfc ocdMlNwQm X-Gm-Gg: ASbGncuLa7FYPkWC/a6ul1x4gFTCZZ/mgBnmha7Rzofn41tsKReftyw47ol1GPPHt5J tdfRhOSSXAroBbwEdzIhk1g8Fnu3YF+QUrdY1g6vxnIv5zomNL1Y3s3v+aHQaVUysUHwIiv5Xy9 yMvJ0X2yNF0UM5LhJpXeAyFM3l4b0y77iOZV0GSkW5sOYFCsHO26H619SI8YhWXDBzCyWwRGwB4 C/bMHaqyXhBye+4C3VNcAMevZ7aWx2q+b0yXFgWkP+t1CJnOLSjjmGa0fKmf/le X-Received: by 2002:a05:6808:3985:b0:3eb:a0ce:f3c2 with SMTP id 5614622812f47-3eba6987cadmr2320350b6e.40.1734117247616; Fri, 13 Dec 2024 11:14:07 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:07 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Marcel Apfelbaum Subject: [PATCH 48/71] hw/pci: Constify all Property Date: Fri, 13 Dec 2024 13:07:22 -0600 Message-ID: <20241213190750.2513964-53-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=2607:f8b0:4864:20::c36; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc36.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/pci/pci.c | 2 +- hw/pci/pci_bridge.c | 2 +- hw/pci/pci_host.c | 2 +- hw/pci/pcie_port.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 1416ae202c..c38b674211 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -80,7 +80,7 @@ static const PropertyInfo prop_pci_busnr = { .get = prop_pci_busnr_get, }; -static Property pci_props[] = { +static const Property pci_props[] = { DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1), DEFINE_PROP_STRING("romfile", PCIDevice, romfile), DEFINE_PROP_UINT32("romsize", PCIDevice, romsize, UINT32_MAX), diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c index 2c7bb1a525..dd4fd3674f 100644 --- a/hw/pci/pci_bridge.c +++ b/hw/pci/pci_bridge.c @@ -477,7 +477,7 @@ int pci_bridge_qemu_reserve_cap_init(PCIDevice *dev, int cap_offset, return 0; } -static Property pci_bridge_properties[] = { +static const Property pci_bridge_properties[] = { DEFINE_PROP_BOOL("x-pci-express-writeable-slt-bug", PCIBridge, pcie_writeable_slt_bug, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci/pci_host.c b/hw/pci/pci_host.c index dfe6fe6184..321e7be709 100644 --- a/hw/pci/pci_host.c +++ b/hw/pci/pci_host.c @@ -240,7 +240,7 @@ const VMStateDescription vmstate_pcihost = { } }; -static Property pci_host_properties_common[] = { +static const Property pci_host_properties_common[] = { DEFINE_PROP_BOOL("x-config-reg-migration-enabled", PCIHostState, mig_enabled, true), DEFINE_PROP_BOOL(PCI_HOST_BYPASS_IOMMU, PCIHostState, bypass_iommu, false), diff --git a/hw/pci/pcie_port.c b/hw/pci/pcie_port.c index 9f978ba164..bac2822e98 100644 --- a/hw/pci/pcie_port.c +++ b/hw/pci/pcie_port.c @@ -111,7 +111,7 @@ void pcie_chassis_del_slot(PCIESlot *s) QLIST_REMOVE(s, next); } -static Property pcie_port_props[] = { +static const Property pcie_port_props[] = { DEFINE_PROP_UINT8("port", PCIEPort, port, 0), DEFINE_PROP_UINT16("aer_log_max", PCIEPort, parent_obj.parent_obj.exp.aer_log.log_max, @@ -204,7 +204,7 @@ static const TypeInfo pcie_port_type_info = { .class_init = pcie_port_class_init, }; -static Property pcie_slot_props[] = { +static const Property pcie_slot_props[] = { DEFINE_PROP_UINT8("chassis", PCIESlot, chassis, 0), DEFINE_PROP_UINT16("slot", PCIESlot, slot, 0), DEFINE_PROP_BOOL("hotplug", PCIESlot, hotplug, true), From patchwork Fri Dec 13 19:07:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850242 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1687891wry; Fri, 13 Dec 2024 11:17:20 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXDfDHAZsGSuaF4d206/JllpEgzmw/y3P5W57GLiTpaUj+0yagHXuGUm+RexDfsWBPKgVhoJA==@linaro.org X-Google-Smtp-Source: AGHT+IEWTuopKBqiQdI2VTZRqnJx3iOkPkuCdE9Q9B8ISjdMIN6FV2TtroaGY41UnKmqm+LQTWU7 X-Received: by 2002:a05:6214:194e:b0:6d8:a258:68bc with SMTP id 6a1803df08f44-6dcbeba7336mr59120466d6.11.1734117439972; Fri, 13 Dec 2024 11:17:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117439; cv=none; d=google.com; s=arc-20240605; b=V9+kblvz7vRQRu8gLPl0aW/T1XwEL9taLEQNg8qGAj8RTVznNKIxtanQRd/a30AVqk o9vcBFNImh1cNRfFEw1vKVnCAwBV2ClAETrX/4q7ZFgTRLTJovHnV56yVltVLzJ3FWHS nwDuNu9wwezmnxie1JelKg/BfL/Mzg5bQFvXoZvYPcEGkc5CpQdeCPxaCBtGWVAHUhFF /zeK2pn3t3OR9S0JYr/w8hMrkM2FuqHzqnYRa/p6DvD5eO5ART3i+zV7FNEXly406MN3 iHzE+ePNi/KolccOaHjoy8J/zhvINh7gxUPcQ7FLdL4VwPkrzGf7W6C20ml9DQzrBDGx X+VQ== 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=eHAtuv+A7LoEygNB1h/ibJtbhcSv1EMIHcEESN5V/a8=; fh=NPXqREHaXiAbF8saUuzsw9rwDNtjFD+RK0tUwVkXzVc=; b=LyCCIYgloYwkHTK4NiITGnBAU8mO/syueQUkPq+yywkMCiZ3f6uoMNZxkOMJ9E83ej 9MUMEX8SiKkwSNDLOT2Ej5sdG1wn8iCrd49dE6BXhM3Pq/WuKqXFoc+36no2xaqCia+5 ewidEjSrWcpKSgrWtnJTjnulvnVNBE4XjQ8pgRKW9SfQqpVANqYfoDNMI9El1z0OlbrH HAzyoDSVPk0kTS2/JS7Z2HtjQWN2LA51m5G1HyT8WZzdTP9SKULkQd00Tcuii3XoBze9 LHiP4GH72w71D9mVW31jC3kLY20IoAJoNgEPKn2M8ogy5MZBGVmirSYfZJEKmke7sLj9 60Qg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ZkB/prHF"; 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 6a1803df08f44-6dccd34cea9si492066d6.247.2024.12.13.11.17.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:17:19 -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="ZkB/prHF"; 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 1tMB7q-0007v1-3m; Fri, 13 Dec 2024 14:15:00 -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 1tMB7A-0006hs-8h for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:18 -0500 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB76-0007Ye-Ub for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:15 -0500 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-29fae583cc8so1027139fac.1 for ; Fri, 13 Dec 2024 11:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117250; x=1734722050; 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=eHAtuv+A7LoEygNB1h/ibJtbhcSv1EMIHcEESN5V/a8=; b=ZkB/prHFsyqwcki96mM2wuBWQeHgqbnWiu334yJ79htSiklQW75M85xJIMAdbWTVl/ J2VvF6D2oRPC9V4mAhdjlPnC6ecgIPkIUlm/0J7Du/RNP5qJkWwF/9hRbU+gc7O4m7XI ppP038oka6oOy4Ag6fDqeWIa5bBU4ZxkVTd0Ei7E6amulexmG7DVhjJdJyXKM1sQZoEP h5pvq39BbNQlxva4ttsIC+vCfvg5M7gDv62nM2/ZRWhF01a7BYNf8e1B255a//6yICY+ YF64jJJwdfh3ItylHKySC0jIzq1TC4j4AzuuMWagus8lC+hoapTxoldKd0E4eKdqOP99 XUfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117250; x=1734722050; 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=eHAtuv+A7LoEygNB1h/ibJtbhcSv1EMIHcEESN5V/a8=; b=ACgp0xcN7kY/ezCY0rDt+ERTEq9WBu7XlaMfJD+FhwfXbOuw5Q0IHuBGn2Xa2mVRNW Bsto3SuC8j/s1MEkC2ehWLRaDupUehM35ep4cl1gYuaYrfDzv6Lw1QnijJz+sZTyNO+x rUjChRKhvhGPS0CN2bIt2cQbuhp9mE2MgZmT8Ah0RiERSBNLMonkJlF2Vv2TMJl0RBxS wPVYX2anYoByGUEx2+wlYGKCef5fbGtL61UxeY2tTWDmo2cmYNgYfu/3Buyi4xKJ3ZqF B2O7Hs5QkT/3HXOlFWg/2NfvfDOLn+bMMLfBvlJEHB4wCCa1H4c7zuydI4M9r+9H2hAX 4qpA== X-Gm-Message-State: AOJu0YyRvEAogOZDVqgvaT4KjcV0F3eNvX8XHgjlS+vB99DrIbLXlNH0 7LhjG2m2+usEXWJQq59O+pyOpQqKX4WiW+mwqFoRKXK1pcFp/ei4LhEbKMLDQfgu0JVqQdMFrGi qcD2g+H6U X-Gm-Gg: ASbGncuPgu/oqQplhJ8x4deC5SNHDy0dUsXmidjCjjh4XupnSMoL/N7K6gNT5UUrgiU 6bpbnZ9KueZKsLgablYOMMBpkowPcK4rxIDo1xOZb5Nj7339jo38rJrGZnc3nXE/tWdeOxDXTSR 1JhVS2mQNibUrkrcQ88zjojFRaYJ844tWxbgrUsjYXgo+rDgilFjGjhu5DThL5+txYOu54K7Ei2 w4/LriJomqNPffEeiVPJjGe99rcQsc/fWk7MYhg60n9xApCCQ1TQhF5USAjRWn6 X-Received: by 2002:a05:6808:384c:b0:3ea:9a5c:ac06 with SMTP id 5614622812f47-3eb94e4c57amr5398084b6e.1.1734117250386; Fri, 13 Dec 2024 11:14:10 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:09 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Nicholas Piggin , =?utf-8?b?RnLDqWTDqXJpYyBCYXJyYXQ=?= , BALATON Zoltan , =?utf-8?q?Herv=C3=A9_Poussineau?= , Daniel Henrique Barboza , Harsh Prateek Bora , qemu-ppc@nongnu.org (open list:PowerNV Non-Virt...) Subject: [PATCH 49/71] hw/ppc: Constify all Property Date: Fri, 13 Dec 2024 13:07:23 -0600 Message-ID: <20241213190750.2513964-54-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::2e; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2e.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/ppc/pnv.c | 2 +- hw/ppc/pnv_adu.c | 2 +- hw/ppc/pnv_chiptod.c | 2 +- hw/ppc/pnv_core.c | 4 ++-- hw/ppc/pnv_homer.c | 2 +- hw/ppc/pnv_i2c.c | 2 +- hw/ppc/pnv_lpc.c | 2 +- hw/ppc/pnv_pnor.c | 2 +- hw/ppc/pnv_psi.c | 2 +- hw/ppc/ppc405_uc.c | 2 +- hw/ppc/ppc440_uc.c | 2 +- hw/ppc/ppc4xx_devs.c | 4 ++-- hw/ppc/ppc4xx_sdram.c | 4 ++-- hw/ppc/prep_systemio.c | 2 +- hw/ppc/rs6000_mc.c | 2 +- hw/ppc/spapr_cpu_core.c | 2 +- hw/ppc/spapr_nvdimm.c | 2 +- hw/ppc/spapr_pci.c | 2 +- hw/ppc/spapr_rng.c | 2 +- hw/ppc/spapr_tpm_proxy.c | 2 +- 20 files changed, 23 insertions(+), 23 deletions(-) diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index f0f0d7567d..b90a052ce0 100644 --- a/hw/ppc/pnv.c +++ b/hw/ppc/pnv.c @@ -2422,7 +2422,7 @@ static void pnv_chip_realize(DeviceState *dev, Error **errp) } } -static Property pnv_chip_properties[] = { +static const Property pnv_chip_properties[] = { DEFINE_PROP_UINT32("chip-id", PnvChip, chip_id, 0), DEFINE_PROP_UINT64("ram-start", PnvChip, ram_start, 0), DEFINE_PROP_UINT64("ram-size", PnvChip, ram_size, 0), diff --git a/hw/ppc/pnv_adu.c b/hw/ppc/pnv_adu.c index f636dedf79..646736f7e9 100644 --- a/hw/ppc/pnv_adu.c +++ b/hw/ppc/pnv_adu.c @@ -185,7 +185,7 @@ static void pnv_adu_realize(DeviceState *dev, Error **errp) PNV9_XSCOM_ADU_SIZE); } -static Property pnv_adu_properties[] = { +static const Property pnv_adu_properties[] = { DEFINE_PROP_LINK("lpc", PnvADU, lpc, TYPE_PNV_LPC, PnvLpcController *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ppc/pnv_chiptod.c b/hw/ppc/pnv_chiptod.c index 1e41fe557a..840ef23128 100644 --- a/hw/ppc/pnv_chiptod.c +++ b/hw/ppc/pnv_chiptod.c @@ -450,7 +450,7 @@ static int pnv_chiptod_power9_dt_xscom(PnvXScomInterface *dev, void *fdt, return pnv_chiptod_dt_xscom(dev, fdt, xscom_offset, compat, sizeof(compat)); } -static Property pnv_chiptod_properties[] = { +static const Property pnv_chiptod_properties[] = { DEFINE_PROP_BOOL("primary", PnvChipTOD, primary, false), DEFINE_PROP_BOOL("secondary", PnvChipTOD, secondary, false), DEFINE_PROP_LINK("chip", PnvChipTOD , chip, TYPE_PNV_CHIP, PnvChip *), diff --git a/hw/ppc/pnv_core.c b/hw/ppc/pnv_core.c index e6b02294b1..22864c92f3 100644 --- a/hw/ppc/pnv_core.c +++ b/hw/ppc/pnv_core.c @@ -435,7 +435,7 @@ static void pnv_core_unrealize(DeviceState *dev) g_free(pc->threads); } -static Property pnv_core_properties[] = { +static const Property pnv_core_properties[] = { DEFINE_PROP_UINT32("hwid", PnvCore, hwid, 0), DEFINE_PROP_UINT64("hrmor", PnvCore, hrmor, 0), DEFINE_PROP_BOOL("big-core", PnvCore, big_core, false), @@ -693,7 +693,7 @@ static void pnv_quad_power10_realize(DeviceState *dev, Error **errp) pqc->xscom_qme_size); } -static Property pnv_quad_properties[] = { +static const Property pnv_quad_properties[] = { DEFINE_PROP_UINT32("quad-id", PnvQuad, quad_id, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ppc/pnv_homer.c b/hw/ppc/pnv_homer.c index f9a203d11d..b1f83e2cf2 100644 --- a/hw/ppc/pnv_homer.c +++ b/hw/ppc/pnv_homer.c @@ -412,7 +412,7 @@ static void pnv_homer_realize(DeviceState *dev, Error **errp) hmrc->homer_size); } -static Property pnv_homer_properties[] = { +static const Property pnv_homer_properties[] = { DEFINE_PROP_LINK("chip", PnvHomer, chip, TYPE_PNV_CHIP, PnvChip *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ppc/pnv_i2c.c b/hw/ppc/pnv_i2c.c index eec5047ce8..4bd61abeed 100644 --- a/hw/ppc/pnv_i2c.c +++ b/hw/ppc/pnv_i2c.c @@ -543,7 +543,7 @@ static void pnv_i2c_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out(DEVICE(dev), &i2c->psi_irq, 1); } -static Property pnv_i2c_properties[] = { +static const Property pnv_i2c_properties[] = { DEFINE_PROP_LINK("chip", PnvI2C, chip, TYPE_PNV_CHIP, PnvChip *), DEFINE_PROP_UINT32("engine", PnvI2C, engine, 1), DEFINE_PROP_UINT32("num-busses", PnvI2C, num_busses, 1), diff --git a/hw/ppc/pnv_lpc.c b/hw/ppc/pnv_lpc.c index 8c203d2059..4d47167163 100644 --- a/hw/ppc/pnv_lpc.c +++ b/hw/ppc/pnv_lpc.c @@ -828,7 +828,7 @@ static void pnv_lpc_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out_named(dev, &lpc->psi_irq_lpchc, "LPCHC", 1); } -static Property pnv_lpc_properties[] = { +static const Property pnv_lpc_properties[] = { DEFINE_PROP_BOOL("psi-serirq", PnvLpcController, psi_has_serirq, false), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ppc/pnv_pnor.c b/hw/ppc/pnv_pnor.c index 6280408299..eed6d32650 100644 --- a/hw/ppc/pnv_pnor.c +++ b/hw/ppc/pnv_pnor.c @@ -112,7 +112,7 @@ static void pnv_pnor_realize(DeviceState *dev, Error **errp) TYPE_PNV_PNOR, s->size); } -static Property pnv_pnor_properties[] = { +static const Property pnv_pnor_properties[] = { DEFINE_PROP_INT64("size", PnvPnor, size, 128 * MiB), DEFINE_PROP_DRIVE("drive", PnvPnor, blk), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ppc/pnv_psi.c b/hw/ppc/pnv_psi.c index 37c56882b8..e7d6ceee99 100644 --- a/hw/ppc/pnv_psi.c +++ b/hw/ppc/pnv_psi.c @@ -552,7 +552,7 @@ static int pnv_psi_dt_xscom(PnvXScomInterface *dev, void *fdt, int xscom_offset) return 0; } -static Property pnv_psi_properties[] = { +static const Property pnv_psi_properties[] = { DEFINE_PROP_UINT64("bar", PnvPsi, bar, 0), DEFINE_PROP_UINT64("fsp-bar", PnvPsi, fsp_bar, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ppc/ppc405_uc.c b/hw/ppc/ppc405_uc.c index 58cbd0507a..801f97811f 100644 --- a/hw/ppc/ppc405_uc.c +++ b/hw/ppc/ppc405_uc.c @@ -965,7 +965,7 @@ static void ppc405_cpc_realize(DeviceState *dev, Error **errp) &dcr_read_epcpc, &dcr_write_epcpc); } -static Property ppc405_cpc_properties[] = { +static const Property ppc405_cpc_properties[] = { DEFINE_PROP_UINT32("sys-clk", Ppc405CpcState, sysclk, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ppc/ppc440_uc.c b/hw/ppc/ppc440_uc.c index 1312aa2080..05a5ef6f77 100644 --- a/hw/ppc/ppc440_uc.c +++ b/hw/ppc/ppc440_uc.c @@ -1020,7 +1020,7 @@ static void ppc460ex_pcie_realize(DeviceState *dev, Error **errp) ppc460ex_pcie_register_dcrs(s); } -static Property ppc460ex_pcie_props[] = { +static const Property ppc460ex_pcie_props[] = { DEFINE_PROP_INT32("busnum", PPC460EXPCIEState, num, -1), DEFINE_PROP_INT32("dcrn-base", PPC460EXPCIEState, dcrn_base, -1), DEFINE_PROP_LINK("cpu", PPC460EXPCIEState, cpu, TYPE_POWERPC_CPU, diff --git a/hw/ppc/ppc4xx_devs.c b/hw/ppc/ppc4xx_devs.c index db8f6b9497..530a392f2a 100644 --- a/hw/ppc/ppc4xx_devs.c +++ b/hw/ppc/ppc4xx_devs.c @@ -231,7 +231,7 @@ static void ppc4xx_mal_finalize(Object *obj) g_free(mal->txctpr); } -static Property ppc4xx_mal_properties[] = { +static const Property ppc4xx_mal_properties[] = { DEFINE_PROP_UINT8("txc-num", Ppc4xxMalState, txcnum, 0), DEFINE_PROP_UINT8("rxc-num", Ppc4xxMalState, rxcnum, 0), DEFINE_PROP_END_OF_LIST(), @@ -539,7 +539,7 @@ bool ppc4xx_dcr_realize(Ppc4xxDcrDeviceState *dev, PowerPCCPU *cpu, return sysbus_realize(SYS_BUS_DEVICE(dev), errp); } -static Property ppc4xx_dcr_properties[] = { +static const Property ppc4xx_dcr_properties[] = { DEFINE_PROP_LINK("cpu", Ppc4xxDcrDeviceState, cpu, TYPE_POWERPC_CPU, PowerPCCPU *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ppc/ppc4xx_sdram.c b/hw/ppc/ppc4xx_sdram.c index 2ee21f1ca7..6cfb07a11f 100644 --- a/hw/ppc/ppc4xx_sdram.c +++ b/hw/ppc/ppc4xx_sdram.c @@ -425,7 +425,7 @@ static void ppc4xx_sdram_ddr_realize(DeviceState *dev, Error **errp) s, &sdram_ddr_dcr_read, &sdram_ddr_dcr_write); } -static Property ppc4xx_sdram_ddr_props[] = { +static const Property ppc4xx_sdram_ddr_props[] = { DEFINE_PROP_LINK("dram", Ppc4xxSdramDdrState, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("nbanks", Ppc4xxSdramDdrState, nbanks, 4), @@ -710,7 +710,7 @@ static void ppc4xx_sdram_ddr2_realize(DeviceState *dev, Error **errp) s, &sdram_ddr2_dcr_read, &sdram_ddr2_dcr_write); } -static Property ppc4xx_sdram_ddr2_props[] = { +static const Property ppc4xx_sdram_ddr2_props[] = { DEFINE_PROP_LINK("dram", Ppc4xxSdramDdr2State, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("nbanks", Ppc4xxSdramDdr2State, nbanks, 4), diff --git a/hw/ppc/prep_systemio.c b/hw/ppc/prep_systemio.c index 4d3a251ed8..ca475c69f4 100644 --- a/hw/ppc/prep_systemio.c +++ b/hw/ppc/prep_systemio.c @@ -285,7 +285,7 @@ static const VMStateDescription vmstate_prep_systemio = { }, }; -static Property prep_systemio_properties[] = { +static const Property prep_systemio_properties[] = { DEFINE_PROP_UINT8("ibm-planar-id", PrepSystemIoState, ibm_planar_id, 0), DEFINE_PROP_UINT8("equipment", PrepSystemIoState, equipment, 0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/ppc/rs6000_mc.c b/hw/ppc/rs6000_mc.c index 07b0b664d9..bee9bc62d4 100644 --- a/hw/ppc/rs6000_mc.c +++ b/hw/ppc/rs6000_mc.c @@ -207,7 +207,7 @@ static const VMStateDescription vmstate_rs6000mc = { }, }; -static Property rs6000mc_properties[] = { +static const Property rs6000mc_properties[] = { DEFINE_PROP_UINT32("ram-size", RS6000MCState, ram_size, 0), DEFINE_PROP_BOOL("auto-configure", RS6000MCState, autoconfigure, true), DEFINE_PROP_END_OF_LIST() diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index 135f86a622..88d743a3c3 100644 --- a/hw/ppc/spapr_cpu_core.c +++ b/hw/ppc/spapr_cpu_core.c @@ -361,7 +361,7 @@ static void spapr_cpu_core_realize(DeviceState *dev, Error **errp) } } -static Property spapr_cpu_core_properties[] = { +static const Property spapr_cpu_core_properties[] = { DEFINE_PROP_INT32("node-id", SpaprCpuCore, node_id, CPU_UNSET_NUMA_NODE_ID), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/ppc/spapr_nvdimm.c b/hw/ppc/spapr_nvdimm.c index 7d2dfe5e3d..2ef6f29f3d 100644 --- a/hw/ppc/spapr_nvdimm.c +++ b/hw/ppc/spapr_nvdimm.c @@ -884,7 +884,7 @@ static void spapr_nvdimm_unrealize(NVDIMMDevice *dimm) vmstate_unregister(NULL, &vmstate_spapr_nvdimm_states, dimm); } -static Property spapr_nvdimm_properties[] = { +static const Property spapr_nvdimm_properties[] = { #ifdef CONFIG_LIBPMEM DEFINE_PROP_BOOL("pmem-override", SpaprNVDIMMDevice, pmem_override, false), #endif diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index 7e24084673..3edff528ca 100644 --- a/hw/ppc/spapr_pci.c +++ b/hw/ppc/spapr_pci.c @@ -2033,7 +2033,7 @@ static void spapr_phb_reset(DeviceState *qdev) g_hash_table_remove_all(sphb->msi); } -static Property spapr_phb_properties[] = { +static const Property spapr_phb_properties[] = { DEFINE_PROP_UINT32("index", SpaprPhbState, index, -1), DEFINE_PROP_UINT64("mem_win_size", SpaprPhbState, mem_win_size, SPAPR_PCI_MEM32_WIN_SIZE), diff --git a/hw/ppc/spapr_rng.c b/hw/ppc/spapr_rng.c index c2fda7ad20..51c3a54d45 100644 --- a/hw/ppc/spapr_rng.c +++ b/hw/ppc/spapr_rng.c @@ -130,7 +130,7 @@ static void spapr_rng_realize(DeviceState *dev, Error **errp) } } -static Property spapr_rng_properties[] = { +static const Property spapr_rng_properties[] = { DEFINE_PROP_BOOL("use-kvm", SpaprRngState, use_kvm, false), DEFINE_PROP_LINK("rng", SpaprRngState, backend, TYPE_RNG_BACKEND, RngBackend *), diff --git a/hw/ppc/spapr_tpm_proxy.c b/hw/ppc/spapr_tpm_proxy.c index e10af35a18..37521b88cb 100644 --- a/hw/ppc/spapr_tpm_proxy.c +++ b/hw/ppc/spapr_tpm_proxy.c @@ -145,7 +145,7 @@ static void spapr_tpm_proxy_unrealize(DeviceState *d) qemu_unregister_reset(spapr_tpm_proxy_reset, tpm_proxy); } -static Property spapr_tpm_proxy_properties[] = { +static const Property spapr_tpm_proxy_properties[] = { DEFINE_PROP_STRING("host-path", SpaprTpmProxy, host_path), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850251 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1689351wry; Fri, 13 Dec 2024 11:20:32 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWtIDtWxGmW3Fb9z83lOU+lAGmGZyo0D7iK5D5o/WvN5AnUPHVQODdSF/fzBhP6g5Jw3RG//A==@linaro.org X-Google-Smtp-Source: AGHT+IEUFqXOQHXGss/67ItTvg1Cmy9Xkp6MgMPhJjWLaUZI8TwT8ydZBzjR4NEdEAt4/iy/POqC X-Received: by 2002:a67:e7ca:0:b0:4af:f8b9:bea0 with SMTP id ada2fe7eead31-4b25db08266mr4971145137.18.1734117632125; Fri, 13 Dec 2024 11:20:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117632; cv=none; d=google.com; s=arc-20240605; b=PdSWJleNOhofZ9d9N+wbQqQfwA6nbB0GCfUqNA6qNpbO7vz7e8LEY5d7qmWRqMCs2j ojDC6npj9ebdlGhjlvJMz1D2LSWq38JIVxAkHSOUTatP2iK3QVOEfo0JlEOLksWPnb5n QJLLkt5PQmjQOFC2jHE+HwlZGCWH6XYPLxgoULDLdNV4q1PliZ9wd/SGCUCcLNXec9QH rhUK4drnHYk/Bxs71AZ8ch+I1jrAKIFizv2EUpqv4AoyK5rM8w5Aiwr/W7bY3Cd7fm+h VQTMmUODSOmkoGZiyGuFlEZSV8EwN3lFVC7YwBF9Q2yr/tkYI3FQGyd32pBnXROcc5kO TAmg== 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=SrDfnd4nexJqpZXbjwhcsQhh4SvuMhCE9tA8eU5koCw=; fh=pamr1FXLm3kjLpu7lxxmVLrlTVOkWzgzZLNhsLO3SoY=; b=AAjVAcc8mpsCxJXYX9oQ+gPmhod7VMfXfXrnkv3419LQoAV0j/n+krBZbra4PM8OVE vpJwUR0VE8zfZy9kP/DPew9DdijqS4pQrbJnb1N1sIIEVW9uwBoDB5Wjsg7MIurs9ysy xpSXHW8gR0xCaLmg6eryRookbZ/5ZbGve2lm0vtVRK0BJvmPHx/Pxa30Y9K4demNQ0xq E4JJBzldTJvBOUyeJbdyWmXygFK4upYnrIyyalgOnYgw8zgqRoIUTH9ZLE2+tKKvudbI /3sKQmdL7bi3R7MjqMSwrrlsWF/7Vbo51mvYXN5wTrswbjDjj2lh6VCNyyDAsM5FyJVb 95KQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="t/GUh3Gy"; 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 ada2fe7eead31-4b2703e8b3asi37990137.368.2024.12.13.11.20.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:20:32 -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="t/GUh3Gy"; 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 1tMB8x-0000ZG-J5; Fri, 13 Dec 2024 14:16:08 -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 1tMB7A-0006hr-8P for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:18 -0500 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB78-0007ZD-5W for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:15 -0500 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3eb880e5ac2so1019985b6e.2 for ; Fri, 13 Dec 2024 11:14:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117252; x=1734722052; 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=SrDfnd4nexJqpZXbjwhcsQhh4SvuMhCE9tA8eU5koCw=; b=t/GUh3GyEu893oPCsyUDxnf1WMNcHlDSoio00NRC6/i5DtXhgKSLz+skx7FEu4OI/N kJ2hynA4ifXnKkRdGG0LP6ibsyrA45BBqlNHGIjWDOoathZLTHOtw/zTewbrN6IfpT9C pSVRiyCQOkCnGhnXPRG2gfnqS7m0uYAI7ovhC61Sn3Xp45TDpth8Dniy5JmTkJ92lHbx u3wYHTa0aG5APkY5dlvBUWbhGCHJaeLP0E6dJxDKFAcIrvkGl/otC+KL7s8cJN62d9A7 1yIo3aDtoZgA43LQls6iHAuGcE4+wArWx9QY1NcyeJnZFwG1jd7eQ+5GE3r8dTi+Bkbt +WtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117252; x=1734722052; 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=SrDfnd4nexJqpZXbjwhcsQhh4SvuMhCE9tA8eU5koCw=; b=RZ0OpAy6Vwko9yITvTaKCzu3S52ez2UzkM1jsqCjI3a05vBXm52KiNdZuO63/mEMa/ 2OFguqwFiWkHegp3G29ENRzSRHHme6f/htaSsW7ejDQO30rgXHyC22WsZba4VNhqbf7J s0CXI9YLlcvJM9jqXMItmGq8E4m1XKlc5/t7lOSiHKMzEZQQ+bbzDJbuJjQ/3GkH70S5 OLameJcj3ECLKEmVsgu8wV0uMg4FcvZb6jb1ekpyYrEHjHgpAZYv+4e87zEOIGiyYdL7 LRIn/IEhtTomvlK6D/fOUyNaylgz7gFzg/+bRnxU60fNiPs4he/6HMbnmQEEY0Y6HQco Tvww== X-Gm-Message-State: AOJu0Yyb4FTTIftth+cWFh0kYU9ZDYociuFrlNytFarsGWZuAE22RF5a 2LQun76a+R5YALOC7q4X2etXfVygeCiGmjkNcROj7M/3igzOoMoqSGMPuiCI6PNhKi4wKzvBJh5 l7zE+n5gr X-Gm-Gg: ASbGncsuyJCZZjapx7D3rW//jjpaall5uZWkGYXhF9Tac0lTCmdKk3wztEQmEETRPcg P74D9UjR90kqCbKp+hCBmDy8RFhDAOaNyjXVgUIuVfMqOs4PV7Okx1znf3ebNlFIHo0ctVuGvJj g2LY8VHLaTbUXBfn8vt5mlko88YIdPJ81u8oLr6S5t8zAk+PBds0bimAq7NWO+1TIxEDYTwQlWT aExox1P5NluYhJ/3y+m8zgVLlIHjzeearz6GFcHvU6a+k5rOrT2vbSFW9xiJoar X-Received: by 2002:a05:6808:3c47:b0:3eb:8eb0:8166 with SMTP id 5614622812f47-3eba6983205mr1891627b6e.36.1734117252628; Fri, 13 Dec 2024 11:14:12 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:12 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Elena Ufimtseva , Jagannathan Raman Subject: [PATCH 50/71] hw/remote: Constify all Property Date: Fri, 13 Dec 2024 13:07:24 -0600 Message-ID: <20241213190750.2513964-55-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=2607:f8b0:4864:20::233; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x233.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/remote/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/remote/proxy.c b/hw/remote/proxy.c index 302a0a4d4d..6f84fdd3fa 100644 --- a/hw/remote/proxy.c +++ b/hw/remote/proxy.c @@ -191,7 +191,7 @@ static void pci_proxy_write_config(PCIDevice *d, uint32_t addr, uint32_t val, config_op_send(PCI_PROXY_DEV(d), addr, &val, len, MPQEMU_CMD_PCI_CFGWRITE); } -static Property proxy_properties[] = { +static const Property proxy_properties[] = { DEFINE_PROP_STRING("fd", PCIProxyDev, fd), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850256 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1690102wry; Fri, 13 Dec 2024 11:22:24 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUkAR0VbxkMjktg0RRrqaZC8S5SojdzP3RhgDULzj7yLTvWJ2TjiGhbhJ9V6Spp3B/V+3j1uQ==@linaro.org X-Google-Smtp-Source: AGHT+IHHAvLGJHjTcaposzsTRtxy2Odhxxbp0T7jPWD+dMkzwkLLV+BCHljThN58DM0EylIT3H8w X-Received: by 2002:ac8:7d16:0:b0:466:ac8d:7341 with SMTP id d75a77b69052e-467a581d951mr68557631cf.35.1734117744577; Fri, 13 Dec 2024 11:22:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117744; cv=none; d=google.com; s=arc-20240605; b=LwEt+LRJZkt5oPrMCOsEPrb2yzhlqHiNJYPdp/M8zfkMIYJikNKMCkDh3UqDLVEEgl 4jLrtIzGx1kVb1ULU8Prbext5PeqBp0OYkTeqyoJzBDTCIaarvfi22lTck5taFm/FMGb jYdVw4Q1sdSiUkv0Qfg0mLP9RmlyYGwomiiU2/zj9Z72yuWaZ4CTzHLP4MjxtT09fXAw 0lBNOkkmBmzoVX98bdCWmGj6d5XukV4kHxf4gtf/rCqHc0B5idr2kQ+fmdUWHLpdKkct +lEUIwG3fPRGHxupDiY9licEwvwXvkjyJkrddhaGcix+95M5kAxaC8Vkg2xmtddnBkWW jh/A== 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=n5D+8o6Yro+Zz5cVKT8gicnF5oLBwjRb2DvBbHQ0DT4=; fh=YyvuBwomzljdFXIye/wZa0taozqiNL963UW1rXL1GxM=; b=KWu0wyfuFrPvJOcg106gSNcs03rJgoZvbT8cgRg2xnSjJ2Azr9UEQ5PccLCUZZWmSZ Lgnn8H+DY1C4nB6p6OED2bVnQS+Bo+5c7ETKoDuvtXJRHVNlqU29ynWke8GJtLOefsQf GsMJeDNC4jWCM44asUitIO4gN7M0hc1iP6H0gg7nhXwHAe6upJNiK1IcKLX5LG34gw/U Y1QRraMMZcgWpix8LhxOZ6sPkn5PH1JX7rDJwo+sDBSpszAHcoqSRVdR/7UKsak4IcAB j1qoSckPCzySU5yDIwqh1nTroNEAdhCgHBBv5QHwrRV/Jw5kV08LlsUMSPfsDe/67gKT OaDQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PpEGeeC9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2ed1116si1306011cf.395.2024.12.13.11.22.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:22:24 -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=PpEGeeC9; 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 1tMB92-0000zj-D1; Fri, 13 Dec 2024 14:16:13 -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 1tMB7G-00075u-8W for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:22 -0500 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7C-0007Zk-LA for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:21 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-2a01bcd0143so1103940fac.2 for ; Fri, 13 Dec 2024 11:14:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117255; x=1734722055; 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=n5D+8o6Yro+Zz5cVKT8gicnF5oLBwjRb2DvBbHQ0DT4=; b=PpEGeeC9Tu1owfedzcwmhKASjwBf9BxEVafuSIxghO+02QHcu8uYMDCIM95K6BYWUM y6Ns7P+9SbD1dWib5XELepF2lYMIMulfR4bttuwqo6DWlRtW3BkY3zwHrxsOuRKfyA/A OBSVaMwer+XmfQyLFbB1PYS71x2+zJoyI7Zfj6iTJe16dVmvMcUAuozuLoZRtBlXCRhn JBTRXUUfrxgZOliiHMW/BStEVX80NDDXRsjF4Cs0k6UNMaBZ3kDo4uZLEB6l7VYPJ8Ao eTG5Zdf3pS2cqK8Vn15oO9yEY/NW3vyTqIcQ92lirMZjLDhTZew3uYvSzt77aCkLxzLr kFHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117255; x=1734722055; 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=n5D+8o6Yro+Zz5cVKT8gicnF5oLBwjRb2DvBbHQ0DT4=; b=e74+hGGvb6NHhIN4sxfrBMkPk3jEJxZXCQFFYO1COIUiHPEB+Xki/IQolRWRKSIEg0 y3Bkiwc4Xy3POAD2YY2xm5uPwXvL0VriYIHAdTQlZiJo9OgczSDDmlEkzv1Hq+1Z0yVp 1wtnn2i0sKzyDRSAhUA9pwz9dFVIxgPnvaBGIuTJwNUJIHxAhVrwCqe+6CGA/Nw+1gwy +2+fTaHV9I+OaFY+F/haTpqil9YQA9khkY1LWdTKsvjP0miU7X/1L3dcIiJCtpjC+Yeo ZxvAUHoTnc4yUpXjdr0sqTa0S22hxEHaUQUdSWxpP7xYXkvI9NWqp1y1ifhMSzgP7kDk fG2w== X-Gm-Message-State: AOJu0YxoPrDyY3YjqApxvBZB3Vp2VFyS2S6p3XP/41Vl3A9a9O1aXaUl eMx/8cDUicpesqEH026EPTbZGnqiMzLXneJr8RW8+gcoPCpBR9i3VYJxlgR8A7aemADUaA9/YQ5 4KiR/IDnZ X-Gm-Gg: ASbGncvRwHc9qEieWSKAKa/BpKDVq1xXMrGRqyCwVMKiTgYU6Io+I6O73Qoi43DUGuE v0ej2V2xA9uIw9OXM/iqzSRiHQq8L2fgEiLtX3/QehjWU7jX4U+UPAUvXAVCGahD3bEiXBTTFfN lvDiq3e0Ay7pPnoNth9Y3YPUgo6i+z2bNNmc90TfLNq23PAu+aH98sMB4zpE4o7uU9kKm7lMTTm WkDm72C9opjq3JP5JMpsm84zJMGdTx971RwnGzbXPWcQkuSPyPH3ZaLIX+hkNDr X-Received: by 2002:a05:6808:1887:b0:3eb:556e:dde6 with SMTP id 5614622812f47-3eba6867bb5mr1879165b6e.12.1734117255043; Fri, 13 Dec 2024 11:14:15 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:14 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alistair Francis , Palmer Dabbelt , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , qemu-riscv@nongnu.org (open list:OpenTitan) Subject: [PATCH 51/71] hw/riscv: Constify all Property Date: Fri, 13 Dec 2024 13:07:25 -0600 Message-ID: <20241213190750.2513964-56-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::30; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza --- hw/riscv/opentitan.c | 2 +- hw/riscv/riscv-iommu-pci.c | 2 +- hw/riscv/riscv-iommu.c | 2 +- hw/riscv/riscv_hart.c | 2 +- hw/riscv/sifive_u.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c index e2830e9dc2..8ce85ea9f7 100644 --- a/hw/riscv/opentitan.c +++ b/hw/riscv/opentitan.c @@ -306,7 +306,7 @@ static void lowrisc_ibex_soc_realize(DeviceState *dev_soc, Error **errp) memmap[IBEX_DEV_IBEX_CFG].base, memmap[IBEX_DEV_IBEX_CFG].size); } -static Property lowrisc_ibex_soc_props[] = { +static const Property lowrisc_ibex_soc_props[] = { DEFINE_PROP_UINT32("resetvec", LowRISCIbexSoCState, resetvec, 0x20000400), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/riscv/riscv-iommu-pci.c b/hw/riscv/riscv-iommu-pci.c index a42242532d..a695314bbe 100644 --- a/hw/riscv/riscv-iommu-pci.c +++ b/hw/riscv/riscv-iommu-pci.c @@ -157,7 +157,7 @@ static void riscv_iommu_pci_init(Object *obj) iommu->icvec_avail_vectors = RISCV_IOMMU_PCI_ICVEC_VECTORS; } -static Property riscv_iommu_pci_properties[] = { +static const Property riscv_iommu_pci_properties[] = { DEFINE_PROP_UINT16("vendor-id", RISCVIOMMUStatePci, vendor_id, PCI_VENDOR_ID_REDHAT), DEFINE_PROP_UINT16("device-id", RISCVIOMMUStatePci, device_id, diff --git a/hw/riscv/riscv-iommu.c b/hw/riscv/riscv-iommu.c index bbc95425b3..07fed36986 100644 --- a/hw/riscv/riscv-iommu.c +++ b/hw/riscv/riscv-iommu.c @@ -2235,7 +2235,7 @@ static void riscv_iommu_unrealize(DeviceState *dev) g_hash_table_unref(s->ctx_cache); } -static Property riscv_iommu_properties[] = { +static const Property riscv_iommu_properties[] = { DEFINE_PROP_UINT32("version", RISCVIOMMUState, version, RISCV_IOMMU_SPEC_DOT_VER), DEFINE_PROP_UINT32("bus", RISCVIOMMUState, bus, 0x0), diff --git a/hw/riscv/riscv_hart.c b/hw/riscv/riscv_hart.c index 613ea2aaa0..0df454772f 100644 --- a/hw/riscv/riscv_hart.c +++ b/hw/riscv/riscv_hart.c @@ -27,7 +27,7 @@ #include "hw/qdev-properties.h" #include "hw/riscv/riscv_hart.h" -static Property riscv_harts_props[] = { +static const Property riscv_harts_props[] = { DEFINE_PROP_UINT32("num-harts", RISCVHartArrayState, num_harts, 1), DEFINE_PROP_UINT32("hartid-base", RISCVHartArrayState, hartid_base, 0), DEFINE_PROP_STRING("cpu-type", RISCVHartArrayState, cpu_type), diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index c5e74126b1..124ffd4842 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -936,7 +936,7 @@ static void sifive_u_soc_realize(DeviceState *dev, Error **errp) qdev_get_gpio_in(DEVICE(s->plic), SIFIVE_U_QSPI2_IRQ)); } -static Property sifive_u_soc_props[] = { +static const Property sifive_u_soc_props[] = { DEFINE_PROP_UINT32("serial", SiFiveUSoCState, serial, OTP_SERIAL), DEFINE_PROP_STRING("cpu-type", SiFiveUSoCState, cpu_type), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:07:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850261 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1691034wry; Fri, 13 Dec 2024 11:24:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVpz0DMvih7cTpoy09DlRSqsy2j1uHjy/WZhhfgamBMWi5NC+vsynJ2MiFseqtwOnyJ7QWTjQ==@linaro.org X-Google-Smtp-Source: AGHT+IHr9yyhBb1vWOJncTxYSWqs203XUcmpmKqMtrRGT1dAdx6wbTHXh2N7iJo2/mcB2dBkXgLq X-Received: by 2002:a05:620a:8809:b0:7b6:6b88:cc00 with SMTP id af79cd13be357-7b6fbed3d15mr697872285a.5.1734117895970; Fri, 13 Dec 2024 11:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117895; cv=none; d=google.com; s=arc-20240605; b=LdR//wAVB5cx8nkWQ8yOZm1fp2cx9p/3C6vIcKt48Y1N/LZy/aO7bvu9FvUms1iPtc fSKDhMnwmzlxtfkR0FnK7wScNmhFDNjbvcv6V0LsJMN/8EH69O4FMrREGBKgPLCWTY7Z GoPw8aFGOMdxTYcVs0p00X4HBKmQ94Kck5bc0fpaUmG6dFEDzpr/ujbn3p531Qm0VFQp qwBgKxu1Y3z7j9hK+lpVdO/T88hrlY5jUt//IHZzrZNFPTheeb4wmXW0U18DBmVLmmkn yqoy21ookK6hyVHW3+biwEtjpnPXb3vjuwxjJssX8iPSbHpocjC/8Far2z6txNlVwRcW Kyyg== 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=fgBXSP9FXNsZoJNxDWIf4VlbcOnRZTVxU/IcB0k/jaw=; fh=YPR4rUjg+tbecoxm0coT+6rpQ+AL4VCr9WUlABeSF2k=; b=j2VvHsLWs4wDUrC7eOf3p0CoEDD0/gsiYDSKp7/q1lLOI/0ohj4V9Ei3YMt4BMTs4R izk9FCYPz/OCDVJZcNg1d5O+rTEAiNibNk7LNXS9SDVOw3rDnyGi+fEnKh43Z3MrwchC SpVTeMhcLChwJClghHOladWIgmvGtQSuJI/Sy+MdsF5H0KB7c6FULmX/j8ZNQ1pColL5 fP9xSPt0bPgjs05C+MUWJrHyAX/krehrXQ4MVATaTUJ1BwLQJv/mRuzBBBlB4edyn+IL 160oXwFFKIe02uZ/PQdnFL3xACtPOxnNI1WT+S2FjtSw5DndngZNdMdWigqWn+IAeyfH 62eg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="XCC4Vo/L"; 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 af79cd13be357-7b7048e2797si12484385a.506.2024.12.13.11.24.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:24:55 -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="XCC4Vo/L"; 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 1tMB91-0000wa-Lv; Fri, 13 Dec 2024 14:16:11 -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 1tMB7I-0007Cb-0n for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:24 -0500 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7E-0007aH-IV for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:23 -0500 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3eb7edfa42dso1064065b6e.2 for ; Fri, 13 Dec 2024 11:14:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117257; x=1734722057; 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=fgBXSP9FXNsZoJNxDWIf4VlbcOnRZTVxU/IcB0k/jaw=; b=XCC4Vo/LtVl6m92Q+zGZPtC4vuRueL/Uct97xqSgnUeVNtX8KMQ9JtcETaSwhtVXCb Oca0UnsEFFcsZQ/x3Wphwqztxwj+F1ukAJxqG9LhdZuHt5wVcDLmejiH5FZ6ILUcKsws zpIr8P+n50PsMYiVt7sD/ZKRk37Fff2xnsQEiCH17EkeeRtrqD6/EJVKuMRPMT0f6rNV VxflSOv4irLjMRSmtvIBiFKGFsqqnye+Dcv6w0z9IuQNE4QpSgTOC97/yBFSYxf5GcBp R5wpNzw91R2hv7B/6LsMBm0B9g59V0bODjOpGhmFGllZQObzcj8ws2VO3KmrwrXH+Dyv Yt+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117257; x=1734722057; 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=fgBXSP9FXNsZoJNxDWIf4VlbcOnRZTVxU/IcB0k/jaw=; b=ATKOrOOSOVC0Njo5u8p0Oo7AWx7fKk7ZHYkFSa6of0xF+4M7ksUA645RWH9CRbiVSR uJlT7AjKNdIF9lCBqEsEZ1IDcnUB9nYK8TDPff8e02H+ZDJyiG98ITPHWsTlvnCyswvu aoNXz0QfFAruGo7m7ncE2YPsldWhgf91CNjDCTILkVPABjE0seW/hyr6Ev9r4c0lfTYS BVR6Q6gI2qT3EtCfAUaDoLkYibN+oHG3mac/5WKVGx8BnglUyzmlYYH5CU78qFa34mEJ bQ6TMJDsQyx8DHOyq6gUC7z1SRzEgvkDSzrv0sibKUfdBB3Wi8x5wUDO2AlaUzDXhaBG 4g/g== X-Gm-Message-State: AOJu0YyGR7L2R5VCPv1JRBpdzR25thjIKZ4/lZoZ3bOO1T21P0j7vwfr sacvtCBDzicS+CmVG2/0ITmNPV3uLdTKz9gusjMBbfp11fvFwNMdClZ/FSlhovlCjPPgEq+07vN Hv+MILb1s X-Gm-Gg: ASbGncsZefSbOXKoJyDwsL0mRQDKYbPhesxR1nIl3/NmZHH9Qw8dbzmXwwXWe5cfPHn cqobo+dpiTI1UoJ3o5w24ZlFtSj5ynDmPaJuXCu8rh8zcgtQXBq8Af04w+bZmdhviRGpouER7eA Dd9ODPIhkz0tzCjjtwETOmL4T538ooMdEa4rnwtIMhavH5XGUQ8jceWzKUTij+1dAHE41rk1KEy YxtIkemdJhFsCPMUY6IcOZ4yJuBQlETGlPbFdPDNkyrEI5ne+mmPvgsYHw5nWYJ X-Received: by 2002:a54:4082:0:b0:3eb:695f:5382 with SMTP id 5614622812f47-3eba686467bmr2111806b6e.13.1734117257266; Fri, 13 Dec 2024 11:14:17 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Beniamino Galvani , Peter Maydell , Strahinja Jankovic , Anup Patel , Alistair Francis , =?utf-8?q?Herv=C3=A9_Poussineau?= , "Michael S. Tsirkin" , Paolo Bonzini , qemu-arm@nongnu.org (open list:Allwinner-a10), qemu-riscv@nongnu.org (open list:Goldfish RTC), qemu-ppc@nongnu.org (open list:PReP) Subject: [PATCH 52/71] hw/rtc: Constify all Property Date: Fri, 13 Dec 2024 13:07:26 -0600 Message-ID: <20241213190750.2513964-57-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=2607:f8b0:4864:20::22d; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22d.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=unavailable 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/rtc/allwinner-rtc.c | 2 +- hw/rtc/goldfish_rtc.c | 2 +- hw/rtc/m48t59-isa.c | 2 +- hw/rtc/m48t59.c | 2 +- hw/rtc/mc146818rtc.c | 2 +- hw/rtc/pl031.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/rtc/allwinner-rtc.c b/hw/rtc/allwinner-rtc.c index 1057d6a57f..838db72136 100644 --- a/hw/rtc/allwinner-rtc.c +++ b/hw/rtc/allwinner-rtc.c @@ -311,7 +311,7 @@ static const VMStateDescription allwinner_rtc_vmstate = { } }; -static Property allwinner_rtc_properties[] = { +static const Property allwinner_rtc_properties[] = { DEFINE_PROP_INT32("base-year", AwRtcState, base_year, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/rtc/goldfish_rtc.c b/hw/rtc/goldfish_rtc.c index a6dfbf89f3..389f192efa 100644 --- a/hw/rtc/goldfish_rtc.c +++ b/hw/rtc/goldfish_rtc.c @@ -286,7 +286,7 @@ static void goldfish_rtc_realize(DeviceState *d, Error **errp) s->timer = timer_new_ns(rtc_clock, goldfish_rtc_interrupt, s); } -static Property goldfish_rtc_properties[] = { +static const Property goldfish_rtc_properties[] = { DEFINE_PROP_BOOL("big-endian", GoldfishRTCState, big_endian, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/rtc/m48t59-isa.c b/hw/rtc/m48t59-isa.c index b642b82680..51f80d27ef 100644 --- a/hw/rtc/m48t59-isa.c +++ b/hw/rtc/m48t59-isa.c @@ -77,7 +77,7 @@ static void m48txx_isa_toggle_lock(Nvram *obj, int lock) m48t59_toggle_lock(&d->state, lock); } -static Property m48t59_isa_properties[] = { +static const Property m48t59_isa_properties[] = { DEFINE_PROP_INT32("base-year", M48txxISAState, state.base_year, 0), DEFINE_PROP_UINT32("iobase", M48txxISAState, io_base, 0x74), DEFINE_PROP_UINT8("irq", M48txxISAState, isairq, 8), diff --git a/hw/rtc/m48t59.c b/hw/rtc/m48t59.c index 90299ea56f..5a2c7b4abd 100644 --- a/hw/rtc/m48t59.c +++ b/hw/rtc/m48t59.c @@ -618,7 +618,7 @@ static void m48txx_sysbus_toggle_lock(Nvram *obj, int lock) m48t59_toggle_lock(&d->state, lock); } -static Property m48t59_sysbus_properties[] = { +static const Property m48t59_sysbus_properties[] = { DEFINE_PROP_INT32("base-year", M48txxSysBusState, state.base_year, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/rtc/mc146818rtc.c b/hw/rtc/mc146818rtc.c index 8ccee9a385..973ed9914d 100644 --- a/hw/rtc/mc146818rtc.c +++ b/hw/rtc/mc146818rtc.c @@ -960,7 +960,7 @@ MC146818RtcState *mc146818_rtc_init(ISABus *bus, int base_year, return s; } -static Property mc146818rtc_properties[] = { +static const Property mc146818rtc_properties[] = { DEFINE_PROP_INT32("base_year", MC146818RtcState, base_year, 1980), DEFINE_PROP_UINT16("iobase", MC146818RtcState, io_base, RTC_ISA_BASE), DEFINE_PROP_UINT8("irq", MC146818RtcState, isairq, RTC_ISA_IRQ), diff --git a/hw/rtc/pl031.c b/hw/rtc/pl031.c index 563bb4b446..1dc8e6e00f 100644 --- a/hw/rtc/pl031.c +++ b/hw/rtc/pl031.c @@ -319,7 +319,7 @@ static const VMStateDescription vmstate_pl031 = { } }; -static Property pl031_properties[] = { +static const Property pl031_properties[] = { /* * True to correctly migrate the tick offset of the RTC. False to * obtain backward migration compatibility with older QEMU versions, From patchwork Fri Dec 13 19:07:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850250 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1689319wry; Fri, 13 Dec 2024 11:20:29 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWmbpByaHcWrIl5cUv27inFvuydgnHQAGgatK3Mr5NV8bw1wOsB68DIuXe3wpydtyP6P8OOBw==@linaro.org X-Google-Smtp-Source: AGHT+IGd+LUTbg4Tedibpl9qSZgU2KW8USFwBpF3QlCdLRNiu5S4NKmX5uQHpDiXPnVoS/NDudFO X-Received: by 2002:a05:622a:1a20:b0:461:7558:892f with SMTP id d75a77b69052e-467a14cc8cfmr106401221cf.15.1734117629629; Fri, 13 Dec 2024 11:20:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117629; cv=none; d=google.com; s=arc-20240605; b=Bc+1daHuDCiNh63MgdL0FKxf+yK6w5AjqnQwHBouEh8S3fchemJ2Ik/jPaOorHB0+a pSa19jwswY/igqIFAn1ANhsZ1g8brIQtjyiy9OTGKPlsJJIdEcyHY++dz5xHoJIK1/G0 Vc68zdGVfr1BCQEnU1R5m6iSZXPlHuUN8FqH9PE+NyT4juEu8CWqk4A42DNtL6sl6M9/ j6wss5BC0zuAxE4hmKd5ZitRfEpdc2OF73iTkmPEuCh+wZknsbQnvHmSnynFLqeN/Poy HoTI8zCG5Xda8+q1QhoS0ulOSVb7WUyZe79+rTPtKaPBr+L9QkAIyhkRSUaqZz9iWZil yBVg== 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=jlJ8lLrTcNh+UZLr82oClr/Y1XecHyMEI7eMV+zr7zU=; fh=pKcF2rWkV2U4m2Lap+jKYjpOmXas0tDx61/9YVDomkY=; b=J/GF+5dWRFO5iqa6W3PnzLbkH6b64XhZAEaPW16fsaUIuYJCploh087gJ+psrR+Cqu 7wF5lB8kzdZ5ohzQ5sxlBmeebg8rLC1BJKldgajynXH33MAcTJogyS4sJheEoBhccwjX m1eGfJwWkfQVjLt5ruGedx+Ojoh+H5PLXOWCV3SBA3KD41/X6PFRNa6tXFyLxsHG8XDj t+KW1HWhMk4vsIZBlNHNEv57moV/XhDsU02FYzOUYKo25OwJdrnEkxqklcBE8XtCV4aW y4EZNv/TwBEupLs1T2EqjzeUf1hp702+1+z2FeUO2bJZB3PsXo1M+mNNGx3wmt1sbYsA xK2A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YPyKohRc; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2f1c584si1371541cf.612.2024.12.13.11.20.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:20:29 -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=YPyKohRc; 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 1tMB9F-0001R8-BV; Fri, 13 Dec 2024 14:16:25 -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 1tMB7I-0007Ch-4w for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:25 -0500 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7F-0007aW-Gl for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:23 -0500 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3eb3c143727so1593571b6e.1 for ; Fri, 13 Dec 2024 11:14:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117259; x=1734722059; 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=jlJ8lLrTcNh+UZLr82oClr/Y1XecHyMEI7eMV+zr7zU=; b=YPyKohRcQb6yFCDymjolJRAY0t47UEBIjp18xo/aYqMfAKy9U33nEW4jmBjxFu6KKI suwlNJF8P19lUJQnkh+nwOT6nyK6vT9o3tgxvAbkRSIQf57RLvsmjyAdUGXad06tzWDF +psi24uoIloQUpz2AU3xBJSV2ZODwIVXuPYDm5p3+slnspkAzBncDAZRURJcIo+LjB4n Q7rojLDfWHVTmdT4YGXTvzZZSoukCDfRMTs7y6inP7m79t8DcQPURGI/PDZxzKYQ2OIs DLap8B2yNH7pzUUskZZzXOJATxJcvz4cVKcp9XnAb0ZTeC/HFcjexsx9QaiFaWhTcAWQ hYTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117259; x=1734722059; 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=jlJ8lLrTcNh+UZLr82oClr/Y1XecHyMEI7eMV+zr7zU=; b=S9l4+TwPzHT9f+6GlvwZVtA5ceO/vbjbH53/WII/IejxZ/Igh3N/3lVRQ9ZtefnD0U FdD0pMl0BAfcmz3ZXHsgLTYNb0V7nRAKP29YXOhObJbUfFgS4hQSStZ3x9HeFQm1Yy4D fnmb6CIkSS+SHkjBwL2jOkoDw7yNX2vwX5raBBT60UbWPR0x02GX8+GsXTErx7OTtg2K 1P/38Ul9+Ko7roLHENgeCuCZZmbePwjFQCFrQcapJurO60zscXRLZnQmId1BayAk/VLy GmdgN4U0JC7L8jTj5J3E/9UusIx4P90b2fAawdCMjs4tnTcq/0eH5TJAealXQi0rXvPD maYQ== X-Gm-Message-State: AOJu0Ywv9Do02tN0L41+1BtCZdfQq0xUEXlZoPnKeiBpyab/NKQRjHVP g22GirDw/xGQDZnq7yS5WrtdrQrhovpctdSsP1f3Keb6g+uhq/mp1MbdRimvARW8wn03p+QKpki MQ41AtBUE X-Gm-Gg: ASbGnctXQzKSECzXpOPGL1MA2r9wkTKJ7DFZe7j9qi8TPFvDnRaAs2mIHb2AXLTWNF/ CV1hw4VHNt8i7pEp2EM7PaCDhFa7DdVLBKqOQPfNcWtvlrGiRpw9eOS0RDiHOrdnXapLKbTmeRY Tk1WhPBza9Va9hQSNguBShg2tnrTxFYKac3ciB+MUX5RZq7rnHEsSqhcnDr9+o/xBi5X8XP1pjv 38XKMB6sdEAcXAJ7WYfBOhOObnVrTARK9zEs9zZ6eUKQYyHw6oqjRcv37Ix+xtT X-Received: by 2002:a05:6808:250b:b0:3eb:8236:d17 with SMTP id 5614622812f47-3eb94ef2aa5mr4271856b6e.11.1734117258843; Fri, 13 Dec 2024 11:14:18 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:18 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Yoshinori Sato Subject: [PATCH 53/71] hw/rx: Constify all Property Date: Fri, 13 Dec 2024 13:07:27 -0600 Message-ID: <20241213190750.2513964-58-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=2607:f8b0:4864:20::22e; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22e.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/rx/rx62n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/rx/rx62n.c b/hw/rx/rx62n.c index 560f53a58a..dfa27bc94e 100644 --- a/hw/rx/rx62n.c +++ b/hw/rx/rx62n.c @@ -257,7 +257,7 @@ static void rx62n_realize(DeviceState *dev, Error **errp) register_sci(s, 0); } -static Property rx62n_properties[] = { +static const Property rx62n_properties[] = { DEFINE_PROP_LINK("main-bus", RX62NState, sysmem, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_BOOL("load-kernel", RX62NState, kernel, false), From patchwork Fri Dec 13 19:07:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850257 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1690308wry; Fri, 13 Dec 2024 11:23:01 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUbTdoh7OUEuI8NsEG2C5ELC4zBeamZF+a7cL+gqjUyXT/ryaIESzVXfBX2wTQebNJ2ooJPsQ==@linaro.org X-Google-Smtp-Source: AGHT+IG16OlHElVurOQk43pxKKpTY/wK8A/bfG2TTPElqhyppP4wQ5qNy9V/9kq7Umj79Ghn42c/ X-Received: by 2002:a05:6102:32c7:b0:4af:f8b9:bea3 with SMTP id ada2fe7eead31-4b25dcf1f72mr4813348137.15.1734117781010; Fri, 13 Dec 2024 11:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117780; cv=none; d=google.com; s=arc-20240605; b=WABpbdLWSoFhsSvMmNcR6JTnV1Zyi+/qM4x3AKyeuf+KxfyGk7qEmrq038UQ66W9ie 3cT524WG48ohYSO2J+3VWxdwzef+69M8chtmj/eFPRJuJ0P3EpT1HhF4j4Z0NhdXhV2I 2mlVeszSkEtXq4RHQjBfaqohGBN9eB/ewheOrSHq6ovwMExOl+0RdL3Yy5GXk/AJa1T6 xH2z1DxyQm2vJjqgD4T9uzrV20VTKgydoQyDJ/2OdjpxAE3T2Cj8bKiur6T2bjOEFg3v fQstcbYwJQyS9aR5lKq16bQM/PcPCW74dWUIuXfQhf5jgvuuO1f+kLzcl1Bqn24xngSU pdhg== 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=4KW4uvX6kcpOG+0vWrOl72mSjdGCdTxn0mYV6Vb8Zew=; fh=loWSH20ofHQ1uaLyPZO9P11jFuH2w8OXsVYoJvWw+xo=; b=MhAoJyq+V9nlerKAcRaNZXCJqFPJhd297PcSnSK+MBL5URlSpZy5vPJ5swUmX/ZT6E sbexVxBuk3NnYCHuilMZuocfTyHgfB6larueqK6WZ4JaBx7VPixb8iO4JqZKZwZwgWRM h9BUw+1UxbgObDhJvo+dNkjEzSPelrluJj9D9++CtYk2JCSbsrzRQ4kWgqI9TT9eowPN RC9AAKPs9ISL0+UXGD7c2zpyReElR6Nn5u4VUugDUA8pP8BG6I1FIE6f0K2kR52xkq5u MEF7HYEHu2kjDXjjRmNf7glsrJwlXqB7oGFArtRikjtzv9/VEmdlfhz4W8HE0Reyw/Gs idmQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x3IPk8Kk; 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 ada2fe7eead31-4b2703e86a9si48881137.256.2024.12.13.11.23.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:23:00 -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=x3IPk8Kk; 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 1tMB9I-0001m2-FG; Fri, 13 Dec 2024 14:16:28 -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 1tMB7I-0007G8-Ux for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:25 -0500 Received: from mail-oi1-x230.google.com ([2607:f8b0: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 1tMB7G-0007b2-Hi for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:24 -0500 Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3eba5848ee4so361576b6e.3 for ; Fri, 13 Dec 2024 11:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117261; x=1734722061; 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=4KW4uvX6kcpOG+0vWrOl72mSjdGCdTxn0mYV6Vb8Zew=; b=x3IPk8Kk3h8vSS4PoJz3IS4Uqh/aFr7SzpQc6N7VYJIWh5+NQNWH2Xl+4+Z+mDw5YA hU0WMZpEzRX3rBfvvDw92dJx/7yfK8WAjLqJT7g0gWS65Dz2q0S3VmvID6vuDNRqxbFz KB84KokZXCEFCpWD114LEmHGbpNOZTdgIP9lHIIuPDG/BQJt+7Y14YHAjGQbqwRrTm10 0Gy/SIlweehVhmuOAG3TYa8E+bSqNlQEcbK7IIcn+NsulBUrNCR2xXu1+fZmcPKLqmno XdJjUGdteZtdlKeeYgY9xz7IgFh9FNmDPiKV6QCHWcXFBC9MAzoRCNL5whEUCfD0aGu4 CbTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117261; x=1734722061; 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=4KW4uvX6kcpOG+0vWrOl72mSjdGCdTxn0mYV6Vb8Zew=; b=TxK9HRJPzb4z2vwiXbZFTjjRmF8let91se7cX139TDgXQkDwW+Q5QUvep2UjUBZK3y MIxhjguD8NIvIuV3EujgwSyV8eb516N0q3rj098mfbEZwWxmFjiM6X3zX9RmZ6lwdtRM BKIygPO6JvA26A30p6aXi/qj34lzdLeP0lfpHNwtWqNtSSXSA6ww0CUFdHs0TC4im++6 LXfMln0xsYeg96yUs/+GOPOwDQr5g/p5wC0gcinMuYtFYVHOsb7Z+UkbJa9HFRqdLOml Ok/YbYI7jVb1ZmxNbfFVjQICBYP/N+OhZVUq1cNTUJbTEbnjbLtLh15J9/pfeTruwoF7 iXrA== X-Gm-Message-State: AOJu0YzDNn6CEXNqiZq20BGdm7LRKWiCWxb4oEWL2wHHucBh2WwPUi+P 2zlAtgQOc2qvLgKJqZbkOAsKNwYzHpa3SbP2kbg8zzT2eJDT+Ws2ul044fqjzKiWR3b8mCueBCx soNCjJUaK X-Gm-Gg: ASbGncsWXMh+mibFE57KKlNi6gpsbPTuRW4cdXjYR+BXNz2gTrdq93ZQg5VzHRHShSa yiVCNHwbGRLwk/dtiivWwxX8QUXFGT/SIt/QlWZ6FR+73Ac3XWbt6feMQh62D7w/ZIHQiH4rdqV ntn/hbBm1m6aJVQ6aNUrMxXJaCeNpSMn4g76cB46F9k51dOvaNbFJiqBzjyQzzG9uA4gvjpnJFp HDGS9T4JcgIoLvFqqDE/Iq7YSuoUblkj4wxNr2hqQ7EIpEx/G0x91x5kSsDow3N X-Received: by 2002:a05:6808:2022:b0:3eb:8442:9fb2 with SMTP id 5614622812f47-3eba693a9c3mr2211714b6e.29.1734117261204; Fri, 13 Dec 2024 11:14:21 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:20 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Halil Pasic , Christian Borntraeger , David Hildenbrand , Ilya Leoshkevich , Eric Farman , Thomas Huth , Matthew Rosato , Cornelia Huck , "Michael S. Tsirkin" , Stefano Garzarella , qemu-s390x@nongnu.org (open list:S390 3270 device) Subject: [PATCH 54/71] hw/s390x: Constify all Property Date: Fri, 13 Dec 2024 13:07:28 -0600 Message-ID: <20241213190750.2513964-59-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=2607:f8b0:4864:20::230; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x230.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/s390x/3270-ccw.c | 2 +- hw/s390x/ccw-device.c | 2 +- hw/s390x/css-bridge.c | 2 +- hw/s390x/ipl.c | 2 +- hw/s390x/s390-pci-bus.c | 2 +- hw/s390x/s390-skeys.c | 2 +- hw/s390x/s390-stattrib.c | 2 +- hw/s390x/vhost-scsi-ccw.c | 2 +- hw/s390x/vhost-user-fs-ccw.c | 2 +- hw/s390x/vhost-vsock-ccw.c | 2 +- hw/s390x/virtio-ccw-9p.c | 2 +- hw/s390x/virtio-ccw-balloon.c | 2 +- hw/s390x/virtio-ccw-blk.c | 2 +- hw/s390x/virtio-ccw-crypto.c | 2 +- hw/s390x/virtio-ccw-gpu.c | 2 +- hw/s390x/virtio-ccw-input.c | 2 +- hw/s390x/virtio-ccw-net.c | 2 +- hw/s390x/virtio-ccw-rng.c | 2 +- hw/s390x/virtio-ccw-scsi.c | 2 +- hw/s390x/virtio-ccw-serial.c | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/hw/s390x/3270-ccw.c b/hw/s390x/3270-ccw.c index 69e6783ade..f48a14ca2c 100644 --- a/hw/s390x/3270-ccw.c +++ b/hw/s390x/3270-ccw.c @@ -150,7 +150,7 @@ out_err: g_free(sch); } -static Property emulated_ccw_3270_properties[] = { +static const Property emulated_ccw_3270_properties[] = { DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/s390x/ccw-device.c b/hw/s390x/ccw-device.c index 30f2fb486f..0d10c3ed55 100644 --- a/hw/s390x/ccw-device.c +++ b/hw/s390x/ccw-device.c @@ -81,7 +81,7 @@ const PropertyInfo ccw_loadparm = { .set = ccw_device_set_loadparm, }; -static Property ccw_device_properties[] = { +static const Property ccw_device_properties[] = { DEFINE_PROP_CSS_DEV_ID("devno", CcwDevice, devno), DEFINE_PROP_CSS_DEV_ID_RO("dev_id", CcwDevice, dev_id), DEFINE_PROP_CSS_DEV_ID_RO("subch_id", CcwDevice, subch_id), diff --git a/hw/s390x/css-bridge.c b/hw/s390x/css-bridge.c index 8657ff7bf4..860a04a7da 100644 --- a/hw/s390x/css-bridge.c +++ b/hw/s390x/css-bridge.c @@ -120,7 +120,7 @@ VirtualCssBus *virtual_css_bus_init(void) /***************** Virtual-css Bus Bridge Device ********************/ -static Property virtual_css_bridge_properties[] = { +static const Property virtual_css_bridge_properties[] = { DEFINE_PROP_BOOL("css_dev_path", VirtualCssBridge, css_dev_path, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c index 30734661ad..88a97f0085 100644 --- a/hw/s390x/ipl.c +++ b/hw/s390x/ipl.c @@ -291,7 +291,7 @@ static void s390_ipl_realize(DeviceState *dev, Error **errp) qemu_register_reset(resettable_cold_reset_fn, dev); } -static Property s390_ipl_properties[] = { +static const Property s390_ipl_properties[] = { DEFINE_PROP_STRING("kernel", S390IPLState, kernel), DEFINE_PROP_STRING("initrd", S390IPLState, initrd), DEFINE_PROP_STRING("cmdline", S390IPLState, cmdline), diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c index 40b2567aa7..22e6be67af 100644 --- a/hw/s390x/s390-pci-bus.c +++ b/hw/s390x/s390-pci-bus.c @@ -1481,7 +1481,7 @@ static const PropertyInfo s390_pci_fid_propinfo = { #define DEFINE_PROP_S390_PCI_FID(_n, _s, _f) \ DEFINE_PROP(_n, _s, _f, s390_pci_fid_propinfo, uint32_t) -static Property s390_pci_device_properties[] = { +static const Property s390_pci_device_properties[] = { DEFINE_PROP_UINT16("uid", S390PCIBusDevice, uid, UID_UNDEFINED), DEFINE_PROP_S390_PCI_FID("fid", S390PCIBusDevice, fid), DEFINE_PROP_STRING("target", S390PCIBusDevice, target), diff --git a/hw/s390x/s390-skeys.c b/hw/s390x/s390-skeys.c index bf22d6863e..6d0a47ed73 100644 --- a/hw/s390x/s390-skeys.c +++ b/hw/s390x/s390-skeys.c @@ -475,7 +475,7 @@ static void s390_skeys_realize(DeviceState *dev, Error **errp) } } -static Property s390_skeys_props[] = { +static const Property s390_skeys_props[] = { DEFINE_PROP_BOOL("migration-enabled", S390SKeysState, migration_enabled, true), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/s390x/s390-stattrib.c b/hw/s390x/s390-stattrib.c index c4259b5327..6c69c01e1f 100644 --- a/hw/s390x/s390-stattrib.c +++ b/hw/s390x/s390-stattrib.c @@ -360,7 +360,7 @@ static void s390_stattrib_realize(DeviceState *dev, Error **errp) &savevm_s390_stattrib_handlers, dev); } -static Property s390_stattrib_props[] = { +static const Property s390_stattrib_props[] = { DEFINE_PROP_BOOL("migration-enabled", S390StAttribState, migration_enabled, true), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/s390x/vhost-scsi-ccw.c b/hw/s390x/vhost-scsi-ccw.c index 40dc14bbc7..0be0f8a82c 100644 --- a/hw/s390x/vhost-scsi-ccw.c +++ b/hw/s390x/vhost-scsi-ccw.c @@ -41,7 +41,7 @@ static void vhost_ccw_scsi_instance_init(Object *obj) TYPE_VHOST_SCSI); } -static Property vhost_ccw_scsi_properties[] = { +static const Property vhost_ccw_scsi_properties[] = { DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, VIRTIO_CCW_MAX_REV), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/s390x/vhost-user-fs-ccw.c b/hw/s390x/vhost-user-fs-ccw.c index 6c6f269293..934378aaec 100644 --- a/hw/s390x/vhost-user-fs-ccw.c +++ b/hw/s390x/vhost-user-fs-ccw.c @@ -23,7 +23,7 @@ typedef struct VHostUserFSCcw { OBJECT_CHECK(VHostUserFSCcw, (obj), TYPE_VHOST_USER_FS_CCW) -static Property vhost_user_fs_ccw_properties[] = { +static const Property vhost_user_fs_ccw_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/vhost-vsock-ccw.c b/hw/s390x/vhost-vsock-ccw.c index 07845a9a00..3ba4008b4b 100644 --- a/hw/s390x/vhost-vsock-ccw.c +++ b/hw/s390x/vhost-vsock-ccw.c @@ -22,7 +22,7 @@ struct VHostVSockCCWState { VHostVSock vdev; }; -static Property vhost_vsock_ccw_properties[] = { +static const Property vhost_vsock_ccw_properties[] = { DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, VIRTIO_CCW_MAX_REV), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/s390x/virtio-ccw-9p.c b/hw/s390x/virtio-ccw-9p.c index 6f931f5994..c10b084d40 100644 --- a/hw/s390x/virtio-ccw-9p.c +++ b/hw/s390x/virtio-ccw-9p.c @@ -41,7 +41,7 @@ static void virtio_ccw_9p_instance_init(Object *obj) TYPE_VIRTIO_9P); } -static Property virtio_ccw_9p_properties[] = { +static const Property virtio_ccw_9p_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-balloon.c b/hw/s390x/virtio-ccw-balloon.c index 44287b9bbe..bbbed494b3 100644 --- a/hw/s390x/virtio-ccw-balloon.c +++ b/hw/s390x/virtio-ccw-balloon.c @@ -46,7 +46,7 @@ static void virtio_ccw_balloon_instance_init(Object *obj) "guest-stats-polling-interval"); } -static Property virtio_ccw_balloon_properties[] = { +static const Property virtio_ccw_balloon_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-blk.c b/hw/s390x/virtio-ccw-blk.c index 2364432c6e..3182851234 100644 --- a/hw/s390x/virtio-ccw-blk.c +++ b/hw/s390x/virtio-ccw-blk.c @@ -43,7 +43,7 @@ static void virtio_ccw_blk_instance_init(Object *obj) "bootindex"); } -static Property virtio_ccw_blk_properties[] = { +static const Property virtio_ccw_blk_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-crypto.c b/hw/s390x/virtio-ccw-crypto.c index 0fa2f89443..b4cd7605c9 100644 --- a/hw/s390x/virtio-ccw-crypto.c +++ b/hw/s390x/virtio-ccw-crypto.c @@ -44,7 +44,7 @@ static void virtio_ccw_crypto_instance_init(Object *obj) TYPE_VIRTIO_CRYPTO); } -static Property virtio_ccw_crypto_properties[] = { +static const Property virtio_ccw_crypto_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-gpu.c b/hw/s390x/virtio-ccw-gpu.c index 0642c5281d..c44dc2d355 100644 --- a/hw/s390x/virtio-ccw-gpu.c +++ b/hw/s390x/virtio-ccw-gpu.c @@ -42,7 +42,7 @@ static void virtio_ccw_gpu_instance_init(Object *obj) TYPE_VIRTIO_GPU); } -static Property virtio_ccw_gpu_properties[] = { +static const Property virtio_ccw_gpu_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-input.c b/hw/s390x/virtio-ccw-input.c index 61a07ba38d..040a9e04a9 100644 --- a/hw/s390x/virtio-ccw-input.c +++ b/hw/s390x/virtio-ccw-input.c @@ -43,7 +43,7 @@ static void virtio_ccw_input_realize(VirtioCcwDevice *ccw_dev, Error **errp) qdev_realize(vdev, BUS(&ccw_dev->bus), errp); } -static Property virtio_ccw_input_properties[] = { +static const Property virtio_ccw_input_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-net.c b/hw/s390x/virtio-ccw-net.c index a4a3f65c7e..c41d347034 100644 --- a/hw/s390x/virtio-ccw-net.c +++ b/hw/s390x/virtio-ccw-net.c @@ -46,7 +46,7 @@ static void virtio_ccw_net_instance_init(Object *obj) "bootindex"); } -static Property virtio_ccw_net_properties[] = { +static const Property virtio_ccw_net_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-rng.c b/hw/s390x/virtio-ccw-rng.c index a3fffb5138..c9a15c4eb6 100644 --- a/hw/s390x/virtio-ccw-rng.c +++ b/hw/s390x/virtio-ccw-rng.c @@ -43,7 +43,7 @@ static void virtio_ccw_rng_instance_init(Object *obj) TYPE_VIRTIO_RNG); } -static Property virtio_ccw_rng_properties[] = { +static const Property virtio_ccw_rng_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-scsi.c b/hw/s390x/virtio-ccw-scsi.c index d003f89f43..bec9a73518 100644 --- a/hw/s390x/virtio-ccw-scsi.c +++ b/hw/s390x/virtio-ccw-scsi.c @@ -53,7 +53,7 @@ static void virtio_ccw_scsi_instance_init(Object *obj) TYPE_VIRTIO_SCSI); } -static Property virtio_ccw_scsi_properties[] = { +static const Property virtio_ccw_scsi_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-serial.c b/hw/s390x/virtio-ccw-serial.c index 8f8d2302f8..037d4f9db1 100644 --- a/hw/s390x/virtio-ccw-serial.c +++ b/hw/s390x/virtio-ccw-serial.c @@ -53,7 +53,7 @@ static void virtio_ccw_serial_instance_init(Object *obj) TYPE_VIRTIO_SERIAL); } -static Property virtio_ccw_serial_properties[] = { +static const Property virtio_ccw_serial_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, From patchwork Fri Dec 13 19:07:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850255 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1690079wry; Fri, 13 Dec 2024 11:22:21 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX6wuLYrRbRzUB8P7ZhZCyJThSuMXAmHQbW1pMcIeiKlsbvK6ElZVH3Cos6EZsEgilVDiGADw==@linaro.org X-Google-Smtp-Source: AGHT+IEIus3UE0CKsAnG3WKDXaLG3A5pIrFcAjZTZolnSXxUyN+hkl4D4Yulpf2JXz2lgSz3j83J X-Received: by 2002:a05:620a:17aa:b0:79f:18d4:d613 with SMTP id af79cd13be357-7b6fbf3a71emr421572585a.38.1734117741375; Fri, 13 Dec 2024 11:22:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117741; cv=none; d=google.com; s=arc-20240605; b=PnKNthIpFZGxsA9wie3C19ECKzSYEqklM3Xh/wrUgWr6I1dGzkcK8eakmXL8IeCuok 6NI5EBgkKrcQDb0P1U35q9HH1vD+qTHexzQ+T2Y4FFcFxfSdJhbJG2v9r4fdKwrXveSQ kpSOZYkOF4axtqP1qzt1hGC8E9WNjmI4RLAvDr92mqMiontog0l7OwvzvukGEOPd4wrf 5Y88SW61zvSExm4RAQEMWKHzcDt8XeHC+K0qdDm+l7SU0WbGj8lSe0SVwLW4r5H9jbN6 v2OCgG7mdOT6aZf6N1G7yWP6K5dNud6G4ZUqkeMevxzjSSGmC9W3j7lI18/F7wkR6lRG NyZw== 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=DWJFCtfZ2w3RHGCdV+UIqP2KUY8RC4HX5Q5Yyp1FU9E=; fh=ZHIcJQiXZQYjB/2Ak/x6ShMX0zqS0z4e7lIs8T+3wmM=; b=b4ElyFhPmPJOQoMD/eMP5iGLGJDmEaWByIHWAUMMJRyMxpHWanT0of59fOjONc6aod jPga+c996F5goCbtGx5QgFKSaxamm6HZ1dA2GsfJwNOlN4OPmIfbs6pYBYSqKBPeQdEg dotdTpbD/pffhAB6V6VbitteKrPPgyrlc+Gn0e8Un70aGCgrsK3wY68js9G/C4PaVKSo 3WQIT1amH4pepGBzRQAfGFXOe/7i2X4iHERu4T1eKm+TnTAVFQI8r9f3qSDZQYug/cvx BXEJ2oG7BZI87RneX4SiNKpt0dBgK+ooWVx7JqBy5RtV9iBicsF7Vg5nVkVQa3x9W1lK hV6g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g+eoQ4Dn; 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 af79cd13be357-7b7048bf921si16699485a.314.2024.12.13.11.22.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:22:21 -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=g+eoQ4Dn; 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 1tMB97-00017B-L6; Fri, 13 Dec 2024 14:16:17 -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 1tMB7O-0007SV-0c for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:30 -0500 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7I-0007bh-WC for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:26 -0500 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-29ff039dab2so1026653fac.3 for ; Fri, 13 Dec 2024 11:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117264; x=1734722064; 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=DWJFCtfZ2w3RHGCdV+UIqP2KUY8RC4HX5Q5Yyp1FU9E=; b=g+eoQ4DnfqQ0kFfK+L/0/A1+hf9mr2ppp0fzdLhPlssE3yIsgDU0HN1OuM1vEerzsm c0pnYy1O5qkU1e4svLA8SLpCXOkqvfecrdRX6cR8rNKVT8QtaMU5cpkCRU4cd/G0WlIP 4ambk8SqVth0ug9lnymhELD192lAh7l0tA8eu1amx95HUvYs1TBt8lbZgovJKQYNA9u4 M24N7vycUvO26pftCcd9vR8JdeguonCgFsbv1PsJKb/gYThpShj+WXHCQMBEiJ/KeDxC q7bBBzUytNoHlvS++l+Tr6A//T++Ma3ljKI5VOqNvcz7GZ9saqfiT1pqQFbr1jqj8KEw X7ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117264; x=1734722064; 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=DWJFCtfZ2w3RHGCdV+UIqP2KUY8RC4HX5Q5Yyp1FU9E=; b=BeACEJGKBWOn0vAbiz30dcdM02OO/GoFCwCHV50uC8c8vj9sty4gUsaAmC1BoFlGk/ gORdnviSe1cymtAu9CaVENlIqbM9jsivkkweG7zBIAPkI542fkzXR+RJCnYaFxg2PC38 jfQnASjttihVSwqFphMawJ1oXbFU+4ip1TKa/e+XTd977b+HOOzThRXENPy0jw4Ri/EU usbYZzXgq0mzaIb1ewHBHTefwOEkgKQ2sMvwYrt20j3madkDWHdsMlIOQuGUShtDNYZ1 mWfTKLgzKNWtWJjlJYiYG4QsHJQLmD9X7o7Z8Be3eZfPTbo8RLeWLup0ZY4D++te8w45 7QDw== X-Gm-Message-State: AOJu0Yy1IjumYXQEY739RHJi4u1zCHmyCV18mD0RTpSzhZbICZaHLZus 01hbkSNRmSUse5GgoQIq03FIhIj8dKxdj+0jE1Tnms6w6Y/uLm/bo5rHfAqRc3/o6lN0EfWktnV za5CJdQkv X-Gm-Gg: ASbGncszxsvyDRESQglFSN34m4cQsZadnsVnPYdAIG9J9BS9hejSXnmPc95s17/LZF5 ifSWdbmzhCmZintazOxomB2C1x16D/9sqOApSo4+RIpw2oFJNrLXOJY193dXvjpz2eQ+4c/OrLQ bxeRzxZu/O7i06l8wIht4JDtO1BGgfH+un5xWxrVungEYhKiWX+EeSu0/BkYmGYyNRUTERkKhHt fDLcp8vZI4muXi3ykd0R4bE+Z3D8ioVdwzzdV4vZVGzXNyP6D1kUkmOuX4T0coP X-Received: by 2002:a05:6808:1596:b0:3ea:37a7:394 with SMTP id 5614622812f47-3eba6955bd8mr1970897b6e.34.1734117263825; Fri, 13 Dec 2024 11:14:23 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:23 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Fam Zheng , Hannes Reinecke , Nicholas Piggin , Daniel Henrique Barboza , Harsh Prateek Bora , "Michael S. Tsirkin" , Stefano Garzarella , Raphael Norwitz , Dmitry Fleytman , qemu-block@nongnu.org (open list:megasas), qemu-ppc@nongnu.org (open list:sPAPR (pseries)) Subject: [PATCH 55/71] hw/scsi: Constify all Property Date: Fri, 13 Dec 2024 13:07:29 -0600 Message-ID: <20241213190750.2513964-60-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::2e; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2e.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/scsi/megasas.c | 6 +++--- hw/scsi/mptsas.c | 2 +- hw/scsi/scsi-bus.c | 2 +- hw/scsi/scsi-disk.c | 6 +++--- hw/scsi/scsi-generic.c | 2 +- hw/scsi/spapr_vscsi.c | 2 +- hw/scsi/vhost-scsi.c | 2 +- hw/scsi/vhost-user-scsi.c | 2 +- hw/scsi/virtio-scsi.c | 2 +- hw/scsi/vmw_pvscsi.c | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c index df58aeb995..8323cd18e3 100644 --- a/hw/scsi/megasas.c +++ b/hw/scsi/megasas.c @@ -2448,7 +2448,7 @@ static void megasas_scsi_realize(PCIDevice *dev, Error **errp) scsi_bus_init(&s->bus, sizeof(s->bus), DEVICE(dev), &megasas_scsi_info); } -static Property megasas_properties_gen1[] = { +static const Property megasas_properties_gen1[] = { DEFINE_PROP_UINT32("max_sge", MegasasState, fw_sge, MEGASAS_DEFAULT_SGE), DEFINE_PROP_UINT32("max_cmds", MegasasState, fw_cmds, @@ -2462,7 +2462,7 @@ static Property megasas_properties_gen1[] = { DEFINE_PROP_END_OF_LIST(), }; -static Property megasas_properties_gen2[] = { +static const Property megasas_properties_gen2[] = { DEFINE_PROP_UINT32("max_sge", MegasasState, fw_sge, MEGASAS_DEFAULT_SGE), DEFINE_PROP_UINT32("max_cmds", MegasasState, fw_cmds, @@ -2487,7 +2487,7 @@ typedef struct MegasasInfo { int mmio_bar; int osts; const VMStateDescription *vmsd; - Property *props; + const Property *props; InterfaceInfo *interfaces; } MegasasInfo; diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c index c6bc3479e9..a06113d908 100644 --- a/hw/scsi/mptsas.c +++ b/hw/scsi/mptsas.c @@ -1410,7 +1410,7 @@ static const VMStateDescription vmstate_mptsas = { } }; -static Property mptsas_properties[] = { +static const Property mptsas_properties[] = { DEFINE_PROP_UINT64("sas_address", MPTSASState, sas_addr, 0), /* TODO: test MSI support under Windows */ DEFINE_PROP_ON_OFF_AUTO("msi", MPTSASState, msi, ON_OFF_AUTO_AUTO), diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c index 53eff5dd3d..2f1678d51e 100644 --- a/hw/scsi/scsi-bus.c +++ b/hw/scsi/scsi-bus.c @@ -1943,7 +1943,7 @@ const VMStateDescription vmstate_scsi_device = { } }; -static Property scsi_props[] = { +static const Property scsi_props[] = { DEFINE_PROP_UINT32("channel", SCSIDevice, channel, 0), DEFINE_PROP_UINT32("scsi-id", SCSIDevice, id, -1), DEFINE_PROP_UINT32("lun", SCSIDevice, lun, -1), diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c index 7f13b0588f..a47b80907f 100644 --- a/hw/scsi/scsi-disk.c +++ b/hw/scsi/scsi-disk.c @@ -3207,7 +3207,7 @@ static const TypeInfo scsi_disk_base_info = { DEFINE_PROP_BOOL("migrate-emulated-scsi-request", SCSIDiskState, migrate_emulated_scsi_request, true) -static Property scsi_hd_properties[] = { +static const Property scsi_hd_properties[] = { DEFINE_SCSI_DISK_PROPERTIES(), DEFINE_PROP_BIT("removable", SCSIDiskState, features, SCSI_DISK_F_REMOVABLE, false), @@ -3267,7 +3267,7 @@ static const TypeInfo scsi_hd_info = { .class_init = scsi_hd_class_initfn, }; -static Property scsi_cd_properties[] = { +static const Property scsi_cd_properties[] = { DEFINE_SCSI_DISK_PROPERTIES(), DEFINE_PROP_UINT64("wwn", SCSIDiskState, qdev.wwn, 0), DEFINE_PROP_UINT64("port_wwn", SCSIDiskState, qdev.port_wwn, 0), @@ -3310,7 +3310,7 @@ static const TypeInfo scsi_cd_info = { }; #ifdef __linux__ -static Property scsi_block_properties[] = { +static const Property scsi_block_properties[] = { DEFINE_BLOCK_ERROR_PROPERTIES(SCSIDiskState, qdev.conf), DEFINE_PROP_DRIVE("drive", SCSIDiskState, qdev.conf.blk), DEFINE_PROP_BOOL("share-rw", SCSIDiskState, qdev.conf.share_rw, false), diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c index 76f04a5ee8..d7ae7549d0 100644 --- a/hw/scsi/scsi-generic.c +++ b/hw/scsi/scsi-generic.c @@ -772,7 +772,7 @@ static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun, return scsi_req_alloc(&scsi_generic_req_ops, d, tag, lun, hba_private); } -static Property scsi_generic_properties[] = { +static const Property scsi_generic_properties[] = { DEFINE_PROP_DRIVE("drive", SCSIDevice, conf.blk), DEFINE_PROP_BOOL("share-rw", SCSIDevice, conf.share_rw, false), DEFINE_PROP_UINT32("io_timeout", SCSIDevice, io_timeout, diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c index c75a6c8807..7c55e4d40f 100644 --- a/hw/scsi/spapr_vscsi.c +++ b/hw/scsi/spapr_vscsi.c @@ -1250,7 +1250,7 @@ static int spapr_vscsi_devnode(SpaprVioDevice *dev, void *fdt, int node_off) return 0; } -static Property spapr_vscsi_properties[] = { +static const Property spapr_vscsi_properties[] = { DEFINE_SPAPR_PROPERTIES(VSCSIState, vdev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/scsi/vhost-scsi.c b/hw/scsi/vhost-scsi.c index 22d16dc26b..effb8dab1f 100644 --- a/hw/scsi/vhost-scsi.c +++ b/hw/scsi/vhost-scsi.c @@ -343,7 +343,7 @@ static struct vhost_dev *vhost_scsi_get_vhost(VirtIODevice *vdev) return &vsc->dev; } -static Property vhost_scsi_properties[] = { +static const Property vhost_scsi_properties[] = { DEFINE_PROP_STRING("vhostfd", VirtIOSCSICommon, conf.vhostfd), DEFINE_PROP_STRING("wwpn", VirtIOSCSICommon, conf.wwpn), DEFINE_PROP_UINT32("boot_tpgt", VirtIOSCSICommon, conf.boot_tpgt, 0), diff --git a/hw/scsi/vhost-user-scsi.c b/hw/scsi/vhost-user-scsi.c index 55e4be5b34..d5265c57bc 100644 --- a/hw/scsi/vhost-user-scsi.c +++ b/hw/scsi/vhost-user-scsi.c @@ -341,7 +341,7 @@ static void vhost_user_scsi_unrealize(DeviceState *dev) virtio_scsi_common_unrealize(dev); } -static Property vhost_user_scsi_properties[] = { +static const Property vhost_user_scsi_properties[] = { DEFINE_PROP_CHR("chardev", VirtIOSCSICommon, conf.chardev), DEFINE_PROP_UINT32("boot_tpgt", VirtIOSCSICommon, conf.boot_tpgt, 0), DEFINE_PROP_UINT32("num_queues", VirtIOSCSICommon, conf.num_queues, diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index 6637cfeaf5..c0a4f1a620 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -1285,7 +1285,7 @@ static void virtio_scsi_device_unrealize(DeviceState *dev) qemu_mutex_destroy(&s->tmf_bh_lock); } -static Property virtio_scsi_properties[] = { +static const Property virtio_scsi_properties[] = { DEFINE_PROP_UINT32("num_queues", VirtIOSCSI, parent_obj.conf.num_queues, VIRTIO_SCSI_AUTO_NUM_QUEUES), DEFINE_PROP_UINT32("virtqueue_size", VirtIOSCSI, diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c index 57761b5594..46cec531cc 100644 --- a/hw/scsi/vmw_pvscsi.c +++ b/hw/scsi/vmw_pvscsi.c @@ -1296,7 +1296,7 @@ static const VMStateDescription vmstate_pvscsi = { } }; -static Property pvscsi_properties[] = { +static const Property pvscsi_properties[] = { DEFINE_PROP_UINT8("use_msg", PVSCSIState, use_msg, 1), DEFINE_PROP_BIT("x-old-pci-configuration", PVSCSIState, compat_flags, PVSCSI_COMPAT_OLD_PCI_CONFIGURATION_BIT, false), From patchwork Fri Dec 13 19:07:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850243 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1688223wry; Fri, 13 Dec 2024 11:18:02 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXBBdHGm+r25nItFlC/jufzUrQZ4SVEl9QBs2LhHKDoo4+1zlvfgxO+3cstg0DMcPcO+nhhrw==@linaro.org X-Google-Smtp-Source: AGHT+IEZZMqD+EGTmaZlfjKqFSZcoKM/FqycKZ5bkU9V4cYLksmUdY4hDhi1lzPqxE0dFrwjVhcd X-Received: by 2002:a05:620a:a111:b0:7b6:c8d6:93ad with SMTP id af79cd13be357-7b6fbf3d93fmr606855785a.48.1734117482507; Fri, 13 Dec 2024 11:18:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117482; cv=none; d=google.com; s=arc-20240605; b=QC2Pkr1Zk5ISqfUU8jyb7HZhUboRFpSnDhl67GP3lUCdkcO4jdBETyhM2+CIp4Pt8J Hn+fJzbHUbwFwg0erdecQCywQjEq3qBHqmSpePYCwdlAW9/fkWcTyqRRXMCkIC/fE5ZB yJ7IPwrt4jymjrfu7lyrXyKvT9wlSlnIyYoifhFVPQH0nhUAyIcC97aqXsdc4gQKTI3j SJESZOy4Mx/sFQQZUvIBH+k9T7d8g4JuWAjvfcx/wulUbLhNLK44y28hz88QrrYuqRbd bDJlBnMSnBZbXrWblcIygv+n8tPRZAwKU9xOsukdbxzrzXmfNGvHPUvNl7eK6DCRar94 wWSw== 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=pcaNS/gxnqi2fcS2Nr3KkJaxwBrXTBr+IuvckqUS1nY=; fh=0sFG0T3Jz/PZaB4F7bVhBF5WcjThx1GvHPAI5bHIs4E=; b=BgJ11FvDNS/ifdN27crEaeMSPrBS0knkj5bHAPhsTzzLOOdJ96vs+6lvC7zgyXyoYV vfaf/djwqn/j1hLCU2aTW2L3kvB+A5ADGpSxSvdTWewffRHtaDCZEnol8n22o+OjCdVT MfDf2U+iRv3lK8uLYikRhfGUWgwGh7XMIPt7h/ukGqeJyZ4uG2UriFhir+qYTCL/+gM/ 2RT4mOvkNWpKpFV7rLAO+xC0kBh9y9Quwj76ppXcETYJSelsEKRDLw/yq8ZkX95QQpSw HcnlqaKuipB0o8H0yug8Xky51gQUpbDwJcRv6Wy8X3++L218ipFqtveY8Ioydi7oX1gC tDcw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ik2eKMeE; 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 af79cd13be357-7b7048ce5desi10557685a.436.2024.12.13.11.18.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:18:02 -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=ik2eKMeE; 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 1tMB9I-0001lb-Fj; Fri, 13 Dec 2024 14:16:28 -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 1tMB7R-0007Xo-4D for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:33 -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 1tMB7M-0007cO-3q for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:31 -0500 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-2a0206590a7so935341fac.0 for ; Fri, 13 Dec 2024 11:14:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117266; x=1734722066; 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=pcaNS/gxnqi2fcS2Nr3KkJaxwBrXTBr+IuvckqUS1nY=; b=ik2eKMeE9ydojWDyHu41qTyvEkbA+sPhBIOG4YCHgph40TD4jQonZb9deJSDeTqo7t 1bYfhNS3wUnqZUL5hmsoSzQL6GhaGfQWAV1HaVJmF0q1DkG6oSSlyRZBs7j0WRj8Ltj8 E2ExWOs0kGjd8uFo75Y7rZhJWKg28YdHLn2sMLus//kCL7tZdo+GqYCxRafH+1CvixlD BgKhcehpCha2+KDN3kefZEjOse9ja5e2C3O/4rY4QUXDvTbd7D7eM9LXZVyA/MOfHMUU LPRrWoFbuOPkcCeQ0JvnTQmjGaUSTGVeXgfdPdQnbSXgOS+SpAuB/Gl4Z3z8rlx8R85u XJeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117266; x=1734722066; 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=pcaNS/gxnqi2fcS2Nr3KkJaxwBrXTBr+IuvckqUS1nY=; b=ePM/A8OqbEdMZhDETr41jgsrTolWcJ7B1nDBM6+isNf7D2enl6ZkbSbmxW3sE6jwKJ 1w28lHyMWRjz4oKbDbhT1zT5oD1mh6CpaDa+8jGFAviLx5tp/KKlSNhU7vp2xL5kqaJy 2/BvWCjePF+B0QrG6p0ZrEfSPMr6nx/TTPOKIJnRrJhSdD+Ldqih8DctTW7KraH1qi/d 99kvKs5Wk1VwsKSzTCoNDdlcT2jDqxlBLq8ljYTRF08WS8rw7Rt31oGXWq2yQS7ucnBT NWirgZsPHntWwqJ+P/XZN7tJ5S2hWK/50DwJ2J6Cwt6/+rtlUWGk4MgHxOzZ4k06XOM+ g8MA== X-Gm-Message-State: AOJu0YzMVY/2UNmW+aKu6XZlLa0yZ3pM2W3bU1SCsX50NmADluKH0SlO mhQddjm7eNbjlOP0bMGdn502jeIvcX2kz/EaC7uw7KPOM9l9XOewKUVMLzTfEURqHfmtYkA5Pi0 2fMTLrG7g X-Gm-Gg: ASbGncvTCEphAW8TkdaR9Pqgon0XpAjZbWBk+0Bfhp4PcwsAVF/6coDaG9tRTuGY9Td vDInDfDJrCJMh13rfbqPSs3OadnWWZAbpmEzHVU9QenOp8YDYF4d3amU9beo4On2uUvw16ya++m mxOC6YH3z6wnPlczinNJ0b/hzvZpQd9tGSs/BSAJ1s3Xx3BH1tAGCYQ5q3kwddd6aoQu5X16Zys elfNLH68wCN5cu01f95VtsC5ZjQCFWy3pw73CBLNnExB2u7KEH4QA3ox7Mlw/x/ X-Received: by 2002:a05:6808:14c5:b0:3e7:edd9:8eb1 with SMTP id 5614622812f47-3eba6815da8mr2506800b6e.1.1734117266034; Fri, 13 Dec 2024 11:14:26 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:25 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Beniamino Galvani , Peter Maydell , Strahinja Jankovic , =?utf-8?q?C=C3=A9dric_?= =?utf-8?q?Le_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Bin Meng , qemu-arm@nongnu.org (open list:Allwinner-a10), qemu-block@nongnu.org (open list:SD (Secure Card)) Subject: [PATCH 56/71] hw/sd: Constify all Property Date: Fri, 13 Dec 2024 13:07:30 -0600 Message-ID: <20241213190750.2513964-61-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/sd/allwinner-sdhost.c | 2 +- hw/sd/aspeed_sdhci.c | 2 +- hw/sd/sd.c | 6 +++--- hw/sd/sdhci-pci.c | 2 +- hw/sd/sdhci.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/sd/allwinner-sdhost.c b/hw/sd/allwinner-sdhost.c index bcfb4c1322..be39ec2e71 100644 --- a/hw/sd/allwinner-sdhost.c +++ b/hw/sd/allwinner-sdhost.c @@ -808,7 +808,7 @@ static const VMStateDescription vmstate_allwinner_sdhost = { } }; -static Property allwinner_sdhost_properties[] = { +static const Property allwinner_sdhost_properties[] = { DEFINE_PROP_LINK("dma-memory", AwSdHostState, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/sd/aspeed_sdhci.c b/hw/sd/aspeed_sdhci.c index f82b05397e..99703f1842 100644 --- a/hw/sd/aspeed_sdhci.c +++ b/hw/sd/aspeed_sdhci.c @@ -204,7 +204,7 @@ static const VMStateDescription vmstate_aspeed_sdhci = { }, }; -static Property aspeed_sdhci_properties[] = { +static const Property aspeed_sdhci_properties[] = { DEFINE_PROP_UINT8("num-slots", AspeedSDHCIState, num_slots, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/sd/sd.c b/hw/sd/sd.c index f9bd03f3fd..b994ef581e 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -2798,18 +2798,18 @@ static void emmc_realize(DeviceState *dev, Error **errp) sd_realize(dev, errp); } -static Property sdmmc_common_properties[] = { +static const Property sdmmc_common_properties[] = { DEFINE_PROP_DRIVE("drive", SDState, blk), DEFINE_PROP_END_OF_LIST() }; -static Property sd_properties[] = { +static const Property sd_properties[] = { DEFINE_PROP_UINT8("spec_version", SDState, spec_version, SD_PHY_SPECv3_01_VERS), DEFINE_PROP_END_OF_LIST() }; -static Property emmc_properties[] = { +static const Property emmc_properties[] = { DEFINE_PROP_UINT64("boot-partition-size", SDState, boot_part_size, 0), DEFINE_PROP_UINT8("boot-config", SDState, boot_config, 0x0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/sd/sdhci-pci.c b/hw/sd/sdhci-pci.c index 9b7bee8b3f..83892a7a15 100644 --- a/hw/sd/sdhci-pci.c +++ b/hw/sd/sdhci-pci.c @@ -22,7 +22,7 @@ #include "hw/sd/sdhci.h" #include "sdhci-internal.h" -static Property sdhci_pci_properties[] = { +static const Property sdhci_pci_properties[] = { DEFINE_SDHCI_COMMON_PROPERTIES(SDHCIState), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 37875c02c3..e697ee05b3 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -1544,7 +1544,7 @@ void sdhci_common_class_init(ObjectClass *klass, void *data) /* --- qdev SysBus --- */ -static Property sdhci_sysbus_properties[] = { +static const Property sdhci_sysbus_properties[] = { DEFINE_SDHCI_COMMON_PROPERTIES(SDHCIState), DEFINE_PROP_BOOL("pending-insert-quirk", SDHCIState, pending_insert_quirk, false), From patchwork Fri Dec 13 19:07:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850284 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1696030wry; Fri, 13 Dec 2024 11:37:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWwHxsI7aUO4OsB4efdGNIU+RG6Ob+Z1H4JYhzBiBRLNumZNycZakjq+6qIB8F0OuYSZtHIOQ==@linaro.org X-Google-Smtp-Source: AGHT+IGowgh6Hm4VhMYDKVnI+KwMRqYX1hhfct7R8f9MDD3+nDtldcIlIAvl2AgTcIjvy3Xx00A9 X-Received: by 2002:a05:6102:2ac7:b0:4af:ecff:ac1f with SMTP id ada2fe7eead31-4b25fce9642mr4065228137.11.1734118630434; Fri, 13 Dec 2024 11:37:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118630; cv=none; d=google.com; s=arc-20240605; b=X92F4kLiiu6RBvJdCF00ZlpS1+IWCTSGXcY4o+T7TwoS0JkYfJl0KmQuTm+S7nKU7v Q33iem90P/OQiFygKEH3sUotA7etq/WDkTjAQ47kPl4HA8DZoIstmvonCRbEV3oSnPU7 7nvR82rqj7ATxN34lrj8J5QvG7qfct7snEI5mOTHEHqEPrazqnEUDizEffwjQFqbcNY8 l6J7fUuDV+2WDET2h+fdpl+E+Bjzg7tSracJsDLP0GGedngOgLHZ/ob8jCRWoVda+UeD q6je+3GiqxU3fK9ZPI1HCgGlZFv+1MZz+0unzMLEnRDmLVvMONWHaRzWKtAMbVFSOi3j QtNA== 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=rpq4UUf6dVqmk0jMJhoczKkqUStkLqI71UYDr3fDwHQ=; fh=uMouYUTR2HrIPFfZbK/OU4bTeG7ULPkJqiedzLu9O/g=; b=M1KfS4+0xGVjIgy2qtJdstIzJ2u5fVYf3EDhc8YWoj2ubWUb16I2QOf1XNHE3m8ufv UDgO3eBTSukViAX2OF0zQsso6LcUMx0vmcmIbBN4djxrkH23/E0xy4ehByIRrBUjSfgU vGcjZwMKRHvUsQopNzKd1jDASpAsAhYJKeUNM/HXmFfaqod/LqZGGEs5hbxpNlNKljfD wr3F3KPb1Q9gvUhFwbOlxNNdmfic5jrlojZ40mcALjMgzRNvsKkfcIdUh16v1AN6w3u3 v29WcuvOeXA9gThzp0AFQuMFlWlLGZjeoWjRDS7qn3OnPwSzzQLDvomEu0ZaOA2XQwrQ uNfw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qhIA9E41; 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 ada2fe7eead31-4b270417fb3si51476137.429.2024.12.13.11.37.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:37:10 -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=qhIA9E41; 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 1tMB9H-0001YW-24; Fri, 13 Dec 2024 14:16:27 -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 1tMB7V-0007dV-6R for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:38 -0500 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7O-0007cg-Rm for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:34 -0500 Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3e63e5c0c50so1018045b6e.0 for ; Fri, 13 Dec 2024 11:14:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117267; x=1734722067; 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=rpq4UUf6dVqmk0jMJhoczKkqUStkLqI71UYDr3fDwHQ=; b=qhIA9E41vo+5jnrVNuMubUBYjGSCxvHJfWJPs2kQhS/BEd4Gd3lIKFMwi9OMRNrDxP bHUJPksLlQ5ZZjPwZue6ymaSzJsb/JVL713eVgxKwA+ufE9/5V7NQqn6xU5doiDLV0ze d+uItq5I1BpMaBWdHKhhr33ZtOw2CfFM7f51ftecjnZ5hHoxdxDKw1aGVxl9Z+Nsa3oG pZUSPUFyzb8K+9Kl8SqnRjeBmpOWoGVBCSTZYVSQu+OF7YRtwtxpklqd7s+BFmY4j31c rjbhCt6SzIcuyAyl9YehjexjsWcbqDcrpFyn65/UwvYegWRgEyQ6LIb8H1X9f+x1YnrQ vwOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117267; x=1734722067; 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=rpq4UUf6dVqmk0jMJhoczKkqUStkLqI71UYDr3fDwHQ=; b=azpVH0yq9mAuY0pdGYOc1a8ABRfpBS+1cDJRLMagwD32CRhLLGutVjVU4Nvy2pd+v4 UMzkNYtwYJRXIn/yhpV6pB3OIrNJcTsxFWJQHMN0AKeVmL6cr+7Jk27TLleA2cRyweuD Qiv/4nWnKdH3UzEH97gnf7oq3OhSwpy/haXcXuSKQ27IDtf0NFF/mDOFbvWV+nxo4Mg5 3zi7+LXrR0c+ZI7mKFrEFDWQ3EoEo6Tra8WoLKYXcuM97AzFBVuDoTlg0nHZXM0NAG59 tbTqjdDVkAfz2Hq0tJqkotYrHLQY5np8It9IrouKVL4IXoeScbNQd5SPQfhHp80scmXD kuDQ== X-Gm-Message-State: AOJu0YwvkOCQyFrhoQdnYwX2Oqn7Xd9bd02lvjZmwgVX9N8ORpzPf7cl Im0Rhk1hmVztrPC/8N0uGVE/SksX8TUly31JSO8zmBPY2eaWPSRCw+q0+Uk2cMrxlBlS+UO0NAy caxIwg1e9 X-Gm-Gg: ASbGncsNkUaZrVY8gc4f64J4kS53OOMbirYdFWos9b2JxWjx6EdgDL6y4W0XeBBo+9b SeB/evzLroAS8nZ3cSD9B87mO1S8UGPBVpHkYmqjOj/gC/LK5ry6DdO78i95WHzS/x82ZJ/sHE5 hz32KtEwKBD65i5ohN8BG3pw1yX9jS7WJ5PTxtL64n/uCmkJh30nlOB1jjboakJim79hbNDO3ux CTbAVQoXHv51v05y6ALvA1Hqv0lANowUWPxk2D+Y899+EVOh6RWN4auRM4449qH X-Received: by 2002:a05:6808:2008:b0:3e6:d7:9464 with SMTP id 5614622812f47-3eb94f629cdmr4108402b6e.14.1734117267233; Fri, 13 Dec 2024 11:14:27 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:26 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Artyom Tarasenko Subject: [PATCH 57/71] hw/sparc: Constify all Property Date: Fri, 13 Dec 2024 13:07:31 -0600 Message-ID: <20241213190750.2513964-62-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=2607:f8b0:4864:20::22f; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22f.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/sparc/sun4m.c | 2 +- hw/sparc/sun4m_iommu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c index d52e6a7213..b8cce271a7 100644 --- a/hw/sparc/sun4m.c +++ b/hw/sparc/sun4m.c @@ -732,7 +732,7 @@ static void prom_realize(DeviceState *ds, Error **errp) sysbus_init_mmio(dev, &s->prom); } -static Property prom_properties[] = { +static const Property prom_properties[] = { {/* end of property list */}, }; diff --git a/hw/sparc/sun4m_iommu.c b/hw/sparc/sun4m_iommu.c index 6f765e97e4..3d6fcdf576 100644 --- a/hw/sparc/sun4m_iommu.c +++ b/hw/sparc/sun4m_iommu.c @@ -368,7 +368,7 @@ static void iommu_init(Object *obj) sysbus_init_mmio(dev, &s->iomem); } -static Property iommu_properties[] = { +static const Property iommu_properties[] = { DEFINE_PROP_UINT32("version", IOMMUState, version, 0), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850259 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1690658wry; Fri, 13 Dec 2024 11:23:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVEWIM9Vb6xojcnC50OYKtZW5AiDPL4IID/Ww2wQsIa2bbnfWT0udAP2S6x1T697cE/tkhLDg==@linaro.org X-Google-Smtp-Source: AGHT+IFLKNJpxOSFRrj6OYc/mpfwf3hCQa5qLsc71BnIKyiZg01gzkloyChNuYO/WIJ8HNr8hpuJ X-Received: by 2002:ac8:7c48:0:b0:466:b394:92bc with SMTP id d75a77b69052e-467a5718707mr68044351cf.6.1734117839208; Fri, 13 Dec 2024 11:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117839; cv=none; d=google.com; s=arc-20240605; b=TVlKIMS9bT1OBWH1Z2cqHI370Drj5n8qksXfXZxY3ihG4/vMkVhBVPpxjZx4vSsjkD U+gX2AGiSqztr1RTiuM+vqfSFRa4ogXD86pPjYChHBtH9jWUvv2FU4ro92TBIiESKkc9 9u91mEHuBVnIGNc1kNApXU8iUKf0MQJq4g/SWNxkzGEBGO3g6sWk4a/KO5osR9pmCqXw P9xY4+CoW339GLOUSNu7c3M/OZjGGpljJDIKATmb8GlKT8gCrPMsmGmz+qftQYDZcfLN j+Eu9k4LVhl34MSmm8TNR3fK+IjY/ORkdGoCT1TMUvoiQ9g6Nxfq8spQzcsik7bRuhar b3iA== 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=ZOHSZv4UJCEktEuRNTiGAa+gSN3tW2NIQ00CdmYCkmw=; fh=uMouYUTR2HrIPFfZbK/OU4bTeG7ULPkJqiedzLu9O/g=; b=En10ftFMaEr0N7Kfss9tqt9wmzJ7EB+W4VrdaiUzGhP+RQ7KiGzKJ5U8VPffj3IzNm Pe/kve5ckj9daAptcsB2aBeCIBzDxnNymrWBpo8o0ZfTfFlXPCOYORxbxCCcun8SjZUf PW1an1HYaqIHVBtVUYdgLgpO7mHwTBha4WBN7o4IfYdhwP+FUAUb/0VGH1ERLsgf42Gf l0ILdeQdIeZU6ieldx4gJN8vnqx6ew/6YuBND2wv/lxqcRh3eM2Jstzo+3i1lBOF91Bx mldS2xiHh1WiNymQEh+CI3L2AxJ4GK9DF5H4b0+SEqTFr9XmFycPo5/7v3S4wAFzImSm 1HDw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fmf3PZcI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2ed17dfsi1299441cf.380.2024.12.13.11.23.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:23:59 -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=Fmf3PZcI; 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 1tMB9U-0002sq-5V; Fri, 13 Dec 2024 14:16:40 -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 1tMB7V-0007dZ-Io for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:39 -0500 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7R-0007cl-Rt for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:36 -0500 Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3eb9a0a2089so985252b6e.1 for ; Fri, 13 Dec 2024 11:14:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117268; x=1734722068; 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=ZOHSZv4UJCEktEuRNTiGAa+gSN3tW2NIQ00CdmYCkmw=; b=Fmf3PZcI2xSvN83oYFjbvpmypyvoDmA2OIBy893GQLEeRXd2zTtQ+kOkPeW+gWNZaz wA79Yg2XvXxQ7iYKB+hWvwtv7Q/wkNcomgo7eAF8Mj261Cmhptip4MY8qpC0YtwYN101 Ibx4rm83yOQM9hms6l/PV2qxfVAN1tl/MXL81ddrRO1hjECtrCG6lC6fiBZJrP1pG9uk qdRb+JbUmVRH2ZH1kwXrDeSA+05hvgkVkxBLMGJUV61xGAGA+hp7kAF0CdFsxToLM0xB xyxQZyiccLmnFqY7dLOCqLOAElohkxbcEWTaeAMpiIKTT03ML9QO3KB+H8BIdJDUV063 qkOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117268; x=1734722068; 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=ZOHSZv4UJCEktEuRNTiGAa+gSN3tW2NIQ00CdmYCkmw=; b=c42ZbwBxVX5fyvpWlAFLMIeMRHVwY4LUKDJXRoC8RaOmiKtr8AVPpXmzreMZZXNQ/D uP86fG74RTOsQ8ESTIUVbGr7HIaMv258NCe+z/E8ve8yrnYButrSnOErd4unhAk6TKzl N5sBVmSC6MFLbZFrAfVtDlxX9zxD4otyLsszOmv9BiOqgbEZp03rw8Gir/8gYKLhY6+o HEbMLJU9rMKlI71lzv+esYsVvA1BCETVNsewa7wAxVrOlQ/Rx0cjkzIlCCPoIQvev8wq N1351z+u+/KfuhyOqVJ5Okelgisp4EWBmbtsxMXi8fKMGo4QYyc2HZtR9Pu1O+8HCtNP wPTQ== X-Gm-Message-State: AOJu0Yxh5TaP9YxAh9ThJsWeehnvFqysrrO0ubXUYCNQ9I3GaILG85as pTCPc9ciK+1GlLjsnZdLQXvO5vdUsMKhMlGE5TnTe7n89zatIkdsBf3e7wUFY4JRmjCThkpz6FB CQw2PIV3T X-Gm-Gg: ASbGncuL7tlhFeqNSXkJTuo7MUM9SJFPh0NBYc2zcxjVSyWo0ejlWYZGJUQIjnv/7K2 gaNk6yJrzN3hmKuJfC06SM95F17H+Qy0G2ioyp+45gPnqUssq+gLew4Al/K+4/pbjrQD0atTWxc r37wgvDQ/iMN9Nx4i0KIAbiKHDSg2r/IvOwVPHvH00LqNGK2BzbtiZ7dT7XWh49aPlLcFdK2Uix +TXizlNhaoIDK9pW3PXR9pYTbQNyoYIGPaoDojdYHptghDzhJJYHnEtrS+Jdr4S X-Received: by 2002:a05:6808:2191:b0:3e5:ef2d:f53b with SMTP id 5614622812f47-3eba6868153mr2325253b6e.11.1734117268658; Fri, 13 Dec 2024 11:14:28 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:28 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Artyom Tarasenko Subject: [PATCH 58/71] hw/sparc64: Constify all Property Date: Fri, 13 Dec 2024 13:07:32 -0600 Message-ID: <20241213190750.2513964-63-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=2607:f8b0:4864:20::22f; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22f.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/sparc64/sun4u.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c index 541c7f74fa..050cb1d1cd 100644 --- a/hw/sparc64/sun4u.c +++ b/hw/sparc64/sun4u.c @@ -374,7 +374,7 @@ static void ebus_realize(PCIDevice *pci_dev, Error **errp) pci_register_bar(pci_dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &s->bar1); } -static Property ebus_properties[] = { +static const Property ebus_properties[] = { DEFINE_PROP_UINT64("console-serial-base", EbusState, console_serial_base, 0), DEFINE_PROP_END_OF_LIST(), @@ -471,7 +471,7 @@ static void prom_realize(DeviceState *ds, Error **errp) sysbus_init_mmio(dev, &s->prom); } -static Property prom_properties[] = { +static const Property prom_properties[] = { {/* end of property list */}, }; @@ -532,7 +532,7 @@ static void ram_init(hwaddr addr, ram_addr_t RAM_size) sysbus_mmio_map(s, 0, addr); } -static Property ram_properties[] = { +static const Property ram_properties[] = { DEFINE_PROP_UINT64("size", RamDevice, size, 0), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850269 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1692349wry; Fri, 13 Dec 2024 11:28:39 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXxLQtFquss+6DOBUTzZcMHqn5axTyy6+gAcGpF17pcnfw3tRisWkpen7mMLspzFmJnf+6JuQ==@linaro.org X-Google-Smtp-Source: AGHT+IG2GdBeU77/joQkRdK/qxzg0k+LtomQpipvLWiHSwaefH0QVcBruTM7BxGZ69RJ3ueFk3jv X-Received: by 2002:a05:620a:2b94:b0:7b6:d63a:ae8f with SMTP id af79cd13be357-7b6fbee88b0mr782599485a.21.1734118119623; Fri, 13 Dec 2024 11:28:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118119; cv=none; d=google.com; s=arc-20240605; b=c0jpvsbb+p+HHJv2/DJzBVn4zbIJlRg/povFtMCmKAX8AdjvDPaNBYX49qaUnF5wax OwNuej27hxvEuDYIK76cQFZmCv7dCRltVZ3dOw1TNM26gPkTWyw38k4Hd7qHjvl1059b 7RpTNdzP0lOF/8fuWJuXiQXsqNVLwwNYkuIQu6E/iFueePp7rek/3bj92V98Aprt5GOS lCNtcdvwFP8gwKJr/QvmXG8td8IRMFmafDebyHu4Z4+nph0UXy2ynxb2PSvl5ZhtzRya hXKABGFVARUW8njuDK+YrOJYTJBTXyAd32EvlkIF+8NIzZO7mqAdJHsGh1oiv49t6cgp iyjw== 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=uZhfokFx932XV3g28Kk8wdRBOecdIQ4zxxBiyRlh0hk=; fh=no+5joE4rZROlDuJYh5SPfi/5BMd0sbA9Q5vL9/E8ds=; b=PLhwSG4avf7Tgobw8l88iogC9aTtdkw76BwF8UBTm+Rc99YX4EpKaFImqOU2GM1ahL cfsh5kQXRqOFYcjOJd+RGMFb8zXCBsQsLpf3tDL/2GMmZOpR0OlwDcfmmDwKgY5Zj69H O3SWdwmPrxVmqw0Lrqc1C8Z+QuigbfqsZNEru8mZNNxHAjoeN4TeGae4cNyeZ4rAw0Qv gTWqPHPAq39lJDLGylWmionaNxU13WVKDJftqlopL3LOr+KW4DlZo+lKeWTAE8myC3Zq m0lPDrpNeFzEaBrlEjZrliFe3s8bdQ07K4rztXeKMAm1CxUsoz9BvIOIi/mXtPahj3ve yIuw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="O3mEu/He"; 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 af79cd13be357-7b7048c02e2si20667485a.308.2024.12.13.11.28.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:28:39 -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="O3mEu/He"; 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 1tMB9S-0002hn-7w; Fri, 13 Dec 2024 14:16:38 -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 1tMB7k-0007us-AK for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:53 -0500 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7f-0007f5-VJ for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:50 -0500 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-29f88004a92so1253057fac.1 for ; Fri, 13 Dec 2024 11:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117284; x=1734722084; 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=uZhfokFx932XV3g28Kk8wdRBOecdIQ4zxxBiyRlh0hk=; b=O3mEu/HeiKcFqvv+dXscl9KpBMZRxuVq7ADNX8/3BTD3MebuhLrCk4ThYNmGTddF7i X6J5KAC+dcc2I7+JBvYTUSyWHGPmKDlzdSN2KnAEov9AZJA9XTIhVopodigPytgKfWpH +g6t1NVdLRcM717dAc3YZaS1iqQqrUs9iTLkGJeeFx08eNO6Ruy6k36JyLTZfymveDP5 BzY8Tszc8zyxmjfgkQBVVMxyancnSkJr1qddQGlF4M0s0TRqchJZNqRsNl25Q9Vh9WtV CQlA8On1SOuITYQmIO2VIqyO77rsIe1vzxU3jhr0FG420eJyl7OCejlH+UztgMfGJsGW fUIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117284; x=1734722084; 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=uZhfokFx932XV3g28Kk8wdRBOecdIQ4zxxBiyRlh0hk=; b=H/DD0vxAV2unTQjzaDVyVKU10i06rI+KaOExPzoe0tdYm19syV2jq4Cu7xjct4sjzY wnU7fthgefmQiD/oDAonZwnpNV4N7Oumdq4n92QLsXFYEkLfdYKtPtt4hLymUaRjobzD RWqy6b6nGapCVREitzgznpbnLIB7Q4ADIAelBzGwrBEG6RjVScn9JbYP0nYFTZMJFuCo 5Z1VbtOnA9hEQ/4w2BN7l8i3RO+Od55DY8zf+qWjuTYz4byJEeRzUPZLHdpIA2dKo6ja KHUPn9VIeXQZTjx++R/FRPextpwMe1JZy4Ok6YqvYyyL0uiyPumevQKPjfdgM6ZfpwZ7 avLA== X-Gm-Message-State: AOJu0YzcwCB09DtX1sm3/ou/RAsPRDunqN40W5R7wxHjJ7hemHACxQYu zzcCGcaf2ySkUeh1WhMMlT4Cb5O3kCkBFQmvMOhD4i4pUST3AOvxQy3U4aW3Niquite+wH8a/y1 bXECwcXOe X-Gm-Gg: ASbGncvs0/DnnCkCtUGQ8tqZvvBibNEPVZmg0vbEmAJYYhKnkLrPioB/JLdlfOBpWga jg1YRyOgIBflOVjITM14edX1kvDZ6K8TwAU0gqD6sCWe3VHUmVt1TLKafqSnnp0HIi1pep7H4wG yXK8tHyDFtVil5aFBZ9ty9yOKNR2y2qO5uusZEMkqCsjonwsuFAtB79AUR5QVEDiBpnO2S7Zf+r aEWaJ/HXEp39OHjg/HlYDNIRQyF+sQRAvQJWC075iOIZwjMI6qbl9djYDf7y1dg X-Received: by 2002:a05:6808:159e:b0:3e5:f4fa:5984 with SMTP id 5614622812f47-3eba697e467mr1634948b6e.38.1734117282338; Fri, 13 Dec 2024 11:14:42 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Alistair Francis , Tyrone Ting , Hao Wu , Nicholas Piggin , =?utf-8?b?RnLDqWTDqXJpYyBCYXJyYXQ=?= , Bin Meng , Palmer Dabbelt , "Edgar E. Iglesias" , Francisco Iglesias , qemu-arm@nongnu.org (open list:ASPEED BMCs), qemu-riscv@nongnu.org (open list:OpenTitan), qemu-ppc@nongnu.org (open list:PowerNV Non-Virt...) Subject: [PATCH 59/71] hw/ssi: Constify all Property Date: Fri, 13 Dec 2024 13:07:33 -0600 Message-ID: <20241213190750.2513964-64-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::34; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x34.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=unavailable 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/ssi/aspeed_smc.c | 4 ++-- hw/ssi/ibex_spi_host.c | 2 +- hw/ssi/npcm7xx_fiu.c | 2 +- hw/ssi/pnv_spi.c | 2 +- hw/ssi/sifive_spi.c | 2 +- hw/ssi/ssi.c | 2 +- hw/ssi/xilinx_spi.c | 2 +- hw/ssi/xilinx_spips.c | 4 ++-- hw/ssi/xlnx-versal-ospi.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/ssi/aspeed_smc.c b/hw/ssi/aspeed_smc.c index 033cbbb59b..bbdd4e4786 100644 --- a/hw/ssi/aspeed_smc.c +++ b/hw/ssi/aspeed_smc.c @@ -1287,7 +1287,7 @@ static const VMStateDescription vmstate_aspeed_smc = { } }; -static Property aspeed_smc_properties[] = { +static const Property aspeed_smc_properties[] = { DEFINE_PROP_BOOL("inject-failure", AspeedSMCState, inject_failure, false), DEFINE_PROP_UINT64("dram-base", AspeedSMCState, dram_base, 0), DEFINE_PROP_LINK("dram", AspeedSMCState, dram_mr, @@ -1336,7 +1336,7 @@ static void aspeed_smc_flash_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->mmio); } -static Property aspeed_smc_flash_properties[] = { +static const Property aspeed_smc_flash_properties[] = { DEFINE_PROP_UINT8("cs", AspeedSMCFlash, cs, 0), DEFINE_PROP_LINK("controller", AspeedSMCFlash, controller, TYPE_ASPEED_SMC, AspeedSMCState *), diff --git a/hw/ssi/ibex_spi_host.c b/hw/ssi/ibex_spi_host.c index 9e07432f7c..60a0b17b62 100644 --- a/hw/ssi/ibex_spi_host.c +++ b/hw/ssi/ibex_spi_host.c @@ -561,7 +561,7 @@ static const MemoryRegionOps ibex_spi_ops = { .endianness = DEVICE_LITTLE_ENDIAN, }; -static Property ibex_spi_properties[] = { +static const Property ibex_spi_properties[] = { DEFINE_PROP_UINT32("num_cs", IbexSPIHostState, num_cs, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ssi/npcm7xx_fiu.c b/hw/ssi/npcm7xx_fiu.c index 119c38c415..fdd3ad2fdc 100644 --- a/hw/ssi/npcm7xx_fiu.c +++ b/hw/ssi/npcm7xx_fiu.c @@ -541,7 +541,7 @@ static const VMStateDescription vmstate_npcm7xx_fiu = { }, }; -static Property npcm7xx_fiu_properties[] = { +static const Property npcm7xx_fiu_properties[] = { DEFINE_PROP_INT32("cs-count", NPCM7xxFIUState, cs_count, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ssi/pnv_spi.c b/hw/ssi/pnv_spi.c index c21b2ebb3c..4ca9c469a4 100644 --- a/hw/ssi/pnv_spi.c +++ b/hw/ssi/pnv_spi.c @@ -1195,7 +1195,7 @@ static const MemoryRegionOps pnv_spi_xscom_ops = { .endianness = DEVICE_BIG_ENDIAN, }; -static Property pnv_spi_properties[] = { +static const Property pnv_spi_properties[] = { DEFINE_PROP_UINT32("spic_num", PnvSpi, spic_num, 0), DEFINE_PROP_UINT8("transfer_len", PnvSpi, transfer_len, 4), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ssi/sifive_spi.c b/hw/ssi/sifive_spi.c index 08a107792b..7458747779 100644 --- a/hw/ssi/sifive_spi.c +++ b/hw/ssi/sifive_spi.c @@ -328,7 +328,7 @@ static void sifive_spi_realize(DeviceState *dev, Error **errp) fifo8_create(&s->rx_fifo, FIFO_CAPACITY); } -static Property sifive_spi_properties[] = { +static const Property sifive_spi_properties[] = { DEFINE_PROP_UINT32("num-cs", SiFiveSPIState, num_cs, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ssi/ssi.c b/hw/ssi/ssi.c index 3f357e8f16..cab0014c3f 100644 --- a/hw/ssi/ssi.c +++ b/hw/ssi/ssi.c @@ -108,7 +108,7 @@ static void ssi_peripheral_realize(DeviceState *dev, Error **errp) ssc->realize(s, errp); } -static Property ssi_peripheral_properties[] = { +static const Property ssi_peripheral_properties[] = { DEFINE_PROP_UINT8("cs", SSIPeripheral, cs_index, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ssi/xilinx_spi.c b/hw/ssi/xilinx_spi.c index 7f1e1808c5..588c1ec071 100644 --- a/hw/ssi/xilinx_spi.c +++ b/hw/ssi/xilinx_spi.c @@ -361,7 +361,7 @@ static const VMStateDescription vmstate_xilinx_spi = { } }; -static Property xilinx_spi_properties[] = { +static const Property xilinx_spi_properties[] = { DEFINE_PROP_UINT8("num-ss-bits", XilinxSPI, num_cs, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c index aeb462c3ce..f72cb3cbc8 100644 --- a/hw/ssi/xilinx_spips.c +++ b/hw/ssi/xilinx_spips.c @@ -1420,12 +1420,12 @@ static const VMStateDescription vmstate_xlnx_zynqmp_qspips = { } }; -static Property xilinx_zynqmp_qspips_properties[] = { +static const Property xilinx_zynqmp_qspips_properties[] = { DEFINE_PROP_UINT32("dma-burst-size", XlnxZynqMPQSPIPS, dma_burst_size, 64), DEFINE_PROP_END_OF_LIST(), }; -static Property xilinx_spips_properties[] = { +static const Property xilinx_spips_properties[] = { DEFINE_PROP_UINT8("num-busses", XilinxSPIPS, num_busses, 1), DEFINE_PROP_UINT8("num-ss-bits", XilinxSPIPS, num_cs, 4), DEFINE_PROP_UINT8("num-txrx-bytes", XilinxSPIPS, num_txrx_bytes, 1), diff --git a/hw/ssi/xlnx-versal-ospi.c b/hw/ssi/xlnx-versal-ospi.c index ecc1903b8e..e51abe9de2 100644 --- a/hw/ssi/xlnx-versal-ospi.c +++ b/hw/ssi/xlnx-versal-ospi.c @@ -1825,7 +1825,7 @@ static const VMStateDescription vmstate_xlnx_versal_ospi = { } }; -static Property xlnx_versal_ospi_properties[] = { +static const Property xlnx_versal_ospi_properties[] = { DEFINE_PROP_BOOL("dac-with-indac", XlnxVersalOspi, dac_with_indac, false), DEFINE_PROP_BOOL("indac-write-disabled", XlnxVersalOspi, ind_write_disabled, false), From patchwork Fri Dec 13 19:07:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850260 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1690659wry; Fri, 13 Dec 2024 11:23:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXHjz9ddYrVwxV7mJOoYTr3kDlzk8jAWEGYvpN7jEQzXOSL3VCeMsw8fVJ+yAhnMixr79lBEw==@linaro.org X-Google-Smtp-Source: AGHT+IFvaRLHQIk0cKiEj9E2VpcLhKEsUWf5uP/PZ8LhQsmULUR0f3GNmnVMBvNU/DcFPh2PDDdv X-Received: by 2002:a05:6102:5087:b0:4b2:5c72:cd55 with SMTP id ada2fe7eead31-4b25d941904mr5287562137.5.1734117839164; Fri, 13 Dec 2024 11:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117839; cv=none; d=google.com; s=arc-20240605; b=lrIEqeLTWnk5WuspQwnN/aLfk8sa3V/3Gf48xgKnb2h4Hymqh4JSER4Kg8iLffyz3G PiRRp8g7l1/FwKfJGAr+/k5Bn58mkHlRhc4jkyuxaWlW7JE7LrVosjdACgvYR0DMsNMC 8NbqkvKsg46O6f+pRQezFj5SbqUTgy12qou49NoIczu3IooT7SZ11FFmEWbb3ivh5i/b wZyasNT5UvoqII+0VcdPbW3pH/QTxvvRl3rOINQBIkRh2/lKNXwkhEvK2F/W5d0ZPDln DUpsfVeWsGdnm0al/7nydIUEbl9BT1vQ3hA0TDiL69m36pHst4hbATnj3QPJDL7i0Tfu NFWw== 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=xPd8v41eeOyrQJCDfbB2uHm4CbCifH9Wt1doq061h1k=; fh=HDmRPXj7GDPME5AZh/6j2sn00iNGbicH1g5jVjxCesw=; b=DgQbV8mUlPEUb+S8VbVbmhxPilB1okOuORDny2vdG2MNaBAgrFFvB/se0M0XavDztq OYE2NiKJmHjh3bU/6j1/zGIOtD3/NW6oC2VMtng0lPINXPLaBo/T/ZgYKF9ou+gJnCBO qPKI6h/g4bbmxdFFj/SQhD8QRTF+cPJgXwMjdcr/7sMQ6Q1+TyLKIt3rRPW5htFiAFHm zv9sY72INzjyFCa6xi8/bEyB/6ti2SpvvUzpd4OTVEA0SfUoAIzItC7A9T+37/2BVHfW L6z3YT1ESL8vP4IDcfHhRE5cXAUX/NbOTgbPnpyGQ11Aly+TDjMGwv412BtdOrtNjnPh oq8Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h7rn5YdK; 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 ada2fe7eead31-4b270213e37si40193137.5.2024.12.13.11.23.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:23:59 -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=h7rn5YdK; 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 1tMBA1-0003g3-QH; Fri, 13 Dec 2024 14:17:16 -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 1tMB7n-00080m-RJ for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:58 -0500 Received: from mail-oo1-xc34.google.com ([2607:f8b0:4864:20::c34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7i-0007ff-W2 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:54 -0500 Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-5f32fab5de9so239842eaf.2 for ; Fri, 13 Dec 2024 11:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117288; x=1734722088; 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=xPd8v41eeOyrQJCDfbB2uHm4CbCifH9Wt1doq061h1k=; b=h7rn5YdK6uE1n5nj0invX66fNw1UgOLUGPgD5XgMDmNLN/RClYy/DoWmRcrUur02WM 7vJBgOJMhuDfMKFwFCo6F3qvlSqzuZ1EScSRV1bw9vQJLcbH0Kre7Gq+D0Si9XgOTNr1 A0YSOV0VxWbKYvNZwmJ4v99eouVZNXbUe9TvKHzxG7kasVNVM8huSUyQ/wy7SWLiowOE tGnRv4fS6rGkK13CF8EkcevcWfkaUsN532ttEF9jQAQQhUpZDlgRGhrT82OgCerGBrvI 3rpUL4NlstCxBFQa2U5Zzku4CgoHe+vKNj02eKuM0+phY5Jt/+GVhG2p92uwynn9XvgF yvxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117288; x=1734722088; 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=xPd8v41eeOyrQJCDfbB2uHm4CbCifH9Wt1doq061h1k=; b=BosSnl4RNws9A0HywOmOGux+gjwbcu6hZo+ElgFkjCITG6afDtqomnYy7tWFKr0Zqc dxlrbmhWMzM57wycUAlTBRAbzTRPyRO8KMBKApBH/3/jRSr91/xgbskhV8aHl1VXDfdd mNhdBhIaDt/ZkVpnbTdyFb/Wmkj81XJ68MSp+7smWlTACblKEiUTRDK04Jdc4WvPBrG1 6pBjUR1AZ14UizCTRp07NOk/iYln0MRGoY55xl58ZdH6f0n2egsBHriM70jJJq5roB1k wmRufnvh3zg4ICL2XdGsNwC7+dm7Qn8+yAK15EKt+ZAg+2AmAuOqxl03R7oi7TzQwYVo xzOw== X-Gm-Message-State: AOJu0YwRnVN0k2ms7dAaHYqa0jtjqReN3dJ0btIFXGSq3Kl+B6Vgjgzi ZcAGQmVC0/xq22pq9yQdNQZgSNYS5+CaF7yKY6sSZRoNgwvpco1g1wD+RplRUS/6yVy55YA9mgN /VS6MVfo6 X-Gm-Gg: ASbGncs/HH1RNd6VICZKHY6APZLwh6FqF1aRkGTM71J/DoJ3zOLfQ2PG/TGNLPj7P4Y MytOdAomnOdIi6braU69A6J8MTEYuiJxGKNkRDvBghdi1LhC3EOul8scCXCUY6wzHKgI5ouvk6w tq05HyVRsluUtCDYfGEviNXOh3D5UgA5SiEos71vJnPoaG44MjT6Cq8R7rrLKjM3koZVHT/t1y3 5zINEMUfzF3k7inL75I8lT4Iv6gqynuKfleKq738H4wI8OOejYcSfG7CrNPT5qp X-Received: by 2002:a05:6808:158e:b0:3eb:53f2:17c3 with SMTP id 5614622812f47-3eba691e54bmr2492728b6e.26.1734117287684; Fri, 13 Dec 2024 11:14:47 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:47 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Maydell , Beniamino Galvani , Strahinja Jankovic , =?utf-8?q?C=C3=A9dric_?= =?utf-8?q?Le_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Michael Rolnik , =?utf-8?q?Cl=C3=A9ment_Chigot?= , Frederic Konrad , "Michael S. Tsirkin" , Paolo Bonzini , Alistair Francis , Subbaraya Sundeep , Yoshinori Sato , Magnus Damm , Bin Meng , Palmer Dabbelt , Mark Cave-Ayland , "Edgar E. Iglesias" , qemu-arm@nongnu.org (open list:ARM cores), qemu-riscv@nongnu.org (open list:OpenTitan) Subject: [PATCH 60/71] hw/timer: Constify all Property Date: Fri, 13 Dec 2024 13:07:34 -0600 Message-ID: <20241213190750.2513964-65-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=2607:f8b0:4864:20::c34; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc34.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=unavailable 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/timer/a9gtimer.c | 2 +- hw/timer/allwinner-a10-pit.c | 2 +- hw/timer/arm_mptimer.c | 2 +- hw/timer/arm_timer.c | 2 +- hw/timer/aspeed_timer.c | 2 +- hw/timer/avr_timer16.c | 2 +- hw/timer/grlib_gptimer.c | 2 +- hw/timer/hpet.c | 2 +- hw/timer/i8254_common.c | 2 +- hw/timer/ibex_timer.c | 2 +- hw/timer/mss-timer.c | 2 +- hw/timer/nrf51_timer.c | 2 +- hw/timer/pxa2xx_timer.c | 2 +- hw/timer/renesas_cmt.c | 2 +- hw/timer/renesas_tmr.c | 2 +- hw/timer/sifive_pwm.c | 2 +- hw/timer/slavio_timer.c | 2 +- hw/timer/sse-timer.c | 2 +- hw/timer/stm32f2xx_timer.c | 2 +- hw/timer/xilinx_timer.c | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/hw/timer/a9gtimer.c b/hw/timer/a9gtimer.c index 8091ec18c7..c0a91bab0c 100644 --- a/hw/timer/a9gtimer.c +++ b/hw/timer/a9gtimer.c @@ -373,7 +373,7 @@ static const VMStateDescription vmstate_a9_gtimer = { } }; -static Property a9_gtimer_properties[] = { +static const Property a9_gtimer_properties[] = { DEFINE_PROP_UINT32("num-cpu", A9GTimerState, num_cpu, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/timer/allwinner-a10-pit.c b/hw/timer/allwinner-a10-pit.c index d488e9782b..2904ccfb42 100644 --- a/hw/timer/allwinner-a10-pit.c +++ b/hw/timer/allwinner-a10-pit.c @@ -188,7 +188,7 @@ static const MemoryRegionOps a10_pit_ops = { .endianness = DEVICE_NATIVE_ENDIAN, }; -static Property a10_pit_properties[] = { +static const Property a10_pit_properties[] = { DEFINE_PROP_UINT32("clk0-freq", AwA10PITState, clk_freq[0], 0), DEFINE_PROP_UINT32("clk1-freq", AwA10PITState, clk_freq[1], 0), DEFINE_PROP_UINT32("clk2-freq", AwA10PITState, clk_freq[2], 0), diff --git a/hw/timer/arm_mptimer.c b/hw/timer/arm_mptimer.c index defa30b46d..6244a7a84f 100644 --- a/hw/timer/arm_mptimer.c +++ b/hw/timer/arm_mptimer.c @@ -300,7 +300,7 @@ static const VMStateDescription vmstate_arm_mptimer = { } }; -static Property arm_mptimer_properties[] = { +static const Property arm_mptimer_properties[] = { DEFINE_PROP_UINT32("num-cpu", ARMMPTimerState, num_cpu, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/timer/arm_timer.c b/hw/timer/arm_timer.c index 0940e03f1d..dfa034296c 100644 --- a/hw/timer/arm_timer.c +++ b/hw/timer/arm_timer.c @@ -387,7 +387,7 @@ static const TypeInfo icp_pit_info = { .instance_init = icp_pit_init, }; -static Property sp804_properties[] = { +static const Property sp804_properties[] = { DEFINE_PROP_UINT32("freq0", SP804State, freq0, 1000000), DEFINE_PROP_UINT32("freq1", SP804State, freq1, 1000000), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/timer/aspeed_timer.c b/hw/timer/aspeed_timer.c index 149f7cc5a6..4c16b5016e 100644 --- a/hw/timer/aspeed_timer.c +++ b/hw/timer/aspeed_timer.c @@ -674,7 +674,7 @@ static const VMStateDescription vmstate_aspeed_timer_state = { } }; -static Property aspeed_timer_properties[] = { +static const Property aspeed_timer_properties[] = { DEFINE_PROP_LINK("scu", AspeedTimerCtrlState, scu, TYPE_ASPEED_SCU, AspeedSCUState *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/timer/avr_timer16.c b/hw/timer/avr_timer16.c index 421920054f..2e3ce83c43 100644 --- a/hw/timer/avr_timer16.c +++ b/hw/timer/avr_timer16.c @@ -542,7 +542,7 @@ static const MemoryRegionOps avr_timer16_ifr_ops = { .impl = {.max_access_size = 1} }; -static Property avr_timer16_properties[] = { +static const Property avr_timer16_properties[] = { DEFINE_PROP_UINT8("id", struct AVRTimer16State, id, 0), DEFINE_PROP_UINT64("cpu-frequency-hz", struct AVRTimer16State, cpu_freq_hz, 0), diff --git a/hw/timer/grlib_gptimer.c b/hw/timer/grlib_gptimer.c index 6ef08f25fd..a7428ed938 100644 --- a/hw/timer/grlib_gptimer.c +++ b/hw/timer/grlib_gptimer.c @@ -403,7 +403,7 @@ static void grlib_gptimer_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(sbd, &unit->iomem); } -static Property grlib_gptimer_properties[] = { +static const Property grlib_gptimer_properties[] = { DEFINE_PROP_UINT32("frequency", GPTimerUnit, freq_hz, 40000000), DEFINE_PROP_UINT32("irq-line", GPTimerUnit, irq_line, 8), DEFINE_PROP_UINT32("nr-timers", GPTimerUnit, nr_timers, 2), diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index 5399f1b2a3..46886c379e 100644 --- a/hw/timer/hpet.c +++ b/hw/timer/hpet.c @@ -745,7 +745,7 @@ static void hpet_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out(dev, &s->pit_enabled, 1); } -static Property hpet_device_properties[] = { +static const Property hpet_device_properties[] = { DEFINE_PROP_UINT8("timers", HPETState, num_timers, HPET_MIN_TIMERS), DEFINE_PROP_BIT("msi", HPETState, flags, HPET_MSI_SUPPORT, false), DEFINE_PROP_UINT32(HPET_INTCAP, HPETState, intcap, 0), diff --git a/hw/timer/i8254_common.c b/hw/timer/i8254_common.c index 28fdabc321..953c1e11eb 100644 --- a/hw/timer/i8254_common.c +++ b/hw/timer/i8254_common.c @@ -238,7 +238,7 @@ static const VMStateDescription vmstate_pit_common = { } }; -static Property pit_common_properties[] = { +static const Property pit_common_properties[] = { DEFINE_PROP_UINT32("iobase", PITCommonState, iobase, -1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/ibex_timer.c b/hw/timer/ibex_timer.c index 2bdcff532d..fba4466a89 100644 --- a/hw/timer/ibex_timer.c +++ b/hw/timer/ibex_timer.c @@ -263,7 +263,7 @@ static const VMStateDescription vmstate_ibex_timer = { } }; -static Property ibex_timer_properties[] = { +static const Property ibex_timer_properties[] = { DEFINE_PROP_UINT32("timebase-freq", IbexTimerState, timebase_freq, 10000), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/mss-timer.c b/hw/timer/mss-timer.c index b66aed56ea..e5c5cd6a84 100644 --- a/hw/timer/mss-timer.c +++ b/hw/timer/mss-timer.c @@ -279,7 +279,7 @@ static const VMStateDescription vmstate_mss_timer = { } }; -static Property mss_timer_properties[] = { +static const Property mss_timer_properties[] = { /* Libero GUI shows 100Mhz as default for clocks */ DEFINE_PROP_UINT32("clock-frequency", MSSTimerState, freq_hz, 100 * 1000000), diff --git a/hw/timer/nrf51_timer.c b/hw/timer/nrf51_timer.c index 35b0e62d5b..48fccec1bf 100644 --- a/hw/timer/nrf51_timer.c +++ b/hw/timer/nrf51_timer.c @@ -379,7 +379,7 @@ static const VMStateDescription vmstate_nrf51_timer = { } }; -static Property nrf51_timer_properties[] = { +static const Property nrf51_timer_properties[] = { DEFINE_PROP_UINT8("id", NRF51TimerState, id, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/pxa2xx_timer.c b/hw/timer/pxa2xx_timer.c index 3234bbb1f4..345145bfa8 100644 --- a/hw/timer/pxa2xx_timer.c +++ b/hw/timer/pxa2xx_timer.c @@ -549,7 +549,7 @@ static const VMStateDescription vmstate_pxa2xx_timer_regs = { } }; -static Property pxa25x_timer_dev_properties[] = { +static const Property pxa25x_timer_dev_properties[] = { DEFINE_PROP_UINT32("freq", PXA2xxTimerInfo, freq, PXA25X_FREQ), DEFINE_PROP_BIT("tm4", PXA2xxTimerInfo, flags, PXA2XX_TIMER_HAVE_TM4, false), diff --git a/hw/timer/renesas_cmt.c b/hw/timer/renesas_cmt.c index cd59b08c87..6d451fa86b 100644 --- a/hw/timer/renesas_cmt.c +++ b/hw/timer/renesas_cmt.c @@ -253,7 +253,7 @@ static const VMStateDescription vmstate_rcmt = { } }; -static Property rcmt_properties[] = { +static const Property rcmt_properties[] = { DEFINE_PROP_UINT64("input-freq", RCMTState, input_freq, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/renesas_tmr.c b/hw/timer/renesas_tmr.c index a93e075fcd..890f803cf8 100644 --- a/hw/timer/renesas_tmr.c +++ b/hw/timer/renesas_tmr.c @@ -463,7 +463,7 @@ static const VMStateDescription vmstate_rtmr = { } }; -static Property rtmr_properties[] = { +static const Property rtmr_properties[] = { DEFINE_PROP_UINT64("input-freq", RTMRState, input_freq, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/sifive_pwm.c b/hw/timer/sifive_pwm.c index 4602fc1a61..042c89c67a 100644 --- a/hw/timer/sifive_pwm.c +++ b/hw/timer/sifive_pwm.c @@ -404,7 +404,7 @@ static const VMStateDescription vmstate_sifive_pwm = { } }; -static Property sifive_pwm_properties[] = { +static const Property sifive_pwm_properties[] = { /* 0.5Ghz per spec after FSBL */ DEFINE_PROP_UINT64("clock-frequency", struct SiFivePwmState, freq_hz, 500000000ULL), diff --git a/hw/timer/slavio_timer.c b/hw/timer/slavio_timer.c index 12cb3bac97..32991f4436 100644 --- a/hw/timer/slavio_timer.c +++ b/hw/timer/slavio_timer.c @@ -420,7 +420,7 @@ static void slavio_timer_init(Object *obj) } } -static Property slavio_timer_properties[] = { +static const Property slavio_timer_properties[] = { DEFINE_PROP_UINT32("num_cpus", SLAVIO_TIMERState, num_cpus, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/sse-timer.c b/hw/timer/sse-timer.c index 115b0138c8..6b7a67941c 100644 --- a/hw/timer/sse-timer.c +++ b/hw/timer/sse-timer.c @@ -440,7 +440,7 @@ static const VMStateDescription sse_timer_vmstate = { } }; -static Property sse_timer_properties[] = { +static const Property sse_timer_properties[] = { DEFINE_PROP_LINK("counter", SSETimer, counter, TYPE_SSE_COUNTER, SSECounter *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/stm32f2xx_timer.c b/hw/timer/stm32f2xx_timer.c index 16b47887a5..d9d745cd76 100644 --- a/hw/timer/stm32f2xx_timer.c +++ b/hw/timer/stm32f2xx_timer.c @@ -298,7 +298,7 @@ static const VMStateDescription vmstate_stm32f2xx_timer = { } }; -static Property stm32f2xx_timer_properties[] = { +static const Property stm32f2xx_timer_properties[] = { DEFINE_PROP_UINT64("clock-frequency", struct STM32F2XXTimerState, freq_hz, 1000000000), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/timer/xilinx_timer.c b/hw/timer/xilinx_timer.c index 32a9df69e0..7fe3e83baa 100644 --- a/hw/timer/xilinx_timer.c +++ b/hw/timer/xilinx_timer.c @@ -242,7 +242,7 @@ static void xilinx_timer_init(Object *obj) sysbus_init_irq(SYS_BUS_DEVICE(obj), &t->irq); } -static Property xilinx_timer_properties[] = { +static const Property xilinx_timer_properties[] = { DEFINE_PROP_UINT32("clock-frequency", XpsTimerState, freq_hz, 62 * 1000000), DEFINE_PROP_UINT8("one-timer-only", XpsTimerState, one_timer_only, 0), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:07:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850267 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1692117wry; Fri, 13 Dec 2024 11:27:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXMT0LRK1QmyAxTA9Xrs/48OhPoPpZL3VymsSVQsKb/lbLeKKiC985Qb1Cuwc7nx2wVHL885Q==@linaro.org X-Google-Smtp-Source: AGHT+IGt8Ig8fvTyEKZCIVwnK3v6YR8FIy1PJRVDoZGyLBkw4Qb4WWZtxk0D21usOepLjCMKm8NL X-Received: by 2002:a05:622a:1a87:b0:467:6833:e315 with SMTP id d75a77b69052e-467a574e942mr63985781cf.20.1734118077670; Fri, 13 Dec 2024 11:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118077; cv=none; d=google.com; s=arc-20240605; b=lY6krz/ShcDMrb7bq/vWh0RLMI11EJ6zhSTT/uTJrFYhtD5Kk7pLYy6L4OEaF4zACE wb9/wSikpxJ6khW5/Bq1n3lu/A6FbeaEL4jJ+gvBE0tvNciHZ1Rl5i74EHM17bt5pVa9 Syvo1rrHED/jfxjAWuZFWZ6eeXh5mSQ687uwaDyp2r6n8cKb9OhgzUXfR7XaFjhQLcoE bnqsGtFC+400DTJaMtB+7YBzgLOAR7kK8tNpTclDW1YExiJ7qfjFpXfsoL2RuahJTGkI K7jGillc2KqNu//NaAgRWF4hzjq17jdAUjeo3dUccicjkgPuQpQjgTKGxca1Yr2ORyoj svcg== 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=6OnU15FeM5nm4zjB+qIgK7H2LoZzBt1ZnxMW14wBH+c=; fh=qEeQT8EsS0fDvsL5TLKdIVgyRQwokIM5iP6gii2wOG0=; b=iYb7GMi66fC4i2SDzSBVR9QVsu1dtIUKB/BExuKEKDfUvMAQPIvyfaQZMfdsFUf8Ez hpZJVvUK03gHX0/YAwYE57pfOR97+Ztlyz2jes1Pw03UrHEPqYccCXotP7v8rj2KZwFp XREmUH6lpWgCKd5gHrsOnvFxJTdS2zLM/pS2hWULjoW89sJldIiUwE54V7KBAiIbQcFi TWKlPxLFDp4EYehl2IM2LeBMBrBufN2EP2F32sDwMNO/j5cz5XuIZ4x0lVNxyVJ4vjFm pc6Nvl+D1q1hf646umwsQRIyK6DDrfsPoWslkUbKjW2cUIuBLUxUp1eN5KlFV8x7K4Ww 3wXQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L8HGTFSy; 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 af79cd13be357-7b7047ca829si22960685a.138.2024.12.13.11.27.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:27:57 -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=L8HGTFSy; 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 1tMBA6-0003q6-8Z; Fri, 13 Dec 2024 14:17:27 -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 1tMB7n-00080k-Io for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:59 -0500 Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7j-0007ft-1C for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:53 -0500 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-29e149aff1dso667498fac.1 for ; Fri, 13 Dec 2024 11:14:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117289; x=1734722089; 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=6OnU15FeM5nm4zjB+qIgK7H2LoZzBt1ZnxMW14wBH+c=; b=L8HGTFSyUzRaAdW5uqGI4XDd8gckTAX+aCjlAetd7H3L+Y/KZfM7BdBaOfu15W9Tq6 BAiJXPzZdcWG1QgGyFjquGlhKOKfqSAo4IdNblfU5vvieJ7O3D1VfrnMQWM0NPayM+vw rSg3lQyIVbVIaMON979BRxAQIoYGzX4HuhVofoDfHVaGgnP+VhAC6H/5fYNajcH34WJ+ Gifeexa9Cpbsn23QBySlI8HWDnGovZVeEFHclWv3KzfA5kcfftgdVI5uqbfCGKwHMoL7 9u3nOIet3epH9BQ31Sa1b/mngt2lC4I8FSEMVZbZo9iO2LX41WSQS9aWNujM3+07goEL 0wMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117289; x=1734722089; 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=6OnU15FeM5nm4zjB+qIgK7H2LoZzBt1ZnxMW14wBH+c=; b=HQBkS4TihHPPv7eRp7BoJw2oEQCzVYwlZG+TeyFWVk4dI5UHCMxVnohp7nvYHnx1Km +nrU94aOHK3iZKw0Wg6Ay3w2r7gCpOIlcvwD8q5/6DYa5MBfv3mpY8H21fRE6jZUdMiT KAHsuZRLFtnqO2aKtg4g8PuV+2ctP1a1DsqdNv5ZE29MKiU27Ijp0X7L1VhD/NNlKDIO pfHv4jP214TbpNv0so2AfFO6QnQ97941NzjlqqF7gwIS6CUe13TGysx+mqhzpFjlwhkY fvFLPtScf3rTwouHv/Ipz9QHX6Wyi8wMZDa0XjidPT6Sy1AzuybbYJHt8xl5ql9ZnIp5 g7gQ== X-Gm-Message-State: AOJu0YzSrrhdESu98CTtQmSxtgY9Ylwi4dpU5caaVGRfsj3VKEudhwbb iI9kUReOEVlQcK93oRuhSSDMTmQoTQiZG1vPNNYQ0eopNmmxuvNoNhDLACo9bMmuJ51LLXVAvF4 a7MfgKj0q X-Gm-Gg: ASbGnct3pffhM/5qb6ffA7+r1CrCVszv39p3r/9i1cCOYGqnskhpi7VfeLOqTQlfRCj 6aH9bmxMVvj2nir4vDmheh/9pYa3m/iCbUZBEnAKLRRtM/lFx/eAShOw+HTmZeC1zGQLcqu0pEs wLrXUNFwj1a6AMe9NJUuElfrR24c4M0GZTezZFPnUfHh7/rPpo4dTmaGc8blXdQlzWvTfwkZNbc 9/nfALmlrB3yvbGCC38EGcJ5eIC6krSjZO1QzuzYlbPCrkf693WacnoaLlW22Vs X-Received: by 2002:a05:6808:f08:b0:3ea:aa8a:c121 with SMTP id 5614622812f47-3eba68957dfmr2183697b6e.22.1734117288969; Fri, 13 Dec 2024 11:14:48 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Stefan Berger Subject: [PATCH 61/71] hw/tpm: Constify all Property Date: Fri, 13 Dec 2024 13:07:35 -0600 Message-ID: <20241213190750.2513964-66-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::2f; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Stefan Berger --- hw/tpm/tpm_crb.c | 2 +- hw/tpm/tpm_spapr.c | 2 +- hw/tpm/tpm_tis_i2c.c | 2 +- hw/tpm/tpm_tis_isa.c | 2 +- hw/tpm/tpm_tis_sysbus.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/tpm/tpm_crb.c b/hw/tpm/tpm_crb.c index 5cd5a2533b..2bf6e7ffe9 100644 --- a/hw/tpm/tpm_crb.c +++ b/hw/tpm/tpm_crb.c @@ -226,7 +226,7 @@ static const VMStateDescription vmstate_tpm_crb = { } }; -static Property tpm_crb_properties[] = { +static const Property tpm_crb_properties[] = { DEFINE_PROP_TPMBE("tpmdev", CRBState, tpmbe), DEFINE_PROP_BOOL("ppi", CRBState, ppi_enabled, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/tpm/tpm_spapr.c b/hw/tpm/tpm_spapr.c index 5f7a0dfc61..e15b67dd45 100644 --- a/hw/tpm/tpm_spapr.c +++ b/hw/tpm/tpm_spapr.c @@ -364,7 +364,7 @@ static const VMStateDescription vmstate_spapr_vtpm = { } }; -static Property tpm_spapr_properties[] = { +static const Property tpm_spapr_properties[] = { DEFINE_SPAPR_PROPERTIES(SpaprTpmState, vdev), DEFINE_PROP_TPMBE("tpmdev", SpaprTpmState, be_driver), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/tpm/tpm_tis_i2c.c b/hw/tpm/tpm_tis_i2c.c index c5548b0a45..b27af230cd 100644 --- a/hw/tpm/tpm_tis_i2c.c +++ b/hw/tpm/tpm_tis_i2c.c @@ -491,7 +491,7 @@ static int tpm_tis_i2c_send(I2CSlave *i2c, uint8_t data) return 1; } -static Property tpm_tis_i2c_properties[] = { +static const Property tpm_tis_i2c_properties[] = { DEFINE_PROP_TPMBE("tpmdev", TPMStateI2C, state.be_driver), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/tpm/tpm_tis_isa.c b/hw/tpm/tpm_tis_isa.c index 21109edcaa..9b2160972a 100644 --- a/hw/tpm/tpm_tis_isa.c +++ b/hw/tpm/tpm_tis_isa.c @@ -91,7 +91,7 @@ static void tpm_tis_isa_reset(DeviceState *dev) return tpm_tis_reset(s); } -static Property tpm_tis_isa_properties[] = { +static const Property tpm_tis_isa_properties[] = { DEFINE_PROP_UINT32("irq", TPMStateISA, state.irq_num, TPM_TIS_IRQ), DEFINE_PROP_TPMBE("tpmdev", TPMStateISA, state.be_driver), DEFINE_PROP_BOOL("ppi", TPMStateISA, state.ppi_enabled, true), diff --git a/hw/tpm/tpm_tis_sysbus.c b/hw/tpm/tpm_tis_sysbus.c index 967f264634..88c1f1e478 100644 --- a/hw/tpm/tpm_tis_sysbus.c +++ b/hw/tpm/tpm_tis_sysbus.c @@ -90,7 +90,7 @@ static void tpm_tis_sysbus_reset(DeviceState *dev) return tpm_tis_reset(s); } -static Property tpm_tis_sysbus_properties[] = { +static const Property tpm_tis_sysbus_properties[] = { DEFINE_PROP_UINT32("irq", TPMStateSysBus, state.irq_num, TPM_TIS_IRQ), DEFINE_PROP_TPMBE("tpmdev", TPMStateSysBus, state.be_driver), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:07:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850272 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1692471wry; Fri, 13 Dec 2024 11:28:58 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVMzFNYe0xJI4RGSgrS7RIdZ9uuJ4HNt7HmnGOczkOPkqhHiRWi885XCYqCRcwvZrF9tVgQCg==@linaro.org X-Google-Smtp-Source: AGHT+IFc+fQs2zk8wi3ycrjMhoAx2oB0ynD//abHIVKCtGbn4ZNDNEdXo6XH7Zd3TYcN+3boLjas X-Received: by 2002:a05:620a:1723:b0:7b6:d9c1:15a8 with SMTP id af79cd13be357-7b6f8dfa00amr831629585a.31.1734118138017; Fri, 13 Dec 2024 11:28:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118138; cv=none; d=google.com; s=arc-20240605; b=lS2SPwrlMy0OMT6FyUfFz6VrqZnOFI3zq/986ccVfVVpuRfTaRybprhVwzAEn2HIlO CB7XKyrdqwH+6sp7Nyxmz0uTbH+uu0GtMwtJD27WvXPsC8l9DWhKv6KV0A6GYCKi5H2S /jJR7q9IM7zh5ccYujHrwfMllibJqRXC4fVXjfcjFFdSrATO73mAX3r9LC3Uzpk8dznQ JenvrhYbrS2YSP+m/+rMH57eQMNLK+zuE+tOIv/o9o6nZzceF3T6Zy4uaKYZKicZaJa6 yofdEu2qcv/tG9jjLrsBSvdEKs9ZHTBuqC1cItpOQ+L/5kKaH9xOYPnwsraoysuQKxtO 3sgg== 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=QHvouIEJ47Vdy/hcGDRoqTZ/qz1P8ZCCWYCVL1nEzxk=; fh=AviQk2djdIC6erHNV64fPAlsYrBm9AENj/pCljp3+TU=; b=aH15VkH0sARhYfDziafcYz/kSZUQhnq27yKf3jtD6k8B7BliD/Lu7X1p+RrTqblkkQ dMgthDOHvMQk7HLMoVKu8AIVketDqvKnCt93ifClTdWk6AbJMwbVRMj8isjw/XhtHSe/ HEAOXu36MXmn8smy7Tf6j8M99kgTPWkApnzDvWHz24WWLyWea8I1A+d0gwNJgu/gr5C0 bKdByGRDtoaMucP1NbzTotgFmUpnSb2q2rRaPJfN0VLN+y6wdDGnEawVettNdpsjerOd 7BWuheP3Riv/Hmo8QahRFSKofzbtf35mBqeycN2H4YxgYwT903bXFXIxB4hnGqAXa7pC 6QCw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KKMJ5qXo; 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 af79cd13be357-7b7047c46e0si16279585a.119.2024.12.13.11.28.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:28:57 -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=KKMJ5qXo; 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 1tMBAV-00049I-2p; Fri, 13 Dec 2024 14:17:44 -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 1tMB7n-00080j-Im for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:59 -0500 Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7j-0007g6-9t for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:53 -0500 Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3eb8accbde3so1595513b6e.0 for ; Fri, 13 Dec 2024 11:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117290; x=1734722090; 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=QHvouIEJ47Vdy/hcGDRoqTZ/qz1P8ZCCWYCVL1nEzxk=; b=KKMJ5qXoajupy8CVMY7nGRv0mCT3/E8iSaSzAN+kDNJEIIrLvAn7+G505GO/rTcqBK WP3gBkmGNQ25t7wLnas+f31RiaEn0M/7pMOjG+3tsY0+DNi30sMGQcn/ZQjw/dbseShy 3aCVl1+NYdeJx17nFccqkP50/iR4h0pJ3I2g8i4U0ik3A8UEdv1xViUD8eJX/a9qw+5H qIq+CrSCxWp6RHvBPsqDNn/arpQJ0cAgnV+C5F3K3DNaFZfU5N8mX+GMjdnprHplK+mx RptH7sQ0jbK32srjpWDbEO/URTZ3QZnaCIlnXIsOUgUf54wgj6ICud1Jyc1p1XWn299r qGsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117290; x=1734722090; 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=QHvouIEJ47Vdy/hcGDRoqTZ/qz1P8ZCCWYCVL1nEzxk=; b=v8VKKhuEzWVItV2QQqqaQSDpKDDM9UpGuotjvdkQvm7vB8mZl/bC0hFRmiUtnF/2gF 1SPuaH1Z0bVyFQWrlC46dDywfgM6ynMDsRS9C6oBY3x48N5VkocDbBfgFFgDRm9jP/WU AmYea1TI96+PAMqlA6tUy+C8RjGO+PTVDX9AcnkEBvsxZBDwGgUnt2Qnp6OEgocdT3Xy ghjFT4AwFY53ZkvQ9DCkgBL663YyWuvQ4qxYi7vGKShJ7k7uq60e224V0uVIGzyVZqaP Pfz4OgvLAilGjIkL0LF8BCAXbHCEbFXasbydGPOS9wEjmu9Yet/QHeDhY4HX8ehfFKCD j6Uw== X-Gm-Message-State: AOJu0YyYjNucah4UzRMAWSRNkw9IAT6gpmH2vMXv3zDBufILMGExR/cH 0lgtGGIioJneJCK48JEjQHqYiE9yIrumjEYS50VNSy1zYk8kPNP76Ul3tXGipVAAjMRNOZ1G/Nm wLpJN86Ca X-Gm-Gg: ASbGnctHZN09bmbT/ZtaC4upDA7lYN3RHvHZMjySsxha9X2gg40ehIYyxDpxeFErwLp J+7NSftRNgNZ2E7Eez9FOI++AXowclBuzrrgVN654OSIPOExqDDZejSUmyusLSrlhJk39C+pXXX ypIWnicanVfaNsC2Nv7tqXqXBpwPZgmN/uAkrwsbKt4M64hEesWd1uFx49PiaYJer5AdIrNUHZF v2eDfi7hgkNSfErM66yDRD6kDORwY4VCnTL+JY4nMyeoyWyr6LDNHuxbvwKu5/7 X-Received: by 2002:a05:6808:250b:b0:3eb:8236:d17 with SMTP id 5614622812f47-3eb94ef2aa5mr4272725b6e.11.1734117290174; Fri, 13 Dec 2024 11:14:50 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:49 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Bastian Koppelmann Subject: [PATCH 62/71] hw/tricore: Constify all Property Date: Fri, 13 Dec 2024 13:07:36 -0600 Message-ID: <20241213190750.2513964-67-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=2607:f8b0:4864:20::234; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x234.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/tricore/tc27x_soc.c | 2 +- hw/tricore/tricore_testdevice.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/tricore/tc27x_soc.c b/hw/tricore/tc27x_soc.c index ecd92717b5..6f50cb5116 100644 --- a/hw/tricore/tc27x_soc.c +++ b/hw/tricore/tc27x_soc.c @@ -201,7 +201,7 @@ static void tc27x_soc_init(Object *obj) object_initialize_child(obj, "tc27x", &s->cpu, sc->cpu_type); } -static Property tc27x_soc_properties[] = { +static const Property tc27x_soc_properties[] = { DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/tricore/tricore_testdevice.c b/hw/tricore/tricore_testdevice.c index ae95c49565..dbdcc9704e 100644 --- a/hw/tricore/tricore_testdevice.c +++ b/hw/tricore/tricore_testdevice.c @@ -58,7 +58,7 @@ static void tricore_testdevice_init(Object *obj) "tricore_testdevice", 0x4); } -static Property tricore_testdevice_properties[] = { +static const Property tricore_testdevice_properties[] = { DEFINE_PROP_END_OF_LIST() }; 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), From patchwork Fri Dec 13 19:29:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850280 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1694917wry; Fri, 13 Dec 2024 11:34:19 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW/A8Ut2w/8QRVy5Nu6/E+gFJMMSZt1EpbiI0yekd3ftcuT9/HVjyDqCTMddoRuWqFL+FV7/w==@linaro.org X-Google-Smtp-Source: AGHT+IHX85gleMrcQGMTR4iV4Y/7NXTtdVAZTlj62Jp2QvnaiAlCyWiOTS9q2R2QPMuQL7Y5YLAD X-Received: by 2002:a05:620a:718c:b0:7b6:f1be:4f95 with SMTP id af79cd13be357-7b6fbf451c4mr438568285a.51.1734118459029; Fri, 13 Dec 2024 11:34:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118459; cv=none; d=google.com; s=arc-20240605; b=XbLoXSqb/LK7TisVdYsnFGUpa8eOv/TyJRy+RWxjhypi4kavo2fb4cT/fv3qzsFV7f 07THeDV3mcnpLMarPNbc6NxL2BII3jX2G6zevwMwbHDUleWJRiAa0eotYKOONuV2g2Hq zOQSEr6t6/KuhDs/V0YVarvlMG6uLP6gWlYuy+4sCfusrsGgcMbul9Ul5jOXxBqKx2ag V/mJYoheuClhyWTvxTTP782o3eigLzo7ror8vTz99BIomTn4OKd0nbnyZ/bfKeT52YXo MG03Px3xI3ugnepRonYTtmoAZRaCrSbeEpQHdxY6xEMVCR40/cDTNG8DJlZrYSafk7q8 65sw== 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=Wvpp+XTPkfNZBJJN/m6P3L0ojg7FXee//cH/b/ZFxYQ=; fh=dXyALolyEbfHaCqiqxHms0KgYYXz8vorPGKdJbBg8FA=; b=Uy45s3MqZTayTiOIMQj3ohvpmxWry5LGvnbAmQ7EFHdMTMhEFi/miezcjVOfNnqfNI RtOP6IVqIuGoPMsB3dMYM9SgKGcX/VcOwlHG8lx+i5i3k8dSe9K7p/hv+YmtfdcXmbPV BGAKNDxcHhl8DO10XVdX+F/1MjsVAsvuIpZYUOkpV/uWXLrbTqxiG42bTWj5DHvTxGw5 J8SD5Lg4FlEuPfNeD8Vy21Gt6ORd53r53+UdPBTZhhAixik3//RBnlw81TemQab/AgEY l0PRbPKSHJZz4WMqddr2rAbavt/qkba8CBPZ5mxMH7SKjSojLmazXCZuhob4h8e1Jeim Axkg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RlexabGb; 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 af79cd13be357-7b7048c0128si20739785a.297.2024.12.13.11.34.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:34:19 -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=RlexabGb; 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 1tMBNE-0006po-EW; 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 1tMBMj-0006ew-KH for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:25 -0500 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBMf-0004Da-Rm for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:20 -0500 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-54026562221so2212632e87.1 for ; Fri, 13 Dec 2024 11:30:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118215; x=1734723015; 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=Wvpp+XTPkfNZBJJN/m6P3L0ojg7FXee//cH/b/ZFxYQ=; b=RlexabGbq/QXOCQXAfsJEfE3KmTWac+ECBKhoo/N3jJevocjMXpAyEGEUDKK75xNyJ xIJ64cEq6CoULW7uRCy9esYSoka0+Q2foibpxmm3glfcOOexT88CRXat3eKBRnU82EPK Pke0xcBM2cQowFci9sOyJ7D/wGNqVHYpamPQYvGKpmkVsRgI/1zIL/o5QvPAAWFGIJyZ iPiHvkU0mdExYWswBLT0U6wkTRwNTLPPY8NatKAMgAeRVa4XZONNVMwpDIk50rP2IFOb iiA1/UevWLzQSlZKIQDJ2cjABXmCDsfYVLemR7/jPVps4XMWFcRwLvRmbtie7KrFon/X WyLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118215; x=1734723015; 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=Wvpp+XTPkfNZBJJN/m6P3L0ojg7FXee//cH/b/ZFxYQ=; b=WauIXkroDvW4zPe6B2f1E2BH0LnV3mbR0A/odbCuLK6Uyf/LE7u/LHOxt7JJ8Srlgt TrmdNDEnbk6v+tUxbw/m9dlBoEzFJ0pNwiK4rKKej+HrMedq3EvUCr88bZzeSGHHLaUf zWwh8H/Fu8d+HAECojXXEr34ybUVVf0Tvgy5kMMinE2I7vcK7inyrhKUqiuc8owXlfP3 8gyo03cTbb7FFzY6M/UQQ49PFOaTa2MAmBGWI8jEvTVaVwGvZuJhXPLZa+PzweK9ib5S ZuG1meKm0YH1V+Iu0Y05ksWU3pZVmDjKhQY4dKz8O/lhZUH5fITBViOvkC6xo3jwWf2H c8jw== X-Gm-Message-State: AOJu0YzeEiSizPHoFxEaIdW31inX930UmXPUAGxTxd9epHqZZOs0Diyw sJgG9GrSoM+bOxqzllEN4wpfzCKgy1DPPYQ6MWKLayYBu1RcZdE9fgYp8R40UYPtA+milY0k0hj 8QLTbJoTO X-Gm-Gg: ASbGncswPCoigZB64HUGR+B1roet+Ksg6nS+tBtP8mrnu96cYTtzJnqTwBV4mGolW0m 6D8QcRNsdkBmFvNE6Qn78RS7UEFU/BcvqJGFChVOUE+Bi8gEAOep3GmCBaxR0LlGeA3mkCpSmLu q03gQcTegkXy31weCu2wf27Gq3RCauAGcoYlNzoF3BDvv3rBDuHdSqOIB9XPBIECZykyUOiV3Ma CHI8+FSPxv9lV7kD+jfwEeXPhilXuwUrFx3cvkaMXIrdFuvo1puBG1TehoYcA== X-Received: by 2002:a05:6512:1105:b0:53d:ed4e:e5af with SMTP id 2adb3069b0e04-5409056405dmr1263441e87.33.1734118215228; Fri, 13 Dec 2024 11:30:15 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:13 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Hongren (Zenithal) Zheng" , "Canokeys.org" , Samuel Thibault Subject: [PATCH 64/71] hw/usb: Constify all Property Date: Fri, 13 Dec 2024 13:29:58 -0600 Message-ID: <20241213193004.2515684-2-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::12d; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x12d.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- hw/usb/bus.c | 2 +- hw/usb/canokey.c | 2 +- hw/usb/ccid-card-emulated.c | 2 +- hw/usb/ccid-card-passthru.c | 2 +- hw/usb/dev-audio.c | 2 +- hw/usb/dev-hid.c | 6 +++--- hw/usb/dev-hub.c | 2 +- hw/usb/dev-mtp.c | 2 +- hw/usb/dev-network.c | 2 +- hw/usb/dev-serial.c | 4 ++-- hw/usb/dev-smartcard-reader.c | 4 ++-- hw/usb/dev-storage-classic.c | 2 +- hw/usb/dev-uas.c | 2 +- hw/usb/hcd-dwc2.c | 2 +- hw/usb/hcd-dwc3.c | 2 +- hw/usb/hcd-ehci-pci.c | 2 +- hw/usb/hcd-ehci-sysbus.c | 2 +- hw/usb/hcd-ohci-pci.c | 2 +- hw/usb/hcd-ohci-sysbus.c | 2 +- hw/usb/hcd-uhci.c | 4 ++-- hw/usb/hcd-xhci-nec.c | 2 +- hw/usb/hcd-xhci-sysbus.c | 2 +- hw/usb/hcd-xhci.c | 2 +- hw/usb/host-libusb.c | 2 +- hw/usb/redirect.c | 2 +- hw/usb/u2f-emulated.c | 2 +- hw/usb/u2f-passthru.c | 2 +- 27 files changed, 32 insertions(+), 32 deletions(-) diff --git a/hw/usb/bus.c b/hw/usb/bus.c index bfab2807d7..80e6a92820 100644 --- a/hw/usb/bus.c +++ b/hw/usb/bus.c @@ -18,7 +18,7 @@ static char *usb_get_dev_path(DeviceState *dev); static char *usb_get_fw_dev_path(DeviceState *qdev); static void usb_qdev_unrealize(DeviceState *qdev); -static Property usb_props[] = { +static const Property usb_props[] = { DEFINE_PROP_STRING("port", USBDevice, port_path), DEFINE_PROP_STRING("serial", USBDevice, serial), DEFINE_PROP_BIT("msos-desc", USBDevice, flags, diff --git a/hw/usb/canokey.c b/hw/usb/canokey.c index b306eeb20e..7cb600e3c8 100644 --- a/hw/usb/canokey.c +++ b/hw/usb/canokey.c @@ -296,7 +296,7 @@ static void canokey_unrealize(USBDevice *base) trace_canokey_unrealize(); } -static Property canokey_properties[] = { +static const Property canokey_properties[] = { DEFINE_PROP_STRING("file", CanoKeyState, file), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/ccid-card-emulated.c b/hw/usb/ccid-card-emulated.c index 3ee9c73b87..dd58333943 100644 --- a/hw/usb/ccid-card-emulated.c +++ b/hw/usb/ccid-card-emulated.c @@ -582,7 +582,7 @@ static void emulated_unrealize(CCIDCardState *base) qemu_mutex_destroy(&card->event_list_mutex); } -static Property emulated_card_properties[] = { +static const Property emulated_card_properties[] = { DEFINE_PROP_STRING("backend", EmulatedState, backend_str), DEFINE_PROP_STRING("cert1", EmulatedState, cert1), DEFINE_PROP_STRING("cert2", EmulatedState, cert2), diff --git a/hw/usb/ccid-card-passthru.c b/hw/usb/ccid-card-passthru.c index a515703904..f97dcf767f 100644 --- a/hw/usb/ccid-card-passthru.c +++ b/hw/usb/ccid-card-passthru.c @@ -388,7 +388,7 @@ static const VMStateDescription passthru_vmstate = { } }; -static Property passthru_card_properties[] = { +static const Property passthru_card_properties[] = { DEFINE_PROP_CHR("chardev", PassthruState, cs), DEFINE_PROP_UINT8("debug", PassthruState, debug, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c index 1897fff9e6..6007f16d30 100644 --- a/hw/usb/dev-audio.c +++ b/hw/usb/dev-audio.c @@ -990,7 +990,7 @@ static const VMStateDescription vmstate_usb_audio = { .unmigratable = 1, }; -static Property usb_audio_properties[] = { +static const Property usb_audio_properties[] = { DEFINE_AUDIO_PROPERTIES(USBAudioState, card), DEFINE_PROP_UINT32("debug", USBAudioState, debug, 0), DEFINE_PROP_UINT32("buffer", USBAudioState, buffer_user, 0), diff --git a/hw/usb/dev-hid.c b/hw/usb/dev-hid.c index 9e358c934e..d83f67b984 100644 --- a/hw/usb/dev-hid.c +++ b/hw/usb/dev-hid.c @@ -793,7 +793,7 @@ static const TypeInfo usb_hid_type_info = { .class_init = usb_hid_class_initfn, }; -static Property usb_tablet_properties[] = { +static const Property usb_tablet_properties[] = { DEFINE_PROP_UINT32("usb_version", USBHIDState, usb_version, 2), DEFINE_PROP_STRING("display", USBHIDState, display), DEFINE_PROP_UINT32("head", USBHIDState, head, 0), @@ -818,7 +818,7 @@ static const TypeInfo usb_tablet_info = { .class_init = usb_tablet_class_initfn, }; -static Property usb_mouse_properties[] = { +static const Property usb_mouse_properties[] = { DEFINE_PROP_UINT32("usb_version", USBHIDState, usb_version, 2), DEFINE_PROP_END_OF_LIST(), }; @@ -841,7 +841,7 @@ static const TypeInfo usb_mouse_info = { .class_init = usb_mouse_class_initfn, }; -static Property usb_keyboard_properties[] = { +static const Property usb_keyboard_properties[] = { DEFINE_PROP_UINT32("usb_version", USBHIDState, usb_version, 2), DEFINE_PROP_STRING("display", USBHIDState, display), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/dev-hub.c b/hw/usb/dev-hub.c index 2c3640c705..317ca0b081 100644 --- a/hw/usb/dev-hub.c +++ b/hw/usb/dev-hub.c @@ -665,7 +665,7 @@ static const VMStateDescription vmstate_usb_hub = { } }; -static Property usb_hub_properties[] = { +static const Property usb_hub_properties[] = { DEFINE_PROP_UINT32("ports", USBHubState, num_ports, 8), DEFINE_PROP_BOOL("port-power", USBHubState, port_power, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index 554b397e88..7994727e5e 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -2078,7 +2078,7 @@ static const VMStateDescription vmstate_usb_mtp = { } }; -static Property mtp_properties[] = { +static const Property mtp_properties[] = { DEFINE_PROP_STRING("rootdir", MTPState, root), DEFINE_PROP_STRING("desc", MTPState, desc), DEFINE_PROP_BOOL("readonly", MTPState, readonly, true), diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c index d00d68b21d..6c4f5776d4 100644 --- a/hw/usb/dev-network.c +++ b/hw/usb/dev-network.c @@ -1407,7 +1407,7 @@ static const VMStateDescription vmstate_usb_net = { .unmigratable = 1, }; -static Property net_properties[] = { +static const Property net_properties[] = { DEFINE_NIC_PROPERTIES(USBNetState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/dev-serial.c b/hw/usb/dev-serial.c index 63047d79cf..0c3e9160ec 100644 --- a/hw/usb/dev-serial.c +++ b/hw/usb/dev-serial.c @@ -634,7 +634,7 @@ static const VMStateDescription vmstate_usb_serial = { .unmigratable = 1, }; -static Property serial_properties[] = { +static const Property serial_properties[] = { DEFINE_PROP_CHR("chardev", USBSerialState, cs), DEFINE_PROP_BOOL("always-plugged", USBSerialState, always_plugged, false), DEFINE_PROP_END_OF_LIST(), @@ -677,7 +677,7 @@ static const TypeInfo serial_info = { .class_init = usb_serial_class_initfn, }; -static Property braille_properties[] = { +static const Property braille_properties[] = { DEFINE_PROP_CHR("chardev", USBSerialState, cs), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index c0d63e0425..c3c02f0aad 100644 --- a/hw/usb/dev-smartcard-reader.c +++ b/hw/usb/dev-smartcard-reader.c @@ -1171,7 +1171,7 @@ static Answer *ccid_peek_next_answer(USBCCIDState *s) : &s->pending_answers[s->pending_answers_start % PENDING_ANSWERS_NUM]; } -static Property ccid_props[] = { +static const Property ccid_props[] = { DEFINE_PROP_UINT32("slot", struct CCIDCardState, slot, 0), DEFINE_PROP_END_OF_LIST(), }; @@ -1431,7 +1431,7 @@ static const VMStateDescription ccid_vmstate = { } }; -static Property ccid_properties[] = { +static const Property ccid_properties[] = { DEFINE_PROP_UINT8("debug", USBCCIDState, debug, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/dev-storage-classic.c b/hw/usb/dev-storage-classic.c index 6147387dc6..ca037ba96f 100644 --- a/hw/usb/dev-storage-classic.c +++ b/hw/usb/dev-storage-classic.c @@ -67,7 +67,7 @@ static void usb_msd_storage_realize(USBDevice *dev, Error **errp) s->scsi_dev = scsi_dev; } -static Property msd_properties[] = { +static const Property msd_properties[] = { DEFINE_BLOCK_PROPERTIES(MSDState, conf), DEFINE_BLOCK_ERROR_PROPERTIES(MSDState, conf), DEFINE_PROP_BOOL("removable", MSDState, removable, false), diff --git a/hw/usb/dev-uas.c b/hw/usb/dev-uas.c index 1804cb6799..57e8d20051 100644 --- a/hw/usb/dev-uas.c +++ b/hw/usb/dev-uas.c @@ -953,7 +953,7 @@ static const VMStateDescription vmstate_usb_uas = { } }; -static Property uas_properties[] = { +static const Property uas_properties[] = { DEFINE_PROP_UINT32("log-scsi-req", UASDevice, requestlog, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/hcd-dwc2.c b/hw/usb/hcd-dwc2.c index b4f0652c7d..6a10f3e9cd 100644 --- a/hw/usb/hcd-dwc2.c +++ b/hw/usb/hcd-dwc2.c @@ -1448,7 +1448,7 @@ const VMStateDescription vmstate_dwc2_state = { } }; -static Property dwc2_usb_properties[] = { +static const Property dwc2_usb_properties[] = { DEFINE_PROP_UINT32("usb_version", DWC2State, usb_version, 2), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/hcd-dwc3.c b/hw/usb/hcd-dwc3.c index e7d8c7924b..ff970bd989 100644 --- a/hw/usb/hcd-dwc3.c +++ b/hw/usb/hcd-dwc3.c @@ -656,7 +656,7 @@ static const VMStateDescription vmstate_usb_dwc3 = { } }; -static Property usb_dwc3_properties[] = { +static const Property usb_dwc3_properties[] = { DEFINE_PROP_UINT32("DWC_USB3_USERID", USBDWC3, cfg.dwc_usb3_user, 0x12345678), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c index dd06451e23..374f25c5ed 100644 --- a/hw/usb/hcd-ehci-pci.c +++ b/hw/usb/hcd-ehci-pci.c @@ -135,7 +135,7 @@ static void usb_ehci_pci_write_config(PCIDevice *dev, uint32_t addr, i->ehci.as = busmaster ? pci_get_address_space(dev) : &address_space_memory; } -static Property ehci_pci_properties[] = { +static const Property ehci_pci_properties[] = { DEFINE_PROP_UINT32("maxframes", EHCIPCIState, ehci.maxframes, 128), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/hcd-ehci-sysbus.c b/hw/usb/hcd-ehci-sysbus.c index eb7df93ac2..f4e08aab89 100644 --- a/hw/usb/hcd-ehci-sysbus.c +++ b/hw/usb/hcd-ehci-sysbus.c @@ -30,7 +30,7 @@ static const VMStateDescription vmstate_ehci_sysbus = { } }; -static Property ehci_sysbus_properties[] = { +static const Property ehci_sysbus_properties[] = { DEFINE_PROP_UINT32("maxframes", EHCISysBusState, ehci.maxframes, 128), DEFINE_PROP_BOOL("companion-enable", EHCISysBusState, ehci.companion_enable, false), diff --git a/hw/usb/hcd-ohci-pci.c b/hw/usb/hcd-ohci-pci.c index 47fb659806..459644cc1b 100644 --- a/hw/usb/hcd-ohci-pci.c +++ b/hw/usb/hcd-ohci-pci.c @@ -109,7 +109,7 @@ static void usb_ohci_reset_pci(DeviceState *d) ohci_hard_reset(s); } -static Property ohci_pci_properties[] = { +static const Property ohci_pci_properties[] = { DEFINE_PROP_STRING("masterbus", OHCIPCIState, masterbus), DEFINE_PROP_UINT32("num-ports", OHCIPCIState, num_ports, 3), DEFINE_PROP_UINT32("firstport", OHCIPCIState, firstport, 0), diff --git a/hw/usb/hcd-ohci-sysbus.c b/hw/usb/hcd-ohci-sysbus.c index 313e1e71bb..81cf2e558d 100644 --- a/hw/usb/hcd-ohci-sysbus.c +++ b/hw/usb/hcd-ohci-sysbus.c @@ -57,7 +57,7 @@ static void ohci_sysbus_reset(DeviceState *dev) ohci_hard_reset(ohci); } -static Property ohci_sysbus_properties[] = { +static const Property ohci_sysbus_properties[] = { DEFINE_PROP_STRING("masterbus", OHCISysBusState, masterbus), DEFINE_PROP_UINT32("num-ports", OHCISysBusState, num_ports, 3), DEFINE_PROP_UINT32("firstport", OHCISysBusState, firstport, 0), diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index 65c1f93cc9..245352c231 100644 --- a/hw/usb/hcd-uhci.c +++ b/hw/usb/hcd-uhci.c @@ -1227,14 +1227,14 @@ static void usb_uhci_exit(PCIDevice *dev) } } -static Property uhci_properties_companion[] = { +static const Property uhci_properties_companion[] = { DEFINE_PROP_STRING("masterbus", UHCIState, masterbus), DEFINE_PROP_UINT32("firstport", UHCIState, firstport, 0), DEFINE_PROP_UINT32("bandwidth", UHCIState, frame_bandwidth, 1280), DEFINE_PROP_UINT32("maxframes", UHCIState, maxframes, 128), DEFINE_PROP_END_OF_LIST(), }; -static Property uhci_properties_standalone[] = { +static const Property uhci_properties_standalone[] = { DEFINE_PROP_UINT32("bandwidth", UHCIState, frame_bandwidth, 1280), DEFINE_PROP_UINT32("maxframes", UHCIState, maxframes, 128), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/hcd-xhci-nec.c b/hw/usb/hcd-xhci-nec.c index 0c063b3697..b582cf8f8d 100644 --- a/hw/usb/hcd-xhci-nec.c +++ b/hw/usb/hcd-xhci-nec.c @@ -38,7 +38,7 @@ struct XHCINecState { uint32_t slots; }; -static Property nec_xhci_properties[] = { +static const Property nec_xhci_properties[] = { DEFINE_PROP_ON_OFF_AUTO("msi", XHCIPciState, msi, ON_OFF_AUTO_AUTO), DEFINE_PROP_ON_OFF_AUTO("msix", XHCIPciState, msix, ON_OFF_AUTO_AUTO), DEFINE_PROP_UINT32("intrs", XHCINecState, intrs, XHCI_MAXINTRS), diff --git a/hw/usb/hcd-xhci-sysbus.c b/hw/usb/hcd-xhci-sysbus.c index 59cf7fd4ab..f4dbad7cc6 100644 --- a/hw/usb/hcd-xhci-sysbus.c +++ b/hw/usb/hcd-xhci-sysbus.c @@ -82,7 +82,7 @@ void xhci_sysbus_build_aml(Aml *scope, uint32_t mmio, unsigned int irq) aml_append(scope, dev); } -static Property xhci_sysbus_props[] = { +static const Property xhci_sysbus_props[] = { DEFINE_PROP_UINT32("intrs", XHCISysbusState, xhci.numintrs, XHCI_MAXINTRS), DEFINE_PROP_UINT32("slots", XHCISysbusState, xhci.numslots, XHCI_MAXSLOTS), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index d85adaca0d..3c5006f425 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -3605,7 +3605,7 @@ const VMStateDescription vmstate_xhci = { } }; -static Property xhci_properties[] = { +static const Property xhci_properties[] = { DEFINE_PROP_BIT("streams", XHCIState, flags, XHCI_FLAG_ENABLE_STREAMS, true), DEFINE_PROP_UINT32("p2", XHCIState, numports_2, 4), diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c index 691bc881fb..85d33b51ba 100644 --- a/hw/usb/host-libusb.c +++ b/hw/usb/host-libusb.c @@ -1758,7 +1758,7 @@ static const VMStateDescription vmstate_usb_host = { } }; -static Property usb_host_dev_properties[] = { +static const Property usb_host_dev_properties[] = { DEFINE_PROP_UINT32("hostbus", USBHostDevice, match.bus_num, 0), DEFINE_PROP_UINT32("hostaddr", USBHostDevice, match.addr, 0), DEFINE_PROP_STRING("hostport", USBHostDevice, match.port), diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index 0f2dd2e504..f72a612d5a 100644 --- a/hw/usb/redirect.c +++ b/hw/usb/redirect.c @@ -2573,7 +2573,7 @@ static const VMStateDescription usbredir_vmstate = { } }; -static Property usbredir_properties[] = { +static const Property usbredir_properties[] = { DEFINE_PROP_CHR("chardev", USBRedirDevice, cs), DEFINE_PROP_UINT8("debug", USBRedirDevice, debug, usbredirparser_warning), DEFINE_PROP_STRING("filter", USBRedirDevice, filter_str), diff --git a/hw/usb/u2f-emulated.c b/hw/usb/u2f-emulated.c index 63cceaa5fc..df86ce97fc 100644 --- a/hw/usb/u2f-emulated.c +++ b/hw/usb/u2f-emulated.c @@ -369,7 +369,7 @@ static void u2f_emulated_unrealize(U2FKeyState *base) } } -static Property u2f_emulated_properties[] = { +static const Property u2f_emulated_properties[] = { DEFINE_PROP_STRING("dir", U2FEmulatedState, dir), DEFINE_PROP_STRING("cert", U2FEmulatedState, cert), DEFINE_PROP_STRING("privkey", U2FEmulatedState, privkey), diff --git a/hw/usb/u2f-passthru.c b/hw/usb/u2f-passthru.c index c4a783d128..ec4f6165d8 100644 --- a/hw/usb/u2f-passthru.c +++ b/hw/usb/u2f-passthru.c @@ -516,7 +516,7 @@ static const VMStateDescription u2f_passthru_vmstate = { } }; -static Property u2f_passthru_properties[] = { +static const Property u2f_passthru_properties[] = { DEFINE_PROP_STRING("hidraw", U2FPassthruState, hidraw), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:29:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850276 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1694226wry; Fri, 13 Dec 2024 11:32:42 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUtp0Xpsk5ZxocM2F5Vbf51rllWKZi2gK2DMim8FTWVx1PC/8RsMZrAzrC3s173G8Q2Djd56g==@linaro.org X-Google-Smtp-Source: AGHT+IEb/fHiTyz/B7xBK4rUocXRoyI/hcs4eySV9lx51i2yVMInRZphQ9OLRwVl95+PlzgCDbEO X-Received: by 2002:ad4:5fc8:0:b0:6d8:99cf:77b9 with SMTP id 6a1803df08f44-6dc8ca6913emr64793586d6.19.1734118362434; Fri, 13 Dec 2024 11:32:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118362; cv=none; d=google.com; s=arc-20240605; b=ZZ1T5s2WvNXORof/iwfGa2o4xhH5ahefygKxGPMgZn9M6uAKZ3dLZ9grcQwe2lDn5Q Tz5VH+L1ONNLdYTH7B5Hj+HM3d60dUr9KmP6hPVItK3pVDLrNga3zXhN1ZI6V3MqBPrK Q7fC+J14uuzVbX/UZLKtfZJOGMk29lbqhzJNYK7SGxCKCZHTS3rmJVaV2xjLz1osSGnr TAIsMa1yfv2hxXNwng33VPrVzvouV8vgZilgmK2gjdP4Hst0v5Vp4/GI+S/MzJ4Pkc7f +BOfP7llhL79Jbzv8q6drUm/83ek3CNDQrbNXgNxCyOIrHDs7I4k+LOV0CC0e7PIMKQj osZw== 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=af94ntL1aP0LTF1ynUhyZnJWEdtzaUCk8WuF/T+fV+g=; fh=d1WSEoRaafpO+glFvYZf4SwszZTAlgPRELJGnJfygwU=; b=iiqIHSoIsL4AXumzvW9QIw5FBZarbBxXZm/rITgnDqgOot167GJsudVrMQ+laYKps7 esoENqo5SoUs5qKaWNkH0jixLU/ubuCWkzu4Dy1wA+OmagU+3HXZDZl2EscKqxVe7eO9 9G7YhDlBWxLwT05GB1f51ErEZGt/cNA222ylS7fqv0mAHzbEfYw2mmzB2fqc2aRmB7aS gwhlqKGphgA6PH8BpHz0W8Ps2BFQIQ65gmo/LNXIDxAURNN7r8itnONjtWzpoL+P2g8c XXqI/YgsMDBtjgfrv/0qe0szxIhD32ZRsVh/jyPHOjXLNq+ammRR+wTpHe8s0h8cXWoX dF6A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DhsJOCgN; 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 6a1803df08f44-6dccd373d1bsi733316d6.326.2024.12.13.11.32.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:32:42 -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=DhsJOCgN; 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 1tMBNW-0007JM-9p; Fri, 13 Dec 2024 14:31:10 -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 1tMBMr-0006ft-Ai for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:31 -0500 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBMl-0004ER-3F for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:26 -0500 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-5401e6efffcso2355401e87.3 for ; Fri, 13 Dec 2024 11:30:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118221; x=1734723021; 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=af94ntL1aP0LTF1ynUhyZnJWEdtzaUCk8WuF/T+fV+g=; b=DhsJOCgN0GNkUIdOv/ra6++4YgPagwNnsBLurVvSbANTwZ/R20i5xU5JA4qdx6jJ9E PTosc/f4znHAiwEld/R363P4Xh/v7ojla/GI7C/aDQDFkEfdmiSSppwd8LEFy35+FGIF LMKBTUMb8p2LEJvJ6iXlAmKbFaUqjJ5c6UbaAufHCDYi0ZV8Qr98KvPHthzD0Ml6dhZm 5WK34jYe+YJVs3Hxojpkvd538btTX3nFYp7dRpcEFlDU25BieMVzL1WHICKq2cqmCymN ql0tZWSzhdXt9X4yHXW2OSxSmROWCUPDlGUOSzJtpG2/bELoVfjf7DEJeoxO4MhtkgUl cvPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118221; x=1734723021; 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=af94ntL1aP0LTF1ynUhyZnJWEdtzaUCk8WuF/T+fV+g=; b=fcXOGauDxQXW47bXjLK/mHCOI8XBm21azgwag3rMxuNtUnWPgjzB8d5wg9be37PzRs h41y5HzxSiPST7BtmARAQhvR4osq+jpsuj+ClUq+y8VkuoKhbG3vLRJpHjjgDgGE6hWG i/pHvPe36lGgw+j9Z9G3EhE/LDGEILZXNljnP/8vVrEA+70zs2JDL0cdrWivChmTGKiX 7DSvh0QVr4EllGg+PKgywoRb/5SvSJDWjG/pSXaKcnRe26ppCWUuGBpHv70FU3PkyHl3 gLVTzcxDQb5XGf09alVmH5VuFluwBnOwsEiaBzfW4ayzdtaBfdJxKtNsfu/ltt71f497 GUCg== X-Gm-Message-State: AOJu0YwuDtMyPDV97vbHRilkBb7WGfigGPnCOMQgSJR+/CqDqDeRgTld LYAbGlB0ylBzR4dZJ51ST27MTFx9r+aQl4QVp8wuocm5FCb9/YT+OVRV6YfEVTJwQV8ucjuLf6U 8CSO6X93b X-Gm-Gg: ASbGnctUc1Dpc1uJufAXL3bbfonbvHrzk7ZCMRklmbWR9ZS3qPbIGzRh/8tpWzhNDPp boRFwKQGxgkQLagtDUdW4FmxGc5y8scjA+9Mz5exOB8LAi24asKJsh33ZVYyG9uDmIlzLtMkuKK sMy9p0IdmJcqmEU/oW9HcbPZra9JRSoZuPVNQlGST8f+1zR7DVJwWqBvUybvA6JHUvHTV7yzQEa wcH5AVtvcHWkZ5CZtjZl+j7v9j3+HODaZsjhn44SXG6+31inZtKXPGnWeti0g== X-Received: by 2002:a05:6512:3d27:b0:53e:1c3e:34 with SMTP id 2adb3069b0e04-540905974b1mr1348410e87.38.1734118221148; Fri, 13 Dec 2024 11:30:21 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:19 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Tony Krowiak , Halil Pasic , Jason Herne , Thomas Huth , Alex Williamson , =?utf-8?q?C=C3=A9dric_Le_Goat?= =?utf-8?q?er?= , Eric Farman , Matthew Rosato , qemu-s390x@nongnu.org (open list:vfio-ap) Subject: [PATCH 65/71] hw/vfio: Constify all Property Date: Fri, 13 Dec 2024 13:29:59 -0600 Message-ID: <20241213193004.2515684-3-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::12b; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x12b.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- hw/vfio/ap.c | 2 +- hw/vfio/ccw.c | 2 +- hw/vfio/pci.c | 4 ++-- hw/vfio/platform.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c index 4013e7b436..2e6ea2dd93 100644 --- a/hw/vfio/ap.c +++ b/hw/vfio/ap.c @@ -191,7 +191,7 @@ static void vfio_ap_unrealize(DeviceState *dev) g_free(vapdev->vdev.name); } -static Property vfio_ap_properties[] = { +static const Property vfio_ap_properties[] = { DEFINE_PROP_STRING("sysfsdev", VFIOAPDevice, vdev.sysfsdev), #ifdef CONFIG_IOMMUFD DEFINE_PROP_LINK("iommufd", VFIOAPDevice, vdev.iommufd, diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c index c1cd7736cd..b96ab27e12 100644 --- a/hw/vfio/ccw.c +++ b/hw/vfio/ccw.c @@ -655,7 +655,7 @@ static void vfio_ccw_unrealize(DeviceState *dev) } } -static Property vfio_ccw_properties[] = { +static const Property vfio_ccw_properties[] = { DEFINE_PROP_STRING("sysfsdev", VFIOCCWDevice, vdev.sysfsdev), DEFINE_PROP_BOOL("force-orb-pfch", VFIOCCWDevice, force_orb_pfch, false), #ifdef CONFIG_IOMMUFD diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 14bcc725c3..93aca850e3 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -3354,7 +3354,7 @@ static void vfio_instance_init(Object *obj) pci_dev->cap_present |= QEMU_PCI_CAP_EXPRESS; } -static Property vfio_pci_dev_properties[] = { +static const Property vfio_pci_dev_properties[] = { DEFINE_PROP_PCI_HOST_DEVADDR("host", VFIOPCIDevice, host), DEFINE_PROP_UUID_NODEFAULT("vf-token", VFIOPCIDevice, vf_token), DEFINE_PROP_STRING("sysfsdev", VFIOPCIDevice, vbasedev.sysfsdev), @@ -3451,7 +3451,7 @@ static const TypeInfo vfio_pci_dev_info = { }, }; -static Property vfio_pci_dev_nohotplug_properties[] = { +static const Property vfio_pci_dev_nohotplug_properties[] = { DEFINE_PROP_BOOL("ramfb", VFIOPCIDevice, enable_ramfb, false), DEFINE_PROP_ON_OFF_AUTO("x-ramfb-migrate", VFIOPCIDevice, ramfb_migrate, ON_OFF_AUTO_AUTO), diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c index a85c199c76..766e8a86ef 100644 --- a/hw/vfio/platform.c +++ b/hw/vfio/platform.c @@ -629,7 +629,7 @@ static const VMStateDescription vfio_platform_vmstate = { .unmigratable = 1, }; -static Property vfio_platform_dev_properties[] = { +static const Property vfio_platform_dev_properties[] = { DEFINE_PROP_STRING("host", VFIOPlatformDevice, vbasedev.name), DEFINE_PROP_STRING("sysfsdev", VFIOPlatformDevice, vbasedev.sysfsdev), DEFINE_PROP_BOOL("x-no-mmap", VFIOPlatformDevice, vbasedev.no_mmap, false), From patchwork Fri Dec 13 19:30:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850278 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1694537wry; Fri, 13 Dec 2024 11:33:29 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUKrv+Ixk8r2h3UkLUp/bgq3BiiXMZ0tRiRQmz8VcCzyKUcjzr2z5gy9/Rcd3FJSw47Fp0ypA==@linaro.org X-Google-Smtp-Source: AGHT+IHV9JIxGSGHeGArQUE75LpRX++1gmv80jcfy0BF4stEPkXU3ObB0zJH+aJB4FkxoqYF3QIs X-Received: by 2002:a05:620a:1711:b0:7b6:e8c3:4b5f with SMTP id af79cd13be357-7b6fbee8157mr587610085a.16.1734118409556; Fri, 13 Dec 2024 11:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118409; cv=none; d=google.com; s=arc-20240605; b=gEgxgoxhUFuGojRLo9iAL4VmbKpcnDuKsv6ANd/k+j3ru5rnCmZ54PEokfWIBtl/+T DCiDkqPUlSAEJc7eFcB869f3amPKScz2WrUUORNuW9Wj0v3gq3jZRJfS5fHog9WJxQO6 xOy8h6VaXln4xjqrfzB6LKxOfy3sN7asyzF0zDMKzyS1MSet53vSyV9j8Q+idtoJY4mQ ZB2XX1HGv85gCrscYFJK2GZgv76yXIEIbSHa+EYnVVhHvEzKyxB6Z+pFKwGGBQTnLPcy avnkDv/+HqtXL8YyMjHFri5Dr894F1AncO7ro6+cxqnhBBQ8VqbgLqLV/cMIrkhm118R gKLg== 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=4NulB13XWjt/WlDjxXREVViEirAoAtzzDMPxFRCnz5s=; fh=BUWcF38CaIVUi5UjVk8AiL1AVTlaQhZ/WrzAoprBbYE=; b=hez4UEMkWMDw0P7do7S2+hFiH9x+vSuM8jq3Xl6alOB9OQ7V6fX/Wc3fChrntRo40D Fnsx2rMan8RSopOMnVIi/8HVcsVfSUuh4mT2jwZV5pWs/hdlZ3UakF7e8QnMU6N3PuRi P1nDNBU+Y1yxDsJinuXnsv/13ZoeHmqhud3nkCTir7Ep5BRk6qMyIOLR9fipWiUsZ1bl 6Ua7RFnkpX1iZ3+/kGXJvPwMkcOH6V+EP5B1+W8YYHu8NkmqYOyKA3F9QppGy1FJjwrV PQm50mhfQl/V8j/Jda2b4onIg934MKXWUVU4Si/CiY6BpX5o0D86co/HW63qtGjvjDDW 50CA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tDDcfHHz; 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 af79cd13be357-7b7048f1a9asi15842085a.642.2024.12.13.11.33.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:33:29 -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=tDDcfHHz; 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 1tMBNI-0006sr-Pd; Fri, 13 Dec 2024 14:30:58 -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 1tMBN4-0006hl-6K for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:45 -0500 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBMw-0004G1-IU for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:39 -0500 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2ffa49f623cso23679831fa.1 for ; Fri, 13 Dec 2024 11:30:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118232; x=1734723032; 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=4NulB13XWjt/WlDjxXREVViEirAoAtzzDMPxFRCnz5s=; b=tDDcfHHzUq5ntD8rXjy6uWqpZVSQUHhKg0P2sPBBBrOgIdep/9JPk5QP/cpkLBlCSI //lQjgOOJVOn63ZJOoTBh8nAjC3hLO7P5m6blBJb9f1zf1Jj2FnzsS7D1xui6l6pcW6s vqXfYeseJbbBlvpXfZc+uwRqNAEvusIMVNwLcI/Dd2ZpDY/kLVKF4LxYDzA5qYmB8jTU ldHBg26pQAAzvoSP2Cipc/LfBgfDy6M0f3oqi20babYhW8ObYCDmymHVfQt8t8HsPk3u v52Qn2UjXe7nYP31fDcBevjmfAybGwzzk/ty7kfUwcF5J0lcDjOMumb6L9CWIrk5SoDg hSLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118232; x=1734723032; 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=4NulB13XWjt/WlDjxXREVViEirAoAtzzDMPxFRCnz5s=; b=D2sUpSeoqcHuLoNFg5IemnXpJO9o2JgZR0kidYAbr30SxoZr1xENTIp0vkEaZWQmH1 ub+B+WM+KCXKZOD/WlRsAucti1Z6XnrgENZvxn/Z00hYLqmtL/ou6mBIeanDaZCqbrvG NN1TMOZPZfiLjSvDDXsK8ot+wCWPPllc97yruiAIAhv7J8eKbuOHJpTXcDbnDqQ+WqA4 uDfnRCGHjAHwKd+nrth1r4qr2G3XWIcw0QVQ3tEHRy/+ZJYGnHUt1FDuE77EnM/Ua+PP nBZVUPa2JUU67/YT4w4P5+rTMxJoBZKTfhSg3Qy+Di902iqkHMQg03iE6Y29VQc4IXcY XSXg== X-Gm-Message-State: AOJu0YxIkr+WeZ0Obie/hqBNohsJSVETwsvej2P2dNLJNZwCUvRDxqZ4 93vrZ4CzZWupcHR2TqChWRnDRkXZRkXQrP5BEhJ4RYohPwUGlAC3a3PfKfJ92rsR4E/H+H0JUwN XjESoTw1E X-Gm-Gg: ASbGnct2lsDYzYRbkCPrGi/bKDl5+V8rhY+jEY9q7iXAoGqfYcByGTmeaEhy0zZLW7U JkWLkENn7SzHGPUICLTxscVnTHGLz3PzEbkl+7ZECch1FZVT+liJMatfI9QytV5IQ6+tNqWokPq Kpq1EIEhqxElvHYGa/mcYrtTVIvO1LkPGQE99EhRDZeGesnMK+1UjldtEdq1cOZ66CszPE868Ta gMhG1NbCHfdv61RFpZwsZdPcpHCWp1pkHLimnDgpCBMIDeG6uBiGWEYr+EkMQ== X-Received: by 2002:a05:6512:a8c:b0:53e:391c:e96c with SMTP id 2adb3069b0e04-5408ad80ba1mr1205721e87.8.1734118232425; Fri, 13 Dec 2024 11:30:32 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:31 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Stefano Garzarella , Raphael Norwitz , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Viresh Kumar , Gerd Hoffmann , Mathieu Poirier , mzamazal@redhat.com (reviewer:vhost-user-scmi), Manos Pitsidianakis , David Hildenbrand , "Gonglei (Arei)" , Eric Auger , Alexander Graf , Dorjoy Chowdhury , Laurent Vivier , Amit Shah , virtio-fs@lists.linux.dev (open list:virtiofs) Subject: [PATCH 66/71] hw/virtio: Constify all Property Date: Fri, 13 Dec 2024 13:30:00 -0600 Message-ID: <20241213193004.2515684-4-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::234; envelope-from=richard.henderson@linaro.org; helo=mail-lj1-x234.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- hw/virtio/vdpa-dev-pci.c | 2 +- hw/virtio/vdpa-dev.c | 2 +- hw/virtio/vhost-scsi-pci.c | 2 +- hw/virtio/vhost-user-blk-pci.c | 2 +- hw/virtio/vhost-user-device.c | 2 +- hw/virtio/vhost-user-fs-pci.c | 2 +- hw/virtio/vhost-user-fs.c | 2 +- hw/virtio/vhost-user-gpio.c | 2 +- hw/virtio/vhost-user-i2c.c | 2 +- hw/virtio/vhost-user-input.c | 2 +- hw/virtio/vhost-user-rng-pci.c | 2 +- hw/virtio/vhost-user-rng.c | 2 +- hw/virtio/vhost-user-scmi.c | 2 +- hw/virtio/vhost-user-scsi-pci.c | 2 +- hw/virtio/vhost-user-snd-pci.c | 2 +- hw/virtio/vhost-user-snd.c | 2 +- hw/virtio/vhost-user-vsock-pci.c | 2 +- hw/virtio/vhost-user-vsock.c | 2 +- hw/virtio/vhost-vsock-common.c | 2 +- hw/virtio/vhost-vsock-pci.c | 2 +- hw/virtio/vhost-vsock.c | 2 +- hw/virtio/virtio-9p-pci.c | 2 +- hw/virtio/virtio-balloon.c | 2 +- hw/virtio/virtio-blk-pci.c | 2 +- hw/virtio/virtio-crypto-pci.c | 2 +- hw/virtio/virtio-crypto.c | 2 +- hw/virtio/virtio-input-pci.c | 2 +- hw/virtio/virtio-iommu-pci.c | 2 +- hw/virtio/virtio-iommu.c | 2 +- hw/virtio/virtio-mem.c | 2 +- hw/virtio/virtio-mmio.c | 2 +- hw/virtio/virtio-net-pci.c | 2 +- hw/virtio/virtio-nsm.c | 2 +- hw/virtio/virtio-pci.c | 4 ++-- hw/virtio/virtio-pmem.c | 2 +- hw/virtio/virtio-rng-pci.c | 2 +- hw/virtio/virtio-rng.c | 2 +- hw/virtio/virtio-scsi-pci.c | 2 +- hw/virtio/virtio-serial-pci.c | 2 +- hw/virtio/virtio.c | 2 +- 40 files changed, 41 insertions(+), 41 deletions(-) diff --git a/hw/virtio/vdpa-dev-pci.c b/hw/virtio/vdpa-dev-pci.c index 5446e6b393..d0ee240e9d 100644 --- a/hw/virtio/vdpa-dev-pci.c +++ b/hw/virtio/vdpa-dev-pci.c @@ -48,7 +48,7 @@ static void vhost_vdpa_device_pci_instance_init(Object *obj) "bootindex"); } -static Property vhost_vdpa_device_pci_properties[] = { +static const Property vhost_vdpa_device_pci_properties[] = { DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vdpa-dev.c b/hw/virtio/vdpa-dev.c index 64b96b226c..61849b3b0e 100644 --- a/hw/virtio/vdpa-dev.c +++ b/hw/virtio/vdpa-dev.c @@ -337,7 +337,7 @@ static void vhost_vdpa_device_set_status(VirtIODevice *vdev, uint8_t status) } } -static Property vhost_vdpa_device_properties[] = { +static const Property vhost_vdpa_device_properties[] = { DEFINE_PROP_STRING("vhostdev", VhostVdpaDevice, vhostdev), DEFINE_PROP_UINT16("queue-size", VhostVdpaDevice, queue_size, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-scsi-pci.c b/hw/virtio/vhost-scsi-pci.c index 08980bc23b..7536b37f18 100644 --- a/hw/virtio/vhost-scsi-pci.c +++ b/hw/virtio/vhost-scsi-pci.c @@ -38,7 +38,7 @@ struct VHostSCSIPCI { VHostSCSI vdev; }; -static Property vhost_scsi_pci_properties[] = { +static const Property vhost_scsi_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, DEV_NVECTORS_UNSPECIFIED), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-user-blk-pci.c b/hw/virtio/vhost-user-blk-pci.c index eef8641a98..99f1472023 100644 --- a/hw/virtio/vhost-user-blk-pci.c +++ b/hw/virtio/vhost-user-blk-pci.c @@ -43,7 +43,7 @@ struct VHostUserBlkPCI { VHostUserBlk vdev; }; -static Property vhost_user_blk_pci_properties[] = { +static const Property vhost_user_blk_pci_properties[] = { DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, DEV_NVECTORS_UNSPECIFIED), diff --git a/hw/virtio/vhost-user-device.c b/hw/virtio/vhost-user-device.c index 67aa934710..3222b67bd9 100644 --- a/hw/virtio/vhost-user-device.c +++ b/hw/virtio/vhost-user-device.c @@ -29,7 +29,7 @@ static const VMStateDescription vud_vmstate = { .unmigratable = 1, }; -static Property vud_properties[] = { +static const Property vud_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_UINT16("virtio-id", VHostUserBase, virtio_id, 0), DEFINE_PROP_UINT32("vq_size", VHostUserBase, vq_size, 64), diff --git a/hw/virtio/vhost-user-fs-pci.c b/hw/virtio/vhost-user-fs-pci.c index 6829b8b743..9ba6c40655 100644 --- a/hw/virtio/vhost-user-fs-pci.c +++ b/hw/virtio/vhost-user-fs-pci.c @@ -29,7 +29,7 @@ typedef struct VHostUserFSPCI VHostUserFSPCI; DECLARE_INSTANCE_CHECKER(VHostUserFSPCI, VHOST_USER_FS_PCI, TYPE_VHOST_USER_FS_PCI) -static Property vhost_user_fs_pci_properties[] = { +static const Property vhost_user_fs_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, DEV_NVECTORS_UNSPECIFIED), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-user-fs.c b/hw/virtio/vhost-user-fs.c index 32ee7f496d..c0462329a5 100644 --- a/hw/virtio/vhost-user-fs.c +++ b/hw/virtio/vhost-user-fs.c @@ -403,7 +403,7 @@ static const VMStateDescription vuf_backend_vmstate = { }, }; -static Property vuf_properties[] = { +static const Property vuf_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserFS, conf.chardev), DEFINE_PROP_STRING("tag", VHostUserFS, conf.tag), DEFINE_PROP_UINT16("num-request-queues", VHostUserFS, diff --git a/hw/virtio/vhost-user-gpio.c b/hw/virtio/vhost-user-gpio.c index 9f37c25415..c997c66d80 100644 --- a/hw/virtio/vhost-user-gpio.c +++ b/hw/virtio/vhost-user-gpio.c @@ -14,7 +14,7 @@ #include "standard-headers/linux/virtio_ids.h" #include "standard-headers/linux/virtio_gpio.h" -static Property vgpio_properties[] = { +static const Property vgpio_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-i2c.c b/hw/virtio/vhost-user-i2c.c index a464f5e039..b0a5cbf3ea 100644 --- a/hw/virtio/vhost-user-i2c.c +++ b/hw/virtio/vhost-user-i2c.c @@ -14,7 +14,7 @@ #include "qemu/error-report.h" #include "standard-headers/linux/virtio_ids.h" -static Property vi2c_properties[] = { +static const Property vi2c_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-input.c b/hw/virtio/vhost-user-input.c index bedec0468c..c57cc461bb 100644 --- a/hw/virtio/vhost-user-input.c +++ b/hw/virtio/vhost-user-input.c @@ -7,7 +7,7 @@ #include "qemu/osdep.h" #include "hw/virtio/virtio-input.h" -static Property vinput_properties[] = { +static const Property vinput_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-rng-pci.c b/hw/virtio/vhost-user-rng-pci.c index f64935453b..0016ee74ce 100644 --- a/hw/virtio/vhost-user-rng-pci.c +++ b/hw/virtio/vhost-user-rng-pci.c @@ -23,7 +23,7 @@ typedef struct VHostUserRNGPCI VHostUserRNGPCI; DECLARE_INSTANCE_CHECKER(VHostUserRNGPCI, VHOST_USER_RNG_PCI, TYPE_VHOST_USER_RNG_PCI) -static Property vhost_user_rng_pci_properties[] = { +static const Property vhost_user_rng_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, DEV_NVECTORS_UNSPECIFIED), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-user-rng.c b/hw/virtio/vhost-user-rng.c index 01879c863d..c9985b5fad 100644 --- a/hw/virtio/vhost-user-rng.c +++ b/hw/virtio/vhost-user-rng.c @@ -20,7 +20,7 @@ static const VMStateDescription vu_rng_vmstate = { .unmigratable = 1, }; -static Property vrng_properties[] = { +static const Property vrng_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-scmi.c b/hw/virtio/vhost-user-scmi.c index 300847e672..a15e6916ef 100644 --- a/hw/virtio/vhost-user-scmi.c +++ b/hw/virtio/vhost-user-scmi.c @@ -277,7 +277,7 @@ static const VMStateDescription vu_scmi_vmstate = { .unmigratable = 1, }; -static Property vu_scmi_properties[] = { +static const Property vu_scmi_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserSCMI, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-scsi-pci.c b/hw/virtio/vhost-user-scsi-pci.c index 75882e3cf9..b2f6451f48 100644 --- a/hw/virtio/vhost-user-scsi-pci.c +++ b/hw/virtio/vhost-user-scsi-pci.c @@ -44,7 +44,7 @@ struct VHostUserSCSIPCI { VHostUserSCSI vdev; }; -static Property vhost_user_scsi_pci_properties[] = { +static const Property vhost_user_scsi_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, DEV_NVECTORS_UNSPECIFIED), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-user-snd-pci.c b/hw/virtio/vhost-user-snd-pci.c index d61cfdae63..5cf3557b7e 100644 --- a/hw/virtio/vhost-user-snd-pci.c +++ b/hw/virtio/vhost-user-snd-pci.c @@ -23,7 +23,7 @@ typedef struct VHostUserSoundPCI VHostUserSoundPCI; DECLARE_INSTANCE_CHECKER(VHostUserSoundPCI, VHOST_USER_SND_PCI, TYPE_VHOST_USER_SND_PCI) -static Property vhost_user_snd_pci_properties[] = { +static const Property vhost_user_snd_pci_properties[] = { DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-snd.c b/hw/virtio/vhost-user-snd.c index 9a217543f8..8810a9f699 100644 --- a/hw/virtio/vhost-user-snd.c +++ b/hw/virtio/vhost-user-snd.c @@ -21,7 +21,7 @@ static const VMStateDescription vu_snd_vmstate = { .unmigratable = 1, }; -static Property vsnd_properties[] = { +static const Property vsnd_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-vsock-pci.c b/hw/virtio/vhost-user-vsock-pci.c index e5a86e8013..529d967059 100644 --- a/hw/virtio/vhost-user-vsock-pci.c +++ b/hw/virtio/vhost-user-vsock-pci.c @@ -31,7 +31,7 @@ struct VHostUserVSockPCI { /* vhost-user-vsock-pci */ -static Property vhost_user_vsock_pci_properties[] = { +static const Property vhost_user_vsock_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 3), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-vsock.c b/hw/virtio/vhost-user-vsock.c index da3b0e0229..97885bfeab 100644 --- a/hw/virtio/vhost-user-vsock.c +++ b/hw/virtio/vhost-user-vsock.c @@ -148,7 +148,7 @@ static void vuv_device_unrealize(DeviceState *dev) } -static Property vuv_properties[] = { +static const Property vuv_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserVSock, conf.chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-vsock-common.c b/hw/virtio/vhost-vsock-common.c index fd88df2560..cb2253c39f 100644 --- a/hw/virtio/vhost-vsock-common.c +++ b/hw/virtio/vhost-vsock-common.c @@ -285,7 +285,7 @@ static struct vhost_dev *vhost_vsock_common_get_vhost(VirtIODevice *vdev) return &vvc->vhost_dev; } -static Property vhost_vsock_common_properties[] = { +static const Property vhost_vsock_common_properties[] = { DEFINE_PROP_ON_OFF_AUTO("seqpacket", VHostVSockCommon, seqpacket, ON_OFF_AUTO_AUTO), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-vsock-pci.c b/hw/virtio/vhost-vsock-pci.c index 9f34414d38..1d9abd02bd 100644 --- a/hw/virtio/vhost-vsock-pci.c +++ b/hw/virtio/vhost-vsock-pci.c @@ -35,7 +35,7 @@ struct VHostVSockPCI { /* vhost-vsock-pci */ -static Property vhost_vsock_pci_properties[] = { +static const Property vhost_vsock_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 3), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-vsock.c b/hw/virtio/vhost-vsock.c index 3d4a5a97f4..ce80e84494 100644 --- a/hw/virtio/vhost-vsock.c +++ b/hw/virtio/vhost-vsock.c @@ -205,7 +205,7 @@ static void vhost_vsock_device_unrealize(DeviceState *dev) vhost_vsock_common_unrealize(vdev); } -static Property vhost_vsock_properties[] = { +static const Property vhost_vsock_properties[] = { DEFINE_PROP_UINT64("guest-cid", VHostVSock, conf.guest_cid, 0), DEFINE_PROP_STRING("vhostfd", VHostVSock, conf.vhostfd), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/virtio-9p-pci.c b/hw/virtio/virtio-9p-pci.c index 94c14f0b98..b33faf2fbb 100644 --- a/hw/virtio/virtio-9p-pci.c +++ b/hw/virtio/virtio-9p-pci.c @@ -43,7 +43,7 @@ static void virtio_9p_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp) qdev_realize(vdev, BUS(&vpci_dev->bus), errp); } -static Property virtio_9p_pci_properties[] = { +static const Property virtio_9p_pci_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index afd2ad6dd6..ab2ee30475 100644 --- a/hw/virtio/virtio-balloon.c +++ b/hw/virtio/virtio-balloon.c @@ -1015,7 +1015,7 @@ static const VMStateDescription vmstate_virtio_balloon = { }, }; -static Property virtio_balloon_properties[] = { +static const Property virtio_balloon_properties[] = { DEFINE_PROP_BIT("deflate-on-oom", VirtIOBalloon, host_features, VIRTIO_BALLOON_F_DEFLATE_ON_OOM, false), DEFINE_PROP_BIT("free-page-hint", VirtIOBalloon, host_features, diff --git a/hw/virtio/virtio-blk-pci.c b/hw/virtio/virtio-blk-pci.c index 9743bee965..abdcc11b2e 100644 --- a/hw/virtio/virtio-blk-pci.c +++ b/hw/virtio/virtio-blk-pci.c @@ -38,7 +38,7 @@ struct VirtIOBlkPCI { VirtIOBlock vdev; }; -static Property virtio_blk_pci_properties[] = { +static const Property virtio_blk_pci_properties[] = { DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0), DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), diff --git a/hw/virtio/virtio-crypto-pci.c b/hw/virtio/virtio-crypto-pci.c index 0783dc2f7e..23c85fe586 100644 --- a/hw/virtio/virtio-crypto-pci.c +++ b/hw/virtio/virtio-crypto-pci.c @@ -37,7 +37,7 @@ struct VirtIOCryptoPCI { VirtIOCrypto vdev; }; -static Property virtio_crypto_pci_properties[] = { +static const Property virtio_crypto_pci_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), diff --git a/hw/virtio/virtio-crypto.c b/hw/virtio/virtio-crypto.c index c3ffd8328d..9ae0b02598 100644 --- a/hw/virtio/virtio-crypto.c +++ b/hw/virtio/virtio-crypto.c @@ -1128,7 +1128,7 @@ static const VMStateDescription vmstate_virtio_crypto = { }, }; -static Property virtio_crypto_properties[] = { +static const Property virtio_crypto_properties[] = { DEFINE_PROP_LINK("cryptodev", VirtIOCrypto, conf.cryptodev, TYPE_CRYPTODEV_BACKEND, CryptoDevBackend *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/virtio-input-pci.c b/hw/virtio/virtio-input-pci.c index a53edf46c4..55c0b0555b 100644 --- a/hw/virtio/virtio-input-pci.c +++ b/hw/virtio/virtio-input-pci.c @@ -37,7 +37,7 @@ struct VirtIOInputHIDPCI { VirtIOInputHID vdev; }; -static Property virtio_input_pci_properties[] = { +static const Property virtio_input_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/virtio-iommu-pci.c b/hw/virtio/virtio-iommu-pci.c index cbdfe4c591..92adf63684 100644 --- a/hw/virtio/virtio-iommu-pci.c +++ b/hw/virtio/virtio-iommu-pci.c @@ -34,7 +34,7 @@ struct VirtIOIOMMUPCI { VirtIOIOMMU vdev; }; -static Property virtio_iommu_pci_properties[] = { +static const Property virtio_iommu_pci_properties[] = { DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0), DEFINE_PROP_ARRAY("reserved-regions", VirtIOIOMMUPCI, vdev.nr_prop_resv_regions, vdev.prop_resv_regions, diff --git a/hw/virtio/virtio-iommu.c b/hw/virtio/virtio-iommu.c index 59ef4fb217..576ad8383f 100644 --- a/hw/virtio/virtio-iommu.c +++ b/hw/virtio/virtio-iommu.c @@ -1655,7 +1655,7 @@ static const VMStateDescription vmstate_virtio_iommu = { }, }; -static Property virtio_iommu_properties[] = { +static const Property virtio_iommu_properties[] = { DEFINE_PROP_LINK("primary-bus", VirtIOIOMMU, primary_bus, TYPE_PCI_BUS, PCIBus *), DEFINE_PROP_BOOL("boot-bypass", VirtIOIOMMU, boot_bypass, true), diff --git a/hw/virtio/virtio-mem.c b/hw/virtio/virtio-mem.c index 80ada89551..3f6f46fad7 100644 --- a/hw/virtio/virtio-mem.c +++ b/hw/virtio/virtio-mem.c @@ -1680,7 +1680,7 @@ static void virtio_mem_instance_finalize(Object *obj) vmem->mr = NULL; } -static Property virtio_mem_properties[] = { +static const Property virtio_mem_properties[] = { DEFINE_PROP_UINT64(VIRTIO_MEM_ADDR_PROP, VirtIOMEM, addr, 0), DEFINE_PROP_UINT32(VIRTIO_MEM_NODE_PROP, VirtIOMEM, node, 0), DEFINE_PROP_BOOL(VIRTIO_MEM_PREALLOC_PROP, VirtIOMEM, prealloc, false), diff --git a/hw/virtio/virtio-mmio.c b/hw/virtio/virtio-mmio.c index e3366fe54c..49d9fe8f30 100644 --- a/hw/virtio/virtio-mmio.c +++ b/hw/virtio/virtio-mmio.c @@ -751,7 +751,7 @@ static void virtio_mmio_pre_plugged(DeviceState *d, Error **errp) /* virtio-mmio device */ -static Property virtio_mmio_properties[] = { +static const Property virtio_mmio_properties[] = { DEFINE_PROP_BOOL("format_transport_address", VirtIOMMIOProxy, format_transport_address, true), DEFINE_PROP_BOOL("force-legacy", VirtIOMMIOProxy, legacy, true), diff --git a/hw/virtio/virtio-net-pci.c b/hw/virtio/virtio-net-pci.c index e03543a70a..e86094ae22 100644 --- a/hw/virtio/virtio-net-pci.c +++ b/hw/virtio/virtio-net-pci.c @@ -38,7 +38,7 @@ struct VirtIONetPCI { VirtIONet vdev; }; -static Property virtio_net_properties[] = { +static const Property virtio_net_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, diff --git a/hw/virtio/virtio-nsm.c b/hw/virtio/virtio-nsm.c index a3db8eef3e..7b85a3f4f7 100644 --- a/hw/virtio/virtio-nsm.c +++ b/hw/virtio/virtio-nsm.c @@ -1698,7 +1698,7 @@ static const VMStateDescription vmstate_virtio_nsm = { }, }; -static Property virtio_nsm_properties[] = { +static const Property virtio_nsm_properties[] = { DEFINE_PROP_STRING("module-id", VirtIONSM, module_id), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 5c6c2019ce..de41cb5ef2 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -2349,7 +2349,7 @@ static void virtio_pci_bus_reset_hold(Object *obj, ResetType type) } } -static Property virtio_pci_properties[] = { +static const Property virtio_pci_properties[] = { DEFINE_PROP_BIT("virtio-pci-bus-master-bug-migration", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_BUS_MASTER_BUG_MIGRATION_BIT, false), DEFINE_PROP_BIT("migrate-extra", VirtIOPCIProxy, flags, @@ -2431,7 +2431,7 @@ static const TypeInfo virtio_pci_info = { .abstract = true, }; -static Property virtio_pci_generic_properties[] = { +static const Property virtio_pci_generic_properties[] = { DEFINE_PROP_ON_OFF_AUTO("disable-legacy", VirtIOPCIProxy, disable_legacy, ON_OFF_AUTO_AUTO), DEFINE_PROP_BOOL("disable-modern", VirtIOPCIProxy, disable_modern, false), diff --git a/hw/virtio/virtio-pmem.c b/hw/virtio/virtio-pmem.c index c3512c2dae..f6f3b5ddaf 100644 --- a/hw/virtio/virtio-pmem.c +++ b/hw/virtio/virtio-pmem.c @@ -155,7 +155,7 @@ static MemoryRegion *virtio_pmem_get_memory_region(VirtIOPMEM *pmem, return &pmem->memdev->mr; } -static Property virtio_pmem_properties[] = { +static const Property virtio_pmem_properties[] = { DEFINE_PROP_UINT64(VIRTIO_PMEM_ADDR_PROP, VirtIOPMEM, start, 0), DEFINE_PROP_LINK(VIRTIO_PMEM_MEMDEV_PROP, VirtIOPMEM, memdev, TYPE_MEMORY_BACKEND, HostMemoryBackend *), diff --git a/hw/virtio/virtio-rng-pci.c b/hw/virtio/virtio-rng-pci.c index 6e76f8b57b..398f432237 100644 --- a/hw/virtio/virtio-rng-pci.c +++ b/hw/virtio/virtio-rng-pci.c @@ -32,7 +32,7 @@ struct VirtIORngPCI { VirtIORNG vdev; }; -static Property virtio_rng_properties[] = { +static const Property virtio_rng_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c index 7cf31da071..13a1a0b236 100644 --- a/hw/virtio/virtio-rng.c +++ b/hw/virtio/virtio-rng.c @@ -249,7 +249,7 @@ static const VMStateDescription vmstate_virtio_rng = { }, }; -static Property virtio_rng_properties[] = { +static const Property virtio_rng_properties[] = { /* Set a default rate limit of 2^47 bytes per minute or roughly 2TB/s. If * you have an entropy source capable of generating more entropy than this * and you can pass it through via virtio-rng, then hats off to you. Until diff --git a/hw/virtio/virtio-scsi-pci.c b/hw/virtio/virtio-scsi-pci.c index e8e3442f38..733b5756db 100644 --- a/hw/virtio/virtio-scsi-pci.c +++ b/hw/virtio/virtio-scsi-pci.c @@ -35,7 +35,7 @@ struct VirtIOSCSIPCI { VirtIOSCSI vdev; }; -static Property virtio_scsi_pci_properties[] = { +static const Property virtio_scsi_pci_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, diff --git a/hw/virtio/virtio-serial-pci.c b/hw/virtio/virtio-serial-pci.c index cea31adcc4..bda643ec54 100644 --- a/hw/virtio/virtio-serial-pci.c +++ b/hw/virtio/virtio-serial-pci.c @@ -69,7 +69,7 @@ static void virtio_serial_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp) qdev_realize(vdev, BUS(&vpci_dev->bus), errp); } -static Property virtio_serial_pci_properties[] = { +static const Property virtio_serial_pci_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index f12c4aa81e..7fcdb55ba4 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -4012,7 +4012,7 @@ static void virtio_device_instance_finalize(Object *obj) g_free(vdev->vector_queues); } -static Property virtio_properties[] = { +static const Property virtio_properties[] = { DEFINE_VIRTIO_COMMON_FEATURES(VirtIODevice, host_features), DEFINE_PROP_BOOL("use-started", VirtIODevice, use_started, true), DEFINE_PROP_BOOL("use-disabled-flag", VirtIODevice, use_disabled_flag, true), From patchwork Fri Dec 13 19:30:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850277 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1694510wry; Fri, 13 Dec 2024 11:33:26 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWS/63GPbDY7ysyxFpiQm8HMoalykjTWlsn9gXNMAU/tAqzL0sSjuP70D1d76yO9bdUP2zfRQ==@linaro.org X-Google-Smtp-Source: AGHT+IH8pg5WneThg5XLSQKdsJ2FdG5xzxt3ceoKQHLkcnt4Jiophk7SfNMCB4wAGpLN15D50hps X-Received: by 2002:ac8:5a93:0:b0:467:770f:70a0 with SMTP id d75a77b69052e-467a57297dfmr85646761cf.10.1734118406167; Fri, 13 Dec 2024 11:33:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118406; cv=none; d=google.com; s=arc-20240605; b=YVhYPCH3Ia/YoR2n+PWvo+W+77Wd8jQ92bv8V37CngB4IlycILaEIaiQdr97R42VPh knYFUuYn6HSILNHxGGyxQKJSMc4RCS7+9KGr/LVj9GB9n6j+kG56NmhD74zFxqIPoBDj E3fkix/ttF+j9ucc/Qlvd8WQ0NMyJiNS6UQjSzIJI0QEeOQKSfZJioKdbHfgKZZf/zEY EG6l4wsPHB9G62Mev3wvEsxt0qtps7Xac4BmAWQGmd7uUTRSTJtcXFXZJFRgBwDCdbwB 8rx1fBU8nAwGz9X7TIN+tdcu8hv+IKR9qSYzsY+L3j7hzTbox5sHVanO3sgaMIuqZbn1 LNSQ== 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=EPj8YUZTlub03UJXQ+2sMdrVTlxqao7LM7USxZNwFlw=; fh=8O61Wzg6YIVMDtF0rku9kgUbHSALU8TJ/9IZFXuhGQ8=; b=WrbeMPpmAk3oCKkbn7ROV4R8TojJTDNg/490Zn9NYQKVcJBTAorcB0MeRortALTQYA /TKYHJpzzLtDxaxBTtCiRHVn42qy/OrUEbg852IJTg4rGWWwhy7wUMfzTpRpHWkbsVMp Y8CgmwOJFRqS2p6LJ3ylzmWnVfH60EuGu5OJFX5H6qNph82zCsuF6Jwcwk+hO8MVoWHZ XGvVU//qQ9Kxx9sBn6o2300kxj+y12wkObDG8wKN/Jko6AaauUxVTjV9USR4vyaNNFFC dPITHp3ukZG9LQPe6Hi21eLGs7e6mYX3FnWqnMLmXsWwbUNC6T9pYDV5TdtYFPATpNGb t3Wg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T99Y4z9V; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2eefaecsi1868171cf.522.2024.12.13.11.33.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:33:26 -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=T99Y4z9V; 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 1tMBNa-0007hU-9X; Fri, 13 Dec 2024 14:31:14 -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 1tMBNA-0006pn-5k for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:49 -0500 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBN3-0004GU-VW for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:47 -0500 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-5401bd6cdb7so2088960e87.2 for ; Fri, 13 Dec 2024 11:30:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118240; x=1734723040; 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=EPj8YUZTlub03UJXQ+2sMdrVTlxqao7LM7USxZNwFlw=; b=T99Y4z9VnyAE44PGM1AduITMpPsCFm0ogYnqBVrmdeWxCIDNBAhgylbngQpyhF9f6N kVTE10OObygH4LIDkF0LnKbghZwTJPw4HDqzC1em1YTMOcIPZVE6tepYLafXHhwUhjeC usShMEx21U/7Y68o2Gg3qd0LbR45wzcuZH7231nwgb/zWDzZOUZl2eP+HjHVgrVDFX4h mHd81exFKc8vRQVBHLae2KQXU4myWdG9+oD1y7mERe57cx2xDFc5bMlN0bHOlD7OnLp3 FhbcbpraBF91f7yoKy4qP1ty9Tde5887CeB51aIXzirm73Gm3nP5GJwHgMDFXl0gj9av Cafw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118240; x=1734723040; 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=EPj8YUZTlub03UJXQ+2sMdrVTlxqao7LM7USxZNwFlw=; b=BITwDHuMogDjyrYz9WS2V2Jp5RV+b2MT2UcfJzToSgqMKJAL+OtvgdooI08GSOSRt4 kYheYXRX3n0mxtOlN3aj4YvMn5Ixe90Kikm19weei761kRqXLuNfaQ394bh7LZE4gznO IPHj/SAT23xn54QeW5+U0XNZb+OD7b+vqUGI1OLjF+3APOH7tthDo/yD8blUufL1SMKC 9vGCxOxqxFK/eu3+OlGA0KtdSI3sQ+vavN7WBwFG5aGPa2XyVavbm0WTuOSXDmNzN2b2 wpH9j7g8+ysjqD/imWb08vBwGMvzPHS3CVuqXggd2BuILZmGhhmJ6XOkQ1xhesiWfOO5 gZqw== X-Gm-Message-State: AOJu0Yw7tBpcgb/xZ2LuvGHdItHNvg7+OyyQOT37LCGPq+hsi30wIlvO E3PA2pGdeiuboXU+MVg30uE6q6Koq3RjzdXSKNHzar8wfhjJJG6aRE9WuYbNQokaxQTt0Ru1EGs kaoWxJ+P+ X-Gm-Gg: ASbGnctcYm8ed4L9NubvfSZoXq6mi7D4002Zfz4rcftz52BTq31PS0Ru3Aq7VGP1yji yGy7vKmsbu4TL+li4hhCYJ2vFG6W/Zbchjd3gISRifFCvPpCamMNWjp55ZNYowkDYuXzGFlb5B9 xjnqND91eJR6Qn6xKyUwEqAHwvJDbQIbqy1B4qDLzDLHWq1aXUjb/AjDJXT2VTqbs+HGDt3qy1/ qRGRojbht7ovBQQnSe5GS4M0AJPiFsIgHDTxJ62N1V5oQschf49Lz2JJG+BxQ== X-Received: by 2002:a05:6512:3b2b:b0:540:1d6c:f1c1 with SMTP id 2adb3069b0e04-5408ad81cc1mr1062721e87.2.1734118239821; Fri, 13 Dec 2024 11:30:39 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:38 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Radoslaw Biernacki , Peter Maydell , Leif Lindholm , Marcin Juszkiewicz , =?utf-8?q?C=C3=A9dric_L?= =?utf-8?q?e_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Jean-Christophe Dubois , qemu-arm@nongnu.org (open list:SBSA-REF) Subject: [PATCH 67/71] hw/watchdog: Constify all Property Date: Fri, 13 Dec 2024 13:30:01 -0600 Message-ID: <20241213193004.2515684-5-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::131; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x131.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, T_SPF_TEMPERROR=0.01 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- hw/watchdog/sbsa_gwdt.c | 2 +- hw/watchdog/wdt_aspeed.c | 2 +- hw/watchdog/wdt_imx2.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/watchdog/sbsa_gwdt.c b/hw/watchdog/sbsa_gwdt.c index 80f9b36e79..2e25d4b4e9 100644 --- a/hw/watchdog/sbsa_gwdt.c +++ b/hw/watchdog/sbsa_gwdt.c @@ -262,7 +262,7 @@ static void wdt_sbsa_gwdt_realize(DeviceState *dev, Error **errp) dev); } -static Property wdt_sbsa_gwdt_props[] = { +static const Property wdt_sbsa_gwdt_props[] = { /* * Timer frequency in Hz. This must match the frequency used by * the CPU's generic timer. Default 62.5Hz matches QEMU's legacy diff --git a/hw/watchdog/wdt_aspeed.c b/hw/watchdog/wdt_aspeed.c index 39c3f362a8..c95877e5c7 100644 --- a/hw/watchdog/wdt_aspeed.c +++ b/hw/watchdog/wdt_aspeed.c @@ -288,7 +288,7 @@ static void aspeed_wdt_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(sbd, &s->iomem); } -static Property aspeed_wdt_properties[] = { +static const Property aspeed_wdt_properties[] = { DEFINE_PROP_LINK("scu", AspeedWDTState, scu, TYPE_ASPEED_SCU, AspeedSCUState *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c index 8162d58afa..61fbd91ee4 100644 --- a/hw/watchdog/wdt_imx2.c +++ b/hw/watchdog/wdt_imx2.c @@ -281,7 +281,7 @@ static void imx2_wdt_realize(DeviceState *dev, Error **errp) } } -static Property imx2_wdt_properties[] = { +static const Property imx2_wdt_properties[] = { DEFINE_PROP_BOOL("pretimeout-support", IMX2WdtState, pretimeout_support, false), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:31: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: 850283 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1695312wry; Fri, 13 Dec 2024 11:35:15 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWqCqY8vaiDPDWSvyui/pC1Ob4jwCXCtuC9K0cvXke9qMDsGrD2c2bWatKK5Yg0t1xBmUHFkg==@linaro.org X-Google-Smtp-Source: AGHT+IEV+3f/u+MjS1E1KhLI5qt0brAMg0eu6qNSmDn7bXaGRgCsu0E6VPORBR6yaP35VnRXaz0J X-Received: by 2002:a05:6102:3913:b0:4b1:f3e:882f with SMTP id ada2fe7eead31-4b25dc6c7b1mr5098983137.1.1734118514941; Fri, 13 Dec 2024 11:35:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118514; cv=none; d=google.com; s=arc-20240605; b=kzDTAWFjfOQgdN3hw8RL//7MNHw++QOJqpOsW6AurEQTAalxx6MEBUYuMDg7UiAkD8 pNWd7FWKxm80IKcye+lHiaOgMibCuUFxnK9l74dcsqNtFYtjeDX+lrUpuhgc2mamzHyA gV2VKcsFAa+JdGqSlQI/hYYoyK8eDP8rlBRD4U5rB/uemMM7291D90p2gGBbji4gaLp8 97FfoZuzPtmrl3dRDktgeGTZxYPGM+VGDf9+JJ2rXxzaytX/1uT/3F7D+mFr4i2xDXlL iC+/MltLEZCOs9cl0P2s0CL7C0se15xrYZ9e/eK49eyi5C4PntUOLesAFy1/davzrkSs QmbQ== 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=+4rdkJduZkbXz6JmK4QEKv1jKAaYDuIzC71PHld//xk=; fh=5Zxh8ftkOfDJj4mOTO4wsqqTQTjNzePoZT5UHqAmZaY=; b=T0+p7BY0ulf1i/rt+W2yIQexfpfFf7iuX2Bqua8zlDiD7+GoE0Fe5U8XkAZrdgTaqn Wn2Dfu+vkEKB1f8G2oBlpOp+qoivkNdr/YmHxe2SQkmt1PDt4Oq6J/iV8uN4KnNTVGVu +aMKIIRsfpiOPAq3+Qkm5npOwoQEFabu1/gmdKYJnF5xac8YjFaEk6m9F2zcf6en9R6S tubraDRMJBNJq//XJr3yAeQvH4E/+4qdhZYhZtFC/w3+NCgImjUlbc2rconc32YYDE0S RtsAyYUgzMy3xHh1oUCOp+BX6fmDd4eitGgXNRax2nK7PU3aTLkxdlvad3/moPiljgZm rYiA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="B63d/Nmf"; 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 ada2fe7eead31-4b2704c53efsi32930137.701.2024.12.13.11.35.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:35:14 -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="B63d/Nmf"; 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 1tMBNi-0008Qv-Mf; Fri, 13 Dec 2024 14:31:22 -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 1tMBNd-0007ya-5H for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:31:17 -0500 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBNa-0004K0-TM for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:31:16 -0500 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-53df19bf6a9so2911095e87.1 for ; Fri, 13 Dec 2024 11:31:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118273; x=1734723073; 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=+4rdkJduZkbXz6JmK4QEKv1jKAaYDuIzC71PHld//xk=; b=B63d/NmfNI69OdSEksZuyj/v8mDEINqLsjO3PNjCLPaDgq6VOF/s8RPa85Itad30Id xL1cnN2gzlyum0zR17UczJrciVNyckVTLJqYjqEJhC0n8HhtPLSlo1HSDgg/yl6Awl9F HIMGtFBxJwVcogpAdDonUpVJQcl5AZvDeoyWBp2lzfrLan5Bp/Wg9Iy2R7ZWQaAX7smr SD7UVtZ1TXyDeVa5kXRQBGyKVT/IV1t2ezsjOJtzGzhLIzaH2E2YlwfP0pKoYHZ9+JRW qxTyNgpD/kVSG/sKsTMfxPNDYDTh2Lc/y1l6wI/zlkXqv1AXNuQvFmd3FXPQPwcP9l4q aCkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118273; x=1734723073; 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=+4rdkJduZkbXz6JmK4QEKv1jKAaYDuIzC71PHld//xk=; b=PwLEgCHKMRjYDw/ioRqWZQwUqdEKafc1GLsg5ieCOh6rQmsNf6eMTBu2cTWKD97eV/ t4D4rd41t4S6TtEkZhWRyijOg7THxqXbnY7P5QgibcEt0CKYV6pG1qVlMUN5N1Py9mLx /1ackE9b8c2BQ00dPSFnlevqNi5WnP1yUhNrAq14tlM+7d4VPsrlzYSQBqBX9934Y3bJ 2unQYz8zvMQJU0Ol0PSUR6HmehylAv8L93xQa9umlxd9QvPa19sQjskv7Z7FI40IMkUW Y2eAmmbB1ST3VrpTlJikyYqSDL7Dw/nwHKHpmr6QuWX0zcL8thUu9Gs/KEAjBYbYDj1+ lfNg== X-Gm-Message-State: AOJu0YwjhaG0xFXWbyCJeLJ/9Ocr/mNSpUFTc3r3NcMJQ4iP+ik19IRX FtrsvyJBsu0TRvct5VfuRo+AaEZ4rkKgpAfTzftb1TMkj0SBHd6e38jjbWC22Rx5nt+Uf0mRkym nuxHSWqiy X-Gm-Gg: ASbGncvuXkjtft6JpERa/h8L0BddCRRvrOR7PrSky86/zrMbUhDn+hC9u1nbzAsZ61D s/tE6dF03czQY0A3tYTo4AtSUYJhcUK2gpJkyynq2RckDNMncyBzgVrFCpvnSg9IpR3tZWcQRVY Ak80bdGla+WAaC2nNJ/wqIwELw7+2L6PMKck8zSpyXz9gJyYtAfs8h7WwyO4jQYiCP6LIt4nKsr xzIndfcndrrBkyl3WNmqge5khxOsrs1yRiR7ZtCXDU294DHLOE5e9+5NpafqQ== X-Received: by 2002:a05:6512:1288:b0:540:3572:bb6 with SMTP id 2adb3069b0e04-54090557f0emr1423299e87.15.1734118272736; Fri, 13 Dec 2024 11:31:12 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c204ebsm6723e87.250.2024.12.13.11.31.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:31:12 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Eduardo Habkost Subject: [PATCH 70/71] tests/unit: Constify all Property Date: Fri, 13 Dec 2024 13:31:03 -0600 Message-ID: <20241213193104.2515757-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::12f; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x12f.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- tests/unit/test-qdev-global-props.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test-qdev-global-props.c b/tests/unit/test-qdev-global-props.c index c8862cac5f..1eb95d2429 100644 --- a/tests/unit/test-qdev-global-props.c +++ b/tests/unit/test-qdev-global-props.c @@ -46,7 +46,7 @@ struct MyType { uint32_t prop2; }; -static Property static_props[] = { +static const Property static_props[] = { DEFINE_PROP_UINT32("prop1", MyType, prop1, PROP_DEFAULT), DEFINE_PROP_UINT32("prop2", MyType, prop2, PROP_DEFAULT), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:31:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850285 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1696279wry; Fri, 13 Dec 2024 11:37:52 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWV4Hjr5LcVHqEasZgi8mAcLkShxmAvOfNDGdiuEjNTM8MrB/Jtm1L/vL/ktzAp+RComq+T9A==@linaro.org X-Google-Smtp-Source: AGHT+IEA6MREFUAeJbP01yKTigAyzFH6R4xwb74lzuvAIwLN0q8nxXqMtbmcTTDRS9z/tv9Zec2T X-Received: by 2002:ac8:5d50:0:b0:467:58a4:ef68 with SMTP id d75a77b69052e-467a5788e44mr75286931cf.24.1734118672627; Fri, 13 Dec 2024 11:37:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118672; cv=none; d=google.com; s=arc-20240605; b=UCvoIe5QrP/F1EmyfEDW57Y8dIrkagwtBzAeCuEECX0/WDeCd24RgN9hEH44tJS5Eu CywLbgDtmfyaLxr3+MdmPqu1U4/E+n9uPvVWZj2BxwBqo8GMxNzLekjpYPelHV/s0uBV MBd7MzyXY9tEDGCj5FR9pjXPBQPA2Cr/x7UaNNCTIxVhtfiFkBM6XGqIQH8D8/9WwtJT W2sxTgyUgnG9O7di89jdGG2AkwtTqerZoju3M47JnaT+ED6qCLPXERDSD66MgMiJn6fM Ry93WcaTyduql9RdcxaL7bGGg8cl5pxjmTlqgPmg/Ns1GCjNC095wxwjMEfS6agAdZ8C YalA== 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=D9NZJMUMihYF2f/RMgHkdbty8GjEbXThSHvmpYC5Oh8=; fh=Y/c2pxubdDs5nl8Wyct9/LbQmcZ1a3gH6i7NK9wRDQE=; b=PHG4KBAqNI0cQU7/sW1bPA2/CAmdUVOlEepnPOxyj+QzaUzhs4/DbWGwoCWxNmTXRP FWiFoMUH0rlcrFx7LSq1WTMwo9MbJs5q4dZNrAI5u7x1n2Us4vIEBlRAaWO3dSRvgcJL Ox/oJriWmuwEZzj8W/1d/ACUpE0oUPiOncgkfFz7/ZlrkK5Kv7jMhuUTXKh+IGYRHvFc fjR1oY2mmIb3x7Qtrif1+8Ihou9+kLJY3X7cjEB0Xysi/2AB9prY2eOfjot2klpiP/p+ 3JXOLPRR9XzG81DKlqCYb+m2Bz+hKdt7PXlbKQO5mNq8c5m9bzx4zmrZ38clCvfLFS+e cNMg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tREhw7sq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2c974d5si1997231cf.133.2024.12.13.11.37.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:37:52 -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=tREhw7sq; 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 1tMBO0-0000AE-GR; Fri, 13 Dec 2024 14:31:40 -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 1tMBNj-0008WN-8b for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:31:26 -0500 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBNh-0004Ke-7T for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:31:22 -0500 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-3003d7ca01cso19830361fa.0 for ; Fri, 13 Dec 2024 11:31:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118278; x=1734723078; 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=D9NZJMUMihYF2f/RMgHkdbty8GjEbXThSHvmpYC5Oh8=; b=tREhw7sqW9nyi7zhpSA1DDgbgdWxy0FYnor4UnB9kghH3+JUMN66XYDvSlrplcvsze PUZJTfsGS3DfaJfruj8k1m4dgVB/qxuuBZIb/EOVVxCVvs98gry09jHJ6plofKTmLHmw T5cJP5hpTKHyF6UDDcBwV/zB3l4C8uE1CQhV1nmqu2oqq/NxijpWaTWOxsSbgrQof/8L r+/jdjMqn29dqE/qfuV+OLzMTjbWcInmWoqeevy3dVSAw9swaZ29kI7bPvLf4gUiOyCa Izgxus521KlhugtfbIY81BwoXVEWtVzH+hEPLt/5G5xWgZhnPzPWT3i5Dkt0/fSt9+d7 7a6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118278; x=1734723078; 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=D9NZJMUMihYF2f/RMgHkdbty8GjEbXThSHvmpYC5Oh8=; b=J8iYRhwnXkV/yzB5B3kLkBDNGMPD5mCemCK9LONuEEm1OxyNXZKLD4W01kH1aBo2vi kjmpP5yBEiB9zpmQxtJX/uWs/92CWCn5a5xTcXzVVjFwewFbJu9YuY21NPOxdwOu5k5F vTMDalc7LFS3AuGt1gfhzzTGD4GwuJ0fg71yAFJl3rVBwiMdzYLcluLHL7b/y7sOiTok azW3Uf49jUt5031hDvQzgO02nZAI31L7/kDOaw06uN09oh+AqasAtFlYy7ijZloZ5VBo do4I5greqQz9csp/RvLtDbBIC4tEQHwj2KLpMvE90MPigFg1a4AzzbCd/YiPPMkgMKyd vk7w== X-Gm-Message-State: AOJu0YzC56+CriHv7r6BJaX5S99XcM6baoTpAqlw0PFieME7hQBOpF3Z Qn+Y++sIS7HTkHDG1rwHJCGGaP3I12PWxd4GLu8e8NV7GniEkgUQc4f/IWrDr65ayE1O6offK9F TFITpTcSJ X-Gm-Gg: ASbGncuBQ5i21V5itmyj9HpaEDmefxmdIS5Mtv7rrH5kkvPujpObgpy/E/o0Ies2S3y +swlCCZHXwnAwKuFAY4iJxql7NOc2pcioBBCMEXdD2cfDdmyew1KJrEU2u5q5LC2KXVxD8JTcjL ROZgDQx2n0qCg0NauybrFSfVyDvD+IX9RTsL9Lg3TY3CuTw6Y5HN4SOQKfeY6qIG3AAa3Szm0BZ uPQzJRpV7CitspIfPAsv8ZkX7PAt2rkutr9CGFNmbgxI8t9dIlF8D1Rs4X0Zg== X-Received: by 2002:a05:6512:3a91:b0:53e:37a5:4cb5 with SMTP id 2adb3069b0e04-5408bcc53f3mr1536668e87.4.1734118278231; Fri, 13 Dec 2024 11:31:18 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c204ebsm6723e87.250.2024.12.13.11.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:31:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Xu , Fabiano Rosas , "Michael S. Tsirkin" Subject: [PATCH 71/71] docs: Constify all Property in examples Date: Fri, 13 Dec 2024 13:31:04 -0600 Message-ID: <20241213193104.2515757-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213193104.2515757-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> <20241213193104.2515757-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=richard.henderson@linaro.org; helo=mail-lj1-x22b.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- docs/devel/migration/compatibility.rst | 4 ++-- docs/devel/virtio-backends.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/devel/migration/compatibility.rst b/docs/devel/migration/compatibility.rst index 5a5417ef06..c787f53738 100644 --- a/docs/devel/migration/compatibility.rst +++ b/docs/devel/migration/compatibility.rst @@ -198,7 +198,7 @@ was done:: The relevant parts for migration are:: - @@ -1281,7 +1284,8 @@ static Property virtio_blk_properties[] = { + @@ -1281,7 +1284,8 @@ static const Property virtio_blk_properties[] = { #endif DEFINE_PROP_BIT("request-merging", VirtIOBlock, conf.request_merging, 0, true), @@ -395,7 +395,7 @@ the old behaviour or the new behaviour:: index 8a87ccc8b0..5153ad63d6 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c - @@ -79,6 +79,8 @@ static Property pci_props[] = { + @@ -79,6 +79,8 @@ static const Property pci_props[] = { DEFINE_PROP_STRING("failover_pair_id", PCIDevice, failover_pair_id), DEFINE_PROP_UINT32("acpi-index", PCIDevice, acpi_index, 0), diff --git a/docs/devel/virtio-backends.rst b/docs/devel/virtio-backends.rst index 9ff092e7a0..a6f9df4845 100644 --- a/docs/devel/virtio-backends.rst +++ b/docs/devel/virtio-backends.rst @@ -101,7 +101,7 @@ manually instantiated: VirtIOBlock vdev; }; - static Property virtio_blk_pci_properties[] = { + static const Property virtio_blk_pci_properties[] = { DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0), DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true),