From patchwork Sun Dec 15 19:04:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850964 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520179wry; Sun, 15 Dec 2024 11:07:05 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV3YQTDSvNmGpPvfCjfpr4TtFLes9kvTauba4n+0XrCNmdvMv9oVo8MdcfswfD42M6b1a+oMQ==@linaro.org X-Google-Smtp-Source: AGHT+IEujOln5YMjDS3ZnFKSB/jwdk/ZxV1WI9PIW1O/aNEtIzrHEZivdl3Zyc6xNZBFkQ62aLXj X-Received: by 2002:a05:622a:13:b0:467:86fa:6b72 with SMTP id d75a77b69052e-467a5757d79mr182568901cf.12.1734289625284; Sun, 15 Dec 2024 11:07:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289625; cv=none; d=google.com; s=arc-20240605; b=A4sHGtVZNFAV978r8FZkFmKGgiaQBdedLrcxFHABkRBu5fv2K1PSZwax4jwJ4ZmCdm iiooXZewFU4BA7eSuY82nLRx5A/rfBVIzt/PVBMzXQjHcx1DAaLLVtrx2FwYJfZTY9In 9H83S6v6q6UQ9QMlMZinTOD6oIgXxNf8t8aS2RYd8PHElE7G7owE2RQNwIn7UbSWygLk r6XeAMN54HyxV4bumVgSm35pI3DPUq8ZlRF9MZMtqDKtEWRBBxu3KbEeLYgxF6D2QgZS Ksju6znzfXyRMoMj6BmpVQR5IDLw60MXhz2DYFuPRd9QaLYeejMPOJSKWXP/064cMa7W jwuw== 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=j/Ka7R5gAPMeuH9uA3sOD+FvUIpwBOAmXMLurlmzjxI=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=jGzL8EMTyObomwigtIfHSsU8Qre8ZQxeUrFdE9+4o4xWa07jRQEP9bOMH0iNFKQKoJ Wb8WG0yx/81rDMzajyCOEcBTzE5Jdvc93LCbv9SgGsXXWGo59LEp8sljVM+FQL1Lb3jG NZ/GewnSrtD5cwnHSihzYOYz8nU8KEPRpXns94cJFVgs5/X0sROb8XD0qTkhWjEObTVx XZyd887cOd3PNeef0vF1qQG2Sc0F02RMTqFIyMyXiFmtKXPGeIE6E8xTt6KO7wCtQggJ 4aRDqwjJSZCokToKDOkJI9lYsyfcbyhvVr/8tjoPVlDS7LU3EbH3TwMYlBy4oZaExVPX krpQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fj4rotm5; 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-467b2c966a8si57297361cf.32.2024.12.15.11.07.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:07: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=fj4rotm5; 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 1tMtw6-0001DS-Sy; Sun, 15 Dec 2024 14:05: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 1tMtw3-0001CE-IG for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05: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 1tMtw0-0000wU-KO for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:46 -0500 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-29e2a50586dso1586648fac.0 for ; Sun, 15 Dec 2024 11:05:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289542; x=1734894342; 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=j/Ka7R5gAPMeuH9uA3sOD+FvUIpwBOAmXMLurlmzjxI=; b=fj4rotm59FAiR976WNNm6nq0lcDC5gOd2J/CR1oPuh5UE2CidY5K2C0YZ6+E4Stn4p qzSahdzD16zPWfubF0C0rs5WZ3W+cKIECXoNxcSL9vqBEm7zk8e38/9hFcgEFvp38qDI 9flyuOYn8zFDzQauJIlXO2Um8ve8vZkrKkv8qmPTarXdKJSXBGxJyurLvMcPLGF3cOBu 8Frwg4uz/nIWmvq8eXLzu4NftkOocLP1VqZSBcz/A2Fra62cztzGLwHpTyrnNCUsIIEu l/EjD8RzKQ5F8HQGxUToGHw48fvL7vLvTupTwnKcgL05N/ycmYitB3qLma+vtdCLoY6z 83SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289542; x=1734894342; 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=j/Ka7R5gAPMeuH9uA3sOD+FvUIpwBOAmXMLurlmzjxI=; b=UN+XNPB8SNW2UEWU5SmFwzZTRJLXjX4kdkYKaTWSs4NFZ+8KNQBlUrT8l2rCyvBkmn wKfwsiw5i89Ch+SC77tN6+WcrdsYG+w+RTQQ7RGkNBJ47Exdbju8UWTcV+uzDR2OrWuS M57USsCG8mRbJXMHsj2sDwogPSUcDANUiREcerlE2+8hrGfa9FZ+yDxfrqOO9RYO0ePV w7JrzI833c5j4tETmSlPlNDOgkd/3kWho6VC5MZVzou+2OzoiLLo97f3jXQtI3MDn1d9 Mpo055Rzr0958/5ffmrYqftKdZtfXgIoEu9oAJ3yPdVGk1bgFR3pynMrsk16vUKFltbl vigQ== X-Gm-Message-State: AOJu0YzoUR5NJmptqYIQEdX+1eZLa9249CKzGkAtNRWkT9tIxHFSTl3o x3pgzXAzRudnSlepMiULj8+xcuVQBQG6Ay2B9in7mTTc7L9fxTvXg8mcarzgSW/jy1rWhBqKN1K 2TTqlxfJN X-Gm-Gg: ASbGncvGIp8uyG+rJzpKsnSpoZWUJcgEioPUQI0MwOygLWOugQQZv+Z53VdERcJutDx 7313EGvhL/ZhVH9ICpymDiyCEruGipY6BdGASxKwd31YPpR1rCJI8GKwocnLG1J/NWxJZrQ1PL6 C0bbo5rwZi0Tqm3sjocvvf8SInXCCWgVHPaB3WRDLYhg0s3rFKhS4XsaqXf3s+7hdmSY0kOqrw0 6meLHp6A9homv2xmosrjnYI8m6a5+xphYAfN4zfPJz4EV4drR1JXNsqRb4xKf2i7eZ/0B+qoezv 2GXRN8+RWK7bMZ6+qBueMHsXWfyhCNRjynp0xaRN8tA= X-Received: by 2002:a05:6870:e313:b0:29e:443b:edcd with SMTP id 586e51a60fabf-2a3ac914920mr5177591fac.37.1734289542303; Sun, 15 Dec 2024 11:05:42 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 01/67] target/arm: Constify all Property Date: Sun, 15 Dec 2024 13:04:27 -0600 Message-ID: <20241215190533.3222854-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/arm/cpu.c | 26 +++++++++++++------------- target/arm/cpu64.c | 6 +++--- target/arm/tcg/cpu64.c | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 0cbda76ba0..1afa07511e 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1558,39 +1558,39 @@ static void arm_cpu_initfn(Object *obj) * 0 means "unset, use the default value". That default might vary depending * on the CPU type, and is set in the realize fn. */ -static Property arm_cpu_gt_cntfrq_property = +static const Property arm_cpu_gt_cntfrq_property = DEFINE_PROP_UINT64("cntfrq", ARMCPU, gt_cntfrq_hz, 0); -static Property arm_cpu_reset_cbar_property = +static const Property arm_cpu_reset_cbar_property = DEFINE_PROP_UINT64("reset-cbar", ARMCPU, reset_cbar, 0); -static Property arm_cpu_reset_hivecs_property = +static const Property arm_cpu_reset_hivecs_property = DEFINE_PROP_BOOL("reset-hivecs", ARMCPU, reset_hivecs, false); #ifndef CONFIG_USER_ONLY -static Property arm_cpu_has_el2_property = +static const Property arm_cpu_has_el2_property = DEFINE_PROP_BOOL("has_el2", ARMCPU, has_el2, true); -static Property arm_cpu_has_el3_property = +static const Property arm_cpu_has_el3_property = DEFINE_PROP_BOOL("has_el3", ARMCPU, has_el3, true); #endif -static Property arm_cpu_cfgend_property = +static const Property arm_cpu_cfgend_property = DEFINE_PROP_BOOL("cfgend", ARMCPU, cfgend, false); -static Property arm_cpu_has_vfp_property = +static const Property arm_cpu_has_vfp_property = DEFINE_PROP_BOOL("vfp", ARMCPU, has_vfp, true); -static Property arm_cpu_has_vfp_d32_property = +static const Property arm_cpu_has_vfp_d32_property = DEFINE_PROP_BOOL("vfp-d32", ARMCPU, has_vfp_d32, true); -static Property arm_cpu_has_neon_property = +static const Property arm_cpu_has_neon_property = DEFINE_PROP_BOOL("neon", ARMCPU, has_neon, true); -static Property arm_cpu_has_dsp_property = +static const Property arm_cpu_has_dsp_property = DEFINE_PROP_BOOL("dsp", ARMCPU, has_dsp, true); -static Property arm_cpu_has_mpu_property = +static const Property arm_cpu_has_mpu_property = DEFINE_PROP_BOOL("has-mpu", ARMCPU, has_mpu, true); /* This is like DEFINE_PROP_UINT32 but it doesn't set the default value, @@ -1598,7 +1598,7 @@ static Property arm_cpu_has_mpu_property = * the right value for that particular CPU type, and we don't want * to override that with an incorrect constant value. */ -static Property arm_cpu_pmsav7_dregion_property = +static const Property arm_cpu_pmsav7_dregion_property = DEFINE_PROP_UNSIGNED_NODEFAULT("pmsav7-dregion", ARMCPU, pmsav7_dregion, qdev_prop_uint32, uint32_t); @@ -2644,7 +2644,7 @@ static ObjectClass *arm_cpu_class_by_name(const char *cpu_model) return oc; } -static Property arm_cpu_properties[] = { +static const Property arm_cpu_properties[] = { DEFINE_PROP_UINT64("midr", ARMCPU, midr, 0), DEFINE_PROP_UINT64("mp-affinity", ARMCPU, mp_affinity, ARM64_AFFINITY_INVALID), diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index c1cac912a0..ec77c5b34a 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -547,11 +547,11 @@ void arm_cpu_pauth_finalize(ARMCPU *cpu, Error **errp) cpu->isar.id_aa64isar2 = isar2; } -static Property arm_cpu_pauth_property = +static const Property arm_cpu_pauth_property = DEFINE_PROP_BOOL("pauth", ARMCPU, prop_pauth, true); -static Property arm_cpu_pauth_impdef_property = +static const Property arm_cpu_pauth_impdef_property = DEFINE_PROP_BOOL("pauth-impdef", ARMCPU, prop_pauth_impdef, false); -static Property arm_cpu_pauth_qarma3_property = +static const Property arm_cpu_pauth_qarma3_property = DEFINE_PROP_BOOL("pauth-qarma3", ARMCPU, prop_pauth_qarma3, false); void aarch64_add_pauth_properties(Object *obj) diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c index 2963d7510f..67c110f021 100644 --- a/target/arm/tcg/cpu64.c +++ b/target/arm/tcg/cpu64.c @@ -198,7 +198,7 @@ static void cpu_max_get_l0gptsz(Object *obj, Visitor *v, const char *name, visit_type_uint32(v, name, &value, errp); } -static Property arm_cpu_lpa2_property = +static const Property arm_cpu_lpa2_property = DEFINE_PROP_BOOL("lpa2", ARMCPU, prop_lpa2, true); static void aarch64_a55_initfn(Object *obj) From patchwork Sun Dec 15 19:04:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850999 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522448wry; Sun, 15 Dec 2024 11:13:31 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU2M22s6g3YVhfKMsGytttKhYcVLq2AyIZqrfEG9/uWKWhstY673jHJkII9JBiksr+tkBayxw==@linaro.org X-Google-Smtp-Source: AGHT+IHWlhZZCHX94YBmQo2em4z9mioqcVGoL1ctPCsBdoeEYnwhTiSjjQkOnKeV2U488+d2SAtt X-Received: by 2002:ad4:5767:0:b0:6d8:7db7:6d88 with SMTP id 6a1803df08f44-6dc8caa1257mr182617926d6.28.1734290011652; Sun, 15 Dec 2024 11:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290011; cv=none; d=google.com; s=arc-20240605; b=GPrFRMZHwLKmPCRiaJ2p2/jDYyvDNX9/WaVsa/apfhdtRXB2Z1ml/DhmqRBwY6HSYz 3RSbBSiEerRxf8nCD+u1CI1tA2yTmCATvhUtuJT8oBkinrKUEzeArXou7+ZGZghp7wA3 w7Z2yxuBucsX2tssx2ZpHS8tbA/mIUxNmb9x3GwZVg75lA1EHSFjuQyxNi1CL5qqtMl8 ASiAsgS58Q9dxhptu/HPhOI3bm7x+c88I5kBRu9WS5TQFYL9VO35QWH++aiwcO5f8c6G yyKFXCSjUqC8ddfqMTiFhIwFFmWqgliUjBYcbRX64854GSxbCkWLpnoxoaadKtk0LYG2 Uiog== 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=QLPgagf/0DIVBUOtqLaT1jsxc0wpGovV01TxsboZpYI=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=eIYHwqerdb9kJoZz1FXM6C0HpkYH6gwVGi3B3gBQ13nOYY+L3KLefbib+XVVTp2zgP pkwQLXT3QHFWKHzij7r0F6MKyI2YmZIl+BPnHvWi02sIbP6IWdAvaVA6Co0XR8Mc5z6i 5p9EXIlWjaNRATyKjvrgDRfjfPSXgcTipQj9sbPdcmfEyhJdguwDLI9+Ox6/XLVGywIO zm6+Xep1o6yHweE8kac+fdBxTaVv5yBlwxkNgo3vTdLSOYs2xxfWUhEqZBnXlJJK4mNh ukzCkn5ac3yAg46ECtvn5EtjR1Z6uQh9OkfIir/jHE1mVx9EehO0LQ8ccxlLyRgEZafK gnog==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fdP2sgVO; 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-6dce786c5fbsi8410346d6.284.2024.12.15.11.13.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:13:31 -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=fdP2sgVO; 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 1tMtw7-0001Dj-Ah; Sun, 15 Dec 2024 14:05: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 1tMtw4-0001CO-M6 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:49 -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 1tMtw2-0000x6-Fd for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:48 -0500 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-29fb5257e05so1052286fac.0 for ; Sun, 15 Dec 2024 11:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289543; x=1734894343; 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=QLPgagf/0DIVBUOtqLaT1jsxc0wpGovV01TxsboZpYI=; b=fdP2sgVOR1HSzC/8pHIO0vRYJt4p0amDiWzNtix4sXXotvLShME+sVeRKxdfe/aobn PBxqZPazWFZwNLoj+rNOjeXsTqHoK7bb/zthntI8lCBZMAbyxOjzcQqjNwq4rZ9wXg8f zN0hJHNfN5pOT6SatJjvc36QjYIVUa6+WEGZmBDyKqVVgxOUDWnAvqxNupzPo09+OdHR IoY9mr5LsA4f51YQBIsqkz/o1mBnThkuIEXAf4mwZqSlxi4vi6TzhMvj+3wmUd+WTNpX Bxj7TEgwg+k7YhtEX7v2f32GHU7v7KqqiGCJ+kDnRMj0jP5AlBX99ia2SE0mXMLE1mI/ ymPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289543; x=1734894343; 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=QLPgagf/0DIVBUOtqLaT1jsxc0wpGovV01TxsboZpYI=; b=YrfHyPSTnQ2Rf0NTbeaz3BJTDrVB7OKeMmQA+DgWNwTfUIob7U2EjGasMox0qUnPWy Z0q0+0kdbGOVI5dSdy0CuNKd7hvF++vfF+AHA98Tp2zSpi0d/AGGkPtz0CV6CSDzza2b mBw5stp1Wc09Crv7kEo7aPzqCnTyIviW32oeP2/6ltvKJZ/xu+Ml89HNmB1kfpEoJqWF v4SZjzssBXNthIR1SpLA5PCwmE3CREYjf7GZLOTblc4BPLtjGSXgTCwKfo9y0ihzknMJ uYT0/u0sOTDp8Hf/4icrwVu+qXwG4sweWbGnQnZz6UCYJAlTeII9MldZrNuiWt17Wnj6 IsYg== X-Gm-Message-State: AOJu0YyGfBCjwIOxS3lu6MWqp0xZZsUvCJVNAhpxpIQbHDC1AmJnft3C XedTk45WBMz8DRbT4WweNXCzDkdMQhJk+n4b14H6cXpihg7N3lXSeuD4FMsZ6sesOfFJdFrpmvo UB+OFWLet X-Gm-Gg: ASbGnctqtmzddbdApwBcTnsXCr5mtLsUptwaBaucGduZxRr+k7RDncnRbSgJEmS+pOs VRE/aey9fe80AdIi88516483LyoP5/0H1nokajy8tfKU2rbOV+5nlubPRzqnRVcRdm/xtLK6t+i VBvg2jdp73lhSx36GwFeRh0eEz0uyOlPlp0LuZgGG8jSz4O+7+DjZSqq0UrAObQkwk/kl489vWr WT2XeOLlNZ9YiA1LZZRal/snC40DwG0qQKGXQ+qCzsoBxqmlWLqCpStRb2AAnPEAcFSGAZoyFmQ Qzw4Hrr0c0xn0FfvwBpUv3zZuEkqk2+t4rDubU15Sv0= X-Received: by 2002:a05:6870:9a0b:b0:29e:14ff:2f9c with SMTP id 586e51a60fabf-2a3ac6caedcmr5621551fac.18.1734289543712; Sun, 15 Dec 2024 11:05:43 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 02/67] target/avr: Constify all Property Date: Sun, 15 Dec 2024 13:04:28 -0600 Message-ID: <20241215190533.3222854-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850996 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522321wry; Sun, 15 Dec 2024 11:13:14 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVIk1dMTn7aCkNlvaVvw4VI8P7L2dL5wep4/wJxaoOWL9gojnrgGbHxsOz3lukzA/pO9nG3/g==@linaro.org X-Google-Smtp-Source: AGHT+IG4iFs5X+JIfrHuMEZf6Ts37pBQG+UOlpXqphSDqIahuxpeIZADNjNwT5bUK/K7UIpKHK59 X-Received: by 2002:a05:622a:15c2:b0:467:50b8:63aa with SMTP id d75a77b69052e-467a578c2f3mr148171191cf.28.1734289994000; Sun, 15 Dec 2024 11:13:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289993; cv=none; d=google.com; s=arc-20240605; b=IkvVRHG2fJAboCUBuzjNTa/FmUpSc5QmKHbEL1/i1dJY/M9NkSDjOWwpryVDBos9kA rbXJVeB34ZY4AQrrsbeHYS/DJnzzLKpe2MZH0dM7cFGZz4QuagRoI1S4goQ3YR1njgvb fN1QczBsKxi9sO4SzLI3CzsNZf/5wiDg4F8/Zls3pjC95ptJqjcZiBdqwaVSNNR1MO0p im061qE12fiu48AGk392diJ1dw4QlrUOQLCi7FvKkhVbt6YMZYONnZUARQiKlryyJbJk sy73NIWG6mPVZkmdtQqIZ7+sAdGeC09o8U+/FGt6twSifw0tahOexdsqysG2sOhNXmZ8 EQQw== 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=DoZpJRY8pbU5IfeBuTJpEfz/DDHq0VOQk4NYh61lHhM=; fh=cDKmX5gjrVe4SU+SmII+CSpViyzsKuB0nV918CKg9Nw=; b=Jg/eqjtSLRpCtBDQGf6/5aDLH/RVezUTGMqcsbkaHJq32j9/0MNSzqH6yKAB28JKVu deBr/9gFkLaGrw3YquEIxbLDu4IIeXYJjammiy1yBltHoarSzo+c+t5Mje1gKS49sjYi SvY+thkgJpcNQv6BOwXPLYnYYA5HtBHjlxUQkMlH1vQ8hdj3ohwfHkU3WU60/YYECQhy 7lbuxZwUsCRvHVLrRm+Wl4k5nm2W4IWzU+HqtAAB4yv54gJ0MS3UDi/AOWxAyL2qjUOT MdNfFPks6twXNOj3+Vd2Xl7fs6wOw/qYmr98zsA27Xrw69G3dLbX8d/mQaSh1ifcVtjM YbQw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cFpCw5Nu; 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-467b2e864c6si58620241cf.303.2024.12.15.11.13.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:13: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=cFpCw5Nu; 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 1tMtw8-0001EI-9f; Sun, 15 Dec 2024 14:05: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 1tMtw4-0001CP-Sf for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:49 -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 1tMtw3-0000xO-Ar for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:48 -0500 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-29fcbf3d709so1107356fac.2 for ; Sun, 15 Dec 2024 11:05:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289545; x=1734894345; 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=DoZpJRY8pbU5IfeBuTJpEfz/DDHq0VOQk4NYh61lHhM=; b=cFpCw5NuEM8bFoMpGp/VjwdQmB8vI1ykeyzlBbp0D1VQHqJiZXJTKzeEFZgm1u0dZR BNHLaH0aq23nE5o+HO3gIIcQidryhW1vxcf4pC5bQp5dzstHiWlmA/A9vsv6Suw+s63S RwMBZPptX9cMr5fdzKrXAQpWYHqdV+xOz+lBEeIG+V1wrPvYbICE4aSwilQiTynhDorf L0WIOvPbrBBWjYE1Is4Fd/O6cIEb+lVntt7k4H/mBx0VYs5sTAhzs9Nzr8DdKsG1g5Fh RND8s9GwF+rX8RCQgdIfPKybRTqxd+3m4EAyNoGRriaRnvyrfKtbrIhhnqksuBeb/9k8 otjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289545; x=1734894345; 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=DoZpJRY8pbU5IfeBuTJpEfz/DDHq0VOQk4NYh61lHhM=; b=MRgYuepaRdmexquBij8vJSSijw5/fa6bU7QLXw+YHyZT9+oaD+3/XGcwkz8URBFKQO fpHuWTpU61pLsZRc5JimXQPbKmrAI9JPyVH6cXT+h8mgfDMtWr3qv+GSDeqFK1mTAjlg 5uKQ+H7wBmDQe0cKAnHUxDWokrf0QAa+m/WV3UZeWcx3ZS7z1tBbrJD/ey621gkRhAB0 jqAFt4oOxN0fffiHNK8Mmd+CWFU0XM8xIyKcv5EUiGC7Lmc2dzwMbpw1TuDbJ1USOG5B Iu4V9A30esatnEEbQJs5sRnWPQr6EiKHL5X+ar7cf5pPjaGuQ8cXR1fkgHfZ9jhnb82t L/7g== X-Gm-Message-State: AOJu0YwOyGwmhA/6Ff1dwA7B1PxAD3CDbvB2M7Dgmy8OfK0tMe/ov6xm DOQSIEl6LyZ6wW6qpcyuLojM+a2eNUTb8Qo0vGcayawf1hO0HESHOJs2SpDyFsbiHi8VIXrK52u PquaVQtxR X-Gm-Gg: ASbGncsqaTK0qGiP2DIlcUDY0gBcc4qQSnuTKO+0vajablpcGqjv986UrJfe7MS4CmO ihYQN52TOkGN7s8EkBB8GmZ+6ro+eh83fhoyeBcmBtwRehHyDTs4lE7kblV4xYwNlDxHw9H8lt2 YtMb6gP+7mH59TSMyjnXxluCEPP1m/+zHpOcp0QtGbM+/Fsp7tSubw4+fIHR7CPe3ZoTih1BsWN xzWD/h7390PodQMzNYawutl0UFqlSpSCdcEprhcFXqyHr22vZ8EeP1DDEIM9nysJO52d2yKtqbW KQDlpD5YE5NRGxnG9RbBw1pRPD51N19psN015DUABPA= X-Received: by 2002:a05:6870:2c90:b0:29f:d0bb:618e with SMTP id 586e51a60fabf-2a3ac6dcd39mr5785024fac.25.1734289545061; Sun, 15 Dec 2024 11:05:45 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:44 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Brian Cain Subject: [PULL 03/67] target/hexagon: Constify all Property Date: Sun, 15 Dec 2024 13:04:29 -0600 Message-ID: <20241215190533.3222854-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Brian Cain Signed-off-by: Richard Henderson --- target/hexagon/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hexagon/cpu.c b/target/hexagon/cpu.c index c9aa9408ec..a70007245e 100644 --- a/target/hexagon/cpu.c +++ b/target/hexagon/cpu.c @@ -48,7 +48,7 @@ static ObjectClass *hexagon_cpu_class_by_name(const char *cpu_model) return oc; } -static Property hexagon_cpu_properties[] = { +static const Property hexagon_cpu_properties[] = { DEFINE_PROP_BOOL("lldb-compat", HexagonCPU, lldb_compat, false), DEFINE_PROP_UNSIGNED("lldb-stack-adjust", HexagonCPU, lldb_stack_adjust, 0, qdev_prop_uint32, target_ulong), From patchwork Sun Dec 15 19:04:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850967 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520258wry; Sun, 15 Dec 2024 11:07:20 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVMI9bgccJMyGgLTKyyAIXPOOnSzBeMSTjrmTnJpt9+1Rcrvrh8KXhTXZieAo9GEmfew/VVbQ==@linaro.org X-Google-Smtp-Source: AGHT+IF2A57lG6mDUXcNb+kdBReruLqB7xR1LqJ2lG51uemErehiDXnM69jpccM5zwX7go5SLb3Z X-Received: by 2002:a05:622a:8d19:b0:466:aad5:2161 with SMTP id d75a77b69052e-467a58756d8mr156307371cf.54.1734289640727; Sun, 15 Dec 2024 11:07:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289640; cv=none; d=google.com; s=arc-20240605; b=RtG5nvmfZUL3PHOTuig0Fl8wBW0a6YJQYLsyfIRmnKT3uqCC+eXum2gfeYppcCos29 zMCaA3cbt5tn0+B3fmOtpnuW5hTLsPvMKryW+J2bqq32twO/GmhVV3rI+dOHbhumxn43 BqY3p/KoY8aBXZfl9jYxRO7/n5tFdcQhi/iryacBFfMkRfFyLpIDdzoqfgdRRRzQygRv lh2syYqKIREl8ija5j10nsm40FWea21Qotwp2yrPwt5POng0hbSwwcfANdg7IG348vcP uH4h7/1YPfnxKosBHfNCBQ4D5qrzkHii0o3C/7jfiCeI0fUMz0Tr2o6snoEySo7GHqbQ PRrQ== 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=sN3IZrOqRjyWRBAid7p/5COHeeEB3FN3k7Ao6MrzrI0=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=ULTLl+3YXTqhRb6MlSe4DJwRBhFJDNJZxqkfsMuJqLwBLXS/INLO2HqYoW8qCriEt9 rZMxjo7Qhs47G1r1gkseDp2Id93uTpInHDKlTo4udLkHyXaa1TDfk+A7n54OdFNqmev1 LIxl4awN3Qv8FCW9T/Qt6uB42a2toky4gzaz3CP+bITdSJwtnRkdIVAqfjPCLRCed7EP /gRBj5tW5bV32hQKv99sQ01aauzs442ESXwqn2UDilSTYF9QrogGKSV/ackELA2CL/9n TZeQGQJwSdZEupu3KlFf2CbdlXKUBzMb6FL1t38BbJPNfm800KhcJEXvDFamppiT7MpP ZU0A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dfiEW8+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-7b7048f74f3si499265985a.666.2024.12.15.11.07.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:07:20 -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=dfiEW8+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 1tMtw6-0001DN-QC; Sun, 15 Dec 2024 14:05: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 1tMtw5-0001CQ-9u for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:49 -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 1tMtw3-0000xV-Mi for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:49 -0500 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-29e65257182so1627808fac.2 for ; Sun, 15 Dec 2024 11:05:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289546; x=1734894346; 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=sN3IZrOqRjyWRBAid7p/5COHeeEB3FN3k7Ao6MrzrI0=; b=dfiEW8+LbjU7s316B/SlwOS+ONQaohT8xlgbkQ2GXduOTj85PZ9XTWHGEDmeEW9CbH 1Y+nENAWp3adITA8gz8UNDnwIjvlA0JCZVMdzQETtQ54s0/xRml3dOP7BZLXTtirUYeo WnWRLp09d60VdIAIa6NYbuybCQMad+w6kJ1DglX5+M2e5ViQLXZ4vvQ3C9FRLgcZqjDM 823CwnJT8kfbzzX84SuNJQawJi2ysSv6Ghy+mVmLxHUF47amkjnYj/RiXtyreYoE69Z7 ckgnDe0nZgm1WTsS7JM0w0J2oto08SgFN4sjzCtOA2yjKx1DqObxpHy9lydsEr8WQ0IH mwZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289546; x=1734894346; 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=sN3IZrOqRjyWRBAid7p/5COHeeEB3FN3k7Ao6MrzrI0=; b=NFcPDThhh251VAvE44qkHakXzIgRKsIRIUXiCZ95U/gh4l/m48N2yrHJKjo24O2gth Ckp1z3HUN1TURUK4ikW0QuURav5vAFL9e8vQxtfyPuRAURiHwyMI4BMWYvB/WnLlEN4W SrbTnP1J3e26/PEMXR7I+2ibsnlENi17Y0Kh0PPUBt/SNRrL4BiSlg5G0LBAxLXluR+Y E0UbWQmKQoh9FTivECYusGqRSxERs5ddjriB0H4l2ZUi3p7OA6MzX/ZQ3y6NM+0nv2U9 R+sitvWqoJjw3mw5Lw9ZMUD2X6bVdOh6OYIn4/bKYIIdSeuVbPMq7KUYRNc5y2sjPvtC OAIA== X-Gm-Message-State: AOJu0YxBBQ2qEEmQM28OuloSZPUDDu7aV1XHKEQDfrV0wH0A3eUjuVer 6n0B95F8RICvqYQcHewObyg+nx/A5Zv6nG+Vxr+yCND3tbXzyqkNCpc5cZZ7/YBCwUV994rQADK K+etUS3Gt X-Gm-Gg: ASbGnctmvF5f4E0mYu/FTum3DPJqMHKAMeVHV60kqlVUy1+WDfvCorevJClptOGzuAZ FzDoRFQBCzEG1rnP/7Entyj3K9D2wYiQ+ZyRSHEYRhyuwoqw01LFezw50UV0TTuXNGuaMX1FBcl mAJuFqxnFzfmjGKkAkUVcPijqStI5ee/pJCW+qCayQxjisU7cAoq1kz0cXUUcVq071YFR0h9v1O TRHRv9YZO1ajlddBM5BwtvcLDKIjFXU1qJwTujZuwnqsuefZot2s8PWwbhb3Qfwq3Fvk3eEWNkX PzI61eAik0PcXGICfSjVhwaS/JHTnyuK/UO3z3u5xbc= X-Received: by 2002:a05:6870:6128:b0:29e:547f:e1ec with SMTP id 586e51a60fabf-2a3ac8c5f5cmr4722755fac.41.1734289546395; Sun, 15 Dec 2024 11:05:46 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:45 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 04/67] target/i386: Constify all Property Date: Sun, 15 Dec 2024 13:04:30 -0600 Message-ID: <20241215190533.3222854-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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: -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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850968 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520261wry; Sun, 15 Dec 2024 11:07:21 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUw8sURM+hkJamjp9SBRCmpDJ7uZQVwqRmQ4XviLP49ZE3O142KOigHycSH3x7Y52lbh/Z0ow==@linaro.org X-Google-Smtp-Source: AGHT+IHIswAan9dDdrH2jzBtDEMyw2pITbO5VbqZo3y8Lugoqgz3lDPEkN070PBDb2OT1dtCgLx1 X-Received: by 2002:a05:622a:204:b0:466:a3d2:ae44 with SMTP id d75a77b69052e-467a57239c8mr159877251cf.2.1734289641242; Sun, 15 Dec 2024 11:07:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289641; cv=none; d=google.com; s=arc-20240605; b=NY/Xk9gRMF8YftPeU/1hkqyLALq1PfQMTc4pgoIvtEpH5nDLPYeusezoNDSfYiulLd ZOqQoxIlkHivGahJeOxdMaOKhM6QKmGrrWo6ChmgWeEi00hvksWall1KWVs4DLW1xcbG ApbrOdrOnvOgVOyPoKtCddjebF1Nc66imhZxO+x0lr5Kazj8YQgVkIPsv/kmZS522766 cEdFyk9YGEZvHB2OJbp+mhLw28q0y+0kKdEiWz3ctQ6UZFOH8/zWNYivUZEzugdbBCUe hh0KYqEfoEOCahjU1nA3yv0XSzPE1z9ECOaHpNr/j9fAlIzy56DUAFdurc383HaYQPu0 ZYiw== 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=MWAg3fJJW/8AMfM3/0VLXGSZais7amzaqXuOjIhJ+9w=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=OZyOfeTmIKUFTqhwrtlkyi57FwHH7/bBxFiQ/v6B1/WNbPUKP/cSlyUOd071X9kPib mg1XFSfw08PJcbKa0LVAgw6Ciyv7qQYEZzbS/SBEeDj+2RNsVt5Oba7s991OrBjCX8o9 ko2HphrwrwaKSmMmxnZoZ9LzUVg8nP6WB2gOpzYomqcrija1dp6/zSvTmTMntpt7Z0ga l2WGEWFk3xD+fBQ6OAp1DX+K1wPUGAbCGNyE98y0Ujp1YLRL/TqtKPmxiNWNRFIGcG1h hzqJNWxZsZNtJy/fJABqGHoS+kasORAjoaTpPLxsddKlSz9KCwc1qHdM2hNYm5xaEgN1 QRMg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aR8QjwEh; 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-467b2e871b2si50953731cf.284.2024.12.15.11.07.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:07: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=aR8QjwEh; 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 1tMtw9-0001Em-D0; Sun, 15 Dec 2024 14:05:53 -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 1tMtw6-0001DI-HJ for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:50 -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 1tMtw5-0000y2-2S for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:50 -0500 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5f304ac59b9so1729665eaf.0 for ; Sun, 15 Dec 2024 11:05:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289548; x=1734894348; 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=MWAg3fJJW/8AMfM3/0VLXGSZais7amzaqXuOjIhJ+9w=; b=aR8QjwEhy9Pw/WzCw9ax2m18BPy6LyQ4kZNmfI+LgWt/n1FymxD2EWImx+X07enxoe 69KJMUbuADD6Ao0IC2oFto3XWV7WYoGQXp5JjxwtTyLgW7i+BuLrZmEN18+tUKXffQ0+ RN0WnwhU2aKL7AdiNsmiJUtkSfRN+2A/jfoRu/Of/6pzjOTTi1E3RiIlAI0rO59b2h4F VH+Nd4t9jjqNSsbwKnP8Y9xq+SnyM50wDKW/19g94GC0IyRlm4IZoSxjwYTwR4PPLwwB xK8PEDyzPUu6KVc6sNwFOUow7ZOkIwuMJX1iwdgpBgexob6oPgR78UgEN60k5h7Lmgqx pUMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289548; x=1734894348; 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=MWAg3fJJW/8AMfM3/0VLXGSZais7amzaqXuOjIhJ+9w=; b=QOZa5jg/axT2YeD3+jr95LXtVX1Gb3H8l1PolyE5h9i4HhCLNRS/AYPz904I9uiCJf /Ql9dGZM2fYT0JF3dDa235iWl8C9griBhkY9160IlV82r3B2HhYlkkk0uSlmPELh89WR M5nntLJv4fzyif/b1Daw+3I9vnnBF8lZDZtYjptE0uQsqYgJfIVz6o7IXoxAauC7ZLAw zvO8pAS3NmKNmZrphcAwmKgU6WOCgKIEmYgompB9us7kBdfBn123llZ3pKllCcFen0Vb AIcXqZTB+SzsGHQY5Ej/ISkfjUviJcvNyiOTzGRVkPIPwT6ed0b3cc3jhy/3+RAxiAAG 5MBA== X-Gm-Message-State: AOJu0YzbvYA9lJdAXMv6Tma3q1iQzCbTnV7ZGrf3qfD4BZYG1PkZnomy yx14c+jx6K7rcNSA4tNNTvoln7FGyW9EQ35OWD2j6GTqXfgSgua3jCKjZrUxCSWhcmiCPqD0aIZ nFhUWyS4N X-Gm-Gg: ASbGncvg5ZQNdPa5Yz8EktxblytkpbXIATHrERVoaNgnDqyOyi6TeOgR7oAqegAOSE1 6+VFEe1uWvWjFQeHofCOnKEtxdwwm8JS8mtORJbv76/cnXL9eMbNUES81SGpEVEmfpxvfRjxrf1 bOPY6+LIln2ZqtpGewX61rLFQHyWuOED8S0drno20Eajj2f0TToXDxh2vSE9aCR67DYDiZLxMtf QdOJOslbTB7nrrXKTSxNqGsCAU0NEpJPyfezrhOkrKwZv2VOe9YSQDJFaQDL8WzAZji5OmyNl0g r6kZkmFCVNLngfxIOnxLo1lOOTBcEHgGM0Wg10GYsTU= X-Received: by 2002:a05:6870:9124:b0:29e:362b:2148 with SMTP id 586e51a60fabf-2a3ac7b0172mr5259173fac.19.1734289547776; Sun, 15 Dec 2024 11:05:47 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:47 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 05/67] target/microblaze: Constify all Property Date: Sun, 15 Dec 2024 13:04:31 -0600 Message-ID: <20241215190533.3222854-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04: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: 850965 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520238wry; Sun, 15 Dec 2024 11:07:18 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWuxN1DdIH3mrHhH6AMU2+glcSteEMpBQyT6BjxMyg33esKxvpFMicHw/vSyXJB57TjmfaCng==@linaro.org X-Google-Smtp-Source: AGHT+IEOAj8XSIRQcIgPPcKIIUqIOgY8lpBAp5hUelZeVEWi4r/G729LD2Couw1wO4Am0rJg7EcS X-Received: by 2002:a05:622a:13ce:b0:460:8f80:9091 with SMTP id d75a77b69052e-467a57564d1mr160460961cf.15.1734289638316; Sun, 15 Dec 2024 11:07:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289638; cv=none; d=google.com; s=arc-20240605; b=SCoagntaJ4jtIpFDpx9/tftm7upzx0FFn1/vxGTHyRXkQddFT4DB8bx0dXnoObzsrA WBzYyu0nSTsC16Qv6eAC44Lvau24KhrnHFsV1ux1VBsM+hWeyMvRy1o6mmy7GJkwE0eO tGoH8dSHgsnGaOjpTHhbvZnbkEw6RCEPOzKvyownmzt48QM7ejiI0DHFgjc/t3fc7bJq 6xyrdc8bzd3Iu4IKQ8CzU1BdXw5ArZcZDU1L0KhYoQE7luGx1BAazc0xeSfRAZmCNMDr puWEnSKlFoJVQjoz+L8ScIFFFIN/pOXRY9kFDX9lPd89B6CDaXLjwTFo7vag8rQerSlZ 9dew== 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=JD4Ly1fGe+tG79ysPVZO91OamGy1FVFI1FilJt7wv18=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=kRtRdSVdTw5oRgT/0f3MfGyw05DggHKC6xHHxQZTku3HPEoP2LA6IbQojsNgU1owkr sK05HaYQQU6BECQthsxvjdx4QYg8TzEFDoVHywc4c/0zEgu4aBRdb9hVnlsWAEzohMGX PTm3oQVHajU8aGH8eNr5EFaCTFvWJu24q5mF566UeavqHEQfHCwFbWJEf69BsoKJw1yr MvEc4n5wQ9F3Khr1lSXEE9bvwlYQ2VotZNg4XDaNK/vF7CetgMzn2Q0lX0+P8h7JxaDi kyK5R+uYlZ8fuwaWbVxHbYPP2LkuSLbshXl9N7lmVtXQhkjGjH1J6nmAITIR1oKFjvge QqwA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tyfJVL0v; 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-467b2c96b70si50757361cf.145.2024.12.15.11.07.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:07: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=tyfJVL0v; 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 1tMtwA-0001Ep-Dw; Sun, 15 Dec 2024 14:05: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 1tMtw8-0001ED-1P for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:52 -0500 Received: from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtw6-0000yj-BL for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:51 -0500 Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-5f2dcfc426bso713488eaf.3 for ; Sun, 15 Dec 2024 11:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289549; x=1734894349; 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=JD4Ly1fGe+tG79ysPVZO91OamGy1FVFI1FilJt7wv18=; b=tyfJVL0v9hy2Eb3F8zkGjF/BfE40glg5/8GuXTNO1bpMUOSvB9zW5YIWqUXbBOxXPx YkuMTMKMrHXIQNv6i7qQQrbcWvqsWq9EExvTt5dASH5YXdhQa5IGWu2fmabGMGORlA95 E9cmCsyEPBvdN/2ZjTGzWpZAdPSWBdtf3d4S+Brw+cUgN+0xXlkUwuI6bltRxOiflHIl XEitOGo0D5WQj1FO1ncItmzhYHQNQD/C7tN0MO3dgf+VY+NjR501cSemhxS5t6d7mvls 8GoOqjUUhe9EQUYzpCd5/GnXwQIJrEQ7dAWb59LVRPm8FsdOWsqKQhRPLB9NzAq7P6Gu xEWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289549; x=1734894349; 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=JD4Ly1fGe+tG79ysPVZO91OamGy1FVFI1FilJt7wv18=; b=qbeKyEtkicaQVupCTqDnaBUIsfEVV9eMz1sYDS0EzFCbJqQ5BRbQXXpXA+70UxvtUH 1IYFOpsee06u1i54G4RxSeYkdtw9tH7vXHmngOEqFxig3G5zMnf1dvQzBo+wF2anGvZG FiN5IicS5C6QCbmF2wvXd81ITFIZaC8+fErlgoUg6paWGU+wyW/V5YtE04slMvZMIfNi +hMdP9u+LMi2thC1VSqeYrUJyCmG5Dv9m0zn2MCKpUZhoajHVvAZOT507zLFVpksROtR MpG2YsWYeMAciYI3HWDDouBYAnKipHmLCBy8TJ6JVxiPOdDtiLn02j3kAZeQyJnewbmQ yovQ== X-Gm-Message-State: AOJu0YyZ+SVi6v4ib+vxj0IJWrYHoBH++cUh3iq1efs2lW4XbOvaT9Ja r6HVrK/zmDzjIIn/vobaCvL8tltA9US0wLGFrfHUXS2sRl2Gc7SwI8yHd1fOM7tiEoXlIzlMOp8 b/u9AqRdB X-Gm-Gg: ASbGnctu/+qKhVPuzzLa3QGlWN9wN2aiSikQ44puPf+CqK+k4KfGt1USOEC2yS4Xw6i nyzAIvrWxpwVR4orjl+gPx1qGktvZ5PV/+reviSETzQRXEq1Z7Zz4uMsof0ULngTgAvZQXcV+an 0j1jhxvQwAv5VtKIvj2NhIS8Hx2VU0w1cUWJGQwBW0Y/mTe2pNJEKmcNuDCImsJ0zgtutInNVXG r1mlvp3s2nfRvtDCdntb0J6ZYFRBaGykGTHfIBgkgtt7iq2+xBc9ONvKqSGqvhU9HhZtbKgigHR xf1iLOcwlpkrIZoPKuej48Z4HrYaL6y9dAIO0IwZKn8= X-Received: by 2002:a05:6870:e87:b0:29e:7603:be65 with SMTP id 586e51a60fabf-2a3ac49607emr4487815fac.1.1734289549183; Sun, 15 Dec 2024 11:05:49 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 06/67] target/mips: Constify all Property Date: Sun, 15 Dec 2024 13:04:32 -0600 Message-ID: <20241215190533.3222854-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c30; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc30.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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850962 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520118wry; Sun, 15 Dec 2024 11:06:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW3Zm1Jx9CPwYrRcCZpzG+7na/kfBBhhGT/AOiVv2+mDYa93sMX3SC2oduAhIYZB3aOnkCmZw==@linaro.org X-Google-Smtp-Source: AGHT+IG+Vn8lWpB8itrqqiGoJ4RFoQTum43tS8GptUkD6mogoTHRLt1gHDAitlw570wzftNQpDOL X-Received: by 2002:a05:6214:1947:b0:6d8:8da9:e418 with SMTP id 6a1803df08f44-6dc96874f40mr188888166d6.40.1734289616846; Sun, 15 Dec 2024 11:06:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289616; cv=none; d=google.com; s=arc-20240605; b=TjFVE0AUV4eRqfsmthjqe7UNM/9JoAwd6sT4f/lNPk/c26tqHNu3hR+UHTaul8bs/5 OV0VSFG1HyseVfhEvFuni/5ZRmesjrCol308mOZSsiSrhrDV7rE59DAZq+nBz9cbNorO +eIwOrZhnwJfHKXzwNY11N2R3PtEpW+GxElT1hZ8w/axDuovnqk8ZpX9Fd0ZKtnUQdjL 5m0cxp4z714MT8lWjaRyVfFDiCyIGK34kIl6WfSvHHH77QBIqndTJstX5UbHjpKxlwd4 CLsJeK3Ymf6u8tjchMlZwstBiTkcN6MaNozqNU+2N+dW7W+nM83CsyxX0b0Z7KRfbxlz MLcA== 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=4KqTM/+wxwYqUqyOIxknRrXlNo+1wIkfDm+xIm6YiEI=; fh=T7oTPSt4FXKpDr/tVBHaVSUZbe1a6rFtypW2u95Un3Y=; b=FNGgNj+UKonCtF8IVvExl6OZsp60sHUPqICtfvgmAHaO0ZOogqi/RznmiSVFvJpV/N s4/fZhmAr2Fm6Us306JqPFFOl0/uNQ+bZiiVNI9YrK0rQ+v8iBR9azCu4VqpQuXs+Fq6 bJ/D4yHIUaTnfPktQ8RfIeEFDvdgAIGfF9TOCKVcXaVHcloTHfw6+TII2EX8gu9nXwZN 2R7LhrvX6o6s89RdDKP5q86pNI1T123NXY0Ra/k9onBw5aBCIsRlqZYJR0BzZ58YaOde WaeFcQ7EZSS358Gv35ORUVkW4Pu1r0Ib84RcfWswzugPahO4hXjq5IyFnxSkZiqiScot QL0A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L+MhTAld; 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-6dccd1bb090si51062436d6.56.2024.12.15.11.06.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:06: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=L+MhTAld; 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 1tMtwB-0001FV-Vf; Sun, 15 Dec 2024 14:05:56 -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 1tMtw9-0001Ef-7f for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:53 -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 1tMtw7-0000zS-QZ for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:52 -0500 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-2a3c075ddb6so1026509fac.2 for ; Sun, 15 Dec 2024 11:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289550; x=1734894350; 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=4KqTM/+wxwYqUqyOIxknRrXlNo+1wIkfDm+xIm6YiEI=; b=L+MhTAldJmdGi24wKbiv5TLmw8mohHx8UxagdnPrJTguY7s7aq+UcZfwnw8+1AU96n r9Arc6xcQYy7Bm+tvUUWnBBNnSv4B4s0umUkKfWCCgrVSOUINjv+gtZb2V+U5LASrKl1 /ySuUf1kTgDEZLlka3AMw7ExvN2AWaFEaQ28u++GHkyZuc/h+TQSmQ5ejEa4pq+MYY5o dXSS+OJpfvTkxppKYk88MVC9FrLjBBTd55dgaXEUJvlVi+ArsiRdZAEzzT2YEMlq8Is/ ipdNfxa1ggd87rQMii2u3sd4GmiK5+/46dog6VkKWzth58e/WFQEm+ashBf1Ew0i4Bta 0IRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289550; x=1734894350; 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=4KqTM/+wxwYqUqyOIxknRrXlNo+1wIkfDm+xIm6YiEI=; b=efNEMI5xQf8elMPXjZr4gVTSZYBhFAZVnASk9kakSbhCpSqQieZQOL4lNrA7FNP2xf tZgkcRvFhx0Ne+pJ+aJomqUFx1crbkY4qks4MP/Jf8BVxst1yTi0JFMQCOK/d0vFv5Hv 1q4FUqlkQIRC5DL5BpGlosBMBogeQbSzdWBWpISyOhdEmxHJ8u4CELqBAAW6DfhsGdqR e2AAI5NZY6hvlBIsnNoNUwd2BTkKSy+DQnvtAT0nn9gH4El67XVtPZmBnhj49BWLlFuC jg3kOqBWPUns7OAq9hXnQGXL1RTzcIQIwBtKHsGMhPm5GCDC2WAO/32I7GPt64u2H+Jk V2og== X-Gm-Message-State: AOJu0YxY4O2iFz8oZITN+iDOUAhdoqxzV3iFYDHEDm0I8/DfJbfSdtgm BkXMbciOQoF1JWjELwh8ItLEsJOLHo57Mmst9zXEQUxFWRHKPww7uoteWNI7EwCH6WDCChnqYwG fCbsuT2du X-Gm-Gg: ASbGncudsWro1loZqISiWp/ImuwYQiWCUNgt9dhEWcjqO1YqftcoHBsnMjxkk5Mtlxw 8njAJ4HnsGSMqRP5XUOTkqKDngKheQx2H1/+uqIdSpnmSOhqd04qCWWqi33pI0BhEsJHEM8usrN p/PQRoKio2C2/fB3cTHfSYZyeADXslN7qlUwCnD7OhdNFt3N8V7kcouzYgBiqwGkt17rmj00qVo 4Y7VDvODvYGjKVeLn9XpGBEoqp1lmpu78uHpmQiH9LatuXBsz3VmLSO0NOXvoX60lQRJJfMUkf/ 6ZDrb1tfC3JAwxd9z2APi76r/fRR+cMETsL3XzO6iOw= X-Received: by 2002:a05:6871:891:b0:29e:5ffa:b769 with SMTP id 586e51a60fabf-2a3ac8bac38mr5487674fac.29.1734289550637; Sun, 15 Dec 2024 11:05:50 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:50 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Daniel Henrique Barboza Subject: [PULL 07/67] target/riscv: Constify all Property Date: Sun, 15 Dec 2024 13:04:33 -0600 Message-ID: <20241215190533.3222854-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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: -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 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel Henrique Barboza Signed-off-by: Richard Henderson --- 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 Sun Dec 15 19:04:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850963 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520120wry; Sun, 15 Dec 2024 11:06:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXYMVA3vkVvWDLWQ/SAuVydgVpjHAAgZlkgmk/ONuW1sqcYwa0KQ3vcN6jYoOM4Yoq9IVmNXQ==@linaro.org X-Google-Smtp-Source: AGHT+IHZBqhythco0iiWyrkdxnY+mSSZaz+JupjP0JtDV2TNuHKofE0/6SqdRkKiVsSIKgVsTSvZ X-Received: by 2002:a05:620a:7201:b0:7b7:342:a0a5 with SMTP id af79cd13be357-7b70342a0dcmr1108146985a.55.1734289616871; Sun, 15 Dec 2024 11:06:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289616; cv=none; d=google.com; s=arc-20240605; b=VPkS1IGh8b2/087/y68HKjWoFjg/s1oxPNmbnJ/D8dJfGOuoWfFrQBz/EMd9Pp4jo9 uoEpJLSXeyL7M35JkDLohHCI1hIKZM7nevIdxeEY6DcvbOyfpyBt3rcbIhBr/7RBHxa1 cDoAo2Aqd1I80f2k410kJ8AdLwA9PGWrDhg7m6nmG0Iyd9tPgFpxvEXnlR0WQlZwsfyL r3N1YQfE38fP5yqQGCJ6vpgbaSn1ngHPE09BzkI4EHX5aMmSqkkXGdpm2ZedywFEEkLN SggJyVl9RDwBaqUlyLb+rmnsSkuUAjdnL7+seICqsY1ZZo+IG5WT74UX3REbYMp9a30/ Ux1g== 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=rhqtvCsP7B/3GovJPeysQPzd4kcIcPuVsgvdiXaClBY=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=bbC9wTbflG9HkPh7tz0uAVtEfbSSqCI8nY3PoRsbIkkIjh/cKhj6YtWkWLQ6Y1YUL2 EPTmzMxCef9/YwIyJMEBMK4F/I0wxrgQ6uDsYOit+oIczvuIHxg8Q3EQnue0wrQOKehN 1CNeY3TphjAdm9suoLoJTwIeBDGRsGySYcqM7HoRIr1NhSpUEKJIgxHTrZ/WVVaWK31S JZzHI6Nz2wpwE8Lmm0ak6Qqr4+jk6IeHNtn1AUWKu5QVnpVXnSD7iXUkVW6wFG+7pVwW k6qxUN2V6NZWWX+ZMZhdmiFMBEpGuIC/GVi7rBhTcS9aybylLO2l5W0m/lmfwiPDMF7U rZ3w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GfsHjDXE; 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-7b7048bf50fsi525719185a.318.2024.12.15.11.06.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:06: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=GfsHjDXE; 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 1tMtwJ-0001H7-FW; Sun, 15 Dec 2024 14:06:03 -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 1tMtwD-0001Fp-Qu for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:58 -0500 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtw8-0000zx-VL for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:57 -0500 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-2a3a40c69e3so1499546fac.0 for ; Sun, 15 Dec 2024 11:05:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289552; x=1734894352; 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=rhqtvCsP7B/3GovJPeysQPzd4kcIcPuVsgvdiXaClBY=; b=GfsHjDXESWhZDPNCdUaPY0u0Y9PlsdrPZL1ijPBQEkFhQvcfRMk/peeTfKl7Ps7+ex F4Xb9PxS7wSHbSQSCSLc+d3AtaWF+ylikSGfFKN0WFCnZOOGuB5m6R/yXdd6dc8on7ad 6BYNAOf6QaX4GCwhgQ2hB+uzQw1RRtd826gTqRIIv4IAvwMbgB7zWxQB3A3K0Zm3dxw4 E5VvQ++OTAe5dRIzxMGRxLpabrWvlPKBSvqed1wcVWdNUawKAmscnloF1lbZYo6PRNhB 8O8kFZL4PyI12cncXWbATPw6+k2i+Zydhi8k5/kik8Q/R8Qde7fIcUhuvbmpv1dUtjab 011Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289552; x=1734894352; 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=rhqtvCsP7B/3GovJPeysQPzd4kcIcPuVsgvdiXaClBY=; b=S+PABZvMkFYOo8REdPg5Jrw9pszQ/HvsbKtRoubyTGzkcwPa8rjjVX9TcQup4T/Kpv inY6LLRbfoj35JGrzw0L/AFGlPGauyQ/k3AxF+XZwpaLExsb2Qgxyu1BzxKu+1zzL+ph AvWUPqEMFVNjmX+F2QbdSkqo/73BqGW1iOCMgqYOy3dO04n5XggD/vgOX+cBWIdTD4Q5 RuQyQs6mqNKMiyIDMZ9mXRfhXl2quVyB48u60j5D+mXc8G2PJXB2vikXAH8liqg6N6YV 7Y+z1GTK59iJ7y1lP4BQDtz2GauVhSote3gMF+fEeyREazXVpcHboCTE+cqf/hrn7vzs xfKA== X-Gm-Message-State: AOJu0YxEsCmab+eRsTC5vRLg1HTUniWCaVGLumDpKTunMnQCzZ54UZEJ FwfXgjaK5i1C5Yradpa8tkmFjf6JJ3dDJY01itRdXus9FxZxfnu6ziZpCp9PUXnBuilYtLwBrCF t2+y6RYSB X-Gm-Gg: ASbGncuSGghntsQBOpViQ/hrBKOO1E2Y8k5ocOxCR75exOe0Sq6WB2MgDQcBpcJz4p5 AZ8POuw7cjmW2qLlDqmGvuuSHcWn2rKJVttyuV5Er0vXwZcs6ggL9nEbnv8zNSmzw31lr7XYUGO GbSzIXiCj/9QUYyy9ssaLhVsWlm4Bx0WRSvePxcR0b2ZC/tt3VwmBBxqhpAHunRq509VX4b7EJl z2ZLZDJU7ohP7kiOwGwpgniGJaMd0yXeiYHFU4+g7Qt8wFHuHm3K6UEZi64n0CkydQlooT4nGJV Ma2Cv9/clNgHVJWggOj2XNU/NladS3qLH6fryCt78MU= X-Received: by 2002:a05:6870:4721:b0:29e:569a:f90d with SMTP id 586e51a60fabf-2a3ac8b75e2mr4369838fac.32.1734289551879; Sun, 15 Dec 2024 11:05:51 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:51 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 08/67] target/s390x: Constify all Property Date: Sun, 15 Dec 2024 13:04:34 -0600 Message-ID: <20241215190533.3222854-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2c; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2c.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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04: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: 850984 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521284wry; Sun, 15 Dec 2024 11:10:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUOSOiZrF2S3MMcTjhBKixpsp77v9XPTzJrM06+4Ejedr4MeA4QBkTZy6Lb8uif5xqSRsU59g==@linaro.org X-Google-Smtp-Source: AGHT+IH6JhKlPcDoVpWQc/mGu3DCOW3sY8C+3tzb8JIz8923MM3fCl43nK3OQz/EagPd6BDDILA9 X-Received: by 2002:a05:6122:920:b0:518:7c13:d191 with SMTP id 71dfb90a1353d-518ca2af698mr9475402e0c.8.1734289809014; Sun, 15 Dec 2024 11:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289808; cv=none; d=google.com; s=arc-20240605; b=HUnkbuZLASKspCcNfdhdY7Ng37wVy21jR15vswrwxBMQt62zkN3kFBw1hqvlyg3fGU 2dHnGESxzZXc4OJ6r3xfaToyLYwd5vBRaDgWvSc+fZNQEle7RWag6HoCshEi+PmSTwOd snxxL2eSVGHvL1MfR/cuegkGIiCFoB0sKFEfa4p6rECNl23S4kofWM/jtTnZXDcnZ2dR n2zWLo2O4pe5fjkRbYVudG0UzrseoSd17/nhoPh+90UfH8iGaEw8reHUW4DS85nQ0/EL M9ymvhHNGSlDC/eWAbkK8OZnxIlvFYAG1cafiUkjgH8SjUxVO6kMvJ73Oifv2z0s0spR rHbA== 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=PpFinQbLBbCXIc1LIL8UrXhYAzfU1OtCvzLR35OWdYU=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=eysJHHxo9jBl+sr+Cho/vRKQmGRdcwDmf3x4Thcj0WxAjVMqGvdf7UQtm02RC+Nr/T nuJptpLkcfRFixwrEoAxtLGX1ZduOu7bfC3gKacroIED8Pecf46olr9lQHoKeYgL+3P6 ZXjfvlZiK/Ct9EI6p/BQ0yCfLYueqKQcnozMQy2UPvh9jkMkf/5xlyeQs3PZ8YZsd6Ak yU3f3lOhtbszSVvaZih92dIWvWjNV1JHQ/Xqgeq2588D3w1JrHZDKD4Eze7YCDRirYbL ENVhF0Q6+D02VFL7/FLYb3uve1TPKSLxSHuaHXIxM3ZA0Wp8Qf2rKk/K5nDMKfx0a8oW vXmA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RMenslVj; 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-519eb7d1c4bsi995040e0c.282.2024.12.15.11.10.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:10:08 -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=RMenslVj; 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 1tMtwE-0001Fw-Ag; Sun, 15 Dec 2024 14:05: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 1tMtwB-0001FO-NT for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:55 -0500 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwA-00010H-2N for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:55 -0500 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-29e149aff1dso1087327fac.1 for ; Sun, 15 Dec 2024 11:05:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289553; x=1734894353; 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=PpFinQbLBbCXIc1LIL8UrXhYAzfU1OtCvzLR35OWdYU=; b=RMenslVjZuq2vruoMJsnKBDPoIICU5nnpPpsKf6V/FUgbF2KrmwUyrVRgvY+Em6+zi uCAGfjCsTEpN8g1Ty+ti8FbPN4IHfgDJllWYjKhO+Za7sNfzrqXYCPXZ3NKt+hkcvOKq JQSxklWaQwj89tbQJwVJztt6b5E41mwmD1o9WsBpmMyIz8Un037vU7jzNAUawhoq08Is ucYFZX6EXV1ViculRbVWEFTAVzwmMSeMX3s4MjuK1N1Bb+V8/zTcRYBfnIZSgAGy9vYQ tohb5jv2OvPeI4P+HvmOhRbGm+E+LQ1rmgdb9Wuqwo6alM7eIpVN/6txNjiJV4GqgfKV yaPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289553; x=1734894353; 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=PpFinQbLBbCXIc1LIL8UrXhYAzfU1OtCvzLR35OWdYU=; b=GXaDoZM6DNWYtVSJ14C88sHtf3rcIOs2LV4v3BTvF6BVfKwIVVNK5OGKyaHK7pXA/0 LeNqYbZouMC38NMOF3e6UX46toYrasX4egs53Xa1fNIOwkyaxjfk9pGmZRSd1AjtCZlA GxZUopjvl+i/b3u5dsKfvPbmdcwXFhleLy1CkeyoHbq8fbkUHIajwiz9Pl4Rivzy7blI w7CQPs2sBQq61e/GmEpS081JamsoTYdGnIV7+V7JM7ev80L6W9e0ekdf5RS5i7ch3FXa aC0rgK2bBK+W14/b6hwNDbXmPqnGJfDlDnFaMx5rbIxzC///d7gLA9WQcqGO3BsxcSwf +X6w== X-Gm-Message-State: AOJu0YwEG8RfmhVfip/1mM1y8gdLcMNexbqDNQLtjkI3EM3M7wLlHX7X mmcG1lyskPxSDLhuwikflYxggKjKCJCHi0nvdyZD7vaDOORMVt9QigM8hUWcMRBRwfS/OoRtifF ktIopgXBM X-Gm-Gg: ASbGnctEVIdd+Yg8B0jwVD/CIU/vO+110rAr8OniPCSDoIuNLUYFfLQimqMnmE6fWPo aAC55CJ/pawSz3+XB/Y1bNRjfXzEBm/N8botR9m3aPvW56GF35g0dkaBGmh4i6LMUP0pAy6jAyV VyRjJM7SKDImD169e+XvkwSLFvHI5w1/a6lkdoqvLUx/rS2azCKDYvOCJH1aDyTibB+3dqwtNCP FUJADdn3FYoY43A5b8AvlHwtwpJwbX8MhHdApoob4FlV7uAA/AqZcgLwYCNkJYpwV6DFuCvu0fw EnqukUcM99hPgf/dKd5PEMo/ucmxPXettYrn0cY75VA= X-Received: by 2002:a05:6870:7a16:b0:29e:6547:bffa with SMTP id 586e51a60fabf-2a3ac751e4emr5877822fac.21.1734289552897; Sun, 15 Dec 2024 11:05:52 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:52 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 09/67] target/sparc: Constify all Property and PropertyInfo Date: Sun, 15 Dec 2024 13:04:35 -0600 Message-ID: <20241215190533.3222854-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2c; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2c.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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850979 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521178wry; Sun, 15 Dec 2024 11:09:52 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU3UwIz1WubLXG98/V9jO0LIOuhv5glTaUHMziAA7DgtIcVX4bBHt51ucBveDwG0nio/qxivA==@linaro.org X-Google-Smtp-Source: AGHT+IHmBaOnHMZRoAPg4wd02oMK669arC+zB36KDm4Hq0fIYofw/hfKo14zXN7yJVlTId5EOPzJ X-Received: by 2002:a05:622a:309:b0:466:97cc:9338 with SMTP id d75a77b69052e-467a572212amr188601051cf.2.1734289791733; Sun, 15 Dec 2024 11:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289791; cv=none; d=google.com; s=arc-20240605; b=Vxv2B8K8CPluSkaixXoMIIrAAS4XdKng+WIRKwGx92vG68ke54NyrVEqkAxUPbs6cj 1d3y6sF8965Qw/tXvPYCpqz2Vbf9CVOXA468/HI/dGGcT94jNvkPTU5Ytdq1G14v9cb8 K44efVu2Pj1pBxDw7XqpDFoQRzE6JN32Wfih8BkLxwY/7j8Rn9SMBy3ClWSAod4gJUQY b002lsci812DHozYeryTlpPwiYqhuAbls61FCeOEe+wbhaxtc+0OgcqDQdCWj8cBt5Ce 6ci2vQXtNwZZHtgwLz7KCyjElUJ/hvYuYh3zGhxsGClUfXFLwHhu3PO0yeKepReAr7+s SZOg== 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=J7vC3VBtjcoNOh8750/uU7guz65QUQ+vUNGoylWHOnw=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=fFBzt7frYR71MyV0vhpDb3FU6LvrfeiwiYKaP1zCdhYp8sKRFrc6xx29Xh/rJ7eENl Wrp1TJUEby/sc9NxowHG0K482NGnI1WhBm9kVRk/uu+tN6hF59w7mlw4LQJK79N++s+j 8to4JPPAA9nftwp/3Q+HFbxpRvpvLQOBTH5gUB/jRokjQDXb56Z+1D8FXc7jDTG5qctC DYx7WVjxxm2sOkDg7ZXmL4i9re5vN3qmWj6ej0Ylt8r5vzFKK47iD7o9fj9IcO2B3F41 zYf9sitmap/Ul8Dut+zDeqlAVoH3gWQTDhp21EW3txUkA2nTcbvO7/yuum09KSGGcaOk myHw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="NhQR/n6o"; 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-7b7048bf51asi554268085a.291.2024.12.15.11.09.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:09:51 -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="NhQR/n6o"; 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 1tMtwK-0001H9-Do; Sun, 15 Dec 2024 14:06:04 -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 1tMtwD-0001Fo-Q1 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:58 -0500 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwB-00010R-1B for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:56 -0500 Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3eba0f09c3aso971207b6e.1 for ; Sun, 15 Dec 2024 11:05:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289554; x=1734894354; 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=J7vC3VBtjcoNOh8750/uU7guz65QUQ+vUNGoylWHOnw=; b=NhQR/n6oUg20DqgXV8swsk0xz02mc54rj4hDHGb/baRAfX2hZyTtNJse4bPWkJAOyU BG6SeItL7rttXS3NZa0HamCKXOwg2FAporpJKQJT/ldZpbkaBSi81EJzAWDxmLqJToHe +fi8vkbg2nMhb8wU/+iyh+oXk9kBet1dVzuowv9c+K5sfSItIYAe3eCslWxe4jnXamcD zQnLoSsvMBx3nWY8AZF3jHvS9QaNlx8JB1QO6VI1O0sTrrjBOu1rC6kdbeYgZXa6PQfN QU+oSqXi+/ulD/p5AQmMqbjhprOKaot7kkX+3zTfvHuiGBUPE5O4mmSQCfqAdoSE3Mbe XKyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289554; x=1734894354; 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=J7vC3VBtjcoNOh8750/uU7guz65QUQ+vUNGoylWHOnw=; b=Oomp9+rvzhPazL5/YJjzbsCOkd2CjIFI8p8X4+TRrhRpUuSB6nDejbVxhVaPXM78qW yZU7Tb9T2sk0TJFiLQ/5T8f5Q4M5BbpOiDY+Qc5e3IUbuHTa2g9uhiaqjT5EaTUqc4Eh gj4qs3K/2Muun9TprrttR6+ioFRUVkk6fSXiaHy8TOAGO8c95T1ajw+GXQMxyQa0MDxn Mx+9wF/QIHYkdy4iVE8d4uoQimkygKZroJA7hicZS0UBIuDGwY3c+w3CenjkbR7/wmu+ tKVxiut527RHnTY6ZG9erlOaRiKqgyZs9LIzx5jFr5GhhFb/Ul06gn3pgi/nURn7jpQC O2cQ== X-Gm-Message-State: AOJu0YznUdnuxGIC/gJJeAkIcTLymvZevcGBhkPgjPReSGtFy7uiaZ+k sNmtKBAP9petkGKGoj4KgqKb+VUONfEkGqnel48WnRWrYlF35JHuWJkWEbAT5ec+cee1JejL7nY k14ZH5U3S X-Gm-Gg: ASbGncvtqP/WnvaLhgfAavlqxrUprcX8ZHQNeFObPdjNRR4h5OFZzEa7dPzwlPV0n6B Qi0E4N0AJFCjlY9ItoJH2xYWnB4uTcycl8vl5Vjt2jLaXfBOiai65mkRR5Qdqc/uE/KrZYcmT3v QdsTEtGurgiOMoy4elhQ3cHM5a7pS390JE7facSFytjqxbMEkh0BY118N9jjL8dQ8NyzVFIVZH/ 1VJH98+aHWy8+AAdhMHEcTX59Dff3/pRiNiAeHIp4uRNY5ZHiDzVvVKn+/cvQrbURx4LtqYWL9M 3l0iRjmpgrSGwSZwhN+LBRitYxEW6avQoBgRtjTHUEA= X-Received: by 2002:a05:6870:ecac:b0:29e:4a6c:4010 with SMTP id 586e51a60fabf-2a3ac4ab788mr5111341fac.6.1734289553983; Sun, 15 Dec 2024 11:05:53 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 10/67] cpu-target: Constify all Property Date: Sun, 15 Dec 2024 13:04:36 -0600 Message-ID: <20241215190533.3222854-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22a.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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850978 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521052wry; Sun, 15 Dec 2024 11:09:23 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWV6CytLcDK2JNALhlZYTHCHFpGsS73bCaZBYwbush802cMF8PM4ybUw90YWkiVYYtAbG9vKA==@linaro.org X-Google-Smtp-Source: AGHT+IFhpQONG/qWPd6EwaJu2uvtYASz186BsAr1y4KrU9D87nlJP8r+AOnDbVELgznVHafPI6i/ X-Received: by 2002:a05:620a:2707:b0:7b6:7ac5:5de4 with SMTP id af79cd13be357-7b6fbf15198mr1493200985a.29.1734289763446; Sun, 15 Dec 2024 11:09:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289763; cv=none; d=google.com; s=arc-20240605; b=LtwnddJ5KdANPPuj4HLajMgmzeJhLgbby/f9pX2YCFzfa4ypX4UDWgZJpYFjlZT6Dv rc8lY9LGhpr49Yv7XbL3swxAx7EVbTw+NMtKfOUeMCoy2DOtWfqQyPr6UNUB3dI774ax csLLouQWvlvQc+WAEGlNWHifrODHJAvvi/HVVTB7/oST6wdPOOGWWHxhThvlWJrAR0WX m61/lcJPNpfxbalAJmU/Qf5LXYMdwImmhx7AkdR7hSKQIA/r4QR9APcfSCj4uAZQG6Vn VcBl0FdcRJJ/7SZ4EZEn+5spDYwmXg13k/GDD+Zjhk0U1GTY+hCXQlsRRjDqzv2cQjK4 bKoA== 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=llJ8necg6Hk67Yi1QiP/nuY6/jPOVfZRsl8P8QhMvXY=; fh=SV6/wNoM0StNDLmsWgE+t07h/y0kldjjTMF2T1KpuAI=; b=hKyh9ohU3uvQxvYSDlbuDIqNXMnndYALmoVO9vZwHp9nejF7UhAh/7e+T1kNgqjtBo QnPqg1FYZd7vEOWQ5s5/UDA7mDSa0cosK3q0MqHFKE5BzdSRoQDplG2Rjujzvvt2eyRL XPiSTAKHmz1DUIJswHavzYbRq7cULPnVOkJm9nRqUrEE4495+Ui2k6HjaKIQwMVoiEwo CHGEZWGxrjNFEB9jQaVZv5qEAiuAYTeJ6m/tptvjYQ24me/1w9MY1c5DfAtWcoqU8A19 2ZalVYoO4CfYQR89IGxofsC9Or2iOAw539xtAcuIO5fSQgOb1b/M3kr8/12Ild7LG3q0 hENg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o6w87x72; 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-7b7048f18c0si486381285a.611.2024.12.15.11.09.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:09: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=o6w87x72; 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 1tMtwK-0001HA-Gm; Sun, 15 Dec 2024 14:06:04 -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 1tMtwF-0001GE-06 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:59 -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 1tMtwD-000118-Dn for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:58 -0500 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-29fbba47ca4so1352913fac.3 for ; Sun, 15 Dec 2024 11:05:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289555; x=1734894355; 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=llJ8necg6Hk67Yi1QiP/nuY6/jPOVfZRsl8P8QhMvXY=; b=o6w87x72CphAIoKJoSs1ttGTE0Y+7sUeKHr3Phr1fz/6isTTVyYqtF1sE7PbCZZkSy O4JTfhIc0JOF68wXS2QYqPgTf5kRHMTWlytVHWC/q89jnoz71g0qvi4MrUaIz0VkFj2+ fqdqiO255+dkVjp2i+ZFUAG8aTaT2W9gul/QVHUcHnxZbfq/LuXIDjR08/YZOPDjl1IJ WN35CNLzPdPAB0qaEHXwPDibENBiEq2N8E2xUzA24Cy4N/k6/W9FYEYC9gUET/cEU1po uRkztH0gc3zPV+25qYoPIlUAf4D3FoNSt+SSQGyucnH4PFCgPohP0UnHPMN5B9uQcco+ Z2JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289555; x=1734894355; 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=llJ8necg6Hk67Yi1QiP/nuY6/jPOVfZRsl8P8QhMvXY=; b=aVVDEG8Hp6JJaGoeA/fuWfBTOhNKiMgmEsacuW0Q7HnoqO4TALb5Yj57yv79tm6UF1 oGFMQ9P9fHMfSV6U3WLEZRWBZ9Um+XT/RiE3LycMO3oMFESlSgKPt/3eXlYcyFpMUDl4 kAx+4IaqPYXM/piA114xJuXbJCXYPaLztXN50ljIu62nhADzCxqIxb9GDzGKgdDBIDNp AywMwjvbH7Sfa5U1uYB12uN+IzGZoikhcdATMfdMU+N65dl4b6+96TbdBHrLNsx1GJB8 uQpp+R0gdWUe2XT/2SllYYAZl+n19lWUze1YzPwDEpqC35UzzE0PTuwhiu7cLMFHV4A2 LFVA== X-Gm-Message-State: AOJu0YxPQdg4tCLSfPmXwdeQXadsJOMm3kS542Ph6pkml0zOj72gC6u6 /UG5uCsJs480Pp4mOskPnAVnYzAW8E9u3tM8HC7uGr4fKjFo7+8HN/JD7HaGS0ZALGwn6T+iUg8 Kttd7PPNr X-Gm-Gg: ASbGncs/I3mihu9jQpSdWwWtVf4+xmKnr+sZk9PQHRqLuvlnltl8nXGJ0fVpc5CkpzB zn+YBif76ZPxq055yh3voDyisekZurb5MmsD6Nq/Od/ffXtM0uOU9913CqnVtEbHRaYepad2qMA +dzIRVIlETYlYG6h3ImPlMI9FpRiIWx5US2Tp1+Yuyawk09O9UcF+KJ0qcZnYwoeiMJtSBZ9h63 ZOxRFkNxmh9YgUCCUsWHOtb7C5xhMbrUVWgjsT4f4MNwRcMjpxMEacGeZfgMzBtBaaaKFN6Qxbv 6Sm8aqkyc5sOyCZS6v88WPZxEI8itOuSwlI+gyhqiP8= X-Received: by 2002:a05:6870:e8d:b0:29e:5bb8:fb35 with SMTP id 586e51a60fabf-2a3ac8c0fedmr5454400fac.37.1734289555469; Sun, 15 Dec 2024 11:05:55 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:54 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Greg Kurz , Christian Schoenebeck Subject: [PULL 11/67] hw/9pfs: Constify all Property Date: Sun, 15 Dec 2024 13:04:37 -0600 Message-ID: <20241215190533.3222854-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Greg Kurz Reviewed-by: Christian Schoenebeck 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 Sun Dec 15 19:04:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850982 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521191wry; Sun, 15 Dec 2024 11:09:53 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUbDAPg6ZkGhwqSRFhaqsa5m8Sp64dS28nS+ppe/+5hMWzhhPaQbpJiOBvAFZY//1d+danshw==@linaro.org X-Google-Smtp-Source: AGHT+IEiZpHuFDGqWnceO8Jnhi1fzaw9pHhrMxh2zqJJSYbIHlAphSt3oIZQx0QGKOo4ij0eTO5w X-Received: by 2002:a05:622a:2d2:b0:462:b7c9:10e with SMTP id d75a77b69052e-467a14cb6a0mr233772971cf.13.1734289793540; Sun, 15 Dec 2024 11:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289793; cv=none; d=google.com; s=arc-20240605; b=HTf+RoyRMI2pA54LzEnqpXh2o5J53V7/nsN5pr8PUbSkWJgKF5sAkbodW21zP2aDBK Yn+rasq0sAlDRJ/76fhqN104qennvYO1ciPInmKEXDA/Is28HN91eLnuQh3zZW3aTTU8 qlJs8CIeofFxHQ2CNfQSPR0i03yEZSzcCQ0TvL6EqRj11yTNjIFqJFwPOHB0ZazNjpqR V89Li2G9QY0rnxSg5RaW7lZSyY3oZqaG8Au+iufsbb42tixeVPnKQ8KPQkioDC9V9iVc QOljndYve5/erK3jpdvqG4LXbYKkgiybaQRnDji1wLIZhRBQjWIMNb1w0KP7eI/p7oCD 6SmA== 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=LkTIOJvxAZpwekaMnF4W9WKYdFapWxP/f2wAmpMVyBY=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=eYBkLjTkA/gtLuZFAHiM3BMJBtCzmPzxEpj55eiFkRQHtLAi8gOGSCIO97LsdsaY/F 0Z7fZuRUa3IwVovi3SVghKqD4CITcENHgf95r+1FzvJjG/Cd12Bp/6LW40GAIS3hG1IR aHA0KnoCEm9uEZn1vTGzVnIAa6T9l3e9OHS7oerg8iAGCqAAQBY03QJPi1GHqy+4N/g6 F9L84TuGqzGb1qValwWknHEHP75H0W1PPYRhP2WT0PAfG33c1xlvemUa6n96YTznZ8ru Cd58ccH066WqTmdqkHmiCB8ndPy4b/KQAo+LeX/pGC+Mdn1HUC53dXlo0z67U+ddqmkK +odg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PseLGHiW; 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-467b2f00bc4si50145141cf.592.2024.12.15.11.09.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:09: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=PseLGHiW; 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 1tMtwO-0001HT-Ij; Sun, 15 Dec 2024 14:06: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 1tMtwF-0001GY-FJ for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:02 -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 1tMtwD-00011W-JV for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:05:58 -0500 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5f32de85789so1034447eaf.0 for ; Sun, 15 Dec 2024 11:05:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289556; x=1734894356; 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=LkTIOJvxAZpwekaMnF4W9WKYdFapWxP/f2wAmpMVyBY=; b=PseLGHiWshvw8/qw0OC5u2R9P3MXXMNvzPRoqllMe44DGX8re6x6worPDJ6TKCa6pU kNZT+il9Y//tyPFILontTfltkblbF9WaUqIoi0qoAk9in+ZOQf7B/T+OGFFPeTseirgW 1CQ7pEMAzjEDr+kMFZ0SIjJFfU9uLpwSe79jACS8ZXyhFVYkSJuhGN0XVybcI+mLVnUt uPpYRdTWdLcOPjC9r73/Sj88ndKmzYBkxX9OHC+JALqnqJ5ER9dE7gVmhajxD7Q82wU9 eiNc64alMPw9NGfrsxGTFKkU4YnXECKjbSLjVcuP/sYIZy94DW1ZfSjjZoMOuZBJn7kZ Fiow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289556; x=1734894356; 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=LkTIOJvxAZpwekaMnF4W9WKYdFapWxP/f2wAmpMVyBY=; b=RXpb28Mv/F4+Zq/E8ZbHW5DerjngpI9dL3ehA1W4zS//1cYMdkGxhND9x08sk3Lhow ZOUmufVPqQQGNmJoO8JAbOm2BwC2JkbizkvfqNAxzGLJDzPSg/Nj3bxf0+6rIUneRkqM ZLZDlxlA8jSEXr5SOHNczw4TA29saXUulNNZqzKLzAyNAJKugPfgCgWc6/RVlT0NYMUE WuJa8DrYg11FkkA8p+DVR5JdoSSVIBoieEENZJbx0ZpGrV7IikuaoCuiCtmQHa1wuXQ9 3dqWyZi6Vo53d4+jjaskdz8R0g0e1KtabPaL+Eg9RVAG+MUK9pIsvLo1VLyDPi6l4ex/ ewrw== X-Gm-Message-State: AOJu0Yxe02NzTBPVwVB5+UVYArgtdipr/32MhsIHeomO076FAK1nUdyf zFl6pMFeokjtnJvgm3GBRJTopIgsu8VKKowZo92ki0UUS8rTj7lM1Yjv2k3hkd9zASho9SEPXR6 IAzeGqUoM X-Gm-Gg: ASbGncumCUoTgHRONalENsFFqK1q1VX8g1qK0aKUr3wMEL3LZ5VPpqZWAJVIeEZKL6z 0DZ3yqJQl2oOiTsUak2Fms7HrCgCERa+DT032sxmZK6CQ7cd8N/wQECm9hVh6hkMfHo9D1mAYLY MCzG9FSq1Irngmyi/DFjGnXyWZIGEkDFlS8aXdrIR31h/CQHr9BkN66k+O3DBt33HSfa9ZimFss u0ACBpsTxYVmMGmUt+BScTTgbutbvmH1DawuTW69YfsOPiA+uDtkEjtm13TgGDHNGu5eQXva+ZX ow4ndNvL8BB6bXg4OwcOjpcDmekWu1AkTBCnn54um6s= X-Received: by 2002:a05:6870:d114:b0:29e:7629:1466 with SMTP id 586e51a60fabf-2a385335461mr7476534fac.7.1734289556543; Sun, 15 Dec 2024 11:05:56 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:56 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 12/67] hw/acpi: Constify all Property Date: Sun, 15 Dec 2024 13:04:38 -0600 Message-ID: <20241215190533.3222854-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850983 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521198wry; Sun, 15 Dec 2024 11:09:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWTvH41oJNXF+i+u8CzghlSuk+9h+1S+vQmXzjWhglN/pOKAdQvXgTda3BCciigTrkN9ojhZQ==@linaro.org X-Google-Smtp-Source: AGHT+IG4eZ0PPylI/FA5PohjAibykoq3YQSteICvmPobdqcmKFmXGllUbxBsbn1f/FxPakggh2Mn X-Received: by 2002:ad4:5968:0:b0:6d4:3437:d858 with SMTP id 6a1803df08f44-6dc8ca92a72mr175508546d6.25.1734289794914; Sun, 15 Dec 2024 11:09:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289794; cv=none; d=google.com; s=arc-20240605; b=AIAF+xECdfrKiXk9Fs6Fva8STOAb2cbK1/ZX+Pwfp6HcWnBNb2WTyBUqq/5IqKBMtI PiUJikvpHPZt6S+bJyvYVNhILeZzn1Ro5GZ6Eedt9zUhxIdVUSOrctgkZB2IeWkwSPCN fbfxYgMnZLUnHTvj4hBX95zsf+S0EtW9tj8o2B+pCi/RZIelw4A34Qt77Jw0qSg/g6Hb q/rNQzzFCXytvQb9bh5RaEy+K7AelOgQCYo9G2KJF6AwnRmn7inyMUNLeZeXL5yURjrf r2x0b5/WFzCl4zGq/2Mts0qKdZcgekuYBLP5zuxo3sY+KhRtr45nuM6cwknk8rtzqdkS dsQg== 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=j18ed1KLeCdcC88rHm7RU/Cx4ZNx0nJUwplEJrZ/anY=; fh=OhIYmp8MV/XtquS3SnzLQsSlxPBv3Div0hAhvX6Z8tM=; b=Y2vrQObtu3h/RtH5rxKpX2XSmShaVqnyHsuILB2wkb9C9yr9ILdYTzF+QaGFODZ9ox yXybG4D78IRALJSyG0NEv4ani1sl6bS1t9u2l9EJ97lCorvGHYWTQthETcBTYkBYX2nv oxgwvL4WRe3Y+4873M9pBzdRRSE8eEVgjaVQzKWHxBgP080EwESZRMJ0MjO78F8hHIt/ 9uxCnTLLmdtB/XUC+jzVPs+WEo603yWOlCEs+WcB2ANbKmAxL72LoofZCLqNJPPGuXmB yxb2p18GoqCaEWW5hrXY2N5+4162k+/5khAVpkyrLNx3Qc76ulGuSA5devITp7c41Hr7 BuOQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="f/Mb444+"; 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-6dccd1b9e3esi50477206d6.94.2024.12.15.11.09.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:09: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="f/Mb444+"; 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 1tMtwT-0001J2-1H; Sun, 15 Dec 2024 14:06: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 1tMtwN-0001HW-2F for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:08 -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 1tMtwF-00012G-4K for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:01 -0500 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-29e91e58584so1787025fac.2 for ; Sun, 15 Dec 2024 11:05:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289558; x=1734894358; 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=j18ed1KLeCdcC88rHm7RU/Cx4ZNx0nJUwplEJrZ/anY=; b=f/Mb444+A9viJfRBp+jcDpMKVKHjU7adk3iwVKsOZfHz1NHbVVXBfRNRJg4aVuigsc 1T6UrMMZzyc1U/qtuXKaj7jtQeeQAfF4MDX+sRsQogUEnemQSZUISGIO1Y6WMsCRUYN5 YqaxRNYlXoRxjXPmf/QiGoxL2KBqoQT06BrGSqIQXaua1N5nWYwp0n3IpFzwm2e8mBmL +KbBvYcqEKvqkChZCh6NmH7g6OydiF4MEnOto4HsmdW25JB3MwLiE8H4HbleE8ge6FTD +NvocIPrXaApobSo4kv7jJEYW/Ne2OyH1sxQgqjV9RZUXLhV8HPgkEkX9XFSY4caoMAg NXOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289558; x=1734894358; 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=j18ed1KLeCdcC88rHm7RU/Cx4ZNx0nJUwplEJrZ/anY=; b=VhHZHp7YL3CFWawcCVdfc8rOTJTIEMQR5ylPG7CnBp445uQEU0Na39b0wmxxl1+NDg M1u85Xn2A+BcqzKJyVfQLEtKTtF3QWC5g+1auHLhLyF6px7CWSxI5lkD440trtl72MM0 z+3oi3hvr+EI/mzZnMwszboLkb0rzvh+ATKd2RVw2M3G6XhBf34VKv1KTm6K7b0DPgWv kbTH5O0D25ZcDGPupDIMV2YL/mWKFUwofDXw8ITCNZG8iJjeJ8ZEGIc5pzciyhvHLnqW BFJR3KPVJjowjJ4zB+sLXO1Z3cipTNOn6ukDdM2nNzI7jMkjpr4VXk3obnK5tsXPoiaL zAtw== X-Gm-Message-State: AOJu0YxStxg2wNLUuVPOESy1cPJx6H53PLRJqePlpx+tZt0J/ibtzfGd 99A3R4q2z5ShA0cA3M+vScIQlR/uqTOs7vYa322+L9HLcx7p7SZCouizyPaHuOAHwrGvx2tE70N CtvsBDOtf X-Gm-Gg: ASbGnct6kWq1hN+sD1gcMK1dmlva4BxaFbssSl0exfB12v92HCt6/lHx3TZn3CtTYM8 BCdMUr5THPE3CAux1IIKVC37Cwjq7JPDpuaLJWr/lXBZXaIkbBdMLQQGo6D+i7lNiTYm+BG0NDh EEqSgXHQujeZN0peyQnWbHMfwLuFS10TIxa66wpEt2fiiplfKlPxQDkUmKyxToj2yoxEnmWwUEo 6SalK03qvTmhXtv113Ys3yTxyQl1u0a/mCfh2J+I9mJOpFDmMISs/C4HfKQXj9fKcFYCTrDTVos bvHH3K+EklsA9avN2HzM3jLDyPKN/fnLpLwSkG/CmGw= X-Received: by 2002:a05:6870:e0d1:b0:29e:27b6:bea5 with SMTP id 586e51a60fabf-2a3ac7ce43fmr5789476fac.25.1734289557812; Sun, 15 Dec 2024 11:05:57 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:57 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?C?= =?utf-8?q?=C3=A9dric_Le_Goater?= Subject: [PULL 13/67] hw/adc: Constify all Property Date: Sun, 15 Dec 2024 13:04:39 -0600 Message-ID: <20241215190533.3222854-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Cédric Le Goater 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 Sun Dec 15 19:04:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850992 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522235wry; Sun, 15 Dec 2024 11:12:58 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU0prc0qg0i60s0s4iHy7CI/IIM679LMJS2Jm96P2YoIGFhl3fuMiyGVZzL/u50YB9lyU8VDg==@linaro.org X-Google-Smtp-Source: AGHT+IEx2C72fi9PaOc80sBYqOL8OYuUknYH192/IOKucut2I8ZUn3vzsho5dHfAmusNcHDCnvLi X-Received: by 2002:a05:622a:1b8e:b0:467:525b:e53e with SMTP id d75a77b69052e-467a577dfe9mr175207821cf.15.1734289978015; Sun, 15 Dec 2024 11:12:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289977; cv=none; d=google.com; s=arc-20240605; b=c2hT2o5MyIM1q3ccJ4+J2Urmy/7771tZboCLUOU0b1OeOH7A7n6mSmQmb7/usP7z9K yZZUuDK5biFGHDgRM1Ow8Na4fHKM7Z1Ze0U/ckTsY8u4vC90PdhcCmRJA3enzNQV4M0K bbrynrUhqVkRDYH5ZS6gZUo5jiuqxDXuyE/IgeB2FoVB21BERmchfEC8GBYUS+GHne2R Ui2cqga+ojT280Atot3eZBeA7F3XlLgLeMZ5nS/wfH+ySYom0FeKanTpL2tgu3mwH8F4 o2V98RxfRlN5fpr7h4GU0NCNdmebcyuxvSsqwnpjtglKgo0RGiZZ6XfmujfmM0sKQRo8 1D2w== 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=FDkWHiXCGTFXhaVjhRbjm66X57QNKbz4zffh3T6MBjA=; fh=OhIYmp8MV/XtquS3SnzLQsSlxPBv3Div0hAhvX6Z8tM=; b=Z3NLWyNpscpF10Bz+RTbqC4FwanW6XLlgpuDqcH8SISTeZL8kgzoq9I/PkNZVdK587 DZcW2FbbQjvTNJPhXWEnA6ZCrRDv11V/9aEqJstjLqX50JiIxciIEHEidnECRg6LzFbC 5FCtUiYT29joTiaUkhpzUTcph9ccdL3x6aGkV7/U0o1ZPqhBs6kBu4KEZe8JgSIz1ivy 2ByJywUBuqkLMVpogqWBbXlOzm2restNPyowe46v2N7v4IMWim3kSVFrWH32OGLb4Yoy V2KdnPKF2Vhq2YYH/ywqnWK+MVODF0JTqVtGtYlHYsZE4DM+cQ8GVOnA1uAjags/oPUy kfkg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LISV+m1D; 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-467b2e8620bsi50304681cf.281.2024.12.15.11.12.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:12: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=LISV+m1D; 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 1tMtwU-0001K3-7k; Sun, 15 Dec 2024 14:06: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 1tMtwO-0001Hw-Or for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:08 -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 1tMtwI-00013O-RM for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:07 -0500 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-294ec8e1d8aso2758079fac.1 for ; Sun, 15 Dec 2024 11:06:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289559; x=1734894359; 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=FDkWHiXCGTFXhaVjhRbjm66X57QNKbz4zffh3T6MBjA=; b=LISV+m1DqsSLj2NmeKZ2M4C13P3/kWFBGxIhD7web4yVbPJeO4ztBs9KfNjG0OFQj0 qrhywix46ZSHne1eDOlL5fuZkCfZ7ybr94Z7HRcpcf6UNafBJBESnY/zTLxN4h2sNdN7 R/iCrxdEU6NoPQjmPcAxrUjTKF6NrTMLoG2CsYFgtsn1i95S9lMaaWkA0opS5xzthPAi ng4kXKvkUz8ZfXz67ZXB/vZWk1VESnGtJepAptWz4bIGB4djZKIa+hlckm2mkdMkcpTv +y6j9UhqRGOerbRv76z03V8zyD39SAgQei8ZTyBLMeL2Hc+t9tPP7WnxkyuxKKl1vzlS qdOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289559; x=1734894359; 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=FDkWHiXCGTFXhaVjhRbjm66X57QNKbz4zffh3T6MBjA=; b=jIBpcaLmok0OJnwtRvTWOkXOPijAsymSMcgld1hSK/HZgmX0KALZ340qia/U2azLHC Ciz5gNF9nQdCfxBVVg+Dkcnj7Ax8L+U2ePoQu5ExFpTBs9h8QCFQFuQ6t9+AZAEBRXZU PUtZMDHcZxFilwT6Pkov40iQXf1XvyU2M/WVqtgL7GyBKJ4cge2PqAv+/CyCxZhmbczE YtQ1PerVSb3G4VCXttpo1EQcDvqNGhOPmPzcE75D0HSscjv/1joq7xJIsYT8QwG3T3/V Nh+AIZ8TekYBp9HfN7VMa2evRoq036Hol4JM/wFnQSAbB+u+NytVS5lfqctO8EXV+8aW 1lLg== X-Gm-Message-State: AOJu0YzDr0thHtLeSfnny7a5eikAG2EmdKwhnUEOQbmUgeLuDV8Y5cph HQ0PAQ5R/uAjuT370zkeOiV9He+E5ImpL0+8MvLE38fRGjzL9EPho4ZVFhgKUQuoU9XF316KGeh 4N/4S5g12 X-Gm-Gg: ASbGncvgocIazbb7xCPgKzckJ2qJ7y3RU9uFoD3XnF2r2rZl0OsgcKNFhexaTw+4DGR M4LgXFNA3fDIqTsc+E2J76RzzeKTJY4oIS5Pfvq2t4jp4vQOh5SDlqGLqFv8ZRBC6oF82hERH8X dRtvQg+3cr+VW9jqJjrr9WF5ZjbFWnIDPnYlmqTHqZfjd9kyXFX9kvGnBjM3RtBr8x/DywzDYyx g7+IQ07sXA0lC02ZEP2nwykWlCIXDw7kY5IWLYk3AhtxfLB3GA/pjBW4J26/OGj2Ax1mKzCUxWy HKGH2EQuVlEP+WjFjClmKy4yALnf8i7uex7xPEfCPf0= X-Received: by 2002:a05:6871:68a:b0:29d:c832:7ef6 with SMTP id 586e51a60fabf-2a3ac93400cmr5205263fac.39.1734289559528; Sun, 15 Dec 2024 11:05:59 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:05:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?C?= =?utf-8?q?=C3=A9dric_Le_Goater?= Subject: [PULL 14/67] hw/arm: Constify all Property Date: Sun, 15 Dec 2024 13:04:40 -0600 Message-ID: <20241215190533.3222854-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Cédric Le Goater 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 Sun Dec 15 19:04:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850966 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520239wry; Sun, 15 Dec 2024 11:07:18 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXO7gzFK+Od8aopM82WZT4332CmWLEca4Pcq+MpQeuf0cZSnGNCyJ/uFJvmPilIPympEFjfZA==@linaro.org X-Google-Smtp-Source: AGHT+IGZQzaZ+daRUZlAEP/gEdQ98r7ka5yygwrXwlYNZd6uH+iq+8H79VuCPtAP9QMXBaIihUrv X-Received: by 2002:a05:622a:8d0f:b0:467:5712:a69a with SMTP id d75a77b69052e-467a579b1f2mr158760981cf.29.1734289638351; Sun, 15 Dec 2024 11:07:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289638; cv=none; d=google.com; s=arc-20240605; b=QjjbkS0fVjjKcudjBErwVR23NNMOouH/V7spWs188m12PAv8MdzV/Va0FPDRLwHZ/d qYFjrKN/lJ5ZQocIpzVvmekP3GQlTt4H6hWYFsgjku3WehECT17N8EdZmXyvpM+sk8N1 /z2fp4AoQ9zvEHSS1sn1Owtw501jOvBC3z7DGaSTmKGeOQeZba1eam5rbrpTpX/2Uxyl gSFucUN+DbFwB9KtTsUOWOTwwZc07+ngCHkF2bwzdb4pxxzlwd7f75nqVeI4efh5JnIE Q9mUcaIFPzA1+EBfzw9EV5vDRFwWA0mTgBhh3sY9Yko51Cbxn5jUFhc2YKOHeZhY80to 7DnQ== 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=YfdvdEpw4rd0ZJsP5bikzz8MeMRZ+4kEVHeHluJTAAc=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=LaVl9GCBIfT2Skwu7AQS9hi7Z9oI+fpb8AJdg0Z1FxPJUt3kEZI7lKFzAXr5kEN2DM i9DwCjOvZ/wVCg1yrgLGQsaLPS4G4mF2TAFnRmMFuS8MK0TYTxfqMV550MtJV8tQhQkM 19HJuqrcyctN5YPrqmKqEJhvMk+h7BaCOxC79YJve2/tSIgIKFO/vtXKAOU211FRwX3d iNOB1QKGCcBXKPygsZG3osk7PqBJ4NaC/pjXWqAViNOP83Z2dawwnKCVja3dMoiZkI3/ +uHbgcv84tDNPA8o/TM2lxHYq+qxjU/5aInjUb22DzpYaWJgp/7TBWCyx0GgQf4GC/S3 X22Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BYLIxb0g; 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-467b2f36255si49736691cf.697.2024.12.15.11.07.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:07: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=BYLIxb0g; 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 1tMtwS-0001J1-WC; Sun, 15 Dec 2024 14:06: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 1tMtwO-0001Hx-Or for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:08 -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 1tMtwJ-00013l-3q for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:07 -0500 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-2a3bf796cccso765581fac.1 for ; Sun, 15 Dec 2024 11:06:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289560; x=1734894360; 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=YfdvdEpw4rd0ZJsP5bikzz8MeMRZ+4kEVHeHluJTAAc=; b=BYLIxb0gd65Nb+2K0Es4chgAoYpsMzU9Qn9S9/blRoH1oKuxlnaa+bzzs3ZTSVykPR hL+0aAOWqYHCKPXGsGlDa8GT33NbS8NDxLskVGQRKfVXcam789cbKLaf1lu3lQEDKmWK UWHdja8dRzsspNIcMAJMJ2NMY+Mjti0cHlgmjwMp3c15vaXpj9b2m8CGJ9UckcMMcstK Ay8wi/OkfEZ5tQ9gWQa6xMfPbg7I4jd2CXnFD8FWHqqHySD3kTAa/8pn1C+ZOFkJzJss OoJVBSVA+4+zzhBcI0Nhdj62sUsMqFarug+9PYD+EDAi+y9ezvXnCn3NGlgbf8D0uiqP CJ2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289560; x=1734894360; 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=YfdvdEpw4rd0ZJsP5bikzz8MeMRZ+4kEVHeHluJTAAc=; b=ayBtqtcHjMb890ydMXOPTX/7Fmdl4ORUQvF4yTK+1SmUR7BJS0/NSuwJoqvHYhdG5m LdvVGHyrfIioYze4PPuTJup5q4eJXZ7lNb5d/7iTEHA0v9YLatrakM3OBtG8io859o2x qW/59T+tg18jvuZwTzHgOHXtMzzk9DhCS1a154e+uP72Y67qLxBILp1BvF0SQz1Bijna efpjMo0lcwkH1pIK0pgKXqkevo41paGwVvLVWhaPHLucJo+QPCXfqhIVlhXZFodRVPJr BNljDnHDFoBlG8limqaRd2ecHtQn04cDVFq2rGlYtXYjJ4FDwKxPicEBsRmG4rzO0DH0 B+QQ== X-Gm-Message-State: AOJu0Yx3K1Bm5oJHR/c6XRsPnh7yC3i/xBm7mW6F0D8IXd+o6/gdOubG +Y8tHbRhl/01QBOPowztqtCl77CsY5fx7t5NWFIbCK/nuHCL0iFsePmwjMeEW2ATBF9GSaLfS2N pIVSS4QJ+ X-Gm-Gg: ASbGncs9o+AHvQtTSnfncBRuuekVFQTAtPbbc9IlZH11edMnIWnNRcUQ4TTSrKON2CE Xv47G+3wYB4QVhuQgFcgGCdpe4elzC2L9DA+zLfnfBGNdYPl1PkTrBI6ypYSdzgZGjei2WjXl12 DnbHoTJE9CY7MzM4k1zvBY+9ZY0z8VGmjpzSOxaWVQep5pvb/ClypoDUBuTtZmKgCl6EQL6m23X azmR7OHxtOuvzFvrQmlPjZnAd9w2NXO/ZhwXV9GI2mLU1AglKp6aKtqgBK49FEDGWHVAL6LAf/0 mG9G7oYpZBA4+n1G4JiIj6N8h22jtlnfaCZM62Meeow= X-Received: by 2002:a05:6870:472c:b0:261:16da:decb with SMTP id 586e51a60fabf-2a3ac5a4333mr5292032fac.11.1734289560596; Sun, 15 Dec 2024 11:06:00 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:00 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 15/67] hw/audio: Constify all Property Date: Sun, 15 Dec 2024 13:04:41 -0600 Message-ID: <20241215190533.3222854-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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: -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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850973 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520462wry; Sun, 15 Dec 2024 11:07:49 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXHT/4VQIKEvEGvRbdGOE8TGshj6/ca/DDKkK1kQCMK9T7b2b6C6AJT+J/fT+vkk0Fk3GVLAw==@linaro.org X-Google-Smtp-Source: AGHT+IEWyXOEQSmAklMld1zTevGVxjRdqjtjqxRg5p9AIrkYbnPtc7aHjB0WiMiKPtwl+h1XGjOO X-Received: by 2002:a05:622a:296:b0:467:7ff3:e4bf with SMTP id d75a77b69052e-467a5873d68mr165400161cf.51.1734289669254; Sun, 15 Dec 2024 11:07:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289669; cv=none; d=google.com; s=arc-20240605; b=bReRQzWi1cA2cC9fjsWgX9o8xFUlpRrZR51YuGN0B9IoB4xd7WkLK1noAD03ALcAaW 2iLQix0+wcFE428cJYmSn4G6NJPlbLmKEKgbsfeCPX3rqZF8YbQxpX06LLw/XgqOac3r UV5am4PG3nOfBvC4YR3Q+/RFoIEOwneRwfnBTkqx2tn/VKr4wyoxqRouDcwQNjmo8vTB 6aXTdGCCRvZOnTK6l8jSWDN9OblTL0Z2jJX2bFhdP7jtl0x4ccIJDdcawIIwLENl2PE/ ZdnpvSyub5jg9rZEjT/GqFOZjahIrcXvDcb31zsqGQaklnLMLtdfPH8uMtby2KhG9WUd 5vuA== 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=fyO9+T/xLm5SD/T/jpjO4kK53oScK4itFHQX03V3FXI=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=Kvccn0HmfmF43OWl5mq7zANn5Y0f3r1s/LfbVwrVE08zXGSQn0YgeqLL91hASRUD/Q jnCuCRqfmohe3oB2adGvqEjZ6nu05Ez0JfpRsekffmnaEpbShdFX0csE4JBdQjSTnNMA lIYyrx/fn+3TlkHKOyQJq4xe8xlIAboRVDH6ERh9OV9fQhzgiJ056hKdQNa1QZgyShxK 8qnWZHzDIuf7TSgTVcg8Dk7i3mleYdB+Ce2ruylCNpvR6FFfs4qXp8yZcgOJoWpexBeL e+ITqXrU/44sRIdP9QxTEYRZuURUqOUoBTGDwhhqP7ollxjamUqMqkEpfW6vW/OFMQBB NgyA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tp2B2+uz; 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-7b7047c45c2si526641585a.24.2024.12.15.11.07.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:07: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=Tp2B2+uz; 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 1tMtwY-0001LU-TS; Sun, 15 Dec 2024 14:06:20 -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 1tMtwO-0001Hv-P0 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:08 -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 1tMtwK-00014D-6W for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:08 -0500 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-29645a83b1bso1753637fac.1 for ; Sun, 15 Dec 2024 11:06:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289562; x=1734894362; 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=fyO9+T/xLm5SD/T/jpjO4kK53oScK4itFHQX03V3FXI=; b=Tp2B2+uze7gjOlpDWDt9Ni6zT2D7zuN+pJXpK6uum05y3pykm3D49MW7AobGhAjuVj 8slc+8CbLRmln6J/jyBuJ0ka+t3ajbouemtyLa1xepJM5lJiKU018BUk71h75jWbCH/a nQicFlFBZqQZZs+aSq/XPszSAhfiJGUWI3lv7c7+3fSpf9B24BFGSL81coxYALLeiY9Q FmJFrgC6nlKvSipZmR1bMSOV/s0PsEUDTa9ej8Tx6KO5fKwvbWZrAIp99GqPjWdxXXwL +0f/sT9WLQjpgfoncs7MHh4cQBeuAr6eNpuy9dTYapg2JnySJas0SSrsioLNU8qz5NPr yWnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289562; x=1734894362; 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=fyO9+T/xLm5SD/T/jpjO4kK53oScK4itFHQX03V3FXI=; b=Nnwb2qflH7g/TbVnI8vV7R3FJ77NXsfJ8eGivhtdMxS9ovDowVCJi/o3hGsGvxu8be N///Ov08bmlzyjmuA/4D2IWHgXx+Fn2Ojr3QxNdyC5O5kjPtlS9U2+TZjoX8rz+mHGYT pdhNK9KDT7snfqsLgEcVDTbiHeOWoNaoZfZ9s/Kt6RMPxHxa0tHwFDCg2KdaZABtJK73 m08Q9zkEExCe+P85emOEhpwvS5KX6kjrqYYw/IfyzQQ91hnRN0s2gb/sCJbrQCQ5wLUp k6Ho0CpGnzFAqn1lt5rBWm8tL9n47QZ9+qEBxnn4D4KZ2sD+tiQn2hEJ2vd5xxY232PE 0Xqg== X-Gm-Message-State: AOJu0YzuL4sjezcyLigmTq5PQF5jRCMY3Gms+wkOjqWllvmDdvYLZm7G UNsURxs5F8tGe8IeMVc3PXGk0rieH35G+z/VDqQ++HwVPLQaBnp1hD4Cob9WTlKD0M0cx5zLl5c Ak5OPF7yW X-Gm-Gg: ASbGncvtgVjO1rAOWibmz9ri4mLE29R3U2LcY25zncaDdP4i5jP51V9OHthVma18b1j Q3RsrkZJOEYg7m8qNX0aaIvKnLrc9MOW4+0M7aq6BBFGtGFm4RGi8Nb9MkjfQwiYJVQlj2TuZpp 7ZsV1s/adi3b5V7rwjhJOjXQy3z7bhhIG2aWT2boL3TK17Cp9DrGX9DQFVrFSJLaVHNkMYc/4f/ SUOVOWJKM7Ua9oFm/wQ/4829AbZ6OuaG4UfbWFaosLf51Zbn972e93eYPW+txBSjALqtg4chxN0 KOy/h+C2L4Sny09hBAJosxbcTuZos2h7RcS54w1RBSI= X-Received: by 2002:a05:6870:64a9:b0:29e:d36:6e39 with SMTP id 586e51a60fabf-2a3ac62510bmr5568975fac.10.1734289562062; Sun, 15 Dec 2024 11:06:02 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:01 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 16/67] hw/avr: Constify all Property Date: Sun, 15 Dec 2024 13:04:42 -0600 Message-ID: <20241215190533.3222854-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850988 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521561wry; Sun, 15 Dec 2024 11:11:00 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXs++pi9Gj4lHerCTTbVbkMRYuwH11neBavNhRdE0IU5Iu1W4l/mGmbiP6MT7koiJ+q/T+VgQ==@linaro.org X-Google-Smtp-Source: AGHT+IEMr9C9EQEwJVXXABUqv/y12zyRcBRXJqbXp2Y4PwMgrORH/me0JPQTdzNmr2c2EkcwwKZA X-Received: by 2002:a05:620a:a48e:b0:7b6:f34b:cdd2 with SMTP id af79cd13be357-7b6fbf45492mr1127754385a.53.1734289859836; Sun, 15 Dec 2024 11:10:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289859; cv=none; d=google.com; s=arc-20240605; b=EDokBeLDBRyYhmtTPg3ZZeVIef/z7t20w0NLmOiqSbj0u2I5TtGa3vFnnLfTSx6AlC Qgr6YZyl3M7ggww8axx006TndCSydk8eT9LyXm5xKkuTacFQMmU4k092zGJve9uuR9qm /TPTgnp3Ww4niWvesIln+rFw+jj65OvLQpM6nHfjY0HxZOA956lr8+c5K+cdX0obQXjk 8UG7G3qOd3J1vZCmphHNSDh1FuFbSLMjVZf1Hgo4FJswHNdH2sVX9GrNSQyyG5cIYHE6 mz7m9YiOjUgWpfIo6FgHYmxaZrcA9QY4dNLLkwGKmc0GBGrOvtrfiykhmhXYsnX+4GEy nXzg== 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=JwkWrdMELqfgScEhjfsq064CDq4CkYokaCr7swwpQFA=; fh=x4ktAo8Ac7shiFcd5KaMnwBEzU5C2fZlHMhIPyc03SE=; b=HYNYj6Py5jogdk5t+NuKxNAHILvOvfjsMY+rgToZYfNC3/DrLk6+w0OKidN6f1EgFn 8KrBpmfdWPKI9nSqeTOR1yaA3S698oZo8TS8vnCkLJdMmFKuALB26KoI49tLjOCm19Oa XVzdoqj/v6AVAbF1yE+bnpnr/mNu/SRBDXmeIelpLlRio4IfVvcAeAb4ffyClf7BiOas ZyoTMW9IMPgpAN6W6XEjoZfcu8HhDmuWEPGmv6EISi3HyfILIwndsmyS98KgBFSiBz+B inxFO6qP1fNhx9BViivVg6WK6gKW5eoH5RXQbvrugWkPzhPH0cfPYS/npLWaxN4fmx5K q/Vg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JTSSr5Zk; 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-7b7048cc17csi581894285a.406.2024.12.15.11.10.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:10: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=JTSSr5Zk; 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 1tMtwX-0001L8-2N; Sun, 15 Dec 2024 14:06: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 1tMtwQ-0001I1-Qx for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:10 -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 1tMtwM-00014t-RO for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:09 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-29f88004a92so2209574fac.1 for ; Sun, 15 Dec 2024 11:06:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289563; x=1734894363; 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=JwkWrdMELqfgScEhjfsq064CDq4CkYokaCr7swwpQFA=; b=JTSSr5ZkD/M7BeRScRdMBF8HnjnYH+9wX9eKcOGZA+L1/4bf458daDbPM1pvAzzaov K9RzHqOFZATYL3DozRNLudBnX4RyDrKX5ZkEiCF7hn0sDGMkgeAE5va6vFbkHTszLNv6 lPI5vpjPmeD5eZg9sfdsOjutnk1zLFTh3UiyTycS1cUnXkjg704mzr4jZgunxqDGfftU 46Pl2u8T1v7Gphp14E90rfszB5d5orLxRB83GgCOjPIUBtq8NzwkOvWREVCUERuMU898 E/PZ2CF0T1v6joS4MaA7xTUA/87hBsO4MLzKPdCX+gsztGdzAi6OwoGT/OUFFznfSBmG 8/QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289563; x=1734894363; 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=JwkWrdMELqfgScEhjfsq064CDq4CkYokaCr7swwpQFA=; b=s3cO87XT4PrYfJdrBUN5fJIxo3nOTJoDzdELWY/g/Z/EoGVsYqyzvQI/K2pZ63Tsd5 bOPCmMoNgt1xzGqSoOs2x1EDKOsCVvZR92hvBFp3mzFmCGkkbpncxraEE0DwkNESo3Q6 bcpg327l893Esk9euTEzCkvhRbdZPMTUDNLIU8yu65KJE/k7XYmCgvNafeh5IpexH8LV ebJ8vhpvbh9Q1iULKNYfucBPeClhhnTelm5YpzvAW4HsfMiJntynLb7fTVvCR5pcfory av1haOH4ts37qQN3HJ14EI/H45R6QjGVlSApYvT+w/9JMpLOvXkAcEM319OXa4lVPyiC 4H1g== X-Gm-Message-State: AOJu0Yy0s3ysgIAwUCifU77FKhyN1mZdg3PY74eV3/+ri2sQA8v/1iB2 x1PqMxfOcW/VCcZXJtxbpbde+44xxIc66D0gHlQct5U3D9PfztLw1M/phIycywqkYjpFR//RikT an4j82URn X-Gm-Gg: ASbGncs38VqcecX+JUrhv9wjdnQGtYpLX71/UlEyz2lW5QVu6IQQamdw5W91dWxgoDJ tGEXq+l3TZIT8upnw3OtLtmL4WqDHQ39r5wInYcNKjdVtmpQxneBGMd8XIOyDNXjBa5H0WsgHeB bgXfnkctvwxNi4do7YcUdbHQkTzmx2Q7KXrmDLMMwWzA7GwOQTUJaUgBMTytM7BsSd/5dIBJGfo WxAZK5DeVr+s4kjnFq4da/lN2u4iPuwQoJ+IyhXIFoe7Ka3LxuvPpPgLumoj3+lqEIuKfSZuefv uJKZ0Ny/F5k66FxqgLrwgac+ceRTh64hznpPYFSJ1E8= X-Received: by 2002:a05:6870:1f15:b0:29e:80d8:31a9 with SMTP id 586e51a60fabf-2a3ac491170mr5418090fac.2.1734289563398; Sun, 15 Dec 2024 11:06:03 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:02 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Jason Andryuk Subject: [PULL 17/67] hw/block/xen-block: Unexport PropertyInfo Date: Sun, 15 Dec 2024 13:04:43 -0600 Message-ID: <20241215190533.3222854-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 xen_block_prop_vdev is not used outside the file. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Jason Andryuk 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 Sun Dec 15 19:04:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850971 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520362wry; Sun, 15 Dec 2024 11:07:36 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVB5xttE1PAH99v99ZidSX5T7EkW4RcTDTLzCy7vId510BxmtLQGc4F8T+BF+MryFmWDEjvcQ==@linaro.org X-Google-Smtp-Source: AGHT+IGKmJmaUmPaosQ3uSi15qrubEsefpHJ+7lt+ijwKdkaEwQNoVySZ80T/WE9z3xTF2eKWSYr X-Received: by 2002:a05:6214:194e:b0:6d8:accb:5a30 with SMTP id 6a1803df08f44-6dc92299967mr205248106d6.36.1734289656510; Sun, 15 Dec 2024 11:07:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289656; cv=none; d=google.com; s=arc-20240605; b=QdnZ0UJV0z8pxBqzxfDCleX+08rQSiyWJDGR8zS68zvuH1r+Y+HloSBjtpzim1M881 z0pWiAOQA0tHLRXVLqUVdfrY4PYJ3TYAohrds7bwQE4mjseLnhvw9cHFn3h1C1E9gh3j KIoPuy2ZKAgmXWUFx3dg0UPcqfRoc0wP+2uXHtBDspwdP20NOzjvbf1OfHHYU/7IJmnO Aic2J6BQfGKUl8WuVG1O6hsx6ls1nfd4Rh8U+fqGvjpGaUh8eX1O825yNRHyCEKvtLAs evo8zgy3rrjg+0trhikFT57YEiCjwgBz/DVOymSItbHdSwihRKlMrm3H+T/GVSwBQWKZ ZYXA== 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=M692peXjo7SYsajihEWIkJ+6iFAYEs8PJrwKZYR0Ts8=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=khovTn9PEKX54P48zsmDLbjuyOua0MG0kZorUseqtYcKrWIBCh0IesvD5zIivRk3Rm GGnBcPodfijUV83tmd3eqf9GfSB7wFIK/ROI4IENkxgBE8qWp74tEj0i/KxfNZeV5k2S oE1ga0Jjz/Ho4mrKB82A7C4ZugvB5AWZx+eS+GA0UiuQWOgAN6ACrBsmAziXRM8ySrv1 I2MNX4H+5C1lyzSDfDzEikbEwOQ/ergLJXb3cVoZ7hRyvbX9iVU67VZUaUBvenmHyUr2 eh8BF/EpTcOzY48x424qcihUTPsish6ztmHntEOtuQ32ZzW5Xjjym1C+J+Z0SEG350g2 HCwA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vai7D/jk"; 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-6dccd399d3csi51604536d6.429.2024.12.15.11.07.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:07:36 -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="vai7D/jk"; 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 1tMtwS-0001Iz-5F; Sun, 15 Dec 2024 14:06: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 1tMtwQ-0001I2-Qw for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:10 -0500 Received: from mail-oa1-x32.google.com ([2001:4860:4864:20::32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwM-00015O-RQ for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:10 -0500 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-27d0e994ae3so1545381fac.3 for ; Sun, 15 Dec 2024 11:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289565; x=1734894365; 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=M692peXjo7SYsajihEWIkJ+6iFAYEs8PJrwKZYR0Ts8=; b=vai7D/jkAnp/j02Bid4RAgaXQBb2IJcppJgZ/C/PiNTXT0p4XMZ5FgP7Cq1eQ+GZQT X5KuTnZd+buB8bqy4extJwt6pjvqlDrTzDmFdouFDTXDw6tl7zqp5CSPGLFA/tEB29UU uqLvQI6KpTvVrVYwRbbBFzRIm8Kby2jfcwGq9C1YQxVc5a1AybcPj0ch1iTTFAyo2mrx bEN17BTvGK3Y81rm5Jm5UEyfjNFYKGqemWb8AXJw1mo/zvKBHwWsT6sOUGA7Xcnv5CD+ a/jD1Xkmg3aqMYasHbZP6vEVhNLOInbOJ+BkOncZeXVaI4gmzL9h4thW5A6gY7DtDa8A B8uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289565; x=1734894365; 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=M692peXjo7SYsajihEWIkJ+6iFAYEs8PJrwKZYR0Ts8=; b=ql2CwhoVymB7a6mqPxUKtrc4Mkc5ySXzb0H/JXE0IFlIQMQxevrJDFIueRXQO/FAIy WMVjrvWQNLUF+xVVEYbFVfgnFNkBeaSeuWhEnkz/vKWF7zFynV6KuX6K99r5rFfGxZCI QL+PmRGJ1tlFLwh7QUQ7l41JU6jyCFSUXtVrh/0mKzm2rdzTAo1N+gqKv6CjUanvsHMd t9bAhC4MW41kd4Yt9ND/rOSejisKD1VBcF+9zbmcAmPDkz2kPjj3OqVzY650BmExw3lz qXZUVc43zwztXdMjSai0lJR10oU/1YfX4gMXzM8NJb2nBr6/+gTxBTJQWsHXipwr9hM7 Yo9w== X-Gm-Message-State: AOJu0YwVBD7AlqYAr1zGziqYoD5mGxBFFCvX5flMImrMJqCZt1hbiobQ MUwrMRpvpO1vzYKDLB3Hvhz4cWuWDDCejsPfXvXl5Ls7c3hdAPtg25GpveyRxmnwZjxLkjyqf9w ILKhpq8hE X-Gm-Gg: ASbGnctPfr27IPn3aZxvhXsQtSW0XSZjyTQLc1nEs/rPcXZNhwnDnGFnM+cd4QBsmXm 5lOB1ASKgoH3Bn+LLCBUeZxmr1AqQZCynkgCTaAYfFdYOUioJICrTEXJX+b5iZ8EVNr1liQYA7/ 9sX+0Dapva7Fupxe+NrEAG5lw24m+wyUEvdIGp6BHcKO5amTjCsU+Iu8xfL1AIqkkHW/AKIwgff mOtdWuwKd1jyy7D4rRvFDpiZrIcNEXGve9Op7SWw28A/I8QkPSV1cIP5p53RLYQKLDhr+rtPBrS GjiGH2nHXeRdVtM/Uvd5wtWsaTSqJmUa6x2kZZWSXd8= X-Received: by 2002:a05:6871:7288:b0:29e:3345:74ff with SMTP id 586e51a60fabf-2a3ac7c1e2bmr5776507fac.23.1734289564772; Sun, 15 Dec 2024 11:06:04 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 18/67] hw/block: Constify all Property Date: Sun, 15 Dec 2024 13:04:44 -0600 Message-ID: <20241215190533.3222854-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::32; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x32.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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- hw/block/fdc-isa.c | 2 +- hw/block/fdc-sysbus.c | 4 ++-- hw/block/fdc.c | 2 +- hw/block/m25p80.c | 2 +- hw/block/nand.c | 2 +- hw/block/pflash_cfi01.c | 2 +- hw/block/pflash_cfi02.c | 2 +- hw/block/swim.c | 2 +- hw/block/vhost-user-blk.c | 2 +- hw/block/virtio-blk.c | 2 +- hw/block/xen-block.c | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/block/fdc-isa.c b/hw/block/fdc-isa.c index 5ed3c18c28..2b9f667fe4 100644 --- a/hw/block/fdc-isa.c +++ b/hw/block/fdc-isa.c @@ -283,7 +283,7 @@ static const VMStateDescription vmstate_isa_fdc = { } }; -static Property isa_fdc_properties[] = { +static const Property isa_fdc_properties[] = { DEFINE_PROP_UINT32("iobase", FDCtrlISABus, iobase, 0x3f0), DEFINE_PROP_UINT32("irq", FDCtrlISABus, irq, 6), DEFINE_PROP_UINT32("dma", FDCtrlISABus, dma, 2), diff --git a/hw/block/fdc-sysbus.c b/hw/block/fdc-sysbus.c index e1ddbf3d1a..f17e04b138 100644 --- a/hw/block/fdc-sysbus.c +++ b/hw/block/fdc-sysbus.c @@ -196,7 +196,7 @@ static const TypeInfo sysbus_fdc_common_typeinfo = { .class_size = sizeof(FDCtrlSysBusClass), }; -static Property sysbus_fdc_properties[] = { +static const Property sysbus_fdc_properties[] = { DEFINE_PROP_SIGNED("fdtypeA", FDCtrlSysBus, state.qdev_for_drives[0].type, FLOPPY_DRIVE_TYPE_AUTO, qdev_prop_fdc_drive_type, FloppyDriveType), @@ -223,7 +223,7 @@ static const TypeInfo sysbus_fdc_typeinfo = { .class_init = sysbus_fdc_class_init, }; -static Property sun4m_fdc_properties[] = { +static const Property sun4m_fdc_properties[] = { DEFINE_PROP_SIGNED("fdtype", FDCtrlSysBus, state.qdev_for_drives[0].type, FLOPPY_DRIVE_TYPE_AUTO, qdev_prop_fdc_drive_type, FloppyDriveType), diff --git a/hw/block/fdc.c b/hw/block/fdc.c index 6dd94e98bc..57d6844806 100644 --- a/hw/block/fdc.c +++ b/hw/block/fdc.c @@ -454,7 +454,7 @@ struct FloppyDrive { FloppyDriveType type; }; -static Property floppy_drive_properties[] = { +static const Property floppy_drive_properties[] = { DEFINE_PROP_UINT32("unit", FloppyDrive, unit, -1), DEFINE_BLOCK_PROPERTIES(FloppyDrive, conf), DEFINE_PROP_SIGNED("drive-type", FloppyDrive, type, diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 748594524e..ca97365926 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -1720,7 +1720,7 @@ static int m25p80_pre_save(void *opaque) return 0; } -static Property m25p80_properties[] = { +static const Property m25p80_properties[] = { /* This is default value for Micron flash */ DEFINE_PROP_BOOL("write-enable", Flash, write_enable, false), DEFINE_PROP_UINT32("nonvolatile-cfg", Flash, nonvolatile_cfg, 0x8FFF), diff --git a/hw/block/nand.c b/hw/block/nand.c index ac0a5d2b42..b6e6bfac23 100644 --- a/hw/block/nand.c +++ b/hw/block/nand.c @@ -445,7 +445,7 @@ static void nand_realize(DeviceState *dev, Error **errp) s->ioaddr = s->io; } -static Property nand_properties[] = { +static const Property nand_properties[] = { DEFINE_PROP_UINT8("manufacturer_id", NANDFlashState, manf_id, 0), DEFINE_PROP_UINT8("chip_id", NANDFlashState, chip_id, 0), DEFINE_PROP_DRIVE("drive", NANDFlashState, blk), diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index 21a81b44f0..20f4fc67a0 100644 --- a/hw/block/pflash_cfi01.c +++ b/hw/block/pflash_cfi01.c @@ -895,7 +895,7 @@ static void pflash_cfi01_system_reset(DeviceState *dev) pfl->blk_offset = -1; } -static Property pflash_cfi01_properties[] = { +static const Property pflash_cfi01_properties[] = { DEFINE_PROP_DRIVE("drive", PFlashCFI01, blk), /* num-blocks is the number of blocks actually visible to the guest, * ie the total size of the device divided by the sector length. diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index 8393f261b8..c82002d665 100644 --- a/hw/block/pflash_cfi02.c +++ b/hw/block/pflash_cfi02.c @@ -937,7 +937,7 @@ static void pflash_cfi02_reset(DeviceState *dev) pflash_reset_state_machine(pfl); } -static Property pflash_cfi02_properties[] = { +static const Property pflash_cfi02_properties[] = { DEFINE_PROP_DRIVE("drive", PFlashCFI02, blk), DEFINE_PROP_UINT32("num-blocks", PFlashCFI02, uniform_nb_blocs, 0), DEFINE_PROP_UINT32("sector-length", PFlashCFI02, uniform_sector_len, 0), diff --git a/hw/block/swim.c b/hw/block/swim.c index 64992eb72e..c336d83bdc 100644 --- a/hw/block/swim.c +++ b/hw/block/swim.c @@ -166,7 +166,7 @@ static const BlockDevOps swim_block_ops = { .change_media_cb = swim_change_cb, }; -static Property swim_drive_properties[] = { +static const Property swim_drive_properties[] = { DEFINE_PROP_INT32("unit", SWIMDrive, unit, -1), DEFINE_BLOCK_PROPERTIES(SWIMDrive, conf), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/block/vhost-user-blk.c b/hw/block/vhost-user-blk.c index 7996e49821..f3ac007108 100644 --- a/hw/block/vhost-user-blk.c +++ b/hw/block/vhost-user-blk.c @@ -570,7 +570,7 @@ static const VMStateDescription vmstate_vhost_user_blk = { }, }; -static Property vhost_user_blk_properties[] = { +static const Property vhost_user_blk_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBlk, chardev), DEFINE_PROP_UINT16("num-queues", VHostUserBlk, num_queues, VHOST_USER_BLK_AUTO_NUM_QUEUES), diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 9166d7974d..9ca60fbc07 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -1985,7 +1985,7 @@ static const VMStateDescription vmstate_virtio_blk = { }, }; -static Property virtio_blk_properties[] = { +static const Property virtio_blk_properties[] = { DEFINE_BLOCK_PROPERTIES(VirtIOBlock, conf.conf), DEFINE_BLOCK_ERROR_PROPERTIES(VirtIOBlock, conf.conf), DEFINE_BLOCK_CHS_PROPERTIES(VirtIOBlock, conf.conf), diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index 72cfd6893a..0c0817f498 100644 --- a/hw/block/xen-block.c +++ b/hw/block/xen-block.c @@ -666,7 +666,7 @@ static const PropertyInfo xen_block_prop_vdev = { .set = xen_block_set_vdev, }; -static Property xen_block_props[] = { +static const Property xen_block_props[] = { DEFINE_PROP("vdev", XenBlockDevice, props.vdev, xen_block_prop_vdev, XenBlockVdev), DEFINE_BLOCK_PROPERTIES(XenBlockDevice, props.conf), From patchwork Sun Dec 15 19:04:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850969 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520327wry; Sun, 15 Dec 2024 11:07:31 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXvjF76bqRZ/y7TXIaE5zFmMUQyYRuE7Kaplt5aofCLXdpwWLzguMcdy4Os/QsDmBJhHKH+dA==@linaro.org X-Google-Smtp-Source: AGHT+IGyaF7ueUUQzJqH8TA5tv+zlp8nmlyVCK9eYWKuTIiDUtb3uOTq5efQjM65/TM1t2ZBWBrD X-Received: by 2002:ad4:5f8f:0:b0:6d8:850a:4d7d with SMTP id 6a1803df08f44-6dc8ca41e0dmr202326626d6.2.1734289650863; Sun, 15 Dec 2024 11:07:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289650; cv=none; d=google.com; s=arc-20240605; b=CgXq+DIl4Y56fW6SsyJgq6O7T56+TRnIoofNEErhIWhfMGt+PhhWL3OLuayZ4NHFkS 5/Z9CjTUk3o0eBirwrauFO4uveWsO8qcRuDPqxsHJao3Vwccvs3Psp74QGBTiNIAejQZ X7bsT25HLMKAfR0q0snI8FEKQs8yxjMjivXwMpXR/z89dadF3UOTP39rllgILNbaVIjN JFEHbVLB+2ghj4/B6bz5LyVSRT8gggVzRccXIR1c9BlvraRsyZupnq5Nd6VwYmoxr2dH vOXtA0w8TFuJo7EWKeLpu/k/KQWvVgGw4iEWc+9/rDBtllNPi4r8syoRHc5bTmaPWEwa 6lKA== 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=eqPuXl5+10vLHwjDGvcM0OPvx5Z3VQusD4H9qjLeG3I=; fh=qDD2CKPn7GMzzZqik2QTTjvN2ccMpl3I7G+f+x1fTiQ=; b=JpGXxgcxiFowVdQr67ynhr2BQ0uznzTuA1ro56EMa9TUer5FBxQ0fYGIHK8T4RK+DT E9ferJyDYwhOYzkk8PwDqsVcCo3L+kEczl1CKg34Jv4toPz3ULMyqDhHZZGovX3O5pHN BRnHc/wlNhp7mShfNMbG/CnRJwNKrcU2pJGlAQAMZCpSEiwsNxBURGiK3qIexy/Q0gY2 ifuqo9symKfYOA3dyo+kg/GMEjSGB2H1l9h0mxhH7wTCF4jIbPaEB9OJ8JCccEaefewR rO2fTsJT52LbGm4OzabPy3p0kFx2nabYYlVefBCoCur9IkNBv5h0k/tynlahPLx87SJh uHaQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=znVTr8t8; 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-6dccd399551si50869386d6.423.2024.12.15.11.07.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:07:30 -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=znVTr8t8; 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 1tMtwm-0001bs-8u; Sun, 15 Dec 2024 14:06:32 -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 1tMtwT-0001J6-5T for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:13 -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 1tMtwO-00015s-Gt for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:12 -0500 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-29e5aedbebdso1635593fac.0 for ; Sun, 15 Dec 2024 11:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289566; x=1734894366; 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=eqPuXl5+10vLHwjDGvcM0OPvx5Z3VQusD4H9qjLeG3I=; b=znVTr8t8dkzu+aySUzUa8obe/lUfnwGvx/FkPkbRk8qykgENDrPwjLg96fCJUl5akn hzlJ1CYFWvjH175rEL1VcTw5UBb6I5qd2gdTu7f2NbzWKMcN67Wytzu8dexc45zEGHrM XEe2PdDA6XD8LcnkCTv5/5TOT2gPfpWMntbHOI7HiHBxP4Co0GVFwzn8MTe+WztRVz18 lx7aueNw05xjXKh8ciBETc71/g0DUrx3Y9crhfKMPeGguAPDZdeNM/jPqtnRcLYXOmXJ 85ek6DXZhN5rrh1kWNGpfy/Vv85rKv16KQz692QQe+XNIW4MG9IPSSERzF0wErw71bkw TTpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289566; x=1734894366; 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=eqPuXl5+10vLHwjDGvcM0OPvx5Z3VQusD4H9qjLeG3I=; b=AJz4ihXygIhLoTm4zyg8A7yWG4qyfgWMjak4BRUYzGGFEznZTII6ARwVfVpYczRLqs K27STrGTSu70zvrlRMhDRqDABqwgtO4spkgWbaB67MQDvujeQNF++Wre9mAvhK4q57xb a3NBcdukbt8ObQZQ0MsfLjF7r0Zy/Vqn6+kTrnjza2Fv8GR8SqXtrzxpHZktkNnHTBgq ZCUc9j9ufxnWaOivcYf6ZM8Ug1tQW3HNoNyvduqbqzYHeyfMjaG0h0QG/CKpbV/eu7xF MeSGAODYiu+rZFTVRHdkILnd6t0d9ai204+zih+/ryPudyUJ8/TxCPfK7vRsnGSIsIGD imJQ== X-Gm-Message-State: AOJu0YxPUCFfTMS72WuL66RBMIAMFOMjs07WgiuoyMmYgwnNA4XoyszZ xpETvLiXfUFEPZQCoFyNLZiqvDcyEHXdl/7zLsiprFbILbmPnZXIimTyveDBtM98Lyd82NXByUe 9E27Bfys+ X-Gm-Gg: ASbGncsYIiOf1KWGxH/yeeqfuzdfrzUR8Nkf6x6U90JyfD/CuBlkX7bRObe8wrwRM6e dECJ31VkdIV72TiOT/S/f1yBBNw3MTJcQkvy55DuEPtkjDKeZYjUglZrVkytdQODxxcQLaDw/BO WHjAJyxXrIFXcPpQC9nON3n9lkXqgQswXLzOh94LPTw2l9iD46P5LmnNAX8t6+j6KxQGnNzlR+x RSInzkJO3gyF9ienPGiltPuNNuesZ863cfgrpMjBdkQz3w2+KWORc3K8NXNdTtak5Z91Krw+RRw +3XiEYDJ85WQvHLYfUqrT5EjGTnuY2X7JarKVMkWFNQ= X-Received: by 2002:a05:6871:14c:b0:296:2cb4:2394 with SMTP id 586e51a60fabf-2a3ac5d32a9mr4679110fac.17.1734289566121; Sun, 15 Dec 2024 11:06:06 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Alberto Garcia , =?utf-8?q?Philip?= =?utf-8?q?pe_Mathieu-Daud=C3=A9?= Subject: [PULL 19/67] hw/char: Constify all Property Date: Sun, 15 Dec 2024 13:04:45 -0600 Message-ID: <20241215190533.3222854-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Acked-by: Alberto Garcia Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- hw/char/avr_usart.c | 2 +- hw/char/bcm2835_aux.c | 2 +- hw/char/cadence_uart.c | 2 +- hw/char/cmsdk-apb-uart.c | 2 +- hw/char/debugcon.c | 2 +- hw/char/digic-uart.c | 2 +- hw/char/escc.c | 2 +- hw/char/exynos4210_uart.c | 2 +- hw/char/goldfish_tty.c | 2 +- hw/char/grlib_apbuart.c | 2 +- hw/char/ibex_uart.c | 2 +- hw/char/imx_serial.c | 2 +- hw/char/ipoctal232.c | 2 +- hw/char/mcf_uart.c | 2 +- hw/char/nrf51_uart.c | 2 +- hw/char/parallel.c | 2 +- hw/char/pl011.c | 2 +- hw/char/renesas_sci.c | 2 +- hw/char/sclpconsole-lm.c | 2 +- hw/char/sclpconsole.c | 2 +- hw/char/serial-isa.c | 2 +- hw/char/serial-mm.c | 2 +- hw/char/serial-pci-multi.c | 4 ++-- hw/char/serial-pci.c | 2 +- hw/char/serial.c | 2 +- hw/char/sh_serial.c | 2 +- hw/char/shakti_uart.c | 2 +- hw/char/sifive_uart.c | 2 +- hw/char/spapr_vty.c | 2 +- hw/char/stm32f2xx_usart.c | 2 +- hw/char/stm32l4x5_usart.c | 2 +- hw/char/terminal3270.c | 2 +- hw/char/virtio-console.c | 2 +- hw/char/virtio-serial-bus.c | 4 ++-- hw/char/xen_console.c | 2 +- hw/char/xilinx_uartlite.c | 2 +- 36 files changed, 38 insertions(+), 38 deletions(-) diff --git a/hw/char/avr_usart.c b/hw/char/avr_usart.c index 3aff01cd54..3421576e45 100644 --- a/hw/char/avr_usart.c +++ b/hw/char/avr_usart.c @@ -259,7 +259,7 @@ static const MemoryRegionOps avr_usart_ops = { .impl = {.min_access_size = 1, .max_access_size = 1} }; -static Property avr_usart_properties[] = { +static const Property avr_usart_properties[] = { DEFINE_PROP_CHR("chardev", AVRUsartState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/bcm2835_aux.c b/hw/char/bcm2835_aux.c index fca2f27a55..30285c97b0 100644 --- a/hw/char/bcm2835_aux.c +++ b/hw/char/bcm2835_aux.c @@ -290,7 +290,7 @@ static void bcm2835_aux_realize(DeviceState *dev, Error **errp) bcm2835_aux_receive, NULL, NULL, s, NULL, true); } -static Property bcm2835_aux_props[] = { +static const Property bcm2835_aux_props[] = { DEFINE_PROP_CHR("chardev", BCM2835AuxState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/cadence_uart.c b/hw/char/cadence_uart.c index 77d9a2a221..2e778f7a9c 100644 --- a/hw/char/cadence_uart.c +++ b/hw/char/cadence_uart.c @@ -617,7 +617,7 @@ static const VMStateDescription vmstate_cadence_uart = { }, }; -static Property cadence_uart_properties[] = { +static const Property cadence_uart_properties[] = { DEFINE_PROP_CHR("chardev", CadenceUARTState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/cmsdk-apb-uart.c b/hw/char/cmsdk-apb-uart.c index 467e40b715..e37e14e0f2 100644 --- a/hw/char/cmsdk-apb-uart.c +++ b/hw/char/cmsdk-apb-uart.c @@ -377,7 +377,7 @@ static const VMStateDescription cmsdk_apb_uart_vmstate = { } }; -static Property cmsdk_apb_uart_properties[] = { +static const Property cmsdk_apb_uart_properties[] = { DEFINE_PROP_CHR("chardev", CMSDKAPBUART, chr), DEFINE_PROP_UINT32("pclk-frq", CMSDKAPBUART, pclk_frq, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/char/debugcon.c b/hw/char/debugcon.c index fdb04fee09..c0f16e9bd6 100644 --- a/hw/char/debugcon.c +++ b/hw/char/debugcon.c @@ -114,7 +114,7 @@ static void debugcon_isa_realizefn(DeviceState *dev, Error **errp) isa->iobase, &s->io); } -static Property debugcon_isa_properties[] = { +static const Property debugcon_isa_properties[] = { DEFINE_PROP_UINT32("iobase", ISADebugconState, iobase, 0xe9), DEFINE_PROP_CHR("chardev", ISADebugconState, state.chr), DEFINE_PROP_UINT32("readback", ISADebugconState, state.readback, 0xe9), diff --git a/hw/char/digic-uart.c b/hw/char/digic-uart.c index 5b04abec1d..03beba11ad 100644 --- a/hw/char/digic-uart.c +++ b/hw/char/digic-uart.c @@ -172,7 +172,7 @@ static const VMStateDescription vmstate_digic_uart = { } }; -static Property digic_uart_properties[] = { +static const Property digic_uart_properties[] = { DEFINE_PROP_CHR("chardev", DigicUartState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/escc.c b/hw/char/escc.c index b1b1bbed15..08bc65ef2c 100644 --- a/hw/char/escc.c +++ b/hw/char/escc.c @@ -1089,7 +1089,7 @@ static void escc_realize(DeviceState *dev, Error **errp) } } -static Property escc_properties[] = { +static const Property escc_properties[] = { DEFINE_PROP_UINT32("frequency", ESCCState, frequency, 0), DEFINE_PROP_UINT32("it_shift", ESCCState, it_shift, 0), DEFINE_PROP_BOOL("bit_swap", ESCCState, bit_swap, false), diff --git a/hw/char/exynos4210_uart.c b/hw/char/exynos4210_uart.c index d9e732f98b..c2836ff8fd 100644 --- a/hw/char/exynos4210_uart.c +++ b/hw/char/exynos4210_uart.c @@ -704,7 +704,7 @@ static void exynos4210_uart_realize(DeviceState *dev, Error **errp) NULL, s, NULL, true); } -static Property exynos4210_uart_properties[] = { +static const Property exynos4210_uart_properties[] = { DEFINE_PROP_CHR("chardev", Exynos4210UartState, chr), DEFINE_PROP_UINT32("channel", Exynos4210UartState, channel, 0), DEFINE_PROP_UINT32("rx-size", Exynos4210UartState, rx.size, 16), diff --git a/hw/char/goldfish_tty.c b/hw/char/goldfish_tty.c index d1917b83d8..68e261236e 100644 --- a/hw/char/goldfish_tty.c +++ b/hw/char/goldfish_tty.c @@ -241,7 +241,7 @@ static const VMStateDescription vmstate_goldfish_tty = { } }; -static Property goldfish_tty_properties[] = { +static const Property goldfish_tty_properties[] = { DEFINE_PROP_CHR("chardev", GoldfishTTYState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/grlib_apbuart.c b/hw/char/grlib_apbuart.c index d0032b4d2a..caae88d77d 100644 --- a/hw/char/grlib_apbuart.c +++ b/hw/char/grlib_apbuart.c @@ -277,7 +277,7 @@ static void grlib_apbuart_reset(DeviceState *d) uart->current = 0; } -static Property grlib_apbuart_properties[] = { +static const Property grlib_apbuart_properties[] = { DEFINE_PROP_CHR("chrdev", UART, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/ibex_uart.c b/hw/char/ibex_uart.c index 589177f85b..b1bdb2ad15 100644 --- a/hw/char/ibex_uart.c +++ b/hw/char/ibex_uart.c @@ -508,7 +508,7 @@ static const VMStateDescription vmstate_ibex_uart = { } }; -static Property ibex_uart_properties[] = { +static const Property ibex_uart_properties[] = { DEFINE_PROP_CHR("chardev", IbexUartState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/imx_serial.c b/hw/char/imx_serial.c index 22c9080b1c..6376f2cadc 100644 --- a/hw/char/imx_serial.c +++ b/hw/char/imx_serial.c @@ -438,7 +438,7 @@ static void imx_serial_init(Object *obj) sysbus_init_irq(sbd, &s->irq); } -static Property imx_serial_properties[] = { +static const Property imx_serial_properties[] = { DEFINE_PROP_CHR("chardev", IMXSerialState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/ipoctal232.c b/hw/char/ipoctal232.c index 64be5226d4..fb8cb6c2b7 100644 --- a/hw/char/ipoctal232.c +++ b/hw/char/ipoctal232.c @@ -558,7 +558,7 @@ static void ipoctal_realize(DeviceState *dev, Error **errp) } } -static Property ipoctal_properties[] = { +static const Property ipoctal_properties[] = { DEFINE_PROP_CHR("chardev0", IPOctalState, ch[0].dev), DEFINE_PROP_CHR("chardev1", IPOctalState, ch[1].dev), DEFINE_PROP_CHR("chardev2", IPOctalState, ch[2].dev), diff --git a/hw/char/mcf_uart.c b/hw/char/mcf_uart.c index ad15e28944..c044536d5d 100644 --- a/hw/char/mcf_uart.c +++ b/hw/char/mcf_uart.c @@ -312,7 +312,7 @@ static void mcf_uart_realize(DeviceState *dev, Error **errp) mcf_uart_event, NULL, s, NULL, true); } -static Property mcf_uart_properties[] = { +static const Property mcf_uart_properties[] = { DEFINE_PROP_CHR("chardev", mcf_uart_state, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/nrf51_uart.c b/hw/char/nrf51_uart.c index 04da3f8d97..b164c70f52 100644 --- a/hw/char/nrf51_uart.c +++ b/hw/char/nrf51_uart.c @@ -304,7 +304,7 @@ static const VMStateDescription nrf51_uart_vmstate = { } }; -static Property nrf51_uart_properties[] = { +static const Property nrf51_uart_properties[] = { DEFINE_PROP_CHR("chardev", NRF51UARTState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/parallel.c b/hw/char/parallel.c index c394635ada..15191698f5 100644 --- a/hw/char/parallel.c +++ b/hw/char/parallel.c @@ -603,7 +603,7 @@ bool parallel_mm_init(MemoryRegion *address_space, return true; } -static Property parallel_isa_properties[] = { +static const Property parallel_isa_properties[] = { DEFINE_PROP_UINT32("index", ISAParallelState, index, -1), DEFINE_PROP_UINT32("iobase", ISAParallelState, iobase, -1), DEFINE_PROP_UINT32("irq", ISAParallelState, isairq, 7), diff --git a/hw/char/pl011.c b/hw/char/pl011.c index 0fd1334fab..5fbee5e6c5 100644 --- a/hw/char/pl011.c +++ b/hw/char/pl011.c @@ -603,7 +603,7 @@ static const VMStateDescription vmstate_pl011 = { } }; -static Property pl011_properties[] = { +static const Property pl011_properties[] = { DEFINE_PROP_CHR("chardev", PL011State, chr), DEFINE_PROP_BOOL("migrate-clk", PL011State, migrate_clk, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/char/renesas_sci.c b/hw/char/renesas_sci.c index 7ce0408b0c..516b48648b 100644 --- a/hw/char/renesas_sci.c +++ b/hw/char/renesas_sci.c @@ -319,7 +319,7 @@ static const VMStateDescription vmstate_rsci = { } }; -static Property rsci_properties[] = { +static const Property rsci_properties[] = { DEFINE_PROP_UINT64("input-freq", RSCIState, input_freq, 0), DEFINE_PROP_CHR("chardev", RSCIState, chr), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/char/sclpconsole-lm.c b/hw/char/sclpconsole-lm.c index 4fe1c4d289..536b283471 100644 --- a/hw/char/sclpconsole-lm.c +++ b/hw/char/sclpconsole-lm.c @@ -333,7 +333,7 @@ static void console_reset(DeviceState *dev) scon->write_errors = 0; } -static Property console_properties[] = { +static const Property console_properties[] = { DEFINE_PROP_CHR("chardev", SCLPConsoleLM, chr), DEFINE_PROP_UINT32("write_errors", SCLPConsoleLM, write_errors, 0), DEFINE_PROP_BOOL("echo", SCLPConsoleLM, echo, true), diff --git a/hw/char/sclpconsole.c b/hw/char/sclpconsole.c index e6d49e819e..a90b892d1d 100644 --- a/hw/char/sclpconsole.c +++ b/hw/char/sclpconsole.c @@ -251,7 +251,7 @@ static void console_reset(DeviceState *dev) scon->notify = false; } -static Property console_properties[] = { +static const Property console_properties[] = { DEFINE_PROP_CHR("chardev", SCLPConsole, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/serial-isa.c b/hw/char/serial-isa.c index b562ec9d37..2cf50eb0bb 100644 --- a/hw/char/serial-isa.c +++ b/hw/char/serial-isa.c @@ -113,7 +113,7 @@ static const VMStateDescription vmstate_isa_serial = { } }; -static Property serial_isa_properties[] = { +static const Property serial_isa_properties[] = { DEFINE_PROP_UINT32("index", ISASerialState, index, -1), DEFINE_PROP_UINT32("iobase", ISASerialState, iobase, -1), DEFINE_PROP_UINT32("irq", ISASerialState, isairq, -1), diff --git a/hw/char/serial-mm.c b/hw/char/serial-mm.c index 2f67776b19..8f51f1d3b8 100644 --- a/hw/char/serial-mm.c +++ b/hw/char/serial-mm.c @@ -125,7 +125,7 @@ static void serial_mm_instance_init(Object *o) qdev_alias_all_properties(DEVICE(&smm->serial), o); } -static Property serial_mm_properties[] = { +static const Property serial_mm_properties[] = { /* * Set the spacing between adjacent memory-mapped UART registers. * Each register will be at (1 << regshift) bytes after the previous one. diff --git a/hw/char/serial-pci-multi.c b/hw/char/serial-pci-multi.c index 28b275709a..c2f20d8e74 100644 --- a/hw/char/serial-pci-multi.c +++ b/hw/char/serial-pci-multi.c @@ -132,14 +132,14 @@ static const VMStateDescription vmstate_pci_multi_serial = { } }; -static Property multi_2x_serial_pci_properties[] = { +static const Property multi_2x_serial_pci_properties[] = { DEFINE_PROP_CHR("chardev1", PCIMultiSerialState, state[0].chr), DEFINE_PROP_CHR("chardev2", PCIMultiSerialState, state[1].chr), DEFINE_PROP_UINT8("prog_if", PCIMultiSerialState, prog_if, 0x02), DEFINE_PROP_END_OF_LIST(), }; -static Property multi_4x_serial_pci_properties[] = { +static const Property multi_4x_serial_pci_properties[] = { DEFINE_PROP_CHR("chardev1", PCIMultiSerialState, state[0].chr), DEFINE_PROP_CHR("chardev2", PCIMultiSerialState, state[1].chr), DEFINE_PROP_CHR("chardev3", PCIMultiSerialState, state[2].chr), diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c index f8a1a94d0c..2f487a3a79 100644 --- a/hw/char/serial-pci.c +++ b/hw/char/serial-pci.c @@ -81,7 +81,7 @@ static const VMStateDescription vmstate_pci_serial = { } }; -static Property serial_pci_properties[] = { +static const Property serial_pci_properties[] = { DEFINE_PROP_UINT8("prog_if", PCISerialState, prog_if, 0x02), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/serial.c b/hw/char/serial.c index b50a8a1313..85dba02ace 100644 --- a/hw/char/serial.c +++ b/hw/char/serial.c @@ -964,7 +964,7 @@ const MemoryRegionOps serial_io_ops = { .endianness = DEVICE_LITTLE_ENDIAN, }; -static Property serial_properties[] = { +static const Property serial_properties[] = { DEFINE_PROP_CHR("chardev", SerialState, chr), DEFINE_PROP_UINT32("baudbase", SerialState, baudbase, 115200), DEFINE_PROP_BOOL("wakeup", SerialState, wakeup, false), diff --git a/hw/char/sh_serial.c b/hw/char/sh_serial.c index 429b2562aa..2ab7197aee 100644 --- a/hw/char/sh_serial.c +++ b/hw/char/sh_serial.c @@ -447,7 +447,7 @@ static void sh_serial_init(Object *obj) { } -static Property sh_serial_properties[] = { +static const Property sh_serial_properties[] = { DEFINE_PROP_CHR("chardev", SHSerialState, chr), DEFINE_PROP_UINT8("features", SHSerialState, feat, 0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/char/shakti_uart.c b/hw/char/shakti_uart.c index 4a71953c9a..6e56754ca6 100644 --- a/hw/char/shakti_uart.c +++ b/hw/char/shakti_uart.c @@ -157,7 +157,7 @@ static void shakti_uart_instance_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &sus->mmio); } -static Property shakti_uart_properties[] = { +static const Property shakti_uart_properties[] = { DEFINE_PROP_CHR("chardev", ShaktiUartState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/sifive_uart.c b/hw/char/sifive_uart.c index 5ae2a29ed6..97e4be37c0 100644 --- a/hw/char/sifive_uart.c +++ b/hw/char/sifive_uart.c @@ -251,7 +251,7 @@ static int sifive_uart_be_change(void *opaque) return 0; } -static Property sifive_uart_properties[] = { +static const Property sifive_uart_properties[] = { DEFINE_PROP_CHR("chardev", SiFiveUARTState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/spapr_vty.c b/hw/char/spapr_vty.c index 3e23d9cbab..cd91dad709 100644 --- a/hw/char/spapr_vty.c +++ b/hw/char/spapr_vty.c @@ -163,7 +163,7 @@ void spapr_vty_create(SpaprVioBus *bus, Chardev *chardev) qdev_realize_and_unref(dev, &bus->bus, &error_fatal); } -static Property spapr_vty_properties[] = { +static const Property spapr_vty_properties[] = { DEFINE_SPAPR_PROPERTIES(SpaprVioVty, sdev), DEFINE_PROP_CHR("chardev", SpaprVioVty, chardev), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/char/stm32f2xx_usart.c b/hw/char/stm32f2xx_usart.c index 17b5b1f15f..4a3c30eddb 100644 --- a/hw/char/stm32f2xx_usart.c +++ b/hw/char/stm32f2xx_usart.c @@ -199,7 +199,7 @@ static const MemoryRegionOps stm32f2xx_usart_ops = { .endianness = DEVICE_NATIVE_ENDIAN, }; -static Property stm32f2xx_usart_properties[] = { +static const Property stm32f2xx_usart_properties[] = { DEFINE_PROP_CHR("chardev", STM32F2XXUsartState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/stm32l4x5_usart.c b/hw/char/stm32l4x5_usart.c index 3cf200c080..360e79cc3f 100644 --- a/hw/char/stm32l4x5_usart.c +++ b/hw/char/stm32l4x5_usart.c @@ -534,7 +534,7 @@ static const MemoryRegionOps stm32l4x5_usart_base_ops = { }, }; -static Property stm32l4x5_usart_base_properties[] = { +static const Property stm32l4x5_usart_base_properties[] = { DEFINE_PROP_CHR("chardev", Stm32l4x5UsartBaseState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/terminal3270.c b/hw/char/terminal3270.c index 82e85fac2e..c2aafda0ce 100644 --- a/hw/char/terminal3270.c +++ b/hw/char/terminal3270.c @@ -283,7 +283,7 @@ static int write_payload_3270(EmulatedCcw3270Device *dev, uint8_t cmd) return (retval <= 0) ? 0 : get_cds(t)->count; } -static Property terminal_properties[] = { +static const Property terminal_properties[] = { DEFINE_PROP_CHR("chardev", Terminal3270, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/virtio-console.c b/hw/char/virtio-console.c index dbe0b28e60..f58292e2bb 100644 --- a/hw/char/virtio-console.c +++ b/hw/char/virtio-console.c @@ -274,7 +274,7 @@ static const TypeInfo virtconsole_info = { .class_init = virtconsole_class_init, }; -static Property virtserialport_properties[] = { +static const Property virtserialport_properties[] = { DEFINE_PROP_CHR("chardev", VirtConsole, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c index 2094d213cd..1e631bcb2b 100644 --- a/hw/char/virtio-serial-bus.c +++ b/hw/char/virtio-serial-bus.c @@ -835,7 +835,7 @@ static int virtio_serial_load_device(VirtIODevice *vdev, QEMUFile *f, static void virtser_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent); -static Property virtser_props[] = { +static const Property virtser_props[] = { DEFINE_PROP_UINT32("nr", VirtIOSerialPort, id, VIRTIO_CONSOLE_BAD_ID), DEFINE_PROP_STRING("name", VirtIOSerialPort, name), DEFINE_PROP_END_OF_LIST() @@ -1153,7 +1153,7 @@ static const VMStateDescription vmstate_virtio_console = { }, }; -static Property virtio_serial_properties[] = { +static const Property virtio_serial_properties[] = { DEFINE_PROP_UINT32("max_ports", VirtIOSerial, serial.max_virtserial_ports, 31), DEFINE_PROP_BIT64("emergency-write", VirtIOSerial, host_features, diff --git a/hw/char/xen_console.c b/hw/char/xen_console.c index 683c92aca1..c20c1b4b84 100644 --- a/hw/char/xen_console.c +++ b/hw/char/xen_console.c @@ -487,7 +487,7 @@ static char *xen_console_get_frontend_path(XenDevice *xendev, Error **errp) } -static Property xen_console_properties[] = { +static const Property xen_console_properties[] = { DEFINE_PROP_CHR("chardev", XenConsole, chr), DEFINE_PROP_INT32("idx", XenConsole, dev, -1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/char/xilinx_uartlite.c b/hw/char/xilinx_uartlite.c index f325084f8b..ad77226217 100644 --- a/hw/char/xilinx_uartlite.c +++ b/hw/char/xilinx_uartlite.c @@ -176,7 +176,7 @@ static const MemoryRegionOps uart_ops = { } }; -static Property xilinx_uartlite_properties[] = { +static const Property xilinx_uartlite_properties[] = { DEFINE_PROP_CHR("chardev", XilinxUARTLite, chr), DEFINE_PROP_END_OF_LIST(), }; From patchwork Sun Dec 15 19:04:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851013 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523687wry; Sun, 15 Dec 2024 11:17:11 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUQkdG+RDWDjhXabAkTAi5Q9ieMS12ef6vWXat/MFkmDgz9foJDYqrJpDS7L1dLYWkpq9FVSQ==@linaro.org X-Google-Smtp-Source: AGHT+IGlykCjWvvlv0BAwF+jssKXo5p89vpcUxMqX6XIy5WLfzcXeoP3mkP9QdClMOVdKx43sve5 X-Received: by 2002:a05:622a:48f:b0:467:8703:a740 with SMTP id d75a77b69052e-467a5755691mr195638931cf.18.1734290231058; Sun, 15 Dec 2024 11:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290231; cv=none; d=google.com; s=arc-20240605; b=CRlRYGFBIRjnCUeywPTQHf0vzAnJYmx1F63BhhXvcAZraIDqMfEjje77U2Wli1j9FP UkAITUVCrjte9A3zsmXDUy56VgleCrshw/WaZLMCAZuid/p1sxlu63lGYayYQiRu4O5S fXw1/ACaV3mebhrEXGaR79nrDo5DAgaFFFC5SN8v9QRjVQF08DJslTSrgCPJiquhtnM1 sjbN+7BEh6y6nd4A+sxfjyHekgFe7Z+CmDa25ityC/vRWQIKM2sT/ZRstZeVKsSVrK1a WSjqsbOf8d/XnGJldZZlWtrqoJ3a6MYccyfMU9VU4cOHr6rbCTLl5vzUtBfhZ1SdLYEi reJg== 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=NmMi/xuqJ4zahJFECv1RiZkhOgP/JH9kb/vELILAgfs=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=llkNpvGSypxgoSMuoOW3CoT5qSKTsbwMTE3xo0pZYwrdVK6W7uY5jRTXICAH3ALOzQ uqMa+enge1gayqXs/LaW2UXZXaEY0uiRekZnVmioaCj7+wIIiycCSbupzg215Xbu6OiV 1cXOJQrB2YRfXwpwF+YGycCbJE9FbBJpx+rNoLrgz/hL+A/C3S7jpKDpw0dlLL02X3ip 1RTePtmoS0Ekkeko4Y+qVaqz+ReyI7iOrOU5EBd7r2dZSK544F9oF36h0sRcNHUvphxO uN2nDKbYWRhX+mec1lB4yth49P4B//b15e6a4DFaddon0m/CLKckqV1RlwAlCNUXNMb6 mU9g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pg90uEjL; 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-467b2ecf2ddsi51210961cf.365.2024.12.15.11.17.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:17:11 -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=Pg90uEjL; 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 1tMtwV-0001Ka-Bw; Sun, 15 Dec 2024 14:06: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 1tMtwR-0001Iq-PP for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:11 -0500 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwO-00016P-Hi for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:11 -0500 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-2a01bcd0143so2494536fac.2 for ; Sun, 15 Dec 2024 11:06:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289567; x=1734894367; 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=NmMi/xuqJ4zahJFECv1RiZkhOgP/JH9kb/vELILAgfs=; b=Pg90uEjLJhJxN+rlFFyL45ONSMrj3vQ+IGIjvLSe0wRxpAYbFxDHG4UUG2csEJdee1 x3oYOfCMmVH87fYqHl6sh68kwWOlSdZa+Kk3RwJ9WGWcxiirSyaNUVMt3DQJy5dh36qM 90fcj75ZveKwUDDVG3dHObVxXAQ37bshHMOYFYinbKT96T8HCekx+8M6IY/y2XHblTmQ GAcupm95ywSnB+j/kYn53Axwg++4LlThJWrKusYsvSXQyxbHotegL6VypGLEIgEKBFBO Ox41La7l5MuyRqnnssi1tnTRPuMzp2YlYzumSf07Wu9DvYhEtP+10H5cQgn1JNt0lNxG a/5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289567; x=1734894367; 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=NmMi/xuqJ4zahJFECv1RiZkhOgP/JH9kb/vELILAgfs=; b=Z+EfJu+uoPuZT07HRuh1BIRRxTdkV+uKIuqMwT+peIRwGs5I85FvxbZH7t7oX6jXPH /0fadknr2ufOihh+EK2lpFpKdD6ysWkkBc/nUd1rPHYRhlZQPNhGhhKtIjqnf9jqzfL3 4xK5DGtu5w299h7IDShHEeJBfP8LWSmLq+YdwwZWRpuKjMxu2CvhEAfZovHA0QN+8nLr PrhL0xrQYDeXk2HlsQr4lU/FkUrwhmZiZuMnSr5V08MJxA/AQ2iaS4EIdUiTyFjjwdEc l/qwTB4Ou/EUZTEQur6p7tDAoFI6A8uUipB4sy3kLhiwtFcGUusXGoDWraaEYg4f7z+Z Tkjw== X-Gm-Message-State: AOJu0YxvOrjYrp+E6LKpm1VAryLCe5f02Nq4kz9nPajd3L/4ptbDTNXU k/ofBN0YnjdlnOtXTQgm6N6FMhYuX7/86YhjdvOig0KpB/llHbUOEIU+f99ECP0ozucEZLXIRdh 19rYcdb6K X-Gm-Gg: ASbGncvcwnLz2thnKWdbt2WTZkk4yVzUlkqIC9m05xHTQs87GP54JSsanxg7hgqcglb x/sl1IHGG6BRrN6CtUWVMQD6mIwnODumINC8O97kW8DpgMj8AZ+qlOgX613e9lVDRGbRuAWFRK7 uXeuCO6HH5PfUbJNQAxrXXFTRBHxaFHtl29Ny9+IvW0VXS0TFeS4DmXEZMWuOiyf0CKKhCa4Clg 1PKCQBVgYvDOWpT+0beNs6Unc6/Sub7CXOBeknzR0qlW5QRCIxkJJ4u1M+DgS+392JekrbYcUdb CLJpA4Ub4WJTU90JBZH/iGSJU6Py4Mchiu12yNCGci8= X-Received: by 2002:a05:6870:a10c:b0:29e:27bd:69ef with SMTP id 586e51a60fabf-2a3ac8b7813mr5401873fac.30.1734289567558; Sun, 15 Dec 2024 11:06:07 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:07 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 20/67] hw/core: Constify all Property Date: Sun, 15 Dec 2024 13:04:46 -0600 Message-ID: <20241215190533.3222854-21-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2c; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2c.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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850975 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520737wry; Sun, 15 Dec 2024 11:08:32 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXm/Lj7oP+b1NI85qLsp+88WnHTOc76FW8Qi7SZuQtEvmprtp81n5NGwT2TvM6mKe2PKRsJdA==@linaro.org X-Google-Smtp-Source: AGHT+IF+DP2UQFeKg7Sl/2mZkNeeJdXxFD8sfY71gW1cWWqrjfiEGw3sAx/qsz8i1oLGxdb8sSGe X-Received: by 2002:a05:620a:2605:b0:7b6:cdd4:bdea with SMTP id af79cd13be357-7b6fbee6edemr1599843885a.23.1734289712514; Sun, 15 Dec 2024 11:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289712; cv=none; d=google.com; s=arc-20240605; b=QjxJI+NIO3DCXzb2OVu6uVcqwIGbjkHlehXoEI4NRengRQeCpYeeVvgz1LFmiFw6Vr WLvx5E3qVWCuLAAEKZIIqg21JmDTYSMHjDidNeQJGyvnIEZ44YipHFPjDEuHLT3E1mBY eHbVwjiLvjDBhqBriG+V+Ci0HUulcfpm1JQUhZjSs50VHfLO0J+87KLi74d749XCl1Yw DX84y4WV+tbq/SasXyV130PFkcg3edwtkD6MJqCq8qlWLVcjPSbHGjhI38IlXp3genpQ bJhYnBtSLcGA1UoG6e+phhNNmXzFsv7SLOCac38ERAu4LI1wgulRTSUKOoXQV01s7weO jf4w== 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=Onf0PGU0mdWT869pO9aPdv4Isif7mSe2YqGwVARTFhY=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=aHyPYJoSbXDCgXZw2GjNfvvDEZ4vLt9yW1qcOanrVhuIObYzhhpiL1WUhrhxxilUVn w9GBv5GQnQ1AjQBNN9HH5jlbBqKozFyE9nFJAkRcsbtcfPT6T8Urj/rM9FaJfDSCxfri A8VBNl7svzwn7SEGsbJ6U4ZLYqmRsn6Yx3bJwUnd5qDKw9U2MasFkpllYx2F6ibtlUmD qaQF/81nx9o1c2YzzEsIa37JyVdPSizaZrgqyQmC3AA6F69hqc8Ps2QyTMV09RENYmXM 65WYJv3JhlJvnRL9e0SKRwpidhLiJ7sVc8xadaK9IgHCehlPxSWoWiiG729MMOKvF9O7 Mn8w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fDyEW8sP; 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-7b7048e4763si584885185a.551.2024.12.15.11.08.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:08: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=fDyEW8sP; 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 1tMtwY-0001LJ-UU; Sun, 15 Dec 2024 14:06:20 -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 1tMtwT-0001J9-6p for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:13 -0500 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwQ-00016w-JP for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:12 -0500 Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-5f2e13cb356so1711363eaf.2 for ; Sun, 15 Dec 2024 11:06:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289569; x=1734894369; 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=Onf0PGU0mdWT869pO9aPdv4Isif7mSe2YqGwVARTFhY=; b=fDyEW8sPpHsY8nyANHbmTr3BLByk/TuQQovxfHFwGYej4hID+yH6Y5ENwG8Ed/UTy/ sZDsCLoZutaIPNmURkPOfYOOUM/G++v/mp71Bn878tVO/JQKQXKphVnmQM6PmIKehYYE SzRApyMFphc+cq8AD9NuoAl9EIU0uD9Zsdj1X1b5UU0JhTiASi921iXLLP3+GrkHcFbq jzTUQ3cknlc8kyFNRWw/tGp9iaXokVSo4ZgNjEkRBsbV/vpVTq8oqxaTSCDwMi9MOlPa qpOKjS5qwdbXxIfXAqoFYA0OdVPPeRAdMKAD33VZNWYdfppvr2TXf5US0q/SSPiKtifQ mT7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289569; x=1734894369; 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=Onf0PGU0mdWT869pO9aPdv4Isif7mSe2YqGwVARTFhY=; b=Bvyj3qcljCuMC56Y21Tt4nJEiM3sLo7ex5XrPUQB1veQiWQciJsmv7vSx0H+SrTNIf rThM/hcvu2mJZo9SLOiWZa2K1BZuMGO9TCGXUoHl9nyJyveOS2f4Q85eXurxSkVPG+VA rJOXmZkfig393GTfXnfwyflyNrOamRqBq9ZjhTguc2DBdfvbzvR0/l8VdyAK3+CJ4z3b MU1sykxmw9W2+9apJQYKbmibsJ2Pg/5WhkjxmBN/qI3tR6P4E3v7l9Casvch9GgjI2R4 xS2qDM4iv7F1Gw5D2Jq45ZSZp3KIvNbzIwZuzmQNLxu/y+mdIYfN2hTtIC3wrYFUp+XP eLoQ== X-Gm-Message-State: AOJu0Yz0XinqTnsFsR15rjkac+naz0hkI4mF1aPTkHkwyk6rLyex5QcU 9qkZGp6Rn9nBsP7HqEZB9WpmKbJqpSVCniFMGLgNkLzglFF+M66NeSSDbHEd/aP/ABQVoLjyMR4 E1CJIJbIr X-Gm-Gg: ASbGncuwUPAT+K/1HaKLgaZs33v4V4oahjC6qmNx7OveqNEJihxHb+2ZPmq+b5m1GX/ A6cYvStI05m5p7MXEebJDF2oOFqKpTZKavYg3mUWuvF1I3xQR1Hy4U6V8lqT1F+6/He8h25PX4I sw7/yKVvqYVsh6wpxVqp7rzpSzJjY9zTBl6aQKvGNXVmFplGXF1UZKzuHU4kfx9D4M7p9a3JR2W sFxGydfdsHjg2hq3gdoo9dJ7bLEXYuedl02Gh0G06NUm9o90t0mrvB4unrczWiuCl3jtZ/om22B GqCoP4rOMHbY9t9osxHjnw1UIT08M7BBWmQiK2LufkU= X-Received: by 2002:a05:6870:414c:b0:2a3:c59d:f09d with SMTP id 586e51a60fabf-2a3c59f6a81mr4816084fac.14.1734289568951; Sun, 15 Dec 2024 11:06:08 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:08 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 21/67] hw/cpu: Constify all Property Date: Sun, 15 Dec 2024 13:04:47 -0600 Message-ID: <20241215190533.3222854-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c2f; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2f.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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851027 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2524423wry; Sun, 15 Dec 2024 11:19:25 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVtGLiIcQ3oohCiBF2IJ6zB3pvloB1XS3XIsBueoyUckIBfCcDTZsRRlfBMZkTeYh6Hk8BceA==@linaro.org X-Google-Smtp-Source: AGHT+IFaQLLc4aKnlhXas8S08Aon8NwYwNbGPO0U7K04jLQ6ackBkZg9/KUIR4Dq5oq/gGUIL2Ld X-Received: by 2002:a05:6214:400b:b0:6d4:1bad:740c with SMTP id 6a1803df08f44-6dc8ca3d278mr133305576d6.4.1734290365717; Sun, 15 Dec 2024 11:19:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290365; cv=none; d=google.com; s=arc-20240605; b=TO7un2x6n3zl2Mil+UkkWJiACA26ipXCJ0ynJRJ6bFL5nu3AevXNTcQuTkrMo1OnOK KeVDZ7WIJxe9L87MDv251dnNDgKNOWNkTAjKkSagTNwjhAQBKeFyHpCB/a9Q6FNMyhZs SQWKNC0nW2h5UP4o1iSxyDTpESDApu7SLqUU5iF1B8GbQus84NRTmZcTSweDj/Y5Pdkt aCNO5NqgySVDOlk+Qz70kwPFHRV25D4e8oPTx+6Rz5omc1jsIGnmsVVUnTeHepTC29/p BdYiS2dZBjdSQS5NGPS/Ba8NvK0bZHk1PDOCzZ4Uo6K4Cp3+w57+0hfDa0EU+oX81aLc cGaQ== 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=MlAoTFD+08/sI+8RxL3MBAcylSFIhB9jm1qQSnpdSj4=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=lGHo1Y+s2dRReEBMLLmgDkTLxWxh9DQ755r+GVTtyuiUpLOQ6tWwTHq8v1QNENSi81 DZ9BzEpTLfHdu5xvjJTBjtZvpD/gAW9HnAGiVGTstpPM3kkqj4bINK1aG49iH/bZqojf 1g2KB+/lBYw7INagvjSsjBbx1PDEQnYo/XknTB7JP1t6wtP5BAl8BnHRgL3i37xvHebW Z0uqIsZwbq4lMWF/ZJC0l/T0rvMTXPeFMwHiIHgG5SSUlQz/5wmrl7dq5N+yOcb69Phu VWa/ulml+OKQNkd986GMR3oZSviXK6SRJ/7ypePGn5CoX+IUsuZ3K6GxeCVi82IEFEW1 go7w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gnRGo7VQ; 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-6dccd34ce88si52192876d6.190.2024.12.15.11.19.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:19: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=gnRGo7VQ; 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 1tMtwW-0001Kz-AY; Sun, 15 Dec 2024 14:06: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 1tMtwT-0001J7-5a for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:13 -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 1tMtwR-00017a-9u for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:12 -0500 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-29fc424237bso1650867fac.0 for ; Sun, 15 Dec 2024 11:06:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289570; x=1734894370; 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=MlAoTFD+08/sI+8RxL3MBAcylSFIhB9jm1qQSnpdSj4=; b=gnRGo7VQhnL7BZ7HmukjoP+fj61CCYSX4Kp7eC4ErE4kjKTzLYC8VdbNEIYM4Fvbgd 0vr6PE1iHXsxy/bnaIWab7cZ3pLW1rh4ZtUmfpdTbfdbIHg3qciDNJYD822nyWut8u7T uV+EcC3mYPJ7S7xODjDLX0cjG5nmphUE+38D7nkq3N4kbGhMTNJ0gNeMRiietC8A+k+a NLsIirZWSjLA+mCBTdYOH7eIAGh4Sydaw6oO3d5ceBsvvkkOikNPr9YYVI/7doQgz7rZ EnlWarwdMPkCqyP8mncW9h8FxEmYI0Rw8U5mq+P/OaHrwYhw9hCkXHfHU124POeuGJR4 Mx5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289570; x=1734894370; 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=MlAoTFD+08/sI+8RxL3MBAcylSFIhB9jm1qQSnpdSj4=; b=vYL78q3wd+QwZikAk0MlpIvF3S5CRLHg2/+tlsuSp3zW4DqvAR5NpSj0mXL1/6Cefg zaXArpPPkUl9M+cXftm3xkfsdGDaiRS1YghgW2+pIM1MJ465ry6zauW2+T8zkDNRwyo/ U7sVWek4AC38eMbDpxdxayaTxZptoTZCU6z4DANm7lHm0piZpKbEQAufo7q3I1sv+paG na7ZDVvtaT7oufbBYPnx843zzmGXU11gDq1ATQZ+h36B9lK/1YrT46MQX70T4JNls/He vP6hz4oVKfhPmTWJZi+xz8x6W5+yB5rpXS3/DhKkST/+rCmAIh7sGR5Ef8Q95KcFglPx 5QAQ== X-Gm-Message-State: AOJu0YxAzEezc0YrPnDlpa2MiZyZd9kUCyrlrVNct5PTb6XFCz2kisRd 8fPRM/ODgR+wiwtPCnCkXJEGhUqo4ZlO+Xo18UOWWDbbD3Ou/OcD3+9MS0ucWLfxaQqWe60b8ux 2OTr9BZ67 X-Gm-Gg: ASbGncssTMWJOfHPHGIMymbVHdGo8IEvP2wUsOgk7LMWFwGi6FKkwt2s4kKMdKNn7JG OjbaFD62Lbb8wRdXawLnn56/5rVe4SVIRGY2hsAyRlX9MhHYlcyfRuhxOAaSKvs66si49WAJDXw DUqQlQ4jkdRHJq8DqqeQD2YgxEKiiA0+89y6k4ldVc6MXb89s8rcnzyHygtAOs73OmrTPbCnn9G oE/bveWhcEOYpsayx9cpaYHHsq4GCBn36BQiX0XwqsAILckpe8YAQLk4GehLnrTfu1XpdLsOpzr ioOW/70xM6Pmu22S46DWvJWS3SxkOiMUXpAgk7ukSP8= X-Received: by 2002:a05:6870:ac90:b0:29f:df27:8b80 with SMTP id 586e51a60fabf-2a3ac6ee99amr4776591fac.24.1734289570275; Sun, 15 Dec 2024 11:06:10 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:09 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 22/67] hw/cxl: Constify all Property Date: Sun, 15 Dec 2024 13:04:48 -0600 Message-ID: <20241215190533.3222854-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850972 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520373wry; Sun, 15 Dec 2024 11:07:38 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWEl2Qts6egJVdZ6WpWD9iNAr6bAOQTqh7hZd+GC+TzavQVUlAh2vtsBWYoCpTuK1JqZN+hQw==@linaro.org X-Google-Smtp-Source: AGHT+IGsoFwGBqtmzrFeYLZ2MeamlAWE+ptV0f5YRSES2mQYp/MJkGkOf8vE8QhOWMXNaE+H+BSH X-Received: by 2002:a05:622a:13d2:b0:466:7e33:9582 with SMTP id d75a77b69052e-467a5829f0cmr186737821cf.37.1734289658169; Sun, 15 Dec 2024 11:07:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289658; cv=none; d=google.com; s=arc-20240605; b=XBteGWY1SGmXbY1TQhyKaITHcLQYnWBYXxh5rQNsvIHgaWY3KBg/0VS4mxTFlhUDGl FZsklSXH4f1zXgtiFRaFVV4UJiQBh4LHNBZBEAZwkAxR5BLc80PzALP17G8866C8tKYJ ORWNrRnnpDfWkRYA4Qm3PDIeBBHfm82bPxhrtmEWBaPSNzHxOdoZzEnQTrTLVuYiHIuY 6tzO7ExiaWSuZK5Ch9Njvv4B5rCMlFlmW3HPBT3n1UvYz4iDyfH1HzDAkJOuo9Ia2VCx fIVyqV0djDmI3EyeWFlwbf24CqOO/J+D6ez0EDRL8lhukNYzMzepfvuHOeq1/OFRWnRu ak6A== 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=gUtiDNj3KxgnjeSHYu9ugGNzQd6pYx91WleK/KTOXvs=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=lMs1bG5si2wPwudoy/DPRG5YOblsIcD1WBUPC7G1fEP5BeQvzxIV+VxCyndXlwYVar 3HCXvV0X/1qjMLi1FCNBLQ7OyCuHUDQKOdojfquzzeAH+9XHO7SSsr5iXJRCFt1HDSN5 67zR2XpNoqysD0ii4nFAhNM2GX+wqVYc6gaB+4Ct5oMmVhSv9GWlcxhd0p9250ujCZks OHbXVN43jrVIERZ7djQvBwVYED1eg3HApx14WmCLpfSvKSm5vP8j8luDzuUCH1s0nD+4 GWSD0FDUS9VZrKmNbDkix2rCyH7PrVbzpc3d2IQbAD6tM20W1B1GO9dYpTql9VmO3NHC d1Xw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qltqj9Ux; 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-467b2cbb70csi56150071cf.193.2024.12.15.11.07.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:07: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=Qltqj9Ux; 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 1tMtwk-0001ZM-Mc; Sun, 15 Dec 2024 14:06:30 -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 1tMtwV-0001Kd-BF for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:15 -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 1tMtwS-00018a-Qt for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:15 -0500 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-29f87f1152cso1768184fac.2 for ; Sun, 15 Dec 2024 11:06:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289571; x=1734894371; 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=gUtiDNj3KxgnjeSHYu9ugGNzQd6pYx91WleK/KTOXvs=; b=Qltqj9UxW+Q9ebODyxCEor7LwRf1CWm/9lHHGS30M6Hn4GSrhfXfllBhtsIOomNXrK dYX4QXrqKn6WGjirune3zhhU0C95RNuE6TqHq8QnXrO0lptmsjYyrinlNtnhwKMhPmAK +IF/TiEixqeEjzrg5bsY+dZP+5H7sPt7URyWcOzPyiSmjCP/6X1NGfo7pS12JfmemEWi XaC38xpz5+rXUy/b4o3Y/ygwn8Xr5/WjlOqMa78B6vI3vW6a3XIoPjESB1SMEk/xs+/e QMD5SxdVTnJ1H4pZJiB8xojkCDlNcFHicu52B9297gH/1i+cSdRyQpvs5eAvhsfvK03H XsWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289571; x=1734894371; 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=gUtiDNj3KxgnjeSHYu9ugGNzQd6pYx91WleK/KTOXvs=; b=FMdi4rpM8G7qPCoIk0/n7Q5WtEwUpfjpFjdeDJ7BiStHtKPe7LiakuKICd7LsmDPFS SRjnob1BkOmbuRcD7OBe8r+V2a00Zfn32OV08HdBMW8oQ7SQLACXzxT5L6dIz0jxerNK t1Ywp6+iI9rPwepRIbd//eW7AIZuGYF8fNEjQQhaygr0YcSy1WfIBp2Pm5kyTIA/CB8Q zlxerSgCkHIKIqJduyNtc/DH3mc5fp86cHsosrni0iMxsJH7EVGCZoKPp6r/JjtLJ3ig 6v1Ga77LoWx+aRsofPtVvC2WtJ7LxhvQWxWoztiPCTdNphAdg2G/JqVlS6gpTnB3cu8I ltaA== X-Gm-Message-State: AOJu0YzLsXZKycaYaXGdXYpfo9R3naSskbrD8C4muzMR0u5T7r3Y9SAg /V+2y/znAtCbM8C4RK7x8hFYD8sgfJT4SkQtOFQiy9LPBl0AbtU2+SZ2uSWgp0xewBGJp8wvCzO 2guKabqrU X-Gm-Gg: ASbGncsvWCBWi97Fat5+FLgIT0iednF70y5y8IhbVLiyHSmLhFBJqlxPTB8ILcHNnpb xTXYJJtLntA5bSfHnm9wIB0sEEVDgPYJpw/wNApCV3nNntYe1vJhFiAu8L6FHr9NKvXv03tkegz J958gYIm7m5573euy7Nr+gVJjS6MiIn9GyXsQgjuv3QXGHp6IqsLMzX1Ulhk65uVP3HeQ7rZhBL 4E41/wDuNldAc6SIkhb2jh5WOGmfcblo5DepoFHmI82selpmB5wi1Dun4ZlQo5lZjWVP9M4FqJd JifbmPCW07ONMzI9vwLu8kU9pNrHqovb/8u6elodq7M= X-Received: by 2002:a05:6871:5825:b0:29e:32f2:cd4d with SMTP id 586e51a60fabf-2a3ac497accmr5514829fac.2.1734289571522; Sun, 15 Dec 2024 11:06:11 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:11 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 23/67] hw/display: Constify all Property Date: Sun, 15 Dec 2024 13:04:49 -0600 Message-ID: <20241215190533.3222854-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850993 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522250wry; Sun, 15 Dec 2024 11:13:00 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXP6RKiP4sy89isDvMXYAKdZz84+dR4irSznrPOmzaNjUMIUUGINhMVzg/sINZKObMGTIvHeQ==@linaro.org X-Google-Smtp-Source: AGHT+IG+zkSzFUlRfWz6q2n4ro8tAGB2dXJ0z6VQM2nvOMj8pEUh35UfXNSmZz0HUv2m8Pq8VPYK X-Received: by 2002:a05:622a:14c8:b0:466:a0e2:ae8e with SMTP id d75a77b69052e-467a5734efdmr195089921cf.9.1734289980376; Sun, 15 Dec 2024 11:13:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289980; cv=none; d=google.com; s=arc-20240605; b=kOUBEgHccehOzEJ9MpOUQcwQ77Osr8Sn+4de0Nx6Knq9RFpw7CfgMZ0sjZgxTd6ngR LkyJNJmNHoGVwTs4gKW7bYB5iDzUL0aFxmsIVaQ5nme1G3A2GWzqbAE6lpA32vhJmWH0 ymyHn/vRWX9MmI1zsgnIb5q07UzdkQ3nLV4CMVTHLZ7pZmqQCZRuCCt7OXRiIs95H3zS yhNqIuHO63QMha/+ACW3FOmqErciADHPAPHN4h3W3kIGaCGbosejm3Nc6dNS5cxQTGDL aR/yPFIKt51HaSNieIkafUCTfIu+UbjOcVSfYSCfw6MfWar/1snuynOG8Rou9doZ8m89 YsFQ== 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=ermVyfZ+KD5ml0lXaGRWdiJA/VpXEa7zOPDhDo5E/rU=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=IO5iCotjIqoUo0OwyTaRF+vQw6dHJ95Ktkggc0oDhkD2JMGBI2DnDZqo1RqD/rgPSw bsp8wph7NhVzHvN2jXvCqz0omwfzb7B6bpLsG94vbAoumpVrANtq0R6nw4s/6DPTISnZ RvxosCwJ9hLP1bkDZM+BwCniewRVnBzsv6HX9C/42msTrCyoDT5pWuj+KKG6G4o7jG7e +hCXUanKvW5Wnx2qtm2lIxTL9qBg7ygo7nZKCWwBXEtFFx3Qenv2RQl5du9VukPVzJC9 o5D8XtooRaD32nYRptyRFfETm2vhTf2yo/Y/MKA+mCUotaIEdPjyhVZuIkczC0QYXhUW r8XQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VepLBZkN; 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-467b2eed5a9si49063411cf.485.2024.12.15.11.13.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:13: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=VepLBZkN; 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 1tMtxA-0002f4-RY; Sun, 15 Dec 2024 14:06:56 -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 1tMtwW-0001L2-Mh for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:16 -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 1tMtwT-00018v-Qd for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:16 -0500 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3ebadbb14dcso910973b6e.3 for ; Sun, 15 Dec 2024 11:06:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289572; x=1734894372; 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=ermVyfZ+KD5ml0lXaGRWdiJA/VpXEa7zOPDhDo5E/rU=; b=VepLBZkNCfdfnIE5NCWx+n6qBwzkoi1VPcr7BNoT9VCj0XrHrKHcyjpnnURsYX2yv9 sj/5mMVrac4XHRlpv0FEWOdBcROO/CAAVT5lHEG18Dg2gpQVPXkbxQouq9rU3nXyz33T 8iLlruknEj5K+Y27J48Z7TNu+M0GIb+OE1Vmi99Jdhbq3vW5pi/wZ6Upxt+VRxOMUjrv uDwFS0Ug4iVkU6WwgFICLiZQOv0UqqkZfRKUZKZBI9dwy3qaQzxn7hqyuYAu8e9l3l/l LFbX7NnttQobFv20JCXPBTNrKND4IQGBfUViS32u1+qtAiVbMlkbKg+BZeR+d43JFf3B 20Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289572; x=1734894372; 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=ermVyfZ+KD5ml0lXaGRWdiJA/VpXEa7zOPDhDo5E/rU=; b=VjJNYpPHocyBwgTOZCgLfQrXZbbcnQVmYHtPxl1F3+EN18hDolTls/bdDDx7gvvMsl 4t5Aoq/7+CqgWhku5/NjOuPhoZJMBvIBl5rBU/4nNSRjxqYIVcCXj55ELoEXc3MTK5jg VYFX3NvGmmWBZK0RXQYqfEAo3wu7M9uj2dHtrOopEmEajUxPDOKubNWMYcSVZ+azO/pk 1Dh7UynhrFoxSkOqa3rgypxLujI1j9r5cQYuFowjlxgdL5jlusJDhWwSO5vLpaCCU2aa O1IROcSowUoTy9sQv63lgoGY79zSe4Z67QP4XQYjYde8l2TbAwDfme1Bjf4AYN/ceEXc esdA== X-Gm-Message-State: AOJu0YyPsxlW7N23+ro4blwjRm2dtW2WUO6OLOsT/P8LC9PyIn8VrtG/ x/G73L5hsr/xnnMuijFBmsd0GsaeNTljPdEKr2UEgJYfT0nNXOK8GZHydvtDX24CFquiqXJzfL+ DdVzmNU35 X-Gm-Gg: ASbGncs3sWS2HxTFIbMMLnjQdqPqGMChRUMfh95k5ELJTLRr3yVxbeonLri98qABJ1/ RlTs8JXswyVXgaNP4N7rzK2XKpv+zAO4IypFjEN7cXIOfaR5pI0WzvCPldVSGe8aOHa1+zqrbeq gwG8stwBNUeKEpua26+ZF+jHpSol85a/jSJ7E1v4sHeCR0zuVnIQkZrYRFPbIR0cppEAEa/nzzw KMAwz71kI9ipkMhcf/asUvwuhSgIiXXuzorFtndGf+wPdKXnvBYGUnOiiF52dIyb8QL1/FAdcqY xPEf0MsCh21jSNFYkNS40yPAj1cEb2VYpOXfEbINZpk= X-Received: by 2002:a05:6870:6388:b0:297:241b:c48 with SMTP id 586e51a60fabf-2a3ac8c10f2mr4638298fac.40.1734289572604; Sun, 15 Dec 2024 11:06:12 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:12 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 24/67] hw/dma: Constify all Property Date: Sun, 15 Dec 2024 13:04:50 -0600 Message-ID: <20241215190533.3222854-25-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851006 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522895wry; Sun, 15 Dec 2024 11:14:50 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWRqUC0pueA3VL7As8PE7KpL/iv2BN8YNDqhdVIB1W7cS1FTiq91vZ/2/0YCiSSfHLG5GpEQw==@linaro.org X-Google-Smtp-Source: AGHT+IHyJPmmi9nCzLbK5oFd8M+iNnY3fNLE3RHXzbPI5DSh1PMWZWHgM18UnA+A92dltBAA5wjo X-Received: by 2002:a05:622a:2d2:b0:462:b7c9:10e with SMTP id d75a77b69052e-467a14cb6a0mr234037521cf.13.1734290090638; Sun, 15 Dec 2024 11:14:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290090; cv=none; d=google.com; s=arc-20240605; b=cscPE+BTbzXJ6bWkNa0f0RoKpvSzVY0c9qLUdzg3IDrGxC8pxc+g9qdZaRNDR4Zvqt /1DPfQUtGJidhq8bMP0Qzd+paAtjxfPZfX2kUQt8QWpyJvXahXYI0rEhtSRfrS1I9+0A CLLdBlJKkMq3jbJ5T5OYnXdNFjS9kWXQYkWfKH3ifq2e27Y85kE5ukD8UvsRpJHVOIdT 5h1WTctzZi11Xv3pKeXeOZ34LuBlssYUoECPeH7FQ4ssSKTEPijXqpmSpE1PEKTumN07 EzhHtC9ZIWpjCpqICF+DF/CpPVp2fHB4kdJU+Np7n82GiDSAj+G+KNWMcUVrBull8NUQ KkjA== 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=P6dtc5tKm0SDV+tByDsBCG2rfZqXnqrfnrDqNh1eC2Y=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=kl4BJHQVuX2zrc4NCvzTfwd182dvD3fFJjO0szPRF0jb6onU93DwYlsxVbYTGAR88Z aYNMunqcwl+zvMzljTQ6jpLzoJDKKOEK8hlJHmqDGPD8+XohNMSlZ6m0rWL65BrILm4P EjoE28kT9LFYPKvjngPx8KXgBmoOJqaSVh0rCb4N9ePliWSpG1c0loXk0VNPHOK0Q3cf z7EHnzRRHaRusUUBIWv9XOJcios1F/ISaxmvmKkj993dDj8GKk+D8TK+ovBwg9SJelyj cEodMcRg1erX604VcAlLTqjOOZ8BbEJtGQ+ZWbCoP/wy9xz5aKEt9NkMNqLN2gB08eNJ 1ARw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gljS5p4g; 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-467b2e94821si56906671cf.293.2024.12.15.11.14.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:14:50 -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=gljS5p4g; 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 1tMtwz-0001kX-Si; Sun, 15 Dec 2024 14:06:45 -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 1tMtwX-0001LE-1U for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:18 -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 1tMtwV-00019R-AA for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:16 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-29fae583cc8so1738219fac.1 for ; Sun, 15 Dec 2024 11:06:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289574; x=1734894374; 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=P6dtc5tKm0SDV+tByDsBCG2rfZqXnqrfnrDqNh1eC2Y=; b=gljS5p4gv73CnBlfDuYkx9mATlO/Rol4RjI+MU3woz9GAr5qZh2K9iK8SdZesVpy4G HZB79p/W7NKVBgC2XhW3Y5ljAqSyHGXp/1Dq6S11yO1QSiW34JWdl+Yd3K+4zo58zy6K 2GkgDBRhKr6nE8X0dsfI8x/Q4t/8Aci4QJBk9Ei6uu21RfaKnETx+tkBrt0Kw9B80IIZ FjfTHjlhVIQLV+I4Z/dT3jUv1Xa3Mp/+OZoTD0UilUPgvBHQKD6p5iODDEhsICpKhEyf nv6haiNLfFV+eS5Tl5DkGqxyKAlWj7ydGmW+NyHybpJWkI/TCbJYQkQ26AnI03T7t8cK kUcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289574; x=1734894374; 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=P6dtc5tKm0SDV+tByDsBCG2rfZqXnqrfnrDqNh1eC2Y=; b=s5nQus3vt44Ay/XBBAzG0n+9Ph8HsuFOTVcOnyrpdsE41n3yJkN4+jyrwuJJ3vvPcU 7Xz8GwGK6vGIyQvr7oNyIZNEHlIjwA/YPgaqF6GWgStvM4snUv9lFgP1W/9NWT/yF4hf 5qA3hMT4jpbQev68rSaej05WIqzG1oCNOyC6We0eblJuRokmmM//JP4ERuMBIwcqRWxt 9o3xteyBybx4OhC9eUzbzwEMsscxIQzdCNGiUTplwytkKXuN8ZFmMQzZwlXsePU6keVD xwVMmkbzogcaYoA4LN+tlc7QYzbnr91IC2IKf1LwmiTTnGFQWl9vdXhIENutOcTQn5KT NCLQ== X-Gm-Message-State: AOJu0Yw2YlwPAQjRcL+yw6GaT04BfrS+RctGtXF8upHovCVm35mDPkmX nI5FiXjosTSfNufA/Hzqz3PiA+u79ZTE8kJziV9JnAR0O20nNdC57qNRpZx1R0hvRAEU9LmhJ1L jODHgCfVP X-Gm-Gg: ASbGncupzi5eETC0162hfoT3bD8XQTb2SIlHaBur98yAG9PIhVfcYpvsMNngBLj+haH XqutBAJDZ2IIw9P+iWsCLfulh9tAl1GVSeujmmJkNfZCycdnBwctibiOglzDJDCxmkXe4gXAewI EpI2kvUtcfClVXqA001mY8js3s6GK3p/KbhC7j9t8Ht9t35T29/wXhAPXjx1+9K7FUOqm1fvJq5 1Wxnb4O0jIpyQ8qt1/3ESLolLJL8hnYyzF6YSA1tVwUGssJk8jW9S/gzj8D406YLN1C/W3ulxYo KPRdGE1Ne8u9QEHrLjSoxd9ke4/zVAwqIPG3My1Ffk4= X-Received: by 2002:a05:6870:7805:b0:29a:ea55:3bfe with SMTP id 586e51a60fabf-2a3af18d1a5mr4296198fac.11.1734289573944; Sun, 15 Dec 2024 11:06:13 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:13 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 25/67] hw/gpio: Constify all Property Date: Sun, 15 Dec 2024 13:04:51 -0600 Message-ID: <20241215190533.3222854-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851028 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2524533wry; Sun, 15 Dec 2024 11:19:45 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVp/R47s/iubkK5sM21kWNdzBWT2cLzidzWTfKezh9fmDKIVas7qNGDbAHt0ts3mFFv7+JVNw==@linaro.org X-Google-Smtp-Source: AGHT+IEy/5QRp50Vv84El5QUxxRk0knAibKXk2pZ19l51fyjCqtijHewTuBGbmWE/a0b2ZdOD8GX X-Received: by 2002:a05:620a:1a92:b0:7b6:d5b2:e58 with SMTP id af79cd13be357-7b6fbf26e62mr1772867785a.18.1734290385270; Sun, 15 Dec 2024 11:19:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290385; cv=none; d=google.com; s=arc-20240605; b=WD+b6J8P3PXCySh3OKdmACiMnyIJhj2AYSCCXzONPNP/LD+juOYf3b5rEsE8+0NPBj fyiAG+1W6STVi9I72D0Uz3acjxx0qYGkeIwgoUjpiHWsCDGDUnzcR8zbcg52cN7Q40VA DrYw9EClk9V2MOVV7jxmBNn1qVeJ374pcoRyoXuGQqD9xigGBvmwDgS9Va2zcLIt56U/ XsHwfZRubuV16HbhN+oQ+aABhdthF895aSIGMHAaj1i+piqy2SOqNkdN1xp4LS4RrkgG 0iQEz7wliImTcTxSMpwwF70DA8SgqRlSM9XGvAXC/PPH+UQ9afgqGjtMhhYA3ptlhfCK u7Qg== 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=/7D9unWrlHZoR8A1dN23AeSaSZJKRolZppIb6v+BQvE=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=dKh/YUno0MLbIQ7GRkFIKdjVeAWS1e44eWHyTd1h1O2mCRuMVPtv73mHCt5SoWu4OF usNOdvXjbLrx48u8lIh+JLqmztb2I0Z3qLq4Qu4KI528yIEzMvab8pJr/pJj6Op/PfBv pzq5VRo7scPATYJgh97SxwDI4+d/4TfVYAFATELGVUbbMzbQVDi2GUhJriDyuTwOT76/ 9m4MiUx91IERbZvrIpCS+ESwGUZe/iOh6k6r68IOoZPYG0PGKvF7iXFmgjqleCJPYtZ+ s40iYk0fhqoel+wU3+QbvBlQ3q7p4WQKzJmt+OEQev7o/+bl0A7ymbhDC9Lmd+IQcNjZ jsSg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BIbGXi3j; 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-7b7047e58c9si546432085a.153.2024.12.15.11.19.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:19: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=BIbGXi3j; 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 1tMtx8-0002Or-Bb; Sun, 15 Dec 2024 14:06: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 1tMtwZ-0001Lw-1p for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:20 -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 1tMtwW-0001AA-D1 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:17 -0500 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-5f2da12248fso2170297eaf.1 for ; Sun, 15 Dec 2024 11:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289575; x=1734894375; 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=/7D9unWrlHZoR8A1dN23AeSaSZJKRolZppIb6v+BQvE=; b=BIbGXi3jLljHc1VMbaADM/GoIZj0Wl9xrdqE1BTCt9JlLRWY6AxGNUHXcq/xp55PeQ O9vf2kXziTj3SdooccJxNErmhRecgYAWBd+y69xo3zb8E9jzb0Bdg3BESRdhJVjvOkXp GPoHsbgoZYmyW4f70Eh2gtwvzTrL9ZqF3LYyXnuoqTYU0hAUf/jBiyfocNgQP+XEC6bt Yzd0HfQOk6U6pL2+khC6QbOjxLpoCQ5+GY8KxBsqdGt94oWsdQKwnXptzENS91DqqoA/ /anqxHWIthkDdyeq3mvEf7vZLPy/sjP2+jYhyp2DspGq+yTFGpQcjLeUY6futKVVBSa+ leWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289575; x=1734894375; 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=/7D9unWrlHZoR8A1dN23AeSaSZJKRolZppIb6v+BQvE=; b=dd2VdXJEQlmCog4V4aaXG3rfF14svuaBnoemXV3rbwoaLjYh3LSkCLHWEfpQfxH6rs 915DUMKlYclVNKZsMnNg60U6HO0YXolsc8hA4IIuknYidZR5JeAeu64dNG0yGypB8Sm4 6FidPMW7gan8SXqI7ukDIWvrfwHIQfgDfG4U77mJR2GjLUqqyTfR30FS+YXSufIBi/m1 LplDDSnCj2C2IY30JUBTn+2xFdLJso9UPilpm2VHHq4QEfj4JNox95QVHh4ufYhV/FMy dBs61C11P5OMWubygCs4yPLty629HjCJ3EffACj0Cej3zGjwQyvAwLFAANhLsup4pkwB RofA== X-Gm-Message-State: AOJu0Yy4Qwg5ogPhWee49T5JNPzb2sLhErhu7JtaOwvy/iwXOjUANhDq hyOyLH+4F1s7GkQJMvEtSccRd3pqi5P6h+oif1t/kIKCTe4a8Kcyua0CXS1VVdVBE/IWnF0GR6s nt7OJpeTY X-Gm-Gg: ASbGnctpP+fuY2R9PMjMFCBW3TziFjKL7ZNDfzjQNGEukgWijgeUuvCPS61vcqJPuL0 TOQuXxLKOLO3NqW2zVIP6qKdOme55F11nx9OYriGSi/8m1miM9dkg5+bKWNSIUdfaZAs54YUufN +G+9B6vXJ4yYN+Ld/Hbew6MlooWJZGvB7sRK7JU/ItzOojTKdghIqGFv0gjCfYi6cZ7r6yECVCf Z+hdGmptvlyollQ9WVWIR1WABpBhnAtowkvjTXBYj74UEVoiSv3d409yeGlzDbQHj3YVVn09L6a HXF7dtqmkZHxehImMB/hmyyHpchxOdchzVM7wE5qLdU= X-Received: by 2002:a05:6870:1d1:b0:29e:1962:7a23 with SMTP id 586e51a60fabf-2a3aef703cdmr5561380fac.4.1734289574698; Sun, 15 Dec 2024 11:06:14 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:14 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 26/67] hw/hyperv: Constify all Property Date: Sun, 15 Dec 2024 13:04:52 -0600 Message-ID: <20241215190533.3222854-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851024 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2524075wry; Sun, 15 Dec 2024 11:18:21 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUvX9ZfXqO/JE86mT10F0tccvgnuOA5onTnGHutROpAZoLvbKn73gTLHcdpQzR9JAcvVW79pg==@linaro.org X-Google-Smtp-Source: AGHT+IE+iEwT4uKO7bmHp2k3XLcnRHFTWcdXWAi9z0n0TfztoYzmD+pJMpzF166wHBfcVoFgXJcF X-Received: by 2002:a05:6214:23ca:b0:6d8:b2f2:bccf with SMTP id 6a1803df08f44-6dc84f2f5a5mr187415436d6.1.1734290300902; Sun, 15 Dec 2024 11:18:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290300; cv=none; d=google.com; s=arc-20240605; b=I5QsPTLhLFUekxx/054Q1CTVvfFxSAiEonBcXnsowwBH+cvwTzCKAmUkoZjKrcf9SN sRRUz/VsW/xfKF4eOpUTUgrVzlj2+xOyCsmzexyMWq5rRzt1KLcvYGOKZ0wDnqJyFnkv NjA268Y8N7RkvdA+WMtI3f7/gN1oCZ9/Ro3A8pn8bvC5YLnicHdjRVTnY6gYfHYnunzn v3Mg4VgSQ0owB2Qqy21ZyHxri2uinDPpm7qf3EN0FQnpQQzw5qmriikwcqDUdO002fV1 0Tx4mzY8WMVuC4yLXA9tt3b4KXiZQXZdSN/FAg9HOcX8SZUutBmLRcsuuRw8OyJV5eZ7 sCaA== 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=FhWboubb5SD2Tb3kEHoXaDk4aNSp8HDO/dk92ZtG/zg=; fh=9k5+FJp4fv0Ei2/Uh91IpPVhtHUOcxAIY2zLr0FyC+s=; b=gO0mDnMaQVnCAvD09T6zjrwSOiiwcA8KTsF4uOLb/2h+Ah/GSxVYuM0Qx46pnp03Id vO4j7CtwOPcfTa1zldCms7qGM1a7AL5GD1GpolgRQjbBReQ6iqt3Vgq/OMTLpFyr+iKA a22EvdC1eR98qtRkMYoXJvxt85bfA1AqwJ03JPD7RrnUUZd3WNI8CwXRhyYSnmwalDcr Br9yLFQh0PGCRTi96XkuZQHjRkqD/sJGt9pGZlijfOkhCSGdF2x9qLgLH4HH3mLAo3Yt YRAvLauhopqkI1IuXUfYzVEuIrV327MGWpUTgM+hFzn4ASmx0peUiRkUfeBLs8KNFjh4 uL3Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=umQLr6cE; 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-6dccd370545si49529406d6.295.2024.12.15.11.18.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:18:20 -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=umQLr6cE; 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 1tMtx4-00021n-TI; Sun, 15 Dec 2024 14:06: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 1tMtwa-0001M1-KK for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:20 -0500 Received: from mail-oo1-xc33.google.com ([2607:f8b0:4864:20::c33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwY-0001Au-Qp for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:20 -0500 Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-5f2d8f62290so1754863eaf.2 for ; Sun, 15 Dec 2024 11:06:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289576; x=1734894376; 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=FhWboubb5SD2Tb3kEHoXaDk4aNSp8HDO/dk92ZtG/zg=; b=umQLr6cEIxKwJLhmN1n0d7G5tJ5s82wNevRaBBDaDwjZlagLhKYidDHzq8PpTI3EES znCkrkWW2FomB8efZMALZtyL0bmIxGgCeJTH25FuIgjOZ5JHDqs3KRYjLdgDgiHW/Fc6 PF0UjdwWbdqkqCuxJuQZNIbfiinvwllh3XWhJNB8H8kDHfMvcQdOFhKEWEm6O8tGUlSf lizEc/pLfBVj9ADsIK+CHR103YGbE93o6TGRT92qQ4ykSIm9eOeQwVzVaSb5QMj0mfh6 lWed2vgLemfdLT1Xrm+pHliurk3YKBrDmK//7M6cW9w+AHbEtWbx9pYc0GOSfeF+OYzI nNYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289576; x=1734894376; 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=FhWboubb5SD2Tb3kEHoXaDk4aNSp8HDO/dk92ZtG/zg=; b=rFqbsRbWMEbhpP52q5cM6qQ4CiqbyQFaxNs47Zw/DYfFg9GoXl0lVGifdspNC5vmAx eEG2cg5WUVQ1ZrTi/SOCHJkqc/hK5NPuanNMcKNVFO4YZ+AtmoSuTDalOU82AmfKyqsf GMJVrxWtLYEuV7d7Azd3cPl2KuMGt4mqsS4YxhwELR9hlJtHHbFT+HyYrPECpKJVIjvM gRJ01nwfXhD4drGWMysh1wJwNqQBmD/8loraQLOaCR+5xZeTrz9gMh9nSxSDm3BE/vpa W7b0qGYdTH72az4Qs+n0mtGHVMzsi9BUY4ySM+cFrO4sxYLlPN8XPFg6MKBhCU/MjTHb 1y9A== X-Gm-Message-State: AOJu0Yz/TNpJEZhHfsezuXj+aXk+Tw2yKuRQzq+CVxDzn5+I42h8iBuu cU/xRxH+TEdiwMqaqTBuK/7rNQ7thIOgpWkxgP6WxPEzgejciJvjzwAg6qtO8jT0m9blnEUsOQP x4GDTsapS X-Gm-Gg: ASbGncv56VBOSF+jbBGcvOs4qPZqYvU0xLZOwRZu6lm15BcVXQnAZRJuxSEfZfr4fMS F2OMQwmekivGR/V5vNWukBnsNHgiVfJskdaFqFZ0vpvpoaaUjuJftJ4+AHuuz6jZO+MQuP4hJ2O i3FTnJnIDLnCclch1R3bgCQ0ZWI8EJ++fnah9DKlzvxSP8dfw5tpWwz+jeFYKxWscl3sNC3z0I7 Qv89j4nliN22numc7fsuLkEd3Jt2ywwkQW4rlMY47O64G5ySk6hDoX4bKoJHmTDIOWu7ez1fynw Af9ZPdDVx3JUemM/1OaTJ5bGBqa4ZSatqA9tkKlwqBs= X-Received: by 2002:a05:6870:e313:b0:29e:443b:edcd with SMTP id 586e51a60fabf-2a3ac914920mr5178427fac.37.1734289576737; Sun, 15 Dec 2024 11:06:16 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Corey Minyard , =?utf-8?q?C?= =?utf-8?q?=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= Subject: [PULL 27/67] hw/i2c: Constify all Property Date: Sun, 15 Dec 2024 13:04:53 -0600 Message-ID: <20241215190533.3222854-28-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c33; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc33.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 Acked-by: Corey Minyard Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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 Sun Dec 15 19:04:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850985 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521283wry; Sun, 15 Dec 2024 11:10:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWNAdEYIwSR5+JfPSpmDgiiHItoozcEG2xpzOLEPJm2SoOaiy8m9qFcTXTPUq2JuByNACaHgw==@linaro.org X-Google-Smtp-Source: AGHT+IGFXKDcsyNKCTGq62d+XVQakqWXdHNN72A14a/JMvmf3JzBPrtqPo1bLu9tLdETxK8sYDRi X-Received: by 2002:a05:620a:1925:b0:7b6:d5cb:43b0 with SMTP id af79cd13be357-7b6fbf3b8bdmr1294980285a.39.1734289809024; Sun, 15 Dec 2024 11:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289809; cv=none; d=google.com; s=arc-20240605; b=cj+T7Yms9/zioGT5cB7XKRzaetddk1rRwlwWYluUUOsDRxC3iq3X/ibPAMEQ/OYUBD 6ENBwOiy8pnpodj4UzBjY3a9Cewdnwnf0GOVh53l9L/tdnZc5KCT9f/aiKnZMbtgt7+Y 36TBWxgbF0nmbCuXq3pCDZETAINU2kMqSIGBIvoycagrvt173hgKI8qCHOmAFo0GJSKW jJAYUm0LZ8Dx90WXM5oHvu+c9AEdnKE/d4yaKtzwQCpctyW8RDr1USGlDUBQhb4K7EUX BCrpOBfCNrXkc6Z+NDxsb3luwSgo8hrBHuQaxsewdP8B7ZUtbViSL0JcjTdC+uid+wwL a1AQ== 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=LKkRdcJjquPMRK8AV+n4N1KuNbPfcZ9HMfXAkb5RCIY=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=VdhkeueCdzWTlaoIYEd3mDMn3mR6WHodwdVxIf2q8CnTKFUBzUoIHb5Px0o4q/IFp6 wJU2W0tqZwKpndscOj1sEBgSCqnCS6S+3MN7kUP55UmvSAqj1PiGbPKLYnoyeqvf3m3a XVsu60zqlld4/o61gyl9PDnjxTNqJ5rgs4ClZc8aLFvQ1nh5RbYpOn1v7R7oDPJBffXb MYEqDuTV9elr7qeXP0urr/8q1z6YKiflfPCR0Il1oRaVDbLJq5V2OQa//csZ4PelueEy KHXvkZbE1qrtj7wQnQ9rkn6qrV/EuqixqQ1xhTx6nIixox1ZDXtSXWrH+7/wL8z6al/c IzRg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DsXtiugm; 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-7b7048c01f2si507977885a.249.2024.12.15.11.10.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:10: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=DsXtiugm; 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 1tMtwm-0001br-94; Sun, 15 Dec 2024 14:06:32 -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 1tMtwc-0001MV-7Q for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:22 -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 1tMtwa-0001Bu-DR for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:21 -0500 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-2a3d8857a2bso799143fac.1 for ; Sun, 15 Dec 2024 11:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289578; x=1734894378; 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=LKkRdcJjquPMRK8AV+n4N1KuNbPfcZ9HMfXAkb5RCIY=; b=DsXtiugmRaKyUvqp4JfXvlKY0pKoGOO0ckAieOrPXmpsOgcv8YislfzVerAXPlf3wA D9PJppfAYshghRNX3W+L/95WjXUVCXcZ2Sj2MaQApRkmi8BDsvXlYK5rDukLjl9hUOlZ XwssevfJ23nLhIkC4ZVVOyjqnb+/Nj6KatHaf3t1IKAGqzGn06/zfoBlKfbYSX1j4FPu cIQnGhoobgaJ8mXc+Ah30bxDoU9X6zeU9fhyOKa9iL9ZqL3u6e8/nAsLsd0tWEDBdK+P A/y2/2RidU0wdL7sWCY4AsPBkRQWILsBaTOSJ9KDN9zQJiOFS7e/SKGOTxLn1NaSjxyk sXOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289578; x=1734894378; 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=LKkRdcJjquPMRK8AV+n4N1KuNbPfcZ9HMfXAkb5RCIY=; b=kOYyKNE7JJvLzxQoOYqZ4pA4qa5NfRtRsAUqlYanBo8bN47nKeliuvnwwIKy9RlBvj siE0wfVxpgqFXVnTmJVCAIEkKeITsiEBk5t1qc/v9xfph4/J6mBO5QzigNOMfzMJJlVr vv38WgeZfn1moud4WxkkSq6BfuPLyyjaGuYRqRGHUWGRoq/zHP1OukuztEaAf88zZHty 1Mq20LeveiTmILfzpxHlizKOIt1E99lMiuPzlgESWRw1EAi1jM9xRyCBupdaaDonNRYb ufjUtBGYNNrFtaR/C2n6fNpPpIvdu7mKSL8YJJOECTaO5KcGwGUUnqyL2zNwx6hWq65S 86gg== X-Gm-Message-State: AOJu0YyGumXe/4P3etUx14biTiV8bixaYHzOkd5KLcCpVB1K0Xy5idUN 7ELawpDdUzESKpuXJHLiuoRrc5i9dW0T0TgF6Zt1tMzuV15CM2lUrcWUi6gRbUKzKJ68/I+y3RF 0+clTUDiz X-Gm-Gg: ASbGncvJ52bcJHnvTlv7c+zOV0An5Jimnk80WJxNjA6XJr/gXqIy+umTZ9N66p//orU HjKoqGgIzXzdxRicmlXpbp6EvloJBF+tLl96Q4L8PobWeqdZ+5iOoSw3DZC4214G8kyxvF+HaWg x8U58mHZxpcqgApZyJMFi6fxG3d20v1tf8T5yXpNwPQiWOxMwo1Lsm1BjORhSD19jhcKKBCeRTH dNeTZGqpZdOpl3L/uwhL468TF8aU3qmdUuxxapY9GRobjJ+RbZP0kg+N9qzAFL0jhHu1nwwzl1y qGIIfciMt18ZLSYPyHuWbVfoYLB9aw29Qw49Wv0iFEU= X-Received: by 2002:a05:6870:8a0e:b0:29e:4d0e:a2b6 with SMTP id 586e51a60fabf-2a3ac61dc80mr5238322fac.10.1734289578074; Sun, 15 Dec 2024 11:06:18 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:17 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 28/67] hw/i386: Constify all Property Date: Sun, 15 Dec 2024 13:04:54 -0600 Message-ID: <20241215190533.3222854-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- hw/i386/amd_iommu.c | 2 +- hw/i386/intel_iommu.c | 2 +- hw/i386/kvm/clock.c | 2 +- hw/i386/kvm/i8254.c | 2 +- hw/i386/kvm/ioapic.c | 2 +- hw/i386/sgx-epc.c | 2 +- hw/i386/vmmouse.c | 2 +- hw/i386/vmport.c | 2 +- hw/i386/x86-iommu.c | 2 +- hw/i386/xen/xen_pvdevice.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index af0f4da1f6..ca3e62a244 100644 --- a/hw/i386/amd_iommu.c +++ b/hw/i386/amd_iommu.c @@ -1668,7 +1668,7 @@ static void amdvi_sysbus_realize(DeviceState *dev, Error **errp) amdvi_init(s); } -static Property amdvi_properties[] = { +static const Property amdvi_properties[] = { DEFINE_PROP_BOOL("xtsup", AMDVIState, xtsup, false), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 4c0d1d7d47..a5b268342f 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -3404,7 +3404,7 @@ static const MemoryRegionOps vtd_mem_ops = { }, }; -static Property vtd_properties[] = { +static const Property vtd_properties[] = { DEFINE_PROP_UINT32("version", IntelIOMMUState, version, 0), DEFINE_PROP_ON_OFF_AUTO("eim", IntelIOMMUState, intr_eim, ON_OFF_AUTO_AUTO), diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c index 40aa9a32c3..71150ed2e0 100644 --- a/hw/i386/kvm/clock.c +++ b/hw/i386/kvm/clock.c @@ -305,7 +305,7 @@ static const VMStateDescription kvmclock_vmsd = { } }; -static Property kvmclock_properties[] = { +static const Property kvmclock_properties[] = { DEFINE_PROP_BOOL("x-mach-use-reliable-get-clock", KVMClockState, mach_use_reliable_get_clock, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c index baa4b39582..2933d3f458 100644 --- a/hw/i386/kvm/i8254.c +++ b/hw/i386/kvm/i8254.c @@ -287,7 +287,7 @@ static void kvm_pit_realizefn(DeviceState *dev, Error **errp) kpc->parent_realize(dev, errp); } -static Property kvm_pit_properties[] = { +static const Property kvm_pit_properties[] = { DEFINE_PROP_LOSTTICKPOLICY("lost_tick_policy", KVMPITState, lost_tick_policy, LOST_TICK_POLICY_DELAY), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c index 2907b08164..217ff43b98 100644 --- a/hw/i386/kvm/ioapic.c +++ b/hw/i386/kvm/ioapic.c @@ -133,7 +133,7 @@ static void kvm_ioapic_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, kvm_ioapic_set_irq, IOAPIC_NUM_PINS); } -static Property kvm_ioapic_properties[] = { +static const Property kvm_ioapic_properties[] = { DEFINE_PROP_UINT32("gsi_base", KVMIOAPICState, kvm_gsi_base, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/i386/sgx-epc.c b/hw/i386/sgx-epc.c index d664829d35..c232e825e0 100644 --- a/hw/i386/sgx-epc.c +++ b/hw/i386/sgx-epc.c @@ -19,7 +19,7 @@ #include "target/i386/cpu.h" #include "exec/address-spaces.h" -static Property sgx_epc_properties[] = { +static const Property sgx_epc_properties[] = { DEFINE_PROP_UINT64(SGX_EPC_ADDR_PROP, SGXEPCDevice, addr, 0), DEFINE_PROP_UINT32(SGX_EPC_NUMA_NODE_PROP, SGXEPCDevice, node, 0), DEFINE_PROP_LINK(SGX_EPC_MEMDEV_PROP, SGXEPCDevice, hostmem, diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c index 76130cd46d..da9c35c1ec 100644 --- a/hw/i386/vmmouse.c +++ b/hw/i386/vmmouse.c @@ -317,7 +317,7 @@ static void vmmouse_realizefn(DeviceState *dev, Error **errp) vmport_register(VMPORT_CMD_VMMOUSE_DATA, vmmouse_ioport_read, s); } -static Property vmmouse_properties[] = { +static const Property vmmouse_properties[] = { DEFINE_PROP_LINK("i8042", VMMouseState, i8042, TYPE_I8042, ISAKBDState *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/i386/vmport.c b/hw/i386/vmport.c index 7cc75dbc6d..cab6e72089 100644 --- a/hw/i386/vmport.c +++ b/hw/i386/vmport.c @@ -252,7 +252,7 @@ static void vmport_realizefn(DeviceState *dev, Error **errp) } } -static Property vmport_properties[] = { +static const Property vmport_properties[] = { /* Used to enforce compatibility for migration */ DEFINE_PROP_BIT("x-read-set-eax", VMPortState, compat_flags, VMPORT_COMPAT_READ_SET_EAX_BIT, true), diff --git a/hw/i386/x86-iommu.c b/hw/i386/x86-iommu.c index 60af896225..155f6262ea 100644 --- a/hw/i386/x86-iommu.c +++ b/hw/i386/x86-iommu.c @@ -125,7 +125,7 @@ static void x86_iommu_realize(DeviceState *dev, Error **errp) } } -static Property x86_iommu_properties[] = { +static const Property x86_iommu_properties[] = { DEFINE_PROP_ON_OFF_AUTO("intremap", X86IOMMUState, intr_supported, ON_OFF_AUTO_AUTO), DEFINE_PROP_BOOL("device-iotlb", X86IOMMUState, dt_supported, false), diff --git a/hw/i386/xen/xen_pvdevice.c b/hw/i386/xen/xen_pvdevice.c index ed621531d8..e71483e6e3 100644 --- a/hw/i386/xen/xen_pvdevice.c +++ b/hw/i386/xen/xen_pvdevice.c @@ -115,7 +115,7 @@ static void xen_pv_realize(PCIDevice *pci_dev, Error **errp) &d->mmio); } -static Property xen_pv_props[] = { +static const Property xen_pv_props[] = { DEFINE_PROP_UINT16("vendor-id", XenPVDevice, vendor_id, PCI_VENDOR_ID_XEN), DEFINE_PROP_UINT16("device-id", XenPVDevice, device_id, 0xffff), DEFINE_PROP_UINT8("revision", XenPVDevice, revision, 0x01), From patchwork Sun Dec 15 19:04:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850994 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522272wry; Sun, 15 Dec 2024 11:13:05 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVwfCQrB0BfsUE3s+3iPYIqSl7Om6x9O/Xap1C7vb+m5kuXjZJdGP0/UwRYdeIVhCArQW5lBw==@linaro.org X-Google-Smtp-Source: AGHT+IHUgZp7WjZviwpofybrXEILEdZ4bvFdYee53VUltlDJxNA6cA4UdCHGd0UbodakPi0a0vj7 X-Received: by 2002:a05:620a:640d:b0:7b6:6e61:c553 with SMTP id af79cd13be357-7b6fbf155f0mr1746577485a.33.1734289985429; Sun, 15 Dec 2024 11:13:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289985; cv=none; d=google.com; s=arc-20240605; b=RWOKIoVZoED+AIyBUP689pJXyvYG2zUSioerHLpEZ/r+uaAB4MeqdLRYpU36FcG8gd pL5e37+xfLqmY1peThyIBX1MZf3jwancPF1a8lKaiIDxJAq2qvBqN0wnOd2+Ija9o59A w55fbxnrESGgvLNRHa8PywM9tlff96oQ5dTkLVvXOLfuf15k/iEp19XzvinMUUmoZ+wH aduXkzGr5Y94zDvdZI4zOPexEehFWNBL6ICwF2c9Afp17zIeeBB2n6DFk0AJk/rCcSiL WCIhbE2IGczO2DhJF6k51hKW6lLXByDBiToSE3Xc5ntiQMJuBs5cDmW0AbXoau363RLi 2crw== 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=U53muPL2bLLdVoKOwxM9M3Aqazdis5rVRboOucVaBPk=; fh=yeUVnok3msQYZPCTJlwMOqdCQT/JYnQKBJTjYdiJgb0=; b=AIUGI2KjMgPkgzCI7WTN44V4biR2q7U6bxv2p8vgviiT/URGNfkcwqwSVufJUWF/s9 ALVfjDI6fQgM4C0NIXBkb8pbm/d44i8VejeyJVrmw9o/k4NGouPKNjLPQQh2I65Cz9Z9 b6mTv9TmC17bi1E/bYcKR0BqpUx7Q+T7ypOzf7LmdXo+Gmrioktk7PjCvXwvkZJrWPhV 5F/CLvkrRM7S/xjFOc7ZzdBrXbjeqJRUULsrHsvxQQY17rj4oNPtnjWJcVek0yOZ+2Dr Iim+qB8p2XpCyg2SUTviCd8JDGc5RXrXm6b+GuC02QP1Ih1WyCn4dE2kertejxtMqOOj MC/Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pO3HyqEM; 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-7b7047c4902si506506485a.45.2024.12.15.11.13.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:13: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=pO3HyqEM; 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 1tMtwn-0001eb-6O; Sun, 15 Dec 2024 14:06: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 1tMtwd-0001Pi-Ka for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:28 -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 1tMtwa-0001CU-Dn for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:23 -0500 Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3eba7784112so1171245b6e.2 for ; Sun, 15 Dec 2024 11:06:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289579; x=1734894379; 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=U53muPL2bLLdVoKOwxM9M3Aqazdis5rVRboOucVaBPk=; b=pO3HyqEM+ENdMvVcISzSpx4NJU1xqaeQvbhcUAH5ZNgaFTdsHXc8buK9VcVsF/p1b2 vOetcHOILxS4Jx0QD+LK+xhKEocpBQ5rUCl6gJ+DrDs5t7NoW4B+xRvy1l5ne0nsF1dI CHkPTJ3fKG8ubO96bvAWye+vAssqNgtB3leb58nu2mQBW6BPHcsPZP9gjAgGaoKDwPVW 7/q14xgKR7fe4/KNTg0u0x8CAF4a0OVzPFnE0wsli6MsiNLgJ7bgCLCkwZYvtjCzCXOQ 1G9EgywNmr45KliWr8TBO3mr/PgKomYDcWD9+RiPBbxzMvaGXk6cp1uzj9kA0DXIy/Bo B2Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289579; x=1734894379; 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=U53muPL2bLLdVoKOwxM9M3Aqazdis5rVRboOucVaBPk=; b=qILTJViycN2bc6jsQO9HHQpuq6aTTRBJIQwIHtf6XHGIHPOV0XZxYin3LBVHjbaFs3 hRgm5PZ4DRYyhpwH15XSurSNQINqjotr446hVGG0veR69tLqXzb3fZCwdUG+ezCgIMXT uDA6Rmp9BupTJB/lcT1uOX6dCOirOHYY1aeJTu0m8Bxad4C2yp9AW77SeF1q3Z13LU3v waRHGQ4kC6lvO+fi3TtWi2omxlcaRJdOe7pBj96v91lPiI7A5SDYDSSNv0QU1o16gwVh kqaB9lwQjnKPfoRkwCjQlQZa0kO6alErS0A1D575TyS5OXRslGybErWYn5uVUsTOF4D5 pj+A== X-Gm-Message-State: AOJu0YyaYn8x6T25a7x5133yusy5TtZsFAocLMDIkHxazQldmosOj9FE XJKOCIfNhdsiYxzBdp7moJe1C7xBo8zqqfRWL3gtZwkjhr3PfXxOBK3qIcWOxGSUrqoSQibbd4i PVMmH0xmx X-Gm-Gg: ASbGncuIRBusmRLnEHaAR6aroQtMyTRxRwtrwLofDRzMytoNFbfMYUKhQSucBFZIT2e EcMmFoQviQMevvqZPYZYwQEA1f6Mi0D9z6+q0eurIWooM+nRppxo5p731NL/lp0IFAuOQZ+WNRr DRjozPc+/UKt6XN/1VyGSkjsNBgXhMPiTP7Jw+NsK+Wxa3cHKg5nEj3nKBYK+7Lue0asL8Xcs+m iRirf3dM6HYmFrpz4CJlP9LVQkSns+ms3UcJqUNWsyLwLEAj1LdpQuZPtuggSHb6Za/RUgfUo3K h2DoY+EqwhwenUtbGqB9yaAyZrMgEisKg8RsV7d29ag= X-Received: by 2002:a05:6870:e247:b0:27b:61df:2160 with SMTP id 586e51a60fabf-2a3ac8a887amr4906891fac.31.1734289579061; Sun, 15 Dec 2024 11:06:19 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:18 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Bernhard Beschow , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= Subject: [PULL 29/67] hw/ide: Constify all Property Date: Sun, 15 Dec 2024 13:04:55 -0600 Message-ID: <20241215190533.3222854-30-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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 +- 6 files changed, 8 insertions(+), 8 deletions(-) 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 Sun Dec 15 19:04:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850981 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521188wry; Sun, 15 Dec 2024 11:09:53 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU8m3A4wwrCZEyXcvh+upzRBgC5xNOJecTM+meWttXTboJ2Oy4ipckxTB6CSGBF+eBgOik57g==@linaro.org X-Google-Smtp-Source: AGHT+IE6Iq6ZCIwwW+9BwGSrAHSMx9Y8DkWiaZsJ1CXQtNDgR4Mn6W/K2D+XHqj0J2XKV0ZnP7dt X-Received: by 2002:a05:622a:8f1c:b0:466:957c:ab22 with SMTP id d75a77b69052e-467a582ad16mr140819431cf.43.1734289793253; Sun, 15 Dec 2024 11:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289793; cv=none; d=google.com; s=arc-20240605; b=j2w+RtnESXzyMbPa95znGcRACgmn5WBG6yFxFgMBH5wJY+NTF6WdCouQ/mVXq5xEVm oavk2UNeQb/ZtUeAGtIGmeoT/Igrpv8BhR7xhOd8ywEPuFn6n6NbJhVSj9pN2QkMzczu guMI/R7k5se+rp92H4HlqVoHalETj83dQ8sXk+cn6JA9n6nsYXQojW+wVHVbg+2CsrcV m4o85bDlyInvYdBxVm2Epn1yQXpNlP2Qboh9NCuJUeZgCmBcO09qc2+kTmgK7OWvD8Id oUuvSyhIapfq0CfQT+4nCckGuGDB8N+FXVjEetYcxKj/zp2Z9QFgTFYcsHv57TAcLAjj 8Otw== 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=AXOLh9yZNgpRyWamRBq8wsPa5UlUqVmERW2UrYN4jVU=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=PMQMuRr9i2kO3ZVH4MselHGpMPy1gU8mMpXdzXxsWpoW4R74xtHddb4FJ9BSB5bxly dS4rwkE206fDAK/RDjwR2sb969PyKhC/VklSbsWMBMwX+EIcxggZKydYWdXePhILSOTz 6OXCSVtNwcglCbmY5z1SKtxcvySDAs+nrt8g3Det/LMlHAc4iOjtJKR2Kaa3QaRX8yLT HuliDrLd/Btg7mXcljVaHYaBmNuQV7NUv0xgi21MgfTufJFRk8hSRU6AdRvkLUbiTEJw pJt57FN7B2lZLaKBNjZ3mP5+uGUXUCTAzYW3M2nu9f9G+j3PLt3l7TMCkaMslXUXRtMx 8c+Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i2ydotqx; 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-467b2cbb0b0si60205111cf.186.2024.12.15.11.09.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:09: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=i2ydotqx; 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 1tMtwo-0001gb-2W; Sun, 15 Dec 2024 14:06:34 -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 1tMtwd-0001Sy-QH for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:28 -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 1tMtwc-0001DD-1g for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:23 -0500 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-288fa5ce8f0so933181fac.3 for ; Sun, 15 Dec 2024 11:06:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289580; x=1734894380; 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=AXOLh9yZNgpRyWamRBq8wsPa5UlUqVmERW2UrYN4jVU=; b=i2ydotqxMmlpT0Szl5lqLG89dX5gu8MzPKUN1lVfwrIA8DMw7G7rD4jSxhbId4p5EQ bLCSDAmV58hfQRw9unMTkJRx33m4omfp/RiZYCkkMsNuNJqlF32OB0QsAVvJKsONoxJj HG33yfuphRztM7+PHVA/av8NCwIoFpo0rwzcEPKFM2Tnpm1tcXThUERtt3QQnuQVxh4s Bdj4zxBuKIkU3s1PdWvxZdZghFN4lPcV/iu5q9/srjcXBX7OUigb/eYs8v3IcVyrV0Q+ +tUPD+oGw8wuxnSCEkmzqyIJv9Yrd9ZqOQAIZ6jPuH1K1AznZnwQ8EdN5kDns7vCpjme rxMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289580; x=1734894380; 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=AXOLh9yZNgpRyWamRBq8wsPa5UlUqVmERW2UrYN4jVU=; b=e7oqQux8rR732iuLrm83CK6CCxBN3kzZKWOKwDnd8CWoMUE/NZgldkIUZrrqWpKWxR mZZX9WB2gphUleh/X6eT4qOSKXBjV42gJwv6mp2TGJeul5TUpOcigWMWCQi5p+O/iuJh de9m+0NsaZCTjWVYKSxtwLe8thGSiYMkbOdKo1yA8s04enSpWn7Q+Li00xve70v/POGN 36xvXpoazfw7M/bToFEqeM2YzA0kTY/LReONd+yHhW/6LCKlTsuhcT1AAdg5Tn+ImclM 1UIFBKzLpYFW9fL9PIgCEnyus26blPnDvt4bRUdbvBsLnBmpaQoV+yqIfU8wTvHtCge1 ZNiA== X-Gm-Message-State: AOJu0YxOioWHsxMNRmzy7F9z0s9yYDDZuVPg0uL98mz3nU5C20LO+rOA QY+NtyNSni6UW4S1s+UBf2I3txZT5M4oToPC/Bh9nNePQs6f5zpwF0jqzcXh9rbmMvnQbX6He82 osub1MWw/ X-Gm-Gg: ASbGncvzz89NbI3a3yI8CmuVheJr1tN9m5NqnRUzgLGJGMo6vHc3Xyy97saeKs5FaA1 MNhZHor68vVxMPWr5grB9uHMyAYZ4qVAga3pPDE2wEyDa8LLz+I3EUIp/oeNByDzJZDbUsi4KOm ChT4au/b9gN3S7Kutn3nedOIfhANUa+Pimtf3WO+CzTylfLZgGVu18K/oDv4KMA+EgFs+KjciMu 04/SrJfxSAs0NlqD0E6w0omXTCbx8CqHrCcT+ZnM8Q2O/d1iM3mtXot0wFoBTHY3fBk49VRoO4l Zn0oLyHsCrX3R8bjKPVFDP2noUd7IBOE7p2F2o7nNqc= X-Received: by 2002:a05:6870:912b:b0:29e:1b72:7586 with SMTP id 586e51a60fabf-2a3ac62d5d6mr5871603fac.18.1734289580401; Sun, 15 Dec 2024 11:06:20 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:19 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 30/67] hw/input: Constify all Property Date: Sun, 15 Dec 2024 13:04:56 -0600 Message-ID: <20241215190533.3222854-31-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:04:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850977 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521033wry; Sun, 15 Dec 2024 11:09:21 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXByKe6Sj6SRM0wY3DQm7JB8mFpQpTClvAXT/I/J7o/0h4yS40WdiKnhLrWHrmybUH+qUR+Iw==@linaro.org X-Google-Smtp-Source: AGHT+IFgGOKyNdazZJifzZJ8bDRa5/1oOWW04473LBukY+Aa9riMRvODXp+qnepakUdMHU0JWTEQ X-Received: by 2002:a05:6214:226a:b0:6d8:9002:bdd4 with SMTP id 6a1803df08f44-6dc8caac7ebmr211535416d6.28.1734289761447; Sun, 15 Dec 2024 11:09:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289761; cv=none; d=google.com; s=arc-20240605; b=HbRIOEL1s3MeOJ0tra/zAr5I/PzBIVGauoQqPprANTYMb0ohpg2fWjsTnR6A/Js89T PyVhFJIPVWE6uwK4OzzIQBpWneON3KvAAE0GYbAcD+ylNef997/pELmWsTEV7jdKtQvG tPNwa7vtNengTuWTufuE5md7KN6YO50EtwyaVg0WgvTmPzU6OX9orkZsR4cE+H7H+xMy EH1y2MfN5fYiXEeCdx/L0MwNIbKc8zSLq/aRRPviHmqxvoLDcJGTFhN8B9KDaXqlz+BF s5peFKZh9ly+erwmeqoMyM8zl2D8n1gspNVkrID25WWIdPYd+rpbiBzLOEk4yWgnNBVC CH5w== 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=OfCF1LRxG493UFC81jH6VdLMnVW4fkTSqxZcidADjdE=; fh=ta3TqAQ1XOPSUowfSqW87lwpfOLcbVT/IR5CptTP/fo=; b=NVxxhnWbK+hvLacV9u445vxzbhGEUQNA3TbkJJ4IVlwtgBCh7pK59LkQ0t8m8+tJMC 5wuLZg1h9yPuzVUdCbSB7UMuIzdJgTAz9DYTnNC7A74OHJfmlGsyhujRpfn+m14o7Zid a0bPbG0W+PvJGEWaxrOa3PejkXxTN+b1fB/RJizucWoF0MavlHAbhFIktOjMbDxir7Ig 57y6DE0KkR0hTGF5dT4HoPaSmpSTJXAz+oUwoH6XHkFJOFrXn6CTJU7h2bWWfauIO1JU i80/WhA6h2P5n43lC38w89rX4ARujNmAnZi1X/pn62J5EREp1jzxss1XoPpoZhVI6l3S cfTQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TVAhGUxl; 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-6dccd39b07asi51223076d6.455.2024.12.15.11.09.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:09: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=TVAhGUxl; 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 1tMtx7-0002DI-2A; Sun, 15 Dec 2024 14:06:53 -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 1tMtwg-0001VT-I3 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:28 -0500 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwd-0001E7-Ce for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:26 -0500 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-5f2e31139d9so1484450eaf.0 for ; Sun, 15 Dec 2024 11:06:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289581; x=1734894381; 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=OfCF1LRxG493UFC81jH6VdLMnVW4fkTSqxZcidADjdE=; b=TVAhGUxlcLAPQs6BjCxZiqj78MYs1RZ8kkvwUiXqFgeLJNY0XZp9PaR0pR9gmVfunB paEWGE14SSG5LAvDef8GW8gcshnPRwam+l/eMuyWYaRN976tkUWB13eMHKG+Cr7WwMFP zJ2lzPAva7fV/PlnHNE4AVsi7MrgyX+o/j0oiqpW/Nz4S5st5qof+a4jmjtUX62KudcB eqD7w7N2buLrePOmG+mjg/RPrMygSAjRL76sILATdUnat/7wjjzHYjt1fM1avB4qWaYO jCGwDlUkolGMWSW44oq80FZzF3jS/bCLUkmra620RgBxMtHLVcUWoOpV4PBopg8nT2JF l0fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289581; x=1734894381; 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=OfCF1LRxG493UFC81jH6VdLMnVW4fkTSqxZcidADjdE=; b=ljYRoonqkFz2rvkp2Gro8bmi0bqQSkvZuHVbZJkrzEyPKYB9h8dCIn43S/CqQdy195 KRQJOWk+PH9BtOG6ntKlbVvu+n8UBvjpPbP9idRmax112iiSGk/2bTmGKGZutscFG7xV l31EG5E3qZIuJzlpQTXUggaU5gdDFQSMvkuYXibvNsQYt/A6ewIFiR4Yl1ROsgEv6a91 IwF6nwDsZgyc+Z75YF1GevxtvRHS0bev0M26DPVxixep86zaVZRnu/fyum75Si3snnZA Bid6b04F8dBe8Q/O+mb/uajKvHJYtbvsy50IQqUxxOssZPMkmtZDk8UAbjv0g5phXfED gT8A== X-Gm-Message-State: AOJu0YxmR2Bf6aa87UuGLWJOtOHFkl/lmp7+OfiUGQ4aoUYeNG58kKj2 kD2Ax1MOulpCvroWFkV0xDF25bqCUF+qwVtIwKOq2R8ToJm8nyKCWTzJfqJK12a2Z+YWm/zBNft rWjybj7JI X-Gm-Gg: ASbGncvXZomZ0AnUsbBeDUpgu6yhPCWsIIWX8h9fi9cRugMGwvcQLrcbPN+mF+i64x4 XtAnl5GMu/u6UCvjBTEuRm0F9eDNM1Y1VNGWjbtG1Vom0f+uhEfl7Y7tbBrLrBG/wXTE1TY/76d sKqAOPehNjp+sqFbKm9fEkH+dxA8dzdhb9+zHgx9xUAH8qgrnRO8So3etBLAC4H3CHkYxMzAWJb hAzGEEUiiqxXML0/MxDukqJP6BIPXIte8iy9xSm7j32ETqD0FVYh48YyyKZr8rBeNZX0CwARYvW I4Dpbc3rqXHs10EchZxIOdE9VOPaVSyjubh27gBLqNo= X-Received: by 2002:a05:6870:2199:b0:29e:2d50:11aa with SMTP id 586e51a60fabf-2a3ac5dae51mr5760715fac.18.1734289581564; Sun, 15 Dec 2024 11:06:21 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:20 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 31/67] hw/intc: Constify all Property Date: Sun, 15 Dec 2024 13:04:57 -0600 Message-ID: <20241215190533.3222854-32-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c2c; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2c.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 Reviewed-by: Daniel Henrique Barboza Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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 Sun Dec 15 19:04:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850970 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520365wry; Sun, 15 Dec 2024 11:07:37 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX0ZKd+ccRJup+x86E2njh/uGQhuvkdmet8IPNUAmswCv++g4FCPgmsgPRDRQxbK3iOwmC/hQ==@linaro.org X-Google-Smtp-Source: AGHT+IGaZ0+WNCmQfNTRN+TNcAk1aWYO3wBbmknuVnuqFIzOG5bDIwocdKuSnKL9yY1Q9nGkSF07 X-Received: by 2002:a05:620a:6083:b0:7b6:d34e:b21a with SMTP id af79cd13be357-7b6fbf1aab1mr1938627085a.37.1734289656978; Sun, 15 Dec 2024 11:07:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289656; cv=none; d=google.com; s=arc-20240605; b=kdI9lhRaWmH0ZalejUwx//ZzvBWkMFZ6bl/+gcQiMXsuZNt0NKzoSsqyM52gPbVnnz G/jeXfGXy6v1GEmMLrCYngAEK0WARnXJCr94RtRMb0P4izBr2ADQKA0MR6o88eOTZUuy /+fp1ZwIeRD7c3NfyyoOEWxypTjFoChszCRRI+7vpMM1OMLKiRSZM2/xi3tZXPaOGb6X R7miXE+Znp8VTtB9TxXqHG8b7kNETD1psoh4/Kbpbyyh+U629+I88nV3dOk7grSn0hVT SPsIu3UkGMehqZ+N/DPl7q846k+Os5/AQKHnkhPd3KVT+75ViHFTpWexLk2MPtAeaVoq 1IXg== 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=TVBuRr7KLSLtGzV6O9infIgLbdNJKmSVBAsV5f7mK48=; fh=qDD2CKPn7GMzzZqik2QTTjvN2ccMpl3I7G+f+x1fTiQ=; b=lvC8R/iEuVjWRWQ/JmRxE4NoP55d81JjL02cHHOw5M61bsJeGJbn2skMXtRibXLKkp /Ux6zp7biXyioL8iGdegYUqFhwa+GDyHpiPDRZhSoQbMdUCcLWcDlsounmuQHE3CP9rB OsS/w9qc5zDY57EJMw2a9j4d0uEhIbz1n3tXZj/H1r8axSTtfQPnaZ9Ts1PSpq+dYsy3 9J0l/7kkhvx1W8yPL8EUKMA1kqFEmFx6Tiz87UMpFmKJ88oSUHmlJS2FVTcEn/BJOD+k msMh9Cl7N1Mhd9YOn24uwtzePokyhr2AqLP/JJqlMxALFBnPlwChd2Ahar6Ai6cR8iR6 FIpQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sSIu6W1u; 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-7b7048f362csi497580085a.663.2024.12.15.11.07.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:07:36 -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=sSIu6W1u; 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 1tMtx9-0002UL-72; Sun, 15 Dec 2024 14:06: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 1tMtwi-0001W0-Ld for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:28 -0500 Received: from mail-oo1-xc2e.google.com ([2607:f8b0:4864:20::c2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwe-0001Eg-75 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:28 -0500 Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-5f31f8f4062so1383651eaf.3 for ; Sun, 15 Dec 2024 11:06:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289583; x=1734894383; 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=TVBuRr7KLSLtGzV6O9infIgLbdNJKmSVBAsV5f7mK48=; b=sSIu6W1u99Xlr68V05TsIkhQMw+NOkRfUXoG7FYkpniOqiFGzajPqdTdxg9UhZGz8E i9bJ1RI0bV1ZnhVguq0HdZvj0mMzL9T/CLEmNdK9wziPgc0zNJRQ80skSiNnDcS9GioQ 7XwFgrpAETuDMwI6hOHfwNbaxr+LUb1nx2LJmuhCeK5Y5FiR4+xDvKlaQXTKiTFTOFxI Fo1y85iwH/wQsqZ8swnO1og654IOsci43C/xKbuQ6dR9Cw8z3HKAfS2PxIZxb9fr4/n3 4sng8jWwHT8tT+fvHAx6eQR7xZt4iZbySQw7c2ufVdRK7jgbrITXcq6spcns6At1xziy CPyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289583; x=1734894383; 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=TVBuRr7KLSLtGzV6O9infIgLbdNJKmSVBAsV5f7mK48=; b=FoqoxGg8ciG8j7TtBinxrN3p38GTGYOZQ0Km7DNMcpYTV/l+V5ReFIL7FBQeQvn9PC 7wv9Jr9dLN+Q86Jop10DjfagKJwL0FglYD/jNplhuRecVwdBZUxEwjqZ1YgSERibiPtH hB+Aj4aayXVP74auR4EjvccROY2n4fBTYyTPq0EaDxWZpru/iHbW/T7gVG+amTI0v+mp qVasU1dL0/+ZDxKZcC58uDd1SgfLYVPjQD2Rp1iGahRWWap9IS7VUh7qTuwtTlV51y/G YXR/C39Vl5vu95+qh00Q+0DGsomZrq4u2gAKZNqGSNkPvd1T1yIBAJzuNRW5+OVL5b2B F+yQ== X-Gm-Message-State: AOJu0YxX8pbP+sCeDMsxAxGJRE/gABhjLLs7g2ufPvsz+3XdkScGkHDs NzZZmEEuWS4itgK8tzh5B9L1OrZGSLdINpg1DjHH3vEcjz/Z8JhKzUQZQSkm7rOfqA8o7nKUAFf 7KUgHdM8o X-Gm-Gg: ASbGncs8PZH0zxXSCQJUhPZyutFJqKRf2mopAlIjruiH/O/+FCH7lZ6kOj7L6d6S9Mx uyCK8zngNLsG6OhR63gmJ7dLCVdkD/aAofCmqx/cXsHIQdDToE+SYGMIgeEiASeedOwa7rPV8hz uMV9EiUNEV5ZaVz20ivdPzPgq0ZuCIOutq4NCI8KfNzdb/ImPZJYE3mj4P8EPFkh5TRVIqN2CMJ wMXGhRHtAGmouwr0ywFcjgiBDWnEP4MsYNQwjm9YzuBcX4lHIpCqyLmo0rVl2ChpWJPyDZ7Ij0Z PVAE5GX3abKC/ua6jlNVAVt6n7y+CCQcHWpnLGekEUU= X-Received: by 2002:a05:6870:40c4:b0:277:caf7:3631 with SMTP id 586e51a60fabf-2a3ac53f609mr6036474fac.5.1734289582849; Sun, 15 Dec 2024 11:06:22 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:22 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Alberto Garcia , =?utf-8?q?Philip?= =?utf-8?q?pe_Mathieu-Daud=C3=A9?= Subject: [PULL 32/67] hw/ipack: Constify all Property Date: Sun, 15 Dec 2024 13:04:58 -0600 Message-ID: <20241215190533.3222854-33-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c2e; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2e.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 Acked-by: Alberto Garcia Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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 Sun Dec 15 19:04:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851022 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2524061wry; Sun, 15 Dec 2024 11:18:18 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU/M5SvgGX8OIhBLEVTiP7QFwUJGPfI/N2gdQXYCk0JmElUAiqCDR6PKnAcBPn8tNoJ9LNbHg==@linaro.org X-Google-Smtp-Source: AGHT+IG22XtTX3sAYpV8Jv8EgOwWPAQSnPJ1XHLQZ2NoBExdON8JT8ns3aEGHRlMzRo5e3cWkijq X-Received: by 2002:a05:6214:2a89:b0:6d8:ab7e:e55e with SMTP id 6a1803df08f44-6dc8f5c5b64mr150156676d6.34.1734290298199; Sun, 15 Dec 2024 11:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290298; cv=none; d=google.com; s=arc-20240605; b=Akh0VZ4/C/Rp2lgdeaHmF+YCOXh7U49R5+9KRLcolHog+KUN2d4iotqSolbWawndxH 0LNsIu4Ib8ne3GP9lXS8PSzccoHAeMkeBimx27kwxIk0x1WKw5AiaEiAQcEUM1YrSD1D wMMPuu4yJjyGPXigdamNIUoLpTFVjHDIaSFOYoUyv6rvJo3qz5H4D5az6UavlNBSG9mt v6zNgjwyExNAWLvyU0H3EUiiFrFD8cqyw83rCbd2wbyuG+s/U0W74wwqk8LgGIKXAJ9V GTOFqZJbK7W9zbvzVO8Butp7lwRp6/uDFJQnsVVkIYbFZXNCsPaMWfsf2qsOmrjUZO5m 0Biw== 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=UfqIQEtvyEll+bEq9eNWxSmYq+UyXT05rhZW4u9iFUI=; fh=xh9AEctwgVw5G05Z7dLsVZgO32JGJliu6c9HJ+4qQx0=; b=EGrBphT8zDPyl5WLFI+jRpJuU/NcP/JuTHUZGMWRMafKLEC9iSVj8yOM2rRASUfk6s dc4I2+CxhnuxWSJK00HiFbjPqaVsABKacFBqkAtOom5rIEjeHlV9XecxXUjhdMM/nG81 tXZ3ohCfSSTTBJAnK//+OJ0VfROX30Fx3wH/AurdA/Eq+hvUX/tvHNwZwYOXqIAg7dG+ ikIF6jqkkDp6WxhGQEJIVX4ywQ3+an535xM65o3Utjmj36CmDb8fv9gekfo8TofRm4Dq 3SOGSpEkm2JlT7OxkMdpZajPUhjzJqRMse7WSrXzozXRNNI5kgDg0Ei8kDntMd9qXRO9 p6+g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hhtNcTFF; 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-6dccd3a9c16si50318656d6.507.2024.12.15.11.18.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:18: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=hhtNcTFF; 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 1tMtx6-00028t-9G; Sun, 15 Dec 2024 14:06: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 1tMtwi-0001Vd-0H for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:28 -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 1tMtwg-0001FN-Ay for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:27 -0500 Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5f3397bef34so345029eaf.0 for ; Sun, 15 Dec 2024 11:06:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289584; x=1734894384; 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=UfqIQEtvyEll+bEq9eNWxSmYq+UyXT05rhZW4u9iFUI=; b=hhtNcTFFMDiyqcvtq1CJ95UFBT0DmH659PqCwYj63d/pSog5dQQr/cfwPbDJEMf2OX 68FgWnYCunmldw/T0ow28qHsToAGRPoUam7UfTN+nFSk56IrQBMH2IwPBiFperwd87yx KA6DatWDPKqSsY2OOR0wcXf8JVwA0hCNm9hdvH23ObEgkt5JWJjG68/smaMgLOjMDjGv 9pBPupwWtUJ6dXCnCobBi0PphJitV81HQ579bmV8lCYrD+k4GA1Gyzx6/dW5Fg9KkwxB UazUiX2d04BNv3hxmGpaq2T4Z0NrAajEp7IpAGHm21aV+w7Y1GMOogYwlOtmUZY0I6rV xnvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289584; x=1734894384; 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=UfqIQEtvyEll+bEq9eNWxSmYq+UyXT05rhZW4u9iFUI=; b=t7IAPoefuxRPw7Ziv8oYs8UfEyoYibPusUTNvUf6ZzHzuqRmm6B09WV4KoNrDAfwfK nXR83AVDRZFmXxIYCDya9YtQ4cNIW6R6sLegooVnL+9d4ibBe/J9KnoZFCYjbg8lmoex SvhZL72cGH4tk0KrPbDxUyKj10y6R4Bxv4ZaM6LJEsznKt7FNgOwBKmrE2ThK+2yC3M6 7NTHEuA+xIhOOa/GXV7dbYt5tDha2RoY82ftaFzZXLkl/zd4GTlhVLlWxT+AzQuyNhmp r32pCQYW50HCA9y30CqKGGGsSBWjoa8T0AG/gxOZ9hmw7zGX4pLIryOrizOmJ6geb87G 5H/g== X-Gm-Message-State: AOJu0Yx5IOwe2DzZ1CRr20qH2om4Xcg79SD9/7X4aXIH8a3GBrfcR7fj YTdAHdPnUZ7gDtu/5A9Y7VDRyfUXmDWttpQEIAAeMKBe8kmhYlRMWF+jXVkwZDxve5s6H9wxC9s hUQUVM8F6 X-Gm-Gg: ASbGnct38Ns+1YrjlCDxdt23gklZcc3p0ZxnEVTAlRxEvWKXbkGWZp2JIQrLM8ItJmt cxgV8v0t4VAM1yomQvDpnWU/CN87cr6n/CebpodWfXL/hvhA81VeXdvRfs3T1UBFnETmIz4jwkp jttUEnOBZ/dmNs+KeoZyDBXkNEz6XpfxcCOJMToQgPQO/Wtf0rN1ctBrlejlgQxdgJPijE//Qt8 Owf472fXHrb5lAJuE6wY0xuY5xxZF+oRmfw4tSouyjCeG9I5Nionlvjb0KeIU7/ile+xGCCDUKx DD1LakjZJ5MY53FFsOaoGOf5BEACPzOk8/sMzDKIk5E= X-Received: by 2002:a05:6870:15ca:b0:29e:43ce:a172 with SMTP id 586e51a60fabf-2a3ac867f5amr4767151fac.28.1734289584169; Sun, 15 Dec 2024 11:06:24 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:23 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Corey Minyard , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-Daud=C3=A9?= Subject: [PULL 33/67] hw/ipmi: Constify all Property Date: Sun, 15 Dec 2024 13:04:59 -0600 Message-ID: <20241215190533.3222854-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Acked-by: Corey Minyard Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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 Sun Dec 15 19:05:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851005 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522884wry; Sun, 15 Dec 2024 11:14:49 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX9FvGDPOipj6q+yi4IzYDans1w4P5zf5bANDLawl83kqyklra30L3Lx47zk3Rh8Q87JWDm/w==@linaro.org X-Google-Smtp-Source: AGHT+IGuQNyaI0+0MlIxA2HNJIvsA27o8lSQPGcrBtXB48WVmwzZ3+VV3p+cm4WB1VWsmZPfU27u X-Received: by 2002:a05:620a:471e:b0:7b6:c540:9530 with SMTP id af79cd13be357-7b6fbeea8c5mr1871347285a.25.1734290089035; Sun, 15 Dec 2024 11:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290089; cv=none; d=google.com; s=arc-20240605; b=ZIYXMNl1HznwPFaa244zkr2cYLzSOj9shjNU0e8FJaeTOkh7ne2J+7g3UwfrhL+nF9 hYUJ5GHj3sj8fUTlS9sa5vXyUNUAmdGI0FWrfx5/nEAPUx5zsHHw6tz3b9+X2qgHARND Qh3YTFqcumOmW3PzdSnMIm9WD5yjU1qrNp2/jI7FmouYLD4qjIPcZ1O33YSHXPBnQKve R5YkDQUBgf8uulexh9KELgqSEEsb20hgcBFXThangLOKBedPfgC20sllJROCzFBhM1aD UQ3Gy29isCdQI2ZpW5G04/vJyfCehgxzNEABhH0sAT7M4ZSWd0QSxeVYZEb3b6/gfgg+ nWWA== 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=4Po02+cPNlfKpjVoSu+8QJp2TLU2nm8crEW/dnzqTYs=; fh=yeUVnok3msQYZPCTJlwMOqdCQT/JYnQKBJTjYdiJgb0=; b=EBz+1bTf3la9kKsxklJEjQUd9o+Be+BAbo0e4Snx793oX1ouWMKgRSbJU9lutmXAec gs4n7cDxhRbUfwC+C0mC9EiP8NHBGxBTrM27p4EObUeXTYZRwokyihi4X7tiB9UsAnxW sgofBY6d/UElN6EskpGmrFEYBA7uourn5D78U3/dYlUmDMpLkm5rxH5Klt8wpyVbrW/2 UuqFy2ANq8lXImlugBvFG1Acfeca6K4vCZqCFH0Ef7reRe9wshehff6/buRvLMFKXlgV hun369puZIkIJBIMQIdGpBWnLbhSIhmr9pgNVLNDOEokgxHeA8D9+zf5F1WtgoUJhfS3 DE6g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qMM9vvdm; 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-7b7048ccaf5si487408585a.379.2024.12.15.11.14.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 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=qMM9vvdm; 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 1tMtx7-0002Hw-Kp; Sun, 15 Dec 2024 14:06:53 -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 1tMtwi-0001Ve-3X for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:28 -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 1tMtwg-0001Fj-JL for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:27 -0500 Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5f340d6db09so449229eaf.1 for ; Sun, 15 Dec 2024 11:06:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289585; x=1734894385; 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=4Po02+cPNlfKpjVoSu+8QJp2TLU2nm8crEW/dnzqTYs=; b=qMM9vvdmZbnf1hLMJ9s7uL/d1Qeg0lXm9LGoCaKe20pDf/8AgZjcaubuVhOXwutVJ6 lOliSJQJ0BOVkERB/AQPVlqkHKdgrCxbkcpqMqsNlcMuBIl//2GskhHxjbfMj+1AFjb8 5Wrr9WJhJ2d1xpUt9/YJ2URm4hG67x+l/iJMotL4dcHoDfv3PyuspZRs+reau8tMUkWO /pnAT/3QGXOsbuRkFam/3qrt6RVu41dYClA0irnqHWqzx/kTBi47/YdgzTqWfzqPXMWd kCimR4hohEem4TAiGlUbB54FZXFGqBg9TaZ/FOg1Bu+Tspf6I1PqJp/Up7tTBy9Z2Bas z+3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289585; x=1734894385; 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=4Po02+cPNlfKpjVoSu+8QJp2TLU2nm8crEW/dnzqTYs=; b=GKb5WGB7QHiL/Gn+GWtdEa8k9ZCTLjKDF/kBMCzhSk6ZRz20mrkxsFrojrHlsZnWr/ e1quym1s+MhCcYy4MeXGytz/VzUdlF21mg0isoM7anuyjjHPOpVh2KCcHsH4zBy18b9G aSbnULCpFm8xYV6SHrEFEpTCb0DA9PbzRm3UzDJmkAHZ2lsvV5WYmqNKidtdbQxgCfPY gP54M6bgqmpJnj0PUDM1HrddJSe9LMdV8y93E4nHiMvIO/PCYerJXrDmgw3lcBpE8ZFN QW5i6iCxaOXDfCVbL4AlLChy6l6MGECkFKlWBpagyOkMO0ngSes4i1H4GqEUgfLRTtNz isTA== X-Gm-Message-State: AOJu0YwS3cvQ7z6MXANEg8ntiRcl+zAQhmFyFanKtVOWAUorRquX8ptb BX7a5YPC2BZ6wnlTWG0er3xoj8+tkumzRwiShQuzqIcQPmBvsf18FrW2ZQpOtZKh97c7KzOgDU1 GAvUVX49r X-Gm-Gg: ASbGnct+ao0IX8EsItR2jPcGWVnjXCHasq7rVEhImY1FowdGuLzcpM/YMbcOMHzeP3e rI6wOePubArF7RDxDlNPm6AO+xUdxDRgeW094R4IWLJhMfE2yux9BAa3Sr8098iXG83tecQ5yvo 2AO7Gos24kQD2B5BnRDe7Pytn1NEsL97in75GFZDmfnvkBQ6p0yRtk61cQatTPFgo+fUimjC8Xk DaRRPQm14Z8hhWi/ubYs72TPoH+CXoh2fyVntukFYcieRQlOTApnwUCeV96JS2fuS4a1iq1L4Hf ztZm+8MQ/ZAh8dGaQfCqwNW6zrDOhgswTOp0Saqy2Ms= X-Received: by 2002:a05:6871:7a0:b0:29d:c6c9:c384 with SMTP id 586e51a60fabf-2a3ac6beb64mr5535822fac.22.1734289585391; Sun, 15 Dec 2024 11:06:25 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:24 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Bernhard Beschow , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= Subject: [PULL 34/67] hw/isa: Constify all Property Date: Sun, 15 Dec 2024 13:05:00 -0600 Message-ID: <20241215190533.3222854-35-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851025 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2524084wry; Sun, 15 Dec 2024 11:18:22 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVazgK3byWNxoA3kDnsSP+aZzrOt+9WGdbahMwfhm07mBXB17dJ+4qtUjVA2j6mYOVc/IGS2w==@linaro.org X-Google-Smtp-Source: AGHT+IGk1jfGPB8Tz+Gy9ME2Y//93FdSoRN14Cgg6cfcF1MUqs3Qyewl6nLK/W7JHfycf1oxKUKX X-Received: by 2002:a05:622a:1dcb:b0:467:5ea8:83df with SMTP id d75a77b69052e-467a57967d4mr193941121cf.30.1734290302065; Sun, 15 Dec 2024 11:18:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290302; cv=none; d=google.com; s=arc-20240605; b=kImfNJ5LCykT/rw5nrOEb08JUSxYmBpRstY9JvvWM3G+4reAF05Oy6bPeG7TqOkQfn CasE9phc7RbC4mZSe3BQSgbIH+gxahJAKrhdnnwcSw4CSgzv185PpjXCVMqwab6emwsJ 6qy2Fhaats2k8WwrcafACs4Qwj11kV6ytLOUU1cRrj32PpkUeDQo8qvPvjmUtOef8RWu ZZFYpObcQYcdS0JD1d9DrBEMl3pab6UTQ0ffqHK8ipSDpmjvTVFnmStPA3BBMZxfao1x +Vk9/ukaS1pxrIXibjS6I1HagNH/VH13w5+yHnsa4lq2aKPSE6E9145g6NlJ/EqxOn+J 1tbA== 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=1ECW39NRqpfZ/PTyPriCYZSRdWHi5xzzMmZM9BZOJCk=; fh=dXVBuQJ5bpfgQ6qdO59fsfzi7wC6a9fI/EN0BDmhbp0=; b=LMzZ11h78Di9rznYc0LFIdnxqMRfwNY6KUB2BDLsODQohA8GHSfrmKKHqAP8GDpQIi gSE2zUXfs+HGIrdy4WGV5O1lV2ZGGlU4X2hMQcQNNoHmxODMtRD8T4qR1HSgV3jdpaDk gYzXMxDkBKgWVe1dIv2lJcNd1/LMOFFewi05kUgTTAerzY9a5tpwXkey+Se19P5h/dOd Dl1cDJvwvn+XF4c3OQDoYyZKs78o/W9C7lkicyBMhXBQLNmspX0AA4S8K/o1xm6MhV9B ohpGCs1taeUCLwMDXEulkIoPFuXWeOq/xUjG9PMK4eQ9kS6zo2mmPWrhjttLOQvXTaeB Wz4w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dC9rJAoR; 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-467b2c967acsi58944451cf.24.2024.12.15.11.18.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:18:22 -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=dC9rJAoR; 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 1tMtx6-0002AW-AV; Sun, 15 Dec 2024 14:06: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 1tMtwk-0001Z5-Ie for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:30 -0500 Received: from mail-oo1-xc33.google.com ([2607:f8b0:4864:20::c33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwi-0001GL-O8 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:30 -0500 Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-5f2e2608681so1684308eaf.1 for ; Sun, 15 Dec 2024 11:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289586; x=1734894386; 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=1ECW39NRqpfZ/PTyPriCYZSRdWHi5xzzMmZM9BZOJCk=; b=dC9rJAoR4xIpGIImMB/rUoDvTJsn4zH+rcrPbEoR5Vkc8qAS4oKvFxFGr3HUZLZ6KQ BDk57+TFqNQ+gjmmqSs7QfBWrEa2KPd0UaO/brWuy4GX5jRqM2sGzqPOTu/zluFzOgay MeuqHb8ysDUn/QcB/YKvcg7H3RnTdSrzmrLRWQbo3Oiz6M0eVaeSwtDx+c8gZIXM290q EIl8T0J5oVgpvrwIQ+mf3dEulB3ekCjJDdVQqs123mDfiEBGVYoFPdJC97tnX4G9rI+Y EP0adBUDKQd5f1Nevo1Mh1MZCquAgczyKiWwUOtqecIjd7dNLzViTbN58qr4ZCPr8fR9 8wZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289586; x=1734894386; 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=1ECW39NRqpfZ/PTyPriCYZSRdWHi5xzzMmZM9BZOJCk=; b=YuW+Rzsi/tO/xaiQsj+KwXuWqO23rm07is6+1WozeqXsmclIR8EJuLR8iri0vhIGcq gxVhK6FJhmSwNMqQMy1bv5v8O8C1XJFA2Az590KHU5BVZ2xXkarIBo2E1X/7d8u46lXF xsWYoq2zqxYi8beCYL4+7aaxuvuaFoiCWe41dIq0+6sYEB4cjmbgbqdlJA6PlCgPy+Cr JTFAmTWGqyavK+IpmpbPrQMkKCui/NpdQHRxwvTGIyX/hPboXWAFtgtFFS9yOqtxnYoZ 54LPDAJbOiGLJMRN2M62scozycgOLr0LkwbwAkfEVUi59DFCuWHHRjGlFjFHATWIbAGp qAkw== X-Gm-Message-State: AOJu0YyhUkSilDxT8Bgcrmva8r5S7bWgJkohTfHy5gImcslddj9GyCCl eAFJlDk55SCewQzN+zwAPJgSKRZlu9+JynOzh4Qm0AQbJfu7NN34zg1Stlq6HNgqpZ9FpM12WKn SwKVZTs0c X-Gm-Gg: ASbGncscBv2Rk+9jQSys5RtuuOYaiQegf/MD4eaDvhl3BfomlUS3Ua+cuE7F7KzFIlS S9UjVaZznq2LKAIazC8XlRkqO+8y/eRj4+SZENSZC31H3zatJPjrjPI1rM3bDVuUQl6tvZlcO0t ORg3aP5V6K0bUs/6zINus3coPPbbeUSw9r2/XEq6Pp7h9Dp63YnhkC4swBTczPJjQ6Pb0Y1lkw9 0jBXPYUyd27z4GSGeZjquPpsBn0hah+GKyTiKVL2s5EjaQmmH8AhKvwVAEyPBnd7khEqedgBZV8 YZmG1Cs6hntlkIxfjmyuJdRRMNd7xjtl3/N+m4PYuBY= X-Received: by 2002:a05:6870:8a10:b0:29e:8068:e089 with SMTP id 586e51a60fabf-2a3ac7285demr5901565fac.19.1734289586753; Sun, 15 Dec 2024 11:06:26 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:26 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Thomas Huth , =?utf-8?q?Philipp?= =?utf-8?q?e_Mathieu-Daud=C3=A9?= Subject: [PULL 35/67] hw/m68k: Constify all Property Date: Sun, 15 Dec 2024 13:05:01 -0600 Message-ID: <20241215190533.3222854-36-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c33; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc33.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 Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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 Sun Dec 15 19:05:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850989 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521784wry; Sun, 15 Dec 2024 11:11:35 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXdlX2ARkeMI0TgNplIdqAvJenK1202Oh+c6bS8AO8JJX3nlAgflR79BGD+3UKI1vSVDYMCOQ==@linaro.org X-Google-Smtp-Source: AGHT+IFVexS+ku63oTFgPgJ7E33aMiCfSGKpQ6KakvN67WHFLEMgkIq+G+8/EXZXzaO264x71kZt X-Received: by 2002:ad4:4eac:0:b0:6d8:821d:736e with SMTP id 6a1803df08f44-6dc96872e57mr150721476d6.36.1734289895067; Sun, 15 Dec 2024 11:11:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289895; cv=none; d=google.com; s=arc-20240605; b=FUoOdFYEpE3I7JtDQo1qzwUlbHzLg21LwTRISnXCgCGZFE2D1p+Szl4b+hevQ4XjTU TNkNdhUxJqncR+uQst4uqVDo5Gy9oSUiydTvXqeonpTF9YCp1T/eBSuLW7zkXhZTnpKC U75/9x9fw6AHThXbqXuHVUTj7rc6ARNolnvmXEC0oa9BwFa5Ee+GT4e4pU/ta/3Gd+S9 JPGlbjIF5BmWiegh+o0WsruRpBvdVYuClDLUDlMYfpA9HMiFCiqSpKEmITWn08JNm3f3 duTREYGsyNx4XN06eTWx3yIQiDbi3H6vil2EZXlp43l3Lub6tBVuv0W1tPI7SSwObJqx G0LA== 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=/0TsJRbwZmNAO2qYlCgVoT7st3PUvmUAIcZpMw0bU28=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=ZF+h5Cth38p6+Njx+2efpM11X3WozME945kNjWSpT6nb+Q4AcDvGXx0CEGsmUG40pg heTGL8AaqUGTz3pZ+qrnhr9AcFHl3aaD7rK/vZy9tVnMQUAsjYpg8wuEZZ1pWy7ao3jw sf/D736QGVjcHSpEytrkDf7gzSK81y9lPXoSwWGMdE0NUlMIFBqmfk3KdeDd3Zq+yhn0 8w/hPg7xnQEcjEbklcUb37oOR3a4XWy/NQQD8lFlkcMVTpGuyO38P76Bos6Lgh/KsMLl b65tiaWrECt03FEFuMTuQ5lYt9hqDCyGn35x3RtIpr7Q6ZmOhYPdGrqmbmJ4HfXsmMmt iEzQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UCLon6q2; 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-6dccd39ab05si55259186d6.464.2024.12.15.11.11.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:11: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=UCLon6q2; 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 1tMtwo-0001gg-2p; Sun, 15 Dec 2024 14:06:34 -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 1tMtwk-0001Z7-IV for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:30 -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 1tMtwj-0001Gu-1E for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:30 -0500 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-29e149aff1dso1087415fac.1 for ; Sun, 15 Dec 2024 11:06:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289588; x=1734894388; 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=/0TsJRbwZmNAO2qYlCgVoT7st3PUvmUAIcZpMw0bU28=; b=UCLon6q2zO/vod7nM6lgj623P1D6/3tF0JVSyKQF66Upze2t7Tc1NGrlR4NC6hkUmV ByMz/C3SO2Ce7l2DqPcVVBo0nmO9n2Bv2SBSRHXMP+I2SI/Y/lTOgjc6y73UqkDoTSsE ZpIuvlkoNdAbel7CA0WU2uQqmQ3XGcJwH5oJWKVGE7yJrwm07fAvCSfhlcQOR8plcpxD Lvx5FyQa3liyOL8SFtqtLWYCPNbkM6y3QiarB2ZToJMM8vYAdfoviaYigv8yPWlfB0/Y xZW9AVbVv+/vj/T1HeDxiunCz6N2QHQ5VPQWwcY3tRPQJldbSBg3COSi8lHpJgAi6PIN +A8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289588; x=1734894388; 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=/0TsJRbwZmNAO2qYlCgVoT7st3PUvmUAIcZpMw0bU28=; b=lfFBtbKWWzuNS/R2OzkQ9dIptgKe47o5721jOwgr/pKCvcPsgTN5Zl9WnEay/M8aqn uFnkrHRBvKOzuamASQHZcK4kSWlqQ2P7VPPaJ7VE/7ZCOITycX2VmA141q1+g155Oqr6 xXCmButbYHYaspag4meConTqbQdNcHK0Fz84ZZAErO1TnxJIBJ85TYwn+jMrNBisWUYB FgK9x1fP4QRVGixCcNHWlxYzqb4Z/clv8hA20gNmJjzNthzDl51maK6Xmi03qWt/Qsi+ 4znaCLKsoIVmMH9ePBJDmh7DB81f12pyBKOXxrbsT/MbHYFcRg3t9bV3ldx36I2kZ6tm nUUg== X-Gm-Message-State: AOJu0YzMscp3bQae6XgrIqQ5U5Y7D+NEJLWHqy1/UIVqJtP7L43e2c5F PT4uo35D0Pl9Cw8owj9BLQ1qm/Vwsr9UQlN0cpwpxVbzcB/kdqyskTCzf5JLqzMFjh16Ww2bXdW 6ktXeVepM X-Gm-Gg: ASbGnctXu3vWReokL4wz7QPzAeBmedp0kHgpL6wH+c5KM/JnJ+U1T7HA3O2fZ8bFm/+ CRms216SQ6uZMDJmI9LQGdKBUmw7513ETNif7vvQgWtRdEuKLZq7jZTtzsAK6gTrdYW0x/oxxAZ OEtvyag1TttMr0q19++SuF1GzqITMzaCaDgn1mB8W+fe1lHV2qhvOaACVQcCUl6Nh/7uLMdbloo iKXKU1QbXoJuDo0lZ6e+Hl48Szx1FB9zfJgerRB1yF5s1ZzRVMxBazP+ktMv2KW+eAytukK/15m Tfg5lxhZtJdEEZDmHAKoAFQhtUBJq4eeBTLelZv/OaA= X-Received: by 2002:a05:6870:781a:b0:29e:255e:9551 with SMTP id 586e51a60fabf-2a3ac537783mr5486805fac.2.1734289587937; Sun, 15 Dec 2024 11:06:27 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:27 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 36/67] hw/mem: Constify all Property Date: Sun, 15 Dec 2024 13:05:02 -0600 Message-ID: <20241215190533.3222854-37-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850976 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520938wry; Sun, 15 Dec 2024 11:09:04 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXWrTy8042GxWqMqWlcZjJX/6xLE1I9GbE5WP//kLyKgBhcaxh70r2FGqOF/nH9XGSXKqq17g==@linaro.org X-Google-Smtp-Source: AGHT+IH9YQquHwsnFwmqzF0RzAQL7b+nVEP4/UrxFwhvDCABNoB2wBTqborC7B1Az0TTE0cQ1MGc X-Received: by 2002:a05:6214:300e:b0:6d4:1a6e:d343 with SMTP id 6a1803df08f44-6dc8ca83c35mr199046856d6.23.1734289743903; Sun, 15 Dec 2024 11:09:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289743; cv=none; d=google.com; s=arc-20240605; b=ZOu/aJgXpGgGd4Se2nw48iaaRYo0EB3x37A+cGs0HZJ4olx3pK20v3GuSQISUdkowz 21/HdC8oWr+WcRMTyApj/kdkUyHjHKX8KJn9gOqNbupgBINoWuY8QPv04d4lUOGmgrCM vx6mIZUkbLpc7hO1D3WQsSjS3bshNvxEhH/45KmHcr3+Ioai0GQh98RF7UYtKwdAMNp0 uSe+mD6RGBDKmtAej8mVgvrmwsHCfjziaofcm38Oz2+sfPN0OM3ygRoXUQB9qjJ4b8Z9 cQkJzoWpLhjKeJNQIG6upJEE7mu2OslZu+8y8UHsyDPbXOp9oIEoZQoMim5Z1H0j3Yju Os6A== 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=JUWs487i1AsoAZAXsWndCvFPp5W8PVatVy6EB92egpU=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=RyeE9nW8WQd0j5VefvwF9BVOyKPsMWKye9wjcSvZHmFOicGFsTtwTDSXItppfLQm9I DJBxpdMpqwQVL+6ZDPyI3V+6sqQpdNh3e8niARZluRms/tkcu57bH8MXlc2JbCo0W7Mc /e3s7j0Pq+ydRkvATIhlyStwqhr7TZueYwtcENi7MVu5LDSyRiWFli3lWiiHQlJP65Ee rfjGscmQwBz8OTT2QB9d4affcmXV7lbmDW6B65ajjWfveSwj1uC/aDnNkBFPoFttI/di VsQmArkRuXSnoDvuD+tcgERVymKvqHtC76EVduecpm/eyzHvc7aAW38TLwfmXqqtL8Hv hYGg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ikVD3swC; 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-6dccd3705bdsi52036936d6.348.2024.12.15.11.09.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:09: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=ikVD3swC; 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 1tMtwq-0001iw-Lt; Sun, 15 Dec 2024 14:06: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 1tMtwm-0001bx-0a for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:32 -0500 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwk-0001HM-Ae for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:31 -0500 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3eba0f09c3aso971351b6e.1 for ; Sun, 15 Dec 2024 11:06:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289589; x=1734894389; 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=JUWs487i1AsoAZAXsWndCvFPp5W8PVatVy6EB92egpU=; b=ikVD3swCOWjwojdsy7+s5V6A2wVDgtLC8l35sKzF2vLga1nnJpCwFJ5QFM1DcZFfYs Iio8kSPuSDx71QD3U2bpxnFiUAcOig93mHIkMc9SXP1PpZn7gPw+90+2MpKDy7Rj/J6k ZdmV3Oo6k5n1ZFeEjE4aLzM5Udz4fssG490hdKHJT70Cnd/LrKU1uytQEWl471sTXTOB s2+WoEXHU41KU1WCJLwF1r2MOCa8oSoGFdkGzPDMWGcy8iNrhJW+nlI9R/VcZ0eRaNIX 59jTbY0p06eT6O5zCQHf3JC8kcDBe2F/eRts4wd36KBtMaOWS3oqVKfZq1vm60Uh2kIO fZPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289589; x=1734894389; 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=JUWs487i1AsoAZAXsWndCvFPp5W8PVatVy6EB92egpU=; b=uhgW6CDnKJvFAippZ330lsdJT8rcYrad/GicH2x1ceoAr3NMMXxta9lrhdKX1r8s8j XHmUpRnyx5hwVaHa9MIl04oBjOPbqxNpF77it7yIsZwMT5eZwHROSgG61e/g3CIK3xJ4 2yCGSFtReTEBdN+A+Y86tcylW5jR9lKym5PwZJzK3zWbFmtL5MCRcinCKVJGX8fLEfA3 mA20btq95cQioSX8I+v9mTS0Y8hQJU7JNC5qwub4qCjjr3Lr+CNson60ArRHrokOxWHF EBhs2ZLh6J8PK1Fqhh1BJFspicO47P3+j/tJBpD2fpB8hwtqOj/LdHmCZkeRpHRNQWcu ujyQ== X-Gm-Message-State: AOJu0YwG5oat9Bb8LwglPc/JRnLAllcMUvyMx4lGjywFE64pPg1uA+7Y nekaGpsX/lxZZweRFsd3UtNS9TUuXzt3ntBi4W/sEZhfWysj2gmCd5sm3OKsZSW/MReuoI6yR9e aQ3+umQn4 X-Gm-Gg: ASbGnctHIMOi2+cpMZALbfRCsDgb4N1bInyt7lkCPtv7SrJbB2HcsJQUjjdp8c+TCs1 Qio4YQsB4Os55hpDa+LQUYwDOrtBes6W/Q5z6RYSLeFDUYr1sOH67ybYxvFbFGmSL3w0e6WDWUg vQK4+qHWrW8FvZOvV+00QOyN1lM1GGUOpM4PGCa0rZEkiV/FpfqR/QqcOCUICxO0DivIKPfE3/o SWRw8N7Fj6C+FpUovgHesxvM1GM2yCG/8ZbqeLkU5kNfht7yQlNpn1bmeGShhFcsXwWBKey6nZ4 8KRhcFt7VQqMWgQOV9H5NzbK0Myfz2lPPMTAWcKoH0s= X-Received: by 2002:a05:6870:9713:b0:29e:6bdb:e362 with SMTP id 586e51a60fabf-2a3ac5ee1b4mr4474334fac.17.1734289589015; Sun, 15 Dec 2024 11:06:29 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:28 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 37/67] hw/mips: Constify all Property Date: Sun, 15 Dec 2024 13:05:03 -0600 Message-ID: <20241215190533.3222854-38-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::232; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x232.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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850980 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521177wry; Sun, 15 Dec 2024 11:09:51 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVUAGsEmAs9QqgA21BL7ZjuvT4Kx/Cl2gP8LlcaifrhAW1zscT/IHgFilJEDz/mWSrRGNNlcQ==@linaro.org X-Google-Smtp-Source: AGHT+IHQQR3TanMf5P9pZZwv+ZjbSg//NQOUJdflpAqS7phB3GdmRFy6scSBoBmeP36CcqvnAMy4 X-Received: by 2002:a05:6102:dc9:b0:4b2:5ce4:2b4f with SMTP id ada2fe7eead31-4b25d9416bbmr9746256137.2.1734289791742; Sun, 15 Dec 2024 11:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289791; cv=none; d=google.com; s=arc-20240605; b=GrKdQKSm8v47NWb/CkmNgbiyqD75/THoFBvaFNltGDZhaieanIVT2Tja2OJJFaGudV CI75rS3rD6qoZYFYP+6R7QcWHpuMSy3LyoChQ/GOwXT5WYAQQeD+swI2IpW7Vd/UE8eD +/KmyKd6LTjrR1m8yMEmVenbwvVbgeHx8tzp/1fIi24hS/dOunTKLPUDbx7kEULP9efB g3es7eM8js09xTWi7qkC1ahn9paf9m6xb+fuKWG6Qw29DzR2ofPdKCwgHmmR1s+uEhNb cqBRQYM43KBMeEttuAVi+s0rIL4W1pAqWOAcAmcMt8aqHfXiofzzktDa36RbaL4SwKxI CvBg== 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=ATtwQCefwxDmcYM/q677d/D/wRuo4QtIQ9za2txrGkk=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=f8AkhCSW/dzcdCDydh3Cfaa43W3xJ078XY4o7jTNSzruKZOM4nvOYzMLTDcW/9VSCx miFkenySsPcEIfrtDCVq9WOsRXKZ3SdhmoKhaSgfQjZRzUsN+Xotwnw9LWYLsRYG3kCd pnRz+aKOxUDCIUmkE3V9qHoQ4ibyQBE2ipafZgcEO2iBsNB1IqFVNX3ozJWPqXc6GoU4 8PtRAtk5eoa8iSsF3+Y00TXUSsHfQsYXucS4UwpsWx5ij0DGXcmfLfWvZgENUT2NK/Xy G/rtbdBvdm+wgCFGncZ+UJWO8p5Y5J8J4jh1ZaWeHZ1l+c0bpBEh1C3giexJPKZQVm2I 0rdA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EwsCtyh+; 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-4b270252fa4si868417137.194.2024.12.15.11.09.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:09:51 -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=EwsCtyh+; 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 1tMtxA-0002ZJ-DA; Sun, 15 Dec 2024 14:06:56 -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 1tMtwn-0001g5-Am for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:33 -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 1tMtwl-0001Hu-PC for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:33 -0500 Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-5f2d5b3c094so725339eaf.1 for ; Sun, 15 Dec 2024 11:06:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289590; x=1734894390; 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=ATtwQCefwxDmcYM/q677d/D/wRuo4QtIQ9za2txrGkk=; b=EwsCtyh+QraUjogqCkw57795a9Yg9tuPiepYpgMQs3oGl1gdhv9nQwC6/pe2TrPKb7 RL8ykVxZOSiqB2JT3k+Phh5PMp4lUWhUT7aMB7/SoGu8O9Rv25CGw4XjQ+GbgK5dbFJq 78fzFQO3o/xDxCC0YZVwiBY9MlHhM7Tt6z0mlQhrfw1gXXSTVqXN1m/akdPwDlLZJS0j 6Yb+BnZSoJQTyI0iQi6Go5QOWTCOuZ2sQA3r6ljZHJKhMWTKjsK3v151sKgPyTE3SsNi QaTpUxE00lBDOx1Knh5e/VbAwZnjIzTTL2o7jOiAoK82azFHqURRb7qnz5CSkLbCPnkx tA8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289590; x=1734894390; 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=ATtwQCefwxDmcYM/q677d/D/wRuo4QtIQ9za2txrGkk=; b=KLhIdy1kinEu01YRr2V+lY0rhslUsASMPBpt2KNtzEDkTJA6DdG6yePw/UTiB6g4BP Q9tsBECMUv405+lM5kchjeSGV76iJSqCAY/7xJ6MDUpwZHmmTHZEXctP9BAkusEUco16 ogyGqpCfTpG3jlBaybfL8HyQfNcqDdu5oKMQT/vZX9n2NQ0IgsShE+45Ss8lHcZBhPDq N43BbFUHg53DuQrK5MrGQK1lEU5Pr5NP8UenR8ySNzIiNsgYjWHWqSfG+8Oa6gx+hlOr WEWgifRkyhRXHrKjNWMs1pkF474otSHr+elNw3fUhFoXjgJx/OWvrZ1Dp5M1Jn97t58N obtw== X-Gm-Message-State: AOJu0YzefWNwZeBWMmPkEt2/p85cOB0NKLuNUHIy9ojfYReAeQEygyPi hhbTzXFERfzKI/IfRzxov2R5hzrO28+OyBQ8vM+p1mJFa4Oql4aONq8W7eZLus0HW4+fU7Ics5C hBF8m/RZp X-Gm-Gg: ASbGnct2n4aBXWXKSEFdYVh/pg0y/D836FM//BohSk7nq6nkULnMIILQQG5yvrzOKaw Iq6naL6WEVktGMafp4tyddTdI2++iuIAeQHSr8EFEQNGoP6DtaVaY0LwqGawXS+DtrtEScRpEl+ aHfu5W9PoxQV2tQUgtaDBXQWp3wej0/6ig7h8mK+0tmWuP8xooOoaDIJTrV8jVM99d/TK9OTn5S 7ab+OS66PmkCWSTbnxKdwontDsSzkvHiRuTgyydwuEd+NQD9vQUfodJdWAPmY9a9kWFoaYc5NiP DPm1hLGS1ypScw1Iz6+TIb16oEe9nu/RJUuG7SWhImU= X-Received: by 2002:a05:6871:5814:b0:29e:5a4c:4ad8 with SMTP id 586e51a60fabf-2a3ac8d9e7amr5253466fac.40.1734289590247; Sun, 15 Dec 2024 11:06:30 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:29 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 38/67] hw/misc/xlnx-versal-trng: Constify trng_props Date: Sun, 15 Dec 2024 13:05:04 -0600 Message-ID: <20241215190533.3222854-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 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. Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850974 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2520694wry; Sun, 15 Dec 2024 11:08:26 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWzcvU6UsrX/ILhVDims8K1gMpEIfQTKTUEeOLqG92FD6/v5iIihLx948mtJBwv8jqPxIFpfQ==@linaro.org X-Google-Smtp-Source: AGHT+IECaUt0tQtKk2RR8zgidfSxHswrHwNni+/ivn18Vb8coB9wW6EQOf18aJFOXH1fAbux+bw2 X-Received: by 2002:ac8:588a:0:b0:461:5571:5cc6 with SMTP id d75a77b69052e-467a5821852mr211028291cf.46.1734289705993; Sun, 15 Dec 2024 11:08:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289705; cv=none; d=google.com; s=arc-20240605; b=BTqpcVreKlHQM/Km3wqEEYzmTk74zwp2/y7T3v2qAjtlHI8JXI+v86cGFWy12aMQ/O 98o3hv5KKqxzeejFVHsTURAcyoUmWB2E2f+vW9f2RNdCcQEdwsLTCV/73X/yRTxgCo93 czUpNo5HgmYkxnGFeEHafjolxcnzPzRqN9q61TJH5zaldFBpfpRtv69fQQfS2uzc/XzJ 16AGx8X99DMqO5FwjcmXj6uMvp5XaRly2ENlK7fqow1L0B6AKq2iTyfRjlP1jEIazGY7 eRn2LYGmhMQlpE8Zv3M24hpGsHqkIYFR9nJ1dF9dpL2CpE8gtn62zlFGmxYB2zbohxZ+ cyuQ== 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=lys7tGHuZ2D1yOM7ypaRB7yLdQKP2ngPf+Mbv8hYbYM=; fh=I2hSNBlDKVAGYD8LQLmqSRQVeeUH8epvzOkwBVrCdV0=; b=AWCVAiCmRSimFpDsXDhzXtvud7EGiMBE70UzWxjGnDYntkDd971E5ncva5uK7izVFA bSKyg6Uaww8Uo02//gwZH260/qOTZq7F7Mdj9C6rUpCKiwv9F6ITGLHmPBI9SgtO9MXM 2d/0J8rRxIEdzfZLs2drvgeLb6D7qwAIwngtHEmUIaEQeUJZgBGnoj9o1OLbbnctqtvB tV+L0CApqf+uCCk9T4cpbZVfpiRlCox5cJjIJJ9kdYgo3bQuw8u0R4zg+8Kyez4QBnCC lSOQRzwz42E48mTagaRS+vcwVNwdaY+ffuoMblcPHCDgIzU46MVYls8mCfgSvRXR5sOr q1bQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x0/r7ELq"; 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-467b2eeb26dsi59175371cf.479.2024.12.15.11.08.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:08: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="x0/r7ELq"; 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 1tMtxB-0002mz-Un; Sun, 15 Dec 2024 14:06: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 1tMtwp-0001jX-IR for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:36 -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 1tMtwm-0001IX-Ga for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:35 -0500 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-29e842cb9b4so1057471fac.2 for ; Sun, 15 Dec 2024 11:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289591; x=1734894391; 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=lys7tGHuZ2D1yOM7ypaRB7yLdQKP2ngPf+Mbv8hYbYM=; b=x0/r7ELqsDXUXAmDAWdcJW8801tiiCHP4X96KOFuGgzcyf8vPEZF2RuND5TKAN8Kx5 DplcVTLNstOVYVLnCN/LEsZIM5Ua6M0/U5DDTD0Wj2/GF1iqy1oXnlWEItk0a3FNvkWS dr2epbTp6LqsXGbEZYWBUv0ujfUIxwyF3sQAn4OBHYX1fSq/nFEXdeux+d70CQkKbta1 i6zuF9HUjEoDnbLdKc1vviyXUq8l9A55fNkdh+MkhCdmabmTD4MjRmfYNVXFBpHoHD8W aB89h+RIjKEbLtDxabucPYXsXdzwXAX9A5PIb3GFFHnvwc9Jza9JRpVN0oN8q7hMuI7I IJLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289591; x=1734894391; 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=lys7tGHuZ2D1yOM7ypaRB7yLdQKP2ngPf+Mbv8hYbYM=; b=qAw8RZguF7CjsJKmwV9JOgGEWdIBSUGnkgREZdAz+uDZXRDyH8i3H0EF+CUaVS/n9W Ko5e/dDi4KlICKPomS0+1pGXIABjQNGZ+Ih6xmxdNB5FuscENpwyN30caf8iYRwC9gV0 UdZ0+nszqz6CeYmo1jxlQLD0XlU3bZwn7E4wqj6212YPjHMwJNCcNi6ZOyNJzh/Il+57 3/ELVnN5HYrUTbi8NYHwm9+/7mCjCGJzuqi9CgABy5V4HgRFB7p8kKXKtcUpTsE/Rom5 lUmIPnOyBokRgTtUcqkobUS93e++WO5nOXZJsNJAi0h0PIpSAj1zzuJXSRjXxIuVqZ+H O98w== X-Gm-Message-State: AOJu0YwAGJ4xjFBoC+kWbhyNm9FVe+ck0ZtLTmWeUMwVdlqr92BKJGW7 HR1fUWhoTY4a0hx05YjuhjfuZtxlchAIFwjCHUS445uN8vreVM8+IvvKHTIOq9VWx+AHykkuS9L WndaVrju9 X-Gm-Gg: ASbGncuMuR4yc92Sc/bYJkO87y+oTlGurHC4xnux0r2plZvRJyhWNDbRol7fB4r5uah +YtyHswNXNIaOleXbGdvBriiniYuDoLYNKxfJmiGdAZ7kWIg0KftYKQIHhwGYGs2jRfHUWErzqX eAwaP70Y806WedjcdDejmt8WKaePM3TRBgwvt331M8A37HVqBZURTr7GR4Y/ZzrE48XHqR9ZL6a 3XQJQYJIma79NCcZScob1rCCEqdV5QdBCH28LdY4KCQweDVieht6EY/doVDff4w1mPFA1yQbU4/ DX5UoOBZnimu8NWqZsHcoLLMsuvJkJSo9ozClYeJPbo= X-Received: by 2002:a05:6870:64a6:b0:29e:362b:2162 with SMTP id 586e51a60fabf-2a3ac727c04mr5360260fac.20.1734289591327; Sun, 15 Dec 2024 11:06:31 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:30 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 39/67] hw/misc: Constify all Property Date: Sun, 15 Dec 2024 13:05:05 -0600 Message-ID: <20241215190533.3222854-40-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851004 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522871wry; Sun, 15 Dec 2024 11:14:47 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUf/V3lN02jzxN0LxeqQccrIPoGdvoUla8FkWtp+MSp7/+uO+AXfzs+u4AJcuwDX6lcu1zmfA==@linaro.org X-Google-Smtp-Source: AGHT+IFf76528XRC4nKOddb4N4re4wN5qTu0McejgWr6ZFG3mAKvg8UP8iFEcgR2lVzFJgJ905Om X-Received: by 2002:a05:620a:24d2:b0:7b6:cb1c:aa22 with SMTP id af79cd13be357-7b6fbecb7dcmr1789790985a.1.1734290087662; Sun, 15 Dec 2024 11:14:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290087; cv=none; d=google.com; s=arc-20240605; b=S4KUp/qs91L7OX+LCGSaKG3ZskbikA8Buz47eQIfCmWp+ef49dn7NsKR2Il+EZH8A3 ErBFp/tGoYgYSitD0mQK0fIx44ESNCqRdLBxp41cBcw80GMlTXbaItFsUry5GbzWSlNZ WkUuhcy3jCrgs6Pt8yU3xmdpffPRz6jQ0+TJyDj5McG5SdVDcW6R16uAVNL9WZYs6bLN 0TYUSExFtx5oDxqF6qbh3diR4dB1D754s51v/qbt7x6tbStO7B8zvXzRGJLD3WkqRJGp o6GzIyc5nJxkJseEnpiPEFcL1/7hwXOu88GYLw8Ss+giEOhwnL/glw3sHtaCsHp4ItEd aIhw== 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=MVM2/8jbJEY92POApQaC6fhWtZO5OT9grm0ZlIhdHM8=; fh=I2hSNBlDKVAGYD8LQLmqSRQVeeUH8epvzOkwBVrCdV0=; b=PULdblPGHbB0w/VSh34s8BJxnHZM1geIORN5/3H0n3JdfVn/0m0bzzaSOkrNqJgS+e S0S1vrAZTm1Cb4UpVgSBWu1xfh/KHQMIyn+V187tNEUHj0c8Z6X+cMpc0v59rXGdzTUm OiD+mFodP0WC9amf8y1fMhWtwyA2rnAxv/kNMIQqnuaq+2erVH+nlup88tgC7MDEHIk0 2v6QgJdyllICdcElcxNSzED3pec/OsLa/+0DAqRzfhyHjQcDlgS1lv9vkS8Bo7LtXzxT ve/0BzD4PTbJxvnHyimiRODfZvZF+M0W+DeU+Y8NOn6y++Zluw1cPY1LZKSwfwWEi4Vj FgAQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S6jN2X4p; 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-7b704900ee8si495663185a.707.2024.12.15.11.14.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:14: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=S6jN2X4p; 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 1tMtzw-0002PG-IK; Sun, 15 Dec 2024 14:09:49 -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 1tMtzp-0001zn-0b for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:41 -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 1tMtzk-0001U6-Oq for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:39 -0500 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-71e2bb84fe3so1658344a34.1 for ; Sun, 15 Dec 2024 11:09:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289775; x=1734894575; 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=MVM2/8jbJEY92POApQaC6fhWtZO5OT9grm0ZlIhdHM8=; b=S6jN2X4pnOKY9SfqM7NmdyFehtxeiCmlRco+fAZZ9DaykUo7NnZtWPS5XloO4US7pi ZeN51riWnVIMKUrN2CZ6SK1Jy+PLfW6lPFRhO/rq8fXLjo4a20JpF5eF3awKwRk5h9gF CvJyMAwhjmU5cugPdAV1UTWOQ7WSW8pmHhhIPDebZpDj1vZRsLV6hDsZMcUMxpRU7fCB 5kOcOp+ZU/A1Yj+8wJ6i9JHy/+vV3xrhEgasbH77D65njAOaPb/+GY0RB3xQYZh+OAaK wxbhvHq8lmn75RFWlmbwC/IRnxWDrvK5ldzbuousWfzaiGgSG0jQHjFQSiSKACLlPExi CW6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289775; x=1734894575; 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=MVM2/8jbJEY92POApQaC6fhWtZO5OT9grm0ZlIhdHM8=; b=nKYjVw07GlGZRGkjgA/B2gKyQv/bUx1D9V7v/HLiqTNQi2fpMpksFFyQHyenGvXHfQ b8ZLomIeryLijdsgmc12AmntdD7qNdDQ10NbuD0AY4n8kVPh+fidb9r3N9k5o43Eif29 RMKi4hWVBiG2f+RHKbhNSYyqmp/KLPsFazhBj5sYYRsieU2mhsTLCe9JP3T5I2+Jr2iC mrjL86Xnwy2HUUjT5KgV4zMDAfEl/uPNpelVHd0GnPQc/pV7KmfkgEMqN2CVZzyE3YMP /+NDgjGlT327FnX1+/ByYzkZ2TDANvvl0Yt07QYgGYrwSiPTB2/GxnlbAVSc0Q/c7hit gkcg== X-Gm-Message-State: AOJu0Yzl25/U0U0yRf8HsRk60nh05lwtsb6M6TJx09M8d+hLMY1gw4aO Sj7bSHYY8Ei3DRMh0OhiRusiosXgGstPHXGgmroRAbfX1Qe/SLtBMkeweF0K3hjm/JGroxXNpck JyqsPrPnV X-Gm-Gg: ASbGncssP5J02Ws7sHLru1KvmTLfCY1Eo8LoWRpPBMbTOdDC3TZtd9q86kZbwSrlDLj jIb7CvcxcCyIQbL0Os/sQBXh+rY1EC28xqTgNDVsP3b7n4GIk3Kfd/gOuSW2PBg6DJyb4XajsaN U78hYtV1RMHKLCxe3UfDDTvcdTVPQ3azXwPzGiR5sdogQRC9FKNV9MDtMwDbusOnX0qtE13hyhU inJgYdzfGMJVcdcnIco4+VT+7W8F9EKQ2ugG1AUv/HnNoMqkMYUwAGcL85rr9hFzVNQgbyBHPqD 9mF+lABjtgx9ZgsB9LMuh35l5HSnnTy6UWqhZHuksok= X-Received: by 2002:a05:6830:6e09:b0:71d:4086:6072 with SMTP id 46e09a7af769-71e3b8576c1mr6248035a34.7.1734289773558; Sun, 15 Dec 2024 11:09:33 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:33 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 40/67] hw/net: Constify all Property Date: Sun, 15 Dec 2024 13:05:06 -0600 Message-ID: <20241215190533.3222854-41-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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, 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 Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- hw/net/allwinner-sun8i-emac.c | 2 +- hw/net/allwinner_emac.c | 2 +- hw/net/cadence_gem.c | 2 +- hw/net/can/xlnx-versal-canfd.c | 2 +- hw/net/can/xlnx-zynqmp-can.c | 2 +- hw/net/dp8393x.c | 2 +- hw/net/e1000.c | 2 +- hw/net/e1000e.c | 2 +- hw/net/eepro100.c | 2 +- hw/net/fsl_etsec/etsec.c | 2 +- hw/net/ftgmac100.c | 4 ++-- hw/net/igb.c | 2 +- hw/net/imx_fec.c | 2 +- hw/net/lan9118.c | 2 +- hw/net/lance.c | 2 +- hw/net/lasi_i82596.c | 2 +- hw/net/mcf_fec.c | 2 +- hw/net/mipsnet.c | 2 +- hw/net/msf2-emac.c | 2 +- hw/net/mv88w8618_eth.c | 2 +- hw/net/ne2000-isa.c | 2 +- hw/net/ne2000-pci.c | 2 +- hw/net/npcm7xx_emc.c | 2 +- hw/net/npcm_gmac.c | 2 +- hw/net/opencores_eth.c | 2 +- hw/net/pcnet-pci.c | 2 +- hw/net/rocker/rocker.c | 2 +- hw/net/rtl8139.c | 2 +- hw/net/smc91c111.c | 2 +- hw/net/spapr_llan.c | 2 +- hw/net/stellaris_enet.c | 2 +- hw/net/sungem.c | 2 +- hw/net/sunhme.c | 2 +- hw/net/tulip.c | 2 +- hw/net/virtio-net.c | 2 +- hw/net/vmxnet3.c | 2 +- hw/net/xen_nic.c | 2 +- hw/net/xgmac.c | 2 +- hw/net/xilinx_axienet.c | 2 +- hw/net/xilinx_ethlite.c | 2 +- 40 files changed, 41 insertions(+), 41 deletions(-) diff --git a/hw/net/allwinner-sun8i-emac.c b/hw/net/allwinner-sun8i-emac.c index cdae74f503..3f03060bf5 100644 --- a/hw/net/allwinner-sun8i-emac.c +++ b/hw/net/allwinner-sun8i-emac.c @@ -829,7 +829,7 @@ static void allwinner_sun8i_emac_realize(DeviceState *dev, Error **errp) qemu_format_nic_info_str(qemu_get_queue(s->nic), s->conf.macaddr.a); } -static Property allwinner_sun8i_emac_properties[] = { +static const Property allwinner_sun8i_emac_properties[] = { DEFINE_NIC_PROPERTIES(AwSun8iEmacState, conf), DEFINE_PROP_UINT8("phy-addr", AwSun8iEmacState, mii_phy_addr, 0), DEFINE_PROP_LINK("dma-memory", AwSun8iEmacState, dma_mr, diff --git a/hw/net/allwinner_emac.c b/hw/net/allwinner_emac.c index c104c2588e..39c10426cf 100644 --- a/hw/net/allwinner_emac.c +++ b/hw/net/allwinner_emac.c @@ -462,7 +462,7 @@ static void aw_emac_realize(DeviceState *dev, Error **errp) fifo8_create(&s->tx_fifo[1], TX_FIFO_SIZE); } -static Property aw_emac_properties[] = { +static const Property aw_emac_properties[] = { DEFINE_NIC_PROPERTIES(AwEmacState, conf), DEFINE_PROP_UINT8("phy-addr", AwEmacState, phy_addr, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 526739887c..3fce01315f 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -1784,7 +1784,7 @@ static const VMStateDescription vmstate_cadence_gem = { } }; -static Property gem_properties[] = { +static const Property gem_properties[] = { DEFINE_NIC_PROPERTIES(CadenceGEMState, conf), DEFINE_PROP_UINT32("revision", CadenceGEMState, revision, GEM_MODID_VALUE), diff --git a/hw/net/can/xlnx-versal-canfd.c b/hw/net/can/xlnx-versal-canfd.c index e148bd7b46..97fa46c4b3 100644 --- a/hw/net/can/xlnx-versal-canfd.c +++ b/hw/net/can/xlnx-versal-canfd.c @@ -2042,7 +2042,7 @@ static const VMStateDescription vmstate_canfd = { } }; -static Property canfd_core_properties[] = { +static const Property canfd_core_properties[] = { DEFINE_PROP_UINT8("rx-fifo0", XlnxVersalCANFDState, cfg.rx0_fifo, 0x40), DEFINE_PROP_UINT8("rx-fifo1", XlnxVersalCANFDState, cfg.rx1_fifo, 0x40), DEFINE_PROP_UINT8("tx-fifo", XlnxVersalCANFDState, cfg.tx_fifo, 0x20), diff --git a/hw/net/can/xlnx-zynqmp-can.c b/hw/net/can/xlnx-zynqmp-can.c index 58f1432bb3..61c104c18b 100644 --- a/hw/net/can/xlnx-zynqmp-can.c +++ b/hw/net/can/xlnx-zynqmp-can.c @@ -1169,7 +1169,7 @@ static const VMStateDescription vmstate_can = { } }; -static Property xlnx_zynqmp_can_properties[] = { +static const Property xlnx_zynqmp_can_properties[] = { DEFINE_PROP_UINT32("ext_clk_freq", XlnxZynqMPCANState, cfg.ext_clk_freq, CAN_DEFAULT_CLOCK), DEFINE_PROP_LINK("canbus", XlnxZynqMPCANState, canbus, TYPE_CAN_BUS, diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index c0977308ba..e3ca11991b 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c @@ -931,7 +931,7 @@ static const VMStateDescription vmstate_dp8393x = { } }; -static Property dp8393x_properties[] = { +static const Property dp8393x_properties[] = { DEFINE_NIC_PROPERTIES(dp8393xState, conf), DEFINE_PROP_LINK("dma_mr", dp8393xState, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), diff --git a/hw/net/e1000.c b/hw/net/e1000.c index ab72236d18..ef0af31751 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -1677,7 +1677,7 @@ static void pci_e1000_realize(PCIDevice *pci_dev, Error **errp) e1000_flush_queue_timer, d); } -static Property e1000_properties[] = { +static const Property e1000_properties[] = { DEFINE_NIC_PROPERTIES(E1000State, conf), DEFINE_PROP_BIT("extra_mac_registers", E1000State, compat_flags, E1000_FLAG_MAC_BIT, true), diff --git a/hw/net/e1000e.c b/hw/net/e1000e.c index 843892ce09..e2b7576f67 100644 --- a/hw/net/e1000e.c +++ b/hw/net/e1000e.c @@ -661,7 +661,7 @@ static PropertyInfo e1000e_prop_disable_vnet, e1000e_prop_subsys_ven, e1000e_prop_subsys; -static Property e1000e_properties[] = { +static const Property e1000e_properties[] = { DEFINE_NIC_PROPERTIES(E1000EState, conf), DEFINE_PROP_SIGNED("disable_vnet_hdr", E1000EState, disable_vnet, false, e1000e_prop_disable_vnet, bool), diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index 20b22d8e49..b8cb8d5cf1 100644 --- a/hw/net/eepro100.c +++ b/hw/net/eepro100.c @@ -2058,7 +2058,7 @@ static E100PCIDeviceInfo *eepro100_get_class(EEPRO100State *s) return eepro100_get_class_by_name(object_get_typename(OBJECT(s))); } -static Property e100_properties[] = { +static const Property e100_properties[] = { DEFINE_NIC_PROPERTIES(EEPRO100State, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c index d8076e7be4..764be2c6a2 100644 --- a/hw/net/fsl_etsec/etsec.c +++ b/hw/net/fsl_etsec/etsec.c @@ -414,7 +414,7 @@ static void etsec_instance_init(Object *obj) sysbus_init_irq(sbd, &etsec->err_irq); } -static Property etsec_properties[] = { +static const Property etsec_properties[] = { DEFINE_NIC_PROPERTIES(eTSEC, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/ftgmac100.c b/hw/net/ftgmac100.c index 478356ee3e..4adc7fb10c 100644 --- a/hw/net/ftgmac100.c +++ b/hw/net/ftgmac100.c @@ -1254,7 +1254,7 @@ static const VMStateDescription vmstate_ftgmac100 = { } }; -static Property ftgmac100_properties[] = { +static const Property ftgmac100_properties[] = { DEFINE_PROP_BOOL("aspeed", FTGMAC100State, aspeed, false), DEFINE_NIC_PROPERTIES(FTGMAC100State, conf), DEFINE_PROP_BOOL("dma64", FTGMAC100State, dma64, false), @@ -1415,7 +1415,7 @@ static const VMStateDescription vmstate_aspeed_mii = { } }; -static Property aspeed_mii_properties[] = { +static const Property aspeed_mii_properties[] = { DEFINE_PROP_LINK("nic", AspeedMiiState, nic, TYPE_FTGMAC100, FTGMAC100State *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/net/igb.c b/hw/net/igb.c index b92bba402e..ad0f748d82 100644 --- a/hw/net/igb.c +++ b/hw/net/igb.c @@ -591,7 +591,7 @@ static const VMStateDescription igb_vmstate = { } }; -static Property igb_properties[] = { +static const Property igb_properties[] = { DEFINE_NIC_PROPERTIES(IGBState, conf), DEFINE_PROP_BOOL("x-pcie-flr-init", IGBState, has_flr, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 4ee6f74206..9b64968477 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -1222,7 +1222,7 @@ static void imx_eth_realize(DeviceState *dev, Error **errp) qemu_format_nic_info_str(qemu_get_queue(s->nic), s->conf.macaddr.a); } -static Property imx_eth_properties[] = { +static const Property imx_eth_properties[] = { DEFINE_NIC_PROPERTIES(IMXFECState, conf), DEFINE_PROP_UINT32("tx-ring-num", IMXFECState, tx_ring_num, 1), DEFINE_PROP_UINT32("phy-num", IMXFECState, phy_num, 0), diff --git a/hw/net/lan9118.c b/hw/net/lan9118.c index 99e87b7178..237e9b97d5 100644 --- a/hw/net/lan9118.c +++ b/hw/net/lan9118.c @@ -1304,7 +1304,7 @@ static void lan9118_realize(DeviceState *dev, Error **errp) ptimer_transaction_commit(s->timer); } -static Property lan9118_properties[] = { +static const Property lan9118_properties[] = { DEFINE_NIC_PROPERTIES(lan9118_state, conf), DEFINE_PROP_UINT32("mode_16bit", lan9118_state, mode_16bit, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/net/lance.c b/hw/net/lance.c index 269615b452..9ed9c94cff 100644 --- a/hw/net/lance.c +++ b/hw/net/lance.c @@ -137,7 +137,7 @@ static void lance_instance_init(Object *obj) DEVICE(obj)); } -static Property lance_properties[] = { +static const Property lance_properties[] = { DEFINE_PROP_LINK("dma", SysBusPCNetState, state.dma_opaque, TYPE_DEVICE, DeviceState *), DEFINE_NIC_PROPERTIES(SysBusPCNetState, state.conf), diff --git a/hw/net/lasi_i82596.c b/hw/net/lasi_i82596.c index 183fab8712..248e3841db 100644 --- a/hw/net/lasi_i82596.c +++ b/hw/net/lasi_i82596.c @@ -158,7 +158,7 @@ static void lasi_82596_instance_init(Object *obj) DEVICE(obj)); } -static Property lasi_82596_properties[] = { +static const Property lasi_82596_properties[] = { DEFINE_NIC_PROPERTIES(SysBusI82596State, state.conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/mcf_fec.c b/hw/net/mcf_fec.c index 037cd2028e..55bad4c069 100644 --- a/hw/net/mcf_fec.c +++ b/hw/net/mcf_fec.c @@ -660,7 +660,7 @@ static void mcf_fec_instance_init(Object *obj) } } -static Property mcf_fec_properties[] = { +static const Property mcf_fec_properties[] = { DEFINE_NIC_PROPERTIES(mcf_fec_state, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/mipsnet.c b/hw/net/mipsnet.c index 31bbd6fb89..c9ef1beb7b 100644 --- a/hw/net/mipsnet.c +++ b/hw/net/mipsnet.c @@ -266,7 +266,7 @@ static void mipsnet_sysbus_reset(DeviceState *dev) mipsnet_reset(s); } -static Property mipsnet_properties[] = { +static const Property mipsnet_properties[] = { DEFINE_NIC_PROPERTIES(MIPSnetState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/msf2-emac.c b/hw/net/msf2-emac.c index d28fc6c570..8d9015f962 100644 --- a/hw/net/msf2-emac.c +++ b/hw/net/msf2-emac.c @@ -546,7 +546,7 @@ static void msf2_emac_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio); } -static Property msf2_emac_properties[] = { +static const Property msf2_emac_properties[] = { DEFINE_PROP_LINK("ahb-bus", MSF2EmacState, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_NIC_PROPERTIES(MSF2EmacState, conf), diff --git a/hw/net/mv88w8618_eth.c b/hw/net/mv88w8618_eth.c index 96c65f4d46..ccb11512db 100644 --- a/hw/net/mv88w8618_eth.c +++ b/hw/net/mv88w8618_eth.c @@ -371,7 +371,7 @@ static const VMStateDescription mv88w8618_eth_vmsd = { } }; -static Property mv88w8618_eth_properties[] = { +static const Property mv88w8618_eth_properties[] = { DEFINE_NIC_PROPERTIES(mv88w8618_eth_state, conf), DEFINE_PROP_LINK("dma-memory", mv88w8618_eth_state, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c index 26980e087e..1cd070d419 100644 --- a/hw/net/ne2000-isa.c +++ b/hw/net/ne2000-isa.c @@ -79,7 +79,7 @@ static void isa_ne2000_realizefn(DeviceState *dev, Error **errp) qemu_format_nic_info_str(qemu_get_queue(s->nic), s->c.macaddr.a); } -static Property ne2000_isa_properties[] = { +static const Property ne2000_isa_properties[] = { DEFINE_PROP_UINT32("iobase", ISANE2000State, iobase, 0x300), DEFINE_PROP_UINT32("irq", ISANE2000State, isairq, 9), DEFINE_NIC_PROPERTIES(ISANE2000State, ne2000.c), diff --git a/hw/net/ne2000-pci.c b/hw/net/ne2000-pci.c index 74773069c6..12fa579d22 100644 --- a/hw/net/ne2000-pci.c +++ b/hw/net/ne2000-pci.c @@ -96,7 +96,7 @@ static void ne2000_instance_init(Object *obj) &pci_dev->qdev); } -static Property ne2000_properties[] = { +static const Property ne2000_properties[] = { DEFINE_NIC_PROPERTIES(PCINE2000State, ne2000.c), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/npcm7xx_emc.c b/hw/net/npcm7xx_emc.c index 7307a13400..f06e908d04 100644 --- a/hw/net/npcm7xx_emc.c +++ b/hw/net/npcm7xx_emc.c @@ -845,7 +845,7 @@ static const VMStateDescription vmstate_npcm7xx_emc = { }, }; -static Property npcm7xx_emc_properties[] = { +static const Property npcm7xx_emc_properties[] = { DEFINE_NIC_PROPERTIES(NPCM7xxEMCState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/npcm_gmac.c b/hw/net/npcm_gmac.c index 685905f9e2..1db29307d7 100644 --- a/hw/net/npcm_gmac.c +++ b/hw/net/npcm_gmac.c @@ -912,7 +912,7 @@ static const VMStateDescription vmstate_npcm_gmac = { }, }; -static Property npcm_gmac_properties[] = { +static const Property npcm_gmac_properties[] = { DEFINE_NIC_PROPERTIES(NPCMGMACState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/opencores_eth.c b/hw/net/opencores_eth.c index 2c0ebda100..003b452bc9 100644 --- a/hw/net/opencores_eth.c +++ b/hw/net/opencores_eth.c @@ -743,7 +743,7 @@ static void qdev_open_eth_reset(DeviceState *dev) open_eth_reset(d); } -static Property open_eth_properties[] = { +static const Property open_eth_properties[] = { DEFINE_NIC_PROPERTIES(OpenEthState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c index 6190b76916..83ba8cd949 100644 --- a/hw/net/pcnet-pci.c +++ b/hw/net/pcnet-pci.c @@ -252,7 +252,7 @@ static void pcnet_instance_init(Object *obj) DEVICE(obj)); } -static Property pcnet_properties[] = { +static const Property pcnet_properties[] = { DEFINE_NIC_PROPERTIES(PCIPCNetState, state.conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c index 5e74acc969..efc20396aa 100644 --- a/hw/net/rocker/rocker.c +++ b/hw/net/rocker/rocker.c @@ -1459,7 +1459,7 @@ static void rocker_reset(DeviceState *dev) DPRINTF("Reset done\n"); } -static Property rocker_properties[] = { +static const Property rocker_properties[] = { DEFINE_PROP_STRING("name", Rocker, name), DEFINE_PROP_STRING("world", Rocker, world_name), DEFINE_PROP_MACADDR("fp_start_macaddr", Rocker, diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index bc56075c0d..064a73b6b4 100644 --- a/hw/net/rtl8139.c +++ b/hw/net/rtl8139.c @@ -3410,7 +3410,7 @@ static void rtl8139_instance_init(Object *obj) DEVICE(obj)); } -static Property rtl8139_properties[] = { +static const Property rtl8139_properties[] = { DEFINE_NIC_PROPERTIES(RTL8139State, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/smc91c111.c b/hw/net/smc91c111.c index 180ba5c791..a853c30fa2 100644 --- a/hw/net/smc91c111.c +++ b/hw/net/smc91c111.c @@ -788,7 +788,7 @@ static void smc91c111_realize(DeviceState *dev, Error **errp) /* ??? Save/restore. */ } -static Property smc91c111_properties[] = { +static const Property smc91c111_properties[] = { DEFINE_NIC_PROPERTIES(smc91c111_state, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/spapr_llan.c b/hw/net/spapr_llan.c index 8af33d91b6..d381c041db 100644 --- a/hw/net/spapr_llan.c +++ b/hw/net/spapr_llan.c @@ -786,7 +786,7 @@ static target_ulong h_change_logical_lan_mac(PowerPCCPU *cpu, return H_SUCCESS; } -static Property spapr_vlan_properties[] = { +static const Property spapr_vlan_properties[] = { DEFINE_SPAPR_PROPERTIES(SpaprVioVlan, sdev), DEFINE_NIC_PROPERTIES(SpaprVioVlan, nicconf), DEFINE_PROP_BIT("use-rx-buffer-pools", SpaprVioVlan, diff --git a/hw/net/stellaris_enet.c b/hw/net/stellaris_enet.c index 9ebff296c4..4af1afa733 100644 --- a/hw/net/stellaris_enet.c +++ b/hw/net/stellaris_enet.c @@ -497,7 +497,7 @@ static void stellaris_enet_realize(DeviceState *dev, Error **errp) qemu_format_nic_info_str(qemu_get_queue(s->nic), s->conf.macaddr.a); } -static Property stellaris_enet_properties[] = { +static const Property stellaris_enet_properties[] = { DEFINE_NIC_PROPERTIES(stellaris_enet_state, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/sungem.c b/hw/net/sungem.c index 67087e9842..bcc7a18382 100644 --- a/hw/net/sungem.c +++ b/hw/net/sungem.c @@ -1420,7 +1420,7 @@ static void sungem_instance_init(Object *obj) DEVICE(obj)); } -static Property sungem_properties[] = { +static const Property sungem_properties[] = { DEFINE_NIC_PROPERTIES(SunGEMState, conf), /* Phy address should be 0 for most Apple machines except * for K2 in which case it's 1. Will be set by a machine diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c index 0e6c655a5b..86f472fcbe 100644 --- a/hw/net/sunhme.c +++ b/hw/net/sunhme.c @@ -177,7 +177,7 @@ struct SunHMEState { uint16_t miiregs[HME_MII_REGS_SIZE]; }; -static Property sunhme_properties[] = { +static const Property sunhme_properties[] = { DEFINE_NIC_PROPERTIES(SunHMEState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/tulip.c b/hw/net/tulip.c index 9df3e17162..f35b58a88c 100644 --- a/hw/net/tulip.c +++ b/hw/net/tulip.c @@ -1007,7 +1007,7 @@ static void tulip_instance_init(Object *obj) &pci_dev->qdev); } -static Property tulip_properties[] = { +static const Property tulip_properties[] = { DEFINE_NIC_PROPERTIES(TULIPState, c), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 6e8c51a2db..4fd1f9acca 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -3985,7 +3985,7 @@ static const VMStateDescription vmstate_virtio_net = { .dev_unplug_pending = dev_unplug_pending, }; -static Property virtio_net_properties[] = { +static const Property virtio_net_properties[] = { DEFINE_PROP_BIT64("csum", VirtIONet, host_features, VIRTIO_NET_F_CSUM, true), DEFINE_PROP_BIT64("guest_csum", VirtIONet, host_features, diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index 8aa8c46228..f69547cad5 100644 --- a/hw/net/vmxnet3.c +++ b/hw/net/vmxnet3.c @@ -2471,7 +2471,7 @@ static const VMStateDescription vmstate_vmxnet3 = { } }; -static Property vmxnet3_properties[] = { +static const Property vmxnet3_properties[] = { DEFINE_NIC_PROPERTIES(VMXNET3State, conf), DEFINE_PROP_BIT("x-old-msi-offsets", VMXNET3State, compat_flags, VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS_BIT, false), diff --git a/hw/net/xen_nic.c b/hw/net/xen_nic.c index 89487b49ba..5a5259150a 100644 --- a/hw/net/xen_nic.c +++ b/hw/net/xen_nic.c @@ -555,7 +555,7 @@ static void xen_netdev_unrealize(XenDevice *xendev) /* ------------------------------------------------------------- */ -static Property xen_netdev_properties[] = { +static const Property xen_netdev_properties[] = { DEFINE_NIC_PROPERTIES(XenNetDev, conf), DEFINE_PROP_INT32("idx", XenNetDev, dev, -1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/net/xgmac.c b/hw/net/xgmac.c index ffe3fc8dbe..6e0f96f485 100644 --- a/hw/net/xgmac.c +++ b/hw/net/xgmac.c @@ -414,7 +414,7 @@ static void xgmac_enet_realize(DeviceState *dev, Error **errp) s->conf.macaddr.a[0]; } -static Property xgmac_properties[] = { +static const Property xgmac_properties[] = { DEFINE_NIC_PROPERTIES(XgmacState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c index faf27947b0..9d0c618e2f 100644 --- a/hw/net/xilinx_axienet.c +++ b/hw/net/xilinx_axienet.c @@ -996,7 +996,7 @@ static void xilinx_enet_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property xilinx_enet_properties[] = { +static const Property xilinx_enet_properties[] = { DEFINE_PROP_UINT32("phyaddr", XilinxAXIEnet, c_phyaddr, 7), DEFINE_PROP_UINT32("rxmem", XilinxAXIEnet, c_rxmem, 0x1000), DEFINE_PROP_UINT32("txmem", XilinxAXIEnet, c_txmem, 0x1000), diff --git a/hw/net/xilinx_ethlite.c b/hw/net/xilinx_ethlite.c index bd81290808..9413731d20 100644 --- a/hw/net/xilinx_ethlite.c +++ b/hw/net/xilinx_ethlite.c @@ -251,7 +251,7 @@ static void xilinx_ethlite_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio); } -static Property xilinx_ethlite_properties[] = { +static const Property xilinx_ethlite_properties[] = { DEFINE_PROP_UINT32("tx-ping-pong", struct xlx_ethlite, c_tx_pingpong, 1), DEFINE_PROP_UINT32("rx-ping-pong", struct xlx_ethlite, c_rx_pingpong, 1), DEFINE_NIC_PROPERTIES(struct xlx_ethlite, conf), From patchwork Sun Dec 15 19:05:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850986 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521400wry; Sun, 15 Dec 2024 11:10:31 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVOHUQznnzkLhsVzOhu1f7G3GmbynmJlzchKwqZxRTbi5ZewGwO6/Emr8Om43Ee5kkwaXzlcw==@linaro.org X-Google-Smtp-Source: AGHT+IE2USbYTiuCAHuCF+kZvzIvVStZoTKlTn9q/mTOwUc63ixHh+xx+Y22qwCbpZoE5Dld6oJB X-Received: by 2002:a05:6214:2586:b0:6d4:287d:b8d6 with SMTP id 6a1803df08f44-6dc8ca68ea1mr206818066d6.18.1734289830891; Sun, 15 Dec 2024 11:10:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289830; cv=none; d=google.com; s=arc-20240605; b=JYk1cXbSfgFsF8CQA3EF+ksqRwkur27YILPbxBHAXFroXhxbskQCeLm+fDbUYFLc8l IihUE+94io2Mr6GZoE4yz0dj8cZgM/OIlLeDrlsQtw+S2fPDlRjtzPOnAPOqJTzCPDKz ATPrKFloM34OPFzQf5Uc1kJSwCzb+sT+XlDzUVFi0Au3OS0RJZ8M+hTreg/ajt0pQ5N8 RItBMrsHNaM7wS2YtuGkbuaGVjUyYzlVF+AqDhLu5CA8eJrVSfTmgCmochxaUUOlzSm1 B7kBQkNV2xLXLpOL9A2l9g0b47FBTl0ykBozVBSPckEVN7inhw9XFUPpvqJpDjyVQIXa 0b0A== 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=8bRFQMU6GPusRQSSs8tq0WijM+F0esCyWu9EDpKqyNs=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=EPND5hJk13b3ZlGf/K1uAwwvx7EFRTryMpCrMDf8gZXwXqqJTGdmMu09XF5osvhg8H 8+lF/YAxWG+cND3pk7psdZ/w3h43aeGPAD4bBUarR1Oa7eJW0p82q1y4VCWja9zur8Hl 5y+II69c/IwNMNDmKvE7UiYbBS5i2J88BfDW36CCFHcPNvQyrIaMSRcyqePKdQPg+PtW QGYduMERVCMa64k+84XQmfnNTiDvMzixQGN+Mt4KLgCwoFLl0yga8/WQ7Mwu76MFBbAu k/UhSivhbj/4bg+BCY54VUVE4vxFgv7D66AojW0BMN83MoM2q8N6YMhK+zSrMiIXiHFu apaw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yBEdIK8k; 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-6dccd1c66fesi52406706d6.128.2024.12.15.11.10.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:10:30 -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=yBEdIK8k; 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 1tMtzs-00027N-Hm; Sun, 15 Dec 2024 14:09: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 1tMtzn-0001ww-6m for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:40 -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 1tMtzk-0001Tw-Be for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:37 -0500 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-29e65257182so1629132fac.2 for ; Sun, 15 Dec 2024 11:09:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289775; x=1734894575; 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=8bRFQMU6GPusRQSSs8tq0WijM+F0esCyWu9EDpKqyNs=; b=yBEdIK8kfB5r5grI02lgavYzFJDlBL6K2LW2kLLspuKSKZtsZrERGRAYOHG8ri0NZA 7pK+XCVmQ6G23SmJBGZP3uAvc9h3y0OgOA1GqnQM3nND52UzUkBMwgqrpvyE/YxtxTvK VawgozlVE+tw9HmFNYIOFnQKf/TJOXWHytKrYshQ2FN5lD6fXg4INPVOSkGmD2T4lwXf 84KHYGsgNK0lRgCqfJ+xRzVxfdff0vsfrLjB4HW3WkGNqfAid29g9fS4IMushl7bqKJ4 LcH8UoXgOX6oNe0E2Xkq+Iw7z8N42ApkuCee3i9XqB52aiHIP5kYKIusf7hWGOydv+Mx Q21w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289775; x=1734894575; 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=8bRFQMU6GPusRQSSs8tq0WijM+F0esCyWu9EDpKqyNs=; b=V2l/WcXfRvCwKqQ0vgFhnxQnwMbrVyJXWHAMD6d1WGjwaKQp0Wl95o89W7im/YH6hT 8df7x1x+gLOTKgrb3hDaVDL4Tga9Fto1/5WAYLhJaSDRmZsFA6qXZ3o2SgcqLPPj8LUy GE2tcz7/sDLuaty9g+R7S+Xx/SZt1QE8oZaXq/t4DHNP5uHwzyw/Na1kXrA/7sA6Qeot i13zDSrqM0MB9s3LGXlUvM1mypSjthryOGhnAj1ceUPeWSelXkaQOTJXWUiKUIRi9tnR PuIqnUpg+uuhya4rSTll5U5eMUUsLjf48mToj/jhfyxoV785FgA+IYKTKD0JKOuV1nDX XTKA== X-Gm-Message-State: AOJu0Yyvc4enJL+1ivUvCBl0EYWpHFiQIHrjBmhDyYxxSkjDifxoelsm D+tRtFaVdqA+ScxkuELWqpkburUkDHMxEv3QhUK2kGWCBXA85tTXneMeyomnA0aWp+o8fAz6sTn PvxphqBeh X-Gm-Gg: ASbGnctVX+d2VSdbXwG5oZbiUcrrgUJ3AXXXozJfW+fULopPyT9zVFWcnM4xZIeFYSU Bb6ystuRqbMA1OnP4OTWukCrHU7WkxT1G4kru63tFF1/QMXtPK0ubJKbQzdYah3VWfTLnQdaiNu PD5/CGRBZMVLewpXC6/RaJveoPg7PuHKmfjIXTunlrXJOAWrQTBkphzm6fPaKobCxJahxjOZMMf AIEs5Kl8drnWp0g9jWGPL8eLZcGJk7kVa5U+sKqsl1mfjeXJrY7/sNUxXYSdC2YQFLE1xnyRaDv kpvYA/cC3HrtuXUjw0bfRvjEHN0zSwEoMB7M//gEyiY= X-Received: by 2002:a05:6870:8dc4:b0:29e:6b6a:d6f3 with SMTP id 586e51a60fabf-2a3ac8c358amr4826615fac.39.1734289774786; Sun, 15 Dec 2024 11:09:34 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:34 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 41/67] hw/nubus: Constify all Property Date: Sun, 15 Dec 2024 13:05:07 -0600 Message-ID: <20241215190533.3222854-42-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851017 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523703wry; Sun, 15 Dec 2024 11:17:13 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXgFL5Q4jdiirP19TnGdGEKmJ5lujA317I+QD4PJIngPk9Rj+HJfTtSkGJhNDKDtMCIKmU/Tg==@linaro.org X-Google-Smtp-Source: AGHT+IG0kmavvFcIP4FcUI4GXEGhO48pVgjgtqbA66FeDERC0hIlVJ8pZ4xV80sAGbFI4Bznx9S/ X-Received: by 2002:a05:622a:308:b0:467:6b64:2abb with SMTP id d75a77b69052e-467a57194c0mr195955501cf.5.1734290233445; Sun, 15 Dec 2024 11:17:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290233; cv=none; d=google.com; s=arc-20240605; b=XzdmdtH+bL7UCjQsF+3tbUBGXvKVrj/lWofZq2AUb4gzlXTLoGLsna+/vDSrbrrI97 12r+roSoPCBSd0RJaCGbefS1xyXd8zWaul6+zohbsfxDBdYwg8uCHA93COERATqMIo86 EYvViRivYYqu9S1vz0NC9cNQr00OnLlQSFgNsIqMdHbDqIa4292rod28R07t4sr9j9Wq 2HEpaBrPUQHU1JSq/NwnIUMq2gvIOJA4bWC1XFZ/p+kklHSsHBId04YF6YXaeLEdaZf6 8saMSvkclO6oC6/pbTZ3PguHfzzjy7IOYu4CYqpjI8jDjuUU4VAH8wMgt2VHpmscIEy5 Alzg== 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=nDIqzhxjX27ujrlP0ogrbhD8JXX/OV81ic1l65WtKDY=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=eYkZZQywVfMsYzNi1D2mo9UpwplQi8tEXOhWT3YBG0dnu06VDSPzntbDqnFq+nUs94 BZui63V6196ZkZH4FDBJKVao3QcwWIac2pK2wDN9TEQHCdDxrHJYszUw+lHQXMBJl07Y fhQd7agGR66vrZ7epzbIf/VnQfDo4/BiMjNE4jhyhSoquJ3HDds9BwmKzbH+iVNd9sLZ Xuoz5ND3sBBmgOtWmOoXT35KR+J8fH2xS4q7FhQYB420zmLgjZv4f5+iSKexKgjrZtwk BHKBFGJlU354BxCEWZHIbzlKfsKS0Q3NQ8+tYURiQrILu4iw0k/Y1bgffWV8rkVmFjWG 0kNQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v6lqW67J; 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-467b2ed34basi57662131cf.430.2024.12.15.11.17.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:17: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=v6lqW67J; 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 1tMtzx-0002bD-Q5; Sun, 15 Dec 2024 14:09:49 -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 1tMtzq-00022a-Jn for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:42 -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 1tMtzm-0001UH-Aq for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:40 -0500 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-71deb3745easo616230a34.3 for ; Sun, 15 Dec 2024 11:09:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289776; x=1734894576; 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=nDIqzhxjX27ujrlP0ogrbhD8JXX/OV81ic1l65WtKDY=; b=v6lqW67Jgx6sWTd7FmesBxUDgYUkCoL8befvHfpB0c+zebJnrKXpwzmwbMiSf2QMUz RZLDgHtwFHOiYLVkcz+iF4IUBRY5HAqZaA4mHGCW1obt0b64HgF/bpLJpX7CGwvHtli4 e6MGFKxM58t0/CMZoQk+E77uLnN6Kaq5tIjWCxohjExsWzxJzDZo+NtIw9y/jNj9Zkjc rQ0SSpiDdYh6shuESWav9oOgPBeUSv7DfwNE/7kcZ5GdrePRhtaY664sUToG2ro4Ze/1 XvrcG8pHask+0OzBQww/qhNyzm1UQkL+C43wmBinTIXLRdEZpCmg+HyjYLaCXsO/5bnz ZKVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289776; x=1734894576; 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=nDIqzhxjX27ujrlP0ogrbhD8JXX/OV81ic1l65WtKDY=; b=C2hgK/ceHbJJPEgOMmqMIEMOG/gl4DmoDsJcpdSUPzWGiOgiDfVEY+Ri+4T48uDrVh Sgtj8oXc/4eXwyk6hcsH/82xxFeqnyCQh3Z2Hudiag0U52/LniVG9TuDfnKUwXt/kBJw dHxPTbgmh8IKhiPEQbzkq/Vz+Z79s2o23lUMf7FYzbKdvt0WigvwuqVazM1+Ek49m7x0 7pjI64EL7ERnE2FB6D3vda3Ii1LLy9RmkNvmkIuiXfJBgQEjNOeArlK7mJGvBJr9RERg 7TZa6gANXTxvJM08Fn9mlAi9VSvZfgHpz9PtPxcO14m+GoyxWJBxJUZmLiOO77OaG8K2 lAZg== X-Gm-Message-State: AOJu0Ywtt+4s5pKBVm52DaWWnh7xE5LkzJXZziVQaYMDfspK/enQYkxq nJsQXsoUbG9RBFigPxzJ8PI170Us59miD2KMJDQaxcwPqt0osa5WAfFMQBm9kVZAvgZ4lCjaV5e eZu4zhlz5 X-Gm-Gg: ASbGnctgGUYz79+nwD5U4jJBVq8Yq+2K2t7988N2pPMIWjd5a3wqUE0LGcGMQW3cx7w /Weey8kk+4aCKfMlTLXC/8BR3p137pco0Qn3DCr/gsrAVEQkZ33xrAvka1zHkEuxyI0DZrHqgYe LdRln/Utb954oLaTbjDs4cwxOGEFcIh2nnJQD/uxNRZMW713YRlyisiftu/7wciK5DRwmuu0Tuj Otr9l1zrLz7+4FP7FF5Dg0m00/O9sMOLDM1gIiYPmVRW8ztz2yxu2oH5/ghumG+4K708qI+SYIA 9+bVgBkqJ6q4No3POkK1dpkOlonPPHPsxNDsxVAJ4XI= X-Received: by 2002:a05:6830:6a91:b0:718:6da0:72b with SMTP id 46e09a7af769-71e3b84c434mr5638387a34.7.1734289775525; Sun, 15 Dec 2024 11:09:35 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:35 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 42/67] hw/nvme: Constify all Property Date: Sun, 15 Dec 2024 13:05:08 -0600 Message-ID: <20241215190533.3222854-43-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851007 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522896wry; Sun, 15 Dec 2024 11:14:50 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVlkmyydMltxNWhqSCcax1OuCK3b1j8sZJ7JiJbtix8iA9gZ1H+YUYSX09VSEUTawm09+5NIg==@linaro.org X-Google-Smtp-Source: AGHT+IE847JpmXfMUVsHrtaDeXMU8+T8A/dKF/LkfKhD7Cl2+vtcB+T+DVog5TU6GhS/YbOLEVEy X-Received: by 2002:a05:6214:491:b0:6d9:ac3:e730 with SMTP id 6a1803df08f44-6db0f3ae28bmr240818326d6.5.1734290090665; Sun, 15 Dec 2024 11:14:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290090; cv=none; d=google.com; s=arc-20240605; b=DBoDg9YtF9FuUe7oL0mzByUrer9DvXZXWlzZpolRSI4qkdKAkGHfjx0igmpAFGKuei vbzdUT0kpMPKxF/QJxCtXYn9JVP1v3OxCC2VzG6Tg9Sk5PNOa3ZLlTV13acY4J+9pPmh 4+acPNTfs8W1N1W+YsdbVk+D/vPmUhN4KmFCzhpVk2ZAwgv9ScaHHBYnjbvW4fCLrYqP b7UssOi/N21BY/dUH8gCWqKSPTF/E1P39W6cFzSMQsdfQTuf9x6AhaJKKYHvHdsHXE0s 9naya1lX+bsR+boDbYkGZ/zQBgJzei/7Y3c1MU0gw6hHI9Qxwo0RSIMhDDttRO6fuT0y SJ8g== 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=Ia4b9q8IgClXtnrtpseWfDFTZ/sbygoDlsprgDJCHNQ=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=Amn5qzLZAyNCmSj+fSmFKyEglwmUeEIhkE8wlq5ru8pav3VvJV8H1RtP8R0QpCWNKw Jxh95jcpr/7gGBJmogMDLikPTpynpDd1fE/O1W+tfVil4tA8vntstz+BHMa3GT1oJc9p 296POcQUwvao4+GiaelWbC/xrnDkhN+0i0OwIMdjXNngoWj0k66qUZoh8qRyVYWobhLr TjTn9uwN9otZWYR6jppnZQ1q8a8GdyPTKMBWhR96wzgGsAQVrGa6SGobEJDOwHue68WA 7zn0cC+fjTHP9076aruahrXan9vuwV7TtaZOCPjr4bM6hkZBvsXiCniSfFjW/Lq0dgR9 bxDg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WsZDjSvs; 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-6dccd370459si51154446d6.366.2024.12.15.11.14.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:14:50 -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=WsZDjSvs; 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 1tMtzt-0002DL-Rc; Sun, 15 Dec 2024 14:09:46 -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 1tMtzp-000207-8J for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:42 -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 1tMtzl-0001UE-Lk for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:39 -0500 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-71e16519031so1794582a34.1 for ; Sun, 15 Dec 2024 11:09:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289776; x=1734894576; 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=Ia4b9q8IgClXtnrtpseWfDFTZ/sbygoDlsprgDJCHNQ=; b=WsZDjSvsdVUNNH7wGbAA5OY0xlb1hHju4Ct/LZNB9mcvTkLdnx12DP19IY61W6St6z MYAfLz+fQ0lRYTSwPq0dFQQfYHGs+wcIkDGTEfDeO/41yFS8eMT6N5M9qtbGEcZ7iUln FSTe4jeCkYwaMVHqNS/0aW0uBHvWAyJAer28ytcJUHt6rKMCE4MFEmzvp04X6ulVsV5k g9o4Zzg3HALULuyE4iMIuRQ8sa6iG2SK89wJQa3DhF/CIwkAwOk9JWibdQ1p5w0YP+89 BoQW/Vmf6HTOhsKhNHXcxEt2soqxZvpa1XdvF6tNMQti522ubhgj3t032QfEr2uBzFjh n2FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289776; x=1734894576; 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=Ia4b9q8IgClXtnrtpseWfDFTZ/sbygoDlsprgDJCHNQ=; b=bp3UYUWCXx2DtFnCI4UREvrdPNMWghDkFFhVuipw0q8FCxcNGifd1X59ybQQu3HpwA MqloPUJThZDtw08108/s1q5DwWjrlnrB8/CJhBN/YOCGXmDxixJ/WpBfLA/zO31wlzOB K9m/Ua0j6CWWT3Oze2JGz4E3GN+UgtmzaQM9OntU3/jiwVfnz+zH2EaNKWL5qGY2287x xZqnzQlrlB5gRQCuWVwyRdgNqPlwvtbF8VI3Jkrq372Qvj7HojFd5fyfLcOZXS7oKBr+ TLOuQx0lzitaSdSDHZbZbDemUZjM+4o19S5OoVqXxjPBl9BXdPOxlNN7QYk2UfYtLzy+ M2Nw== X-Gm-Message-State: AOJu0YyzPnlSdyuMkhSOV510XpO0SZI3xBdsWFLx6hBL0zRaHJhRxDDD Jp+PmWVLMYxwSKITmQ5SaP2ltpv5DOPrNnNnFn3X+GtVlaqBqOfZ6h/TBP8glwwbwz4xENkMoX0 ZOhXeWqLk X-Gm-Gg: ASbGnctHYt5DvHXh4eZonVLPunElHbv1ypXa+JMezx7RXtoS7JKA6r9VFtUUbELNgKW Yf3gxnSMSJP6TkP6C3MLbDb7cjqfc0ZXqm9v/VQb5n8BWQSxBbNfzn+7u2lB/ij5hKkYr9F5zGh aumoBeTyW2EjWPbasa2H6zK0h+Z+3jXskmMesEi/D01H/vrGT8DdLvAnp2kIxAtBUhsFLJ/Lfs+ hTkEAdCiMz/6gTu1yjQuKBq4j5sVdS7P53xyvrkAAQcBv1YwolnnkrMSMFiSiNnVndaP6QxX2J7 5w25gjn5Eh5rh9h8b35iTMTMRKVwqWiri5GM7T0bgYs= X-Received: by 2002:a05:6830:3108:b0:710:a425:d6b8 with SMTP id 46e09a7af769-71e3beb2739mr4881467a34.14.1734289776348; Sun, 15 Dec 2024 11:09:36 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 43/67] hw/nvram: Constify all Property Date: Sun, 15 Dec 2024 13:05:09 -0600 Message-ID: <20241215190533.3222854-44-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 97def3a88b..7461d99ff2 100644 --- a/hw/nvram/fw_cfg.c +++ b/hw/nvram/fw_cfg.c @@ -1082,7 +1082,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(), }; @@ -1273,7 +1273,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, @@ -1322,7 +1322,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 Sun Dec 15 19:05:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850987 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521417wry; Sun, 15 Dec 2024 11:10:34 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWWkQPgfs4XDl4CoqiFU83GF3Cg35TOEPiASwkZIiaagGZjMxOlg9FT1tzGMBhT5HsGpbIb7w==@linaro.org X-Google-Smtp-Source: AGHT+IF5/Jm8MeLwhb7yBBknE0RZtkiN6GYyzOv1yZ+LWrv+1Pbb2SxF34CxEXp9MUmzlWArI091 X-Received: by 2002:a05:6122:220e:b0:518:78c7:9b50 with SMTP id 71dfb90a1353d-518cc341befmr8169169e0c.5.1734289833832; Sun, 15 Dec 2024 11:10:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289833; cv=none; d=google.com; s=arc-20240605; b=g1+Qm5ytw/bFbTdTdJPIkf0U0fb8j9xWg6BeM+N4D1jLiT0UPFMy1/k5tjgWcVRIWy 532VrBLnryIg4XBS+X5B8PscmHTzyZgO2RptiEu6WhE0V8/uAYf9iti9Oiq3RYlkn4DO nQWpO3zvH8z5A7SKqni0CZF37ggpOCDxbOP5cvzxNurSsMkr/lCgX1/pX8UScB4w+SXs XjkieUDUVDks5aCrTNDNFL4cCxxV1inl4x+5GSbiX2fFb9QwOPDhTdCyfhV7OEthfc/C 7GMs0sENbI9si03f/9qF+aaQIt62V+YG8waOigOsAo37sHkgD7oAAqLZ9lu93cG/0WqK vsIQ== 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=P+gk5HJw1iEsGhk9+lmLncqMRFX0RNw29XKNkIMEgog=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=NJVAEL321aCF+xcUNpdf5Z/oQx+GdYxevR8RmY58/PuLYKhi0iHDrq9nnJceUpKmbg 3Bnams2opxTyMempUYd16toecRfiY5Q8SiHiHt8UaxmsOkbuJw6XQy6FVLSLCLmboeTo uDKxBclIYJ0x+Y6x7M+0j1v5ClqWwmNtaK3vJzkbxTAdHIGwlaAdLe127eHLKlczKFlj 2cKQazZJj7EgXD2KNyE3ESKCXEj18ZWJGP/GHWATZwssLTsqmhM3fTPmTWmgvJOlNZLX japZFzKuf8ceJBChZnGLQNXmbL5H+Q5aegor15DmmaTEoe0ZmvCO6jtqTXvGdxV8PxvF 6H6g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kye0pV7D; 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-519eb7920d4si1212742e0c.202.2024.12.15.11.10.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:10:33 -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=kye0pV7D; 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 1tMu00-0002z1-S7; Sun, 15 Dec 2024 14:09:53 -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 1tMtzq-00022b-KJ for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:42 -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 1tMtzn-0001UV-6D for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:41 -0500 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71e16519031so1794588a34.1 for ; Sun, 15 Dec 2024 11:09:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289777; x=1734894577; 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=P+gk5HJw1iEsGhk9+lmLncqMRFX0RNw29XKNkIMEgog=; b=kye0pV7Da3fWf3vzFLzz1UhBX8tySQPbY+ZbYCPME0/K8rGoCfv8ZbjkfQ3m/ZP400 scKzcjB8DFVZDT0MLwNyEt8bDsy0i8B25TGuiLKBj75O+DMhBW+VryVDZ+wExk62NUGP XgaukX/YXHBnHTlwoOvun0DD0nNxgymGykHONsyLIGrYeBZfyX3xyD1TiexnUPdYQLcg AXQEF/yniUHnegFnEQd2qmgn+Lo+4jCefD8mPa+ZwRR7IZRpwG0shUdRsIe1F5Fr1XQb IwdLAf6BZe8jvzeDr+Cj1jwqn+Lvgpo1gW5KzvPo5L4PLsSAh3XvmFit3zKyDieCE2/b UXBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289777; x=1734894577; 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=P+gk5HJw1iEsGhk9+lmLncqMRFX0RNw29XKNkIMEgog=; b=YE5wY7dRSktsTsQF15EFWVvQL0gZag5Mfz1mKtEfV3pFQkbWngVYTudRvFyN98/Nsp cw7UQi2DfPiKdK99JhVi/GBSQ110HsUoy+gKpoS/1n6Uj8MCCg4v9EJ99LtJ/zgMJIVq C2kwxY29p+3uXVnja/gwyYtfj316I6zMBq4lziRc5/4EhJVOSy7zL70kCL0dmo5SH1Qz KkqCbp2U/lZCGLzL7XbK/+yHlT1vRwbk9kPKSO1UqLB1ChuI7SnusI59YHWXjOF/I4qM jJrl5dRIUhZyVzhEDctEKJruo5hE9mP4GAhDkxRz8UEujGQb5gSQtMqrxVuuZJ5AZZ9l 0OiA== X-Gm-Message-State: AOJu0YzzOQnyeq9UCxEahDKGAWU8GjcEzGqVY1+26zHoKVdqLY0RYPsF 9xLGkqIb18GMhJB0sUQxeCr//Sz49R2T2bY6xxZDeEcIwy+6XszkZVkIpuwAv3+PNe7xH5fvSvr F9FnQ7Xq8 X-Gm-Gg: ASbGncv6GEWPTHeFb6uu9Nt4nIgzMR83Xw5VApElYPCyHH1avBnZVP1hUgdVQV4WMOy IUAPf2YP24CzkAThCm77h97+pC3rKpRmq74S5a778y83TYwRn9SOYL/1/e6HDdOgJxpPNqFTcwN zApY8CitLwvHzo8fS8QhcseawGtMJ9yNcjAADxWfTdax8Q3n4BGwckIGWKonxSotS+7j4BZvVZd 6QEnSmJX9afjo2mye8sbz4uXgX5K4HY0G2nD2xXgNWGT1gv9ntoPdWTWjeEuJ+jvPGZZTWYa60p y22wpartEluYdmZBuM92d5Ul6YqZo2UgjvOlaS14CZk= X-Received: by 2002:a05:6830:c09:b0:71d:e5e2:c648 with SMTP id 46e09a7af769-71e36bcf82bmr6055095a34.1.1734289777612; Sun, 15 Dec 2024 11:09:37 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:37 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 44/67] hw/pci-bridge: Constify all Property Date: Sun, 15 Dec 2024 13:05:10 -0600 Message-ID: <20241215190533.3222854-45-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851002 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522873wry; Sun, 15 Dec 2024 11:14:47 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWoJkDNKJvet/rc3yZGyk2I3+2zO4WRDxJdfLotXGoaI9ZqVnYc93eWAqBEX2o6Nq9jmIScdA==@linaro.org X-Google-Smtp-Source: AGHT+IGxvLbFkI5kpot818GjC3+kpIr7L3bZbMp5sQeLnp5OVBbiSS3JvO776S6gdMYOFWul6LwL X-Received: by 2002:a05:620a:2989:b0:7b6:dc1f:b98c with SMTP id af79cd13be357-7b6fbf4426bmr1737786185a.52.1734290087648; Sun, 15 Dec 2024 11:14:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290087; cv=none; d=google.com; s=arc-20240605; b=Jp0LoVKxcXnDkAnYjF1EDDF5ZCmyYhTy+2IcPY/i2fduKmu6SVSLg2IDepfgOS+V5W 5gccWADK+7UgCnDC929dVGxXPs8ublhcvAzQVS5/xOT371Z2LqZnZYfdvWU487f0CrGP UVU7Oq2dV0nEbiyDgzg86ljoSfEOSdyyHRiWqBs4yV9zgE2HDq1cUEN6+zRm1WpRUHuQ f1D9wqVIM43ZpD6N/GnhWUB4EqBVyyeh8O4K07Gbfc4ZsAUvjNr3KR2BkQ4t/g0e72Kw vuneJvQFZOPmjp8wd8V3Se1kxstoIOjXrJWeqMynwfySHpCyuq61pGD5clBsCHYwPwyt KfTw== 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=Q/xuH1pEhrlq1qA7+A0AsoIQRxHu+dYKCPiI8CdN18M=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=jAZZ+3gn7bdso1GkHYgfKO7INcGE0ByhgLvOH4HYfXNsrUjIbUeWDRdkw/6/9iml14 a9qzrebpbTiwzLBH4s5gm7v/LkYvMhdlNsgHyrPl5TUtdl1a/j05PlB3I+etlnsfPLkA evn4xNm4u9zq7+27JRUqEEVV7aj4XuVXyVGZrPo+LeYBN8PbAgFrQqDdIqlqcOyNAeb2 KTxZpF9qKvclfJsFnFw7oY5H+h3ZXDxnkjCSpAeGlO91XWqv+ZPG7PRA+WACuQOaedST n0NwWq8fVjWeXtc8VcOvF2wWNyFIQKj4zADcMs8Z9ntWMX7CLGv2MgDpx9FxQie9R595 3MLg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oKsxC7oL; 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-7b7048cc701si489973785a.387.2024.12.15.11.14.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:14: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=oKsxC7oL; 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 1tMtzv-0002LQ-JK; Sun, 15 Dec 2024 14:09: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 1tMtzq-00025a-VY for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:43 -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 1tMtzo-0001Uh-Cb for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:42 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e173ed85bso1605264a34.3 for ; Sun, 15 Dec 2024 11:09:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289779; x=1734894579; 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=Q/xuH1pEhrlq1qA7+A0AsoIQRxHu+dYKCPiI8CdN18M=; b=oKsxC7oL3IuvC8jbch5D4rP9GrzbI68RvabqUMsWcubasJaD2nu3I9IR1+BRaGGJd8 wUm2jzELQhnMghyySc64ekiHqr8am/FnBOg4XGaTsI2tfEoCweaNzbVO53kvuzYH58/K WTJtRYSHDhiRjYWqoTi7uwmFJUim5BrJkdVEXjtsk2FRNDY4CqM/fVNpkGFY7eh4U3L5 cOTuCr1BKEwefaSci/a83bHy8mlxHs5V6e64OBc8NfCeC7MO7lDWY+dfHX8ryjfDKEH4 bOTI5Aok6N7kk7DvEuis+bVNRSrFg40er2Iayg9Yo/QRYlbbV0cyX9RpYU5NwXBMLkto d9EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289779; x=1734894579; 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=Q/xuH1pEhrlq1qA7+A0AsoIQRxHu+dYKCPiI8CdN18M=; b=TiwLmARVViwSuU/pUH65EcVbCOdRVm/9rziAfMmuRRPH0iPIq3R8VnU99BQgSCbFg4 W4W79zpV8snk405GEuCfO9I7ud+5TjMUPkL5VdlwKy1cEv0KUOvoA/2gk9jG30h4h/sc V+x9WNHj2TUT/3ElSssb8mjdVEbIG991tBYdx/enQ/83zgm+zpekHV4L/4tMT08M+3eU BUXRVGK1ZXfYiUeqs+iBAD/J9AZK/MopACoMNUxxlY2tHWHsGEFKLkSJMcSBGn6j16br slgsCF5/z+mhQI696jJkm60+K8WvDEXwsUsCXaToMRHFGqPfms8HfVHlOxYmHoYlgLpf Ctyw== X-Gm-Message-State: AOJu0Yx+OK5XvmMfQB8u7mBkmzVyQ9IahSneNm7dzcB6LIAtfEOi9knk kym9+p34mJsoOISzBVNK28jv7SBD58k2x2IcOQYXaEwsNaVhhQn0fzA32CDREjKQPMImcyYCaXY b3IqKUJZs X-Gm-Gg: ASbGncvtryzffn5QmUBGVzsegBoPkPKWAnnlvDzWqXaBYD/jDjO4M9E/CS2xzkFq8Df 3as/QQcKy+zafr5epfylYaIEPe+TwgaVf/wesTDdVgWe+0vBbMhJtrqfnu1nML4icHXOwsBFdgH bj6sVbN/tz7A2hRPQU2l6nKy6GCh8nOWdg78E5/DWO4kwL/tg49KfOcuF5x12H9NCIMvoqqTSiZ 7+VY/I2Ifs12nEDs7/nlfLMbPYo5icS3g+WLMV4WUeXVUFD2KBab72kyUaQRE1cMfHI6EubI1d/ waOQ5J7HEhCTilMIl4nqd8UANDNvz/kSwBhi6S5hgPY= X-Received: by 2002:a05:6830:700f:b0:71d:ffa1:6b0a with SMTP id 46e09a7af769-71e3ba3ad3emr4964439a34.23.1734289778852; Sun, 15 Dec 2024 11:09:38 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:38 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 45/67] hw/pci-host: Constify all Property Date: Sun, 15 Dec 2024 13:05:11 -0600 Message-ID: <20241215190533.3222854-46-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851015 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523695wry; Sun, 15 Dec 2024 11:17:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXLc5gTok1t8XsJR3Ju+aK6fhpyAApre9ZkkiXFgUG83oMaD1tYEfKgtBwee6WORIuPVpwAWQ==@linaro.org X-Google-Smtp-Source: AGHT+IE7BpXMkYou4VulNWUlabPeYOLwGfu3GOiSqoL1FGpdAv7eqvHeD7xqYT+ntlILkrmKEjWf X-Received: by 2002:a05:6214:2a8e:b0:6d4:c6d:17fe with SMTP id 6a1803df08f44-6dc8ca94308mr180871526d6.25.1734290232724; Sun, 15 Dec 2024 11:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290232; cv=none; d=google.com; s=arc-20240605; b=g7udkeIWofs7wkuSwfWDaOLyPCf1oa3mgHwhCFJAj9Cdwa8nhHK3o5xWH5ckv26Qh0 5hVs3kCRRwr5++kRVeFz2H80wsKAiznmyy3AOwaODzCDquavYY4QuLambVkCNCJjkJLi AJ5mEpb4idTYDswumVtBk5NY179PROTw0H4EYxp4WOhkzFqr11DtCB22tAKEaZvH9th8 bq5CxHNWh5aq0Wz4x57LgL7XGQ5/e3YCmHjTxi8uhhMdSzqPan8GEDVXdGcKc1BwEyYA CN7GLU+cZNqqX/+U09H48OcoZ2C1IUEJkXZYTXaXOjF0AwXftJ71+yE83R5P3nhfrYSy 9yQw== 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=dufLCBl9eHHxrnVCe/umUFhwRr7vI1lAGb7uckjuB5g=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=fmuXSyYjxwCiJSzKQwKwG9R00rEDz6LNpJV8SNBOQ6EsYgkxe8opXa+QKAR/tRHTos MW5riAZAblrTGcZYXXfKnyK5xuGKy5w9Iqc4nORw3KoSxkHdeCQvkiP/EttLj1raJ2rn MfqQnuxH0z4M6Op+FtqaCjrKobCRAI22KqccaC1RFaHsnGtcpOtxf+3QHzYBGPYd4EFK rAOUd1kXVy2hMkCMxMMAgiJVWXVp/TM9dYMJKLczWI+Pa5bN6iC7UA9qvWAXRBWYKKnU Yij9MjIveYIlHqHlX4UMF8uJ1NwAyix1+4O4QRf86iR0aIWd7jwFp1mQWgtzLXdPm8tz ezkw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FrxsOV6s; 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-6dccd3a0af8si51963386d6.501.2024.12.15.11.17.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:17:12 -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=FrxsOV6s; 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 1tMu03-0003NT-FM; Sun, 15 Dec 2024 14:09: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 1tMtzr-00029i-Tj for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:44 -0500 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtzp-0001Ur-9E for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:43 -0500 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-71e15d9629bso679074a34.1 for ; Sun, 15 Dec 2024 11:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289780; x=1734894580; 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=dufLCBl9eHHxrnVCe/umUFhwRr7vI1lAGb7uckjuB5g=; b=FrxsOV6sPlzUG5xw0lanUMi/DdI/dWsBoY0MMySk0DesTk7us818CHXZXurIWxfUoP ovrtr52M4aCFJQaw8052+Cv2dOGkM6dPGB63Oe73Ksdsy7odPmRkz3ku4/nAVFeqabZ5 d7JPXmqcciSk9Crh7MGJSQMtgR8S9a9PV7WQNtOFzz99/PR7drJwE4WTE6h9EsBIyS95 6olsxJSuxKfqEamDx6Bql2abAjLoIf2CQkJxCjTLqJ5e7O1T2eTkPEPkN10aBXFFrY/b +JAOQdX9p0DzLCMvwkG3+aH+TVmy07OY8V45OENKnfLgXNgzFWJBfyODY3DtVjh7YLAA nwhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289780; x=1734894580; 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=dufLCBl9eHHxrnVCe/umUFhwRr7vI1lAGb7uckjuB5g=; b=Cj8Y4t33ja8xLx4Em04EBbVGj3BwPisQWhjA8ixp/d1vQQPN+inhvNm7zgvlnMt4iQ /jYLJelhh2ABCVJiNFP2jmce8BuVwC88ZdcHY4m9BwBZfBDQVfDRGuqsbOf7jOTeBgBa iqfUiHjJRdG6kShuivFEe7ByDDoAZezQYcWQ3AzUQDsonXr4oeikR+81tblxOU3oiJJR ggyCzTDOInHGE7S2tGjJ3OwaScYqduV38dNMAQiI3iYX05f/v0cUXCiWNlXafqZs/vQZ PyHfEz4sUBdbsso+DQr5Mu72fXvy6BKgHF9kDl+xbReP1jszlILBVZ+zdidPsG/shDi1 KLTg== X-Gm-Message-State: AOJu0YyUb+l96vaWDP2K4wWBGnSF/ECwA8SywCaRn38rzQD4ZP74ByUb HhrBY8a/KcCQqGd1HYGtgjQiAdYdKGpCuto5kRzCW2Lp1+v9fswCbMuT6QRDRc/yLM0bCw+vn18 Ol32cuPAj X-Gm-Gg: ASbGncvEDGcwKKJhIGREdxfVLRNWRNbL4ampxDtL50eA2c8ig22W+vVXMdr33cPXPQq SGI4V7dpWI8WOl4yION6qFt5uqudglt7smh+7dQp6+dlqXrPssS+SL5NRlS4kw/VuA+CldtqRp8 DOyzK/IHc9guPmYqGjyeGlzNOwlyvJgdnkvfJYwoyKp3YXK1Qm8HQudwucLCS03G0/C9AgBSDEi ac8YB/uBXrPcIq2++IYqwchoK6kfufCjhZd19bJ34CsGuEPMm2FSN+grN/BEQPXCPVf3zkUrqOd Zt2bY6+iMmWc2MPbq2ZaFi9Ag99cZXpzcyBL4kTcERQ= X-Received: by 2002:a05:6830:6b07:b0:71d:fd31:25b4 with SMTP id 46e09a7af769-71e3b816842mr5646412a34.3.1734289779978; Sun, 15 Dec 2024 11:09:39 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:39 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 46/67] hw/pci: Constify all Property Date: Sun, 15 Dec 2024 13:05:12 -0600 Message-ID: <20241215190533.3222854-47-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32f; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32f.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 Reviewed-by: Philippe Mathieu-Daudé 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 bf0a1840db..90248481b1 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -81,7 +81,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 Sun Dec 15 19:05:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850997 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522348wry; Sun, 15 Dec 2024 11:13:17 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVnMubDNevtDtM2ERG472JF5tGg5/7t20KwIw6KAwS/n5cO5uBn3xBnqakuHB93L80LKdNl0w==@linaro.org X-Google-Smtp-Source: AGHT+IEuQUUNqbOGYBxwKFzw8quoG5G3UaWKWN8AnqKB0vFaz5pxitmQP06RcDyVKmxJmtyDGq57 X-Received: by 2002:a05:622a:1aa8:b0:467:5910:255f with SMTP id d75a77b69052e-467a578fbedmr178252321cf.30.1734289997162; Sun, 15 Dec 2024 11:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289997; cv=none; d=google.com; s=arc-20240605; b=SWSi05+4QceujHssm3jvA9j9oYenHlD3HCEx1GVeZY5rWiR/GF4pxvdmpR4htUpOf1 6MHKB9/wUCLQ89hq8YgsoG8l/Qu8EGWaChCMJ7VOYY5JdYgPXe6spicaWYBKIBfJKgaz WFM9nmITr2fWh4cWW1WHMw5FbVyzCVJjdclJjCI14ZPY4POiZmKAEPwEkN7hZoHNX6ql S0lBFZXLiBDaIk8MifX/HWM5DWin1eW/tRLHxGoDZxI7CQd8ST1EvFbSICcsUGTv063l CXSFAIcNur15rd5+i9CLh5IHtWA+4t0yno7uobEMV8Xy92d++lfn7I6DtCOX2u4Axa8Q ntVQ== 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=58JEzJZNC/h2emt8SjpI9FL7tkce7AMQ5VVYFBXHJwk=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=IbULBZe8hdcU6JgVn5hDUkvJAZKswGHUizb0B62t+u9iJp7CCOFTs783BaNp43IyIP JiCJwinINSJ6VL8CEbn2mVcXje9JpLF39cagmR1OTCJo4Q2OkiQTnvl6ov7lPPAL4qGB HTwXF9ivJu6feKEyAjY68Zt52yggPDanAU1TEhpzKLZattoqe1It4VtVZFVI3UP7YlZm MUstdx0CJAI7G+EKtPgayhn/l7OcwFN4MGcK/RLfw5Ke82LW3/kQEbCUaJUg2vjJsk9u Rh855kr/nTDjQZeS6SpkhTg6cdNm1qUkAuWycyyXtbMVKOH53c8Ye4Ju0NTMMEE6/OTE ZNrA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="s/ivcCka"; 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-467b2c9785asi57063731cf.76.2024.12.15.11.13.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:13: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="s/ivcCka"; 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 1tMtzy-0002fU-G1; Sun, 15 Dec 2024 14:09: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 1tMtzs-0002AE-Hn for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:44 -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 1tMtzq-0001VA-9l for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:44 -0500 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-71e1d6c7738so1859557a34.2 for ; Sun, 15 Dec 2024 11:09:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289781; x=1734894581; 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=58JEzJZNC/h2emt8SjpI9FL7tkce7AMQ5VVYFBXHJwk=; b=s/ivcCka8afQwh43G6fOWRyIGzesUHQdRnDmv/aRmFZxhxOKAQzPXiSlPHX1c6FcJN k1/jZL7cBQ63d5PdhR2p/1FO4KI6k5lJxiY6J8tgkq2YpQIESy7D9CSFckc/md9kE4RR 1TeajShDdJraVZH/BOsc2zlI4aDwml3QtpN2gxRv94/IXj6idDdNlQGfZGb30e3P6iM1 quHLHAZoA55Gyu5fVxu8K108QH3Rj92WuEo5OY2aZudJNR40pBXfIHFqkdtkMp1YzRE3 VQobs/8ovPta4lnAynIl09G+xuiwH71h4g6xE8h4ebi7/5CnV9CmOlWIyJ063BAK2q1A 4QNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289781; x=1734894581; 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=58JEzJZNC/h2emt8SjpI9FL7tkce7AMQ5VVYFBXHJwk=; b=HEjhDosZ4eqwj8B/pZF+2hoaSK2zaszSaGvCxFMzZVjLQDgvmsXljDZBGS/DTt6xwI uLlFDMIP0NVsOyuhQkWQQYIDuDmMZ/pTct1T39M4f1tQcNsFAkjep3OTfmcCpJXPvpS6 vVB17mj/Rk1D8YkNiGib/FrjXuDrcj5PCmv+Jf6VvJ9qPEAj5RldwoazoOW4GDPQ5VM/ F6JhGAHoRC1pPPNmUx6LHZa260NtZ4RzZlBLBwesW6O36PLsdf/TCHeBbYgTnvDbZ/d9 DHdQTD4D1ug9+/kdgLFKIRSZuocMFfxGRKaMmcJFJNZwl31HRsN1Czinv8YujsYIvIeQ CPZw== X-Gm-Message-State: AOJu0YyFYbOIiMinMqZQiihEoypYltoQilMRxnl5ycEIupESIvG5yS1D sc9qFyz27NgSUARNkD+gHT9I2W+9a1/3RqipEhd2pXKbcC1OjRzUOUbLptn8cRU2mJUDgbtpn/B 0ULVRo8Yc X-Gm-Gg: ASbGncvQDIvkczaqFxgMPTnkPtenHHC2vst/DWvBN3bWfSxES/b179k1oIrm+R+MOb3 EUpAApZrSso60iEvBvJ9wlkc+kWIwwZTWff+uZWfix4sjbhCZO+dUIVM9P13b7dZeeLC/cQjX9p K1JB+UGvUNkkr1w/6siahR9jlBavmFz120Z1m78kzNcqv7nr/ARYSBFiXt3G3WF0obQzb7G9Yms kP5fgQCpw7n/QHUreLysEn3H7nLoaLRj+jaMGFGQTg4jIaz4DjZckIHEWedleHzPjP7py7KVEUW hdPSd4adQKcU+FvUZpKlhcWQ+zMrj32cXnMtU0C5sUo= X-Received: by 2002:a05:6830:dc4:b0:71d:5209:5cec with SMTP id 46e09a7af769-71e3b821215mr5898411a34.3.1734289780998; Sun, 15 Dec 2024 11:09:40 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:40 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 47/67] hw/ppc: Constify all Property Date: Sun, 15 Dec 2024 13:05:13 -0600 Message-ID: <20241215190533.3222854-48-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851026 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2524316wry; Sun, 15 Dec 2024 11:19:06 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWP0s86ibrti96SD0bvrA6f2IaWxamOzt+wZZBfAQSw1BUitD9cfe+CQ9lwr2exny4k/G/2ZQ==@linaro.org X-Google-Smtp-Source: AGHT+IFJUqk+Gyh/LOmRRuBpYhJdIN9rUGqg5HGnygLDdrImm9HqFAAB6dSrrO0s35fZF5GBXhS4 X-Received: by 2002:a05:620a:2a0a:b0:7b7:2de:6dfd with SMTP id af79cd13be357-7b702de6e63mr1455254585a.1.1734290346570; Sun, 15 Dec 2024 11:19:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290346; cv=none; d=google.com; s=arc-20240605; b=f0SaPpfmuO1xLJR685etoPZAVY9/8Hq15DxdISwqpDcL3nsPQGNwLsKV7/bJaQmGrM rah5QRNBZUPQ5R+tDBWYxgVGuQ6IP2nC7ijIfwwwJ5K6J4VPt5Q/OmZ5O8HN1eF3ku/1 GJcePemMt1Qx4J2YTM5Afwfy54PN3INn2ye1da6+/yQQopns0SQKVNK5GVvDQvYfr9OM 9KIRIBxfCovGeObgN++MLymuu5JrYuazg8eYw3opkc/FqXluJBhZBouTu+g62sap6xLI Pkm83LJ1ZJlcRp6L/d3kpnvoDZc3qDtTJRy01t7DGLmgFVmDaFYQK3jvmVJhr6362R6T fung== 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=d+Op5PfQl1E1j+B2tl78vi65dSufB6++mDTLqDV5QuM=; fh=/lhnn9olyD8BDfvWLBqeb6oevSZE6YmLjlCYSYWf1MQ=; b=D0YdA/TLtKhEgoYlRvB6tMGr4senhjJNja/opq69qCZLW3YliK3kAbz5UlwR09dEbx M6bRLBIvGIa2MzV2YJOCRgA8JTC+y+bxF+1vpSm+mi4bbedM+fJF+A7oGSCcqQgXFuOB 6GDFHfbHJtp7G+DYNZ/GwLyJGL71tF/BROAcmZSSq1z7XfvuMyV783Pt8Jyap0gpDeLR 9x8w+ky5qYKVLPwfqXV1MDScKMIT0NF61E01LBPBNZPSg2Ms8tn0FV2G/8g7B0KkOwzi dAP+fJTi6wf4poyliHxueiYljtgltEV/M+a1H/peZC167hyfaZZ1KD7uLpS3Von7aXns nT+w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oTEU0Nc6; 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-7b7048f089esi517805085a.607.2024.12.15.11.19.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:19: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=oTEU0Nc6; 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 1tMu06-0003jk-CK; Sun, 15 Dec 2024 14:09: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 1tMtzs-0002DM-Vn for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:45 -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 1tMtzr-0001VW-Cc for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:44 -0500 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-71e157a79c8so707627a34.2 for ; Sun, 15 Dec 2024 11:09:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289782; x=1734894582; 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=d+Op5PfQl1E1j+B2tl78vi65dSufB6++mDTLqDV5QuM=; b=oTEU0Nc6Sly6FU40O3hPpbHdbkgmXp8CSOwCub+6GMMOkeJAAybxOmNl0SAx1yglav nlsy0aBLOxK/n6hNOnSri3w26D2ZK58UTmBwCvBYxl2eDEGqSWHJ63P6y2ARu9TnHPS9 yhfwn8NIN5ok02tfqNU9lphs2KkMpjWsDOGCCyyUds+2IN0meAbteGwHvqqOG+1sO2C4 fbG0EW4EqdVwSiPhBRj/SEAgx0s/rtZzb2/+1xVae32VlFIcBceOry3yExdI4abAekBH OR3Cesm9PxLYViAggwdrjbw7EC+vVhXtjwHTcA0ooSONe5Y1Nl0cJ87bnqHXCHzKlopX 7diQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289782; x=1734894582; 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=d+Op5PfQl1E1j+B2tl78vi65dSufB6++mDTLqDV5QuM=; b=OMfWZMnyMXLCwZLOdqxTro3cLAHVC+tajzqYo3FqDSBn6XqyfqktPDTYABdLXEjjWx 9tCZ+bNQ7n0ORCrRkgNx3xmdq4dIgL7lMXKD9fhsYP1+Z/48Vx9hhZc3nx7+yl/zWtNc 9vxijmVqh2gFTi/M71jQeTTlHKobOiTpXFWsbGJNaEUs8zIyUfnOSZn1HElYHkJBtDJE Bw0qKyCRlBoknh8TieQ5VkFXszMjkWqs/Y2atiL+/3bgCXr9c2thD35+fI3YjhO+dCb5 I4/DuWYKtPdNaymMDUaXAyjkDFaZ08F5VB996cXnDEdOWB0Vtj9du1dkNOE2C8j8kpKt GAOA== X-Gm-Message-State: AOJu0YzO8LWJ/Lsv4knQhgxWRYlpQgjM7V569npeSMcgHolAKG0OmIw4 2rIbfd1rS8D49ua+6PzB5NnGN5LS9VXf7H7IdN3yms9/swjcmA34fPaqWUPnWFSUNbIY0MLDSx5 6fQWn1kEB X-Gm-Gg: ASbGncumUL4G9yP9HFQmPFbAfovills7zlcUih/0Z/lrFx3DZDUk6MFtcdp4ReLRnB2 bLqGqbf8zq4gw2+zb7M7OK68Gkeeo6+x0zbf/9cjMdGhZ/gZieH+c1ZgM0wvNEofulqWoFdQRqR 3qljoKZsFqeUIm6VDC/eJSeCwKQS5N1HRgPHaSIEBcftMCMkG9NscYnvoVMICpNVVh+NOMJdzCt 73z0EQRivXkl+4qmmlHgMXTo1e8jng0DHqvDfTMzS1cvdPCdbY7Lenlva82barYGf5hbc5yKKbM jzazLINFI67Ppa7y1j69AuPyRylg/phCexE0zkytzMc= X-Received: by 2002:a05:6830:3695:b0:710:ec4a:b394 with SMTP id 46e09a7af769-71e3ba498a1mr6814359a34.29.1734289782136; Sun, 15 Dec 2024 11:09:42 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Jagannathan Raman , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 48/67] hw/remote: Constify all Property Date: Sun, 15 Dec 2024 13:05:14 -0600 Message-ID: <20241215190533.3222854-49-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Jagannathan Raman Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851018 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523711wry; Sun, 15 Dec 2024 11:17:14 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVAOOmLX5qLZImjtnQaw9xjjAi7BqIsrF2cpoolxPpjAlQJX4z+fuvFK46nRm2Quzoy2tL6eA==@linaro.org X-Google-Smtp-Source: AGHT+IH08Veo+Yk0NC9kyym7vlkeKeL+6UeBAqgCudawCiqBeEe1Hr5vAT5aLBNHuFJc1GKqSi7n X-Received: by 2002:a05:6214:d61:b0:6d4:1662:348c with SMTP id 6a1803df08f44-6dc8ca71ec8mr161680506d6.17.1734290234701; Sun, 15 Dec 2024 11:17:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290234; cv=none; d=google.com; s=arc-20240605; b=eG1I59oc1vFJUB9zFzXZlMzCR6sqw6RjRD7OnjfcWSNmRCjf5K7FRTjvOcVsBHPrQ6 yy3hUFCkBNaIaGXP79fv5ZBAmWl31fDT64friKZp/5GiiCZBeOxmvvuq2hwfYbvmfPCp KIvJJ6oIxpuBh9j7UspTj4Nqp1NXqXlCYrHgcziv/f68iuT66HS1L8c/WO1d8Wxi0LCv pyDxAaQ5KK3Hy8bYECBwNbYVcqVKrvEyzFFdMl1rEF2kfG9GCwKBhHyfChJrk8ug8iP7 kaNBQUHIsofb1BAAxwWW1Qs1eBeaIGlO1EE/MOcKQY/GaQBJs2l4S8rjaci2VGRCqvxA g5sg== 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=9LgtSkX9l1LaUxdbqZiUu1SCXP9yPXTGRSCaa4j0zPE=; fh=ta3TqAQ1XOPSUowfSqW87lwpfOLcbVT/IR5CptTP/fo=; b=i7ElalxYbKZKBpKO8TdbAniNPBbhrf9tAQaMECqfm1hwGkr02qWO3kFQPm4QljgqT7 ZVQ9wRk0pFhLlVaLh5fsTATiX5Q0+5szIy+jaKvDmEBPz9aTjbuF+mGOl+1EJ01M7IJ3 yAUbw4/1uowE7IHyMk9cmkuHvN6NixPrTA6OrvFscgsAFtj7tHFTsGoqY95Mx1haj9RU YTLqO7nuRy7so7oyw8FsBXrn5b/G1XKKQzgZt2YY/PPAnKSG0CEVgmG6XVjE7HW2G28A fNPnmE6idcr581MkJSad4970F6jD5b1OCXVlpr1U4zSJgKRMMCostXgXAFv+PbBJmA4l QU6Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W5W5UF1M; 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-6dccd1c7e06si51240836d6.159.2024.12.15.11.17.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:17: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=W5W5UF1M; 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 1tMu0d-0005GJ-5W; Sun, 15 Dec 2024 14:10:31 -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 1tMtzu-0002KF-84 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:46 -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 1tMtzs-0001Vm-Et for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:45 -0500 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-71e15d9629bso679077a34.1 for ; Sun, 15 Dec 2024 11:09:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289783; x=1734894583; 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=9LgtSkX9l1LaUxdbqZiUu1SCXP9yPXTGRSCaa4j0zPE=; b=W5W5UF1MuCs+DcQdnxxDW5R4m8ZqJ/duYNqah1WwgzbYwQCnzur1qqwx0c2xcbUL6T SiA0bbIvthOo7iAaHcyd8SehP11QJzvahe/2x9Z94Hd/EH06Vve281ZgwKJL9Le9d2pD fxgnBRFmeJ9RJ8Up6VmJm6cx4id86a1HZoOuBWOkwBbHoR0Y6tsk22TfFQtZqy2HlBBr GIC7TNFpD+qlMpo36BKoOT/WaRBp8ATsu0/Mm0O6tMS/0XVTahscfPvDYCUr1IUao8J6 3e1UjtM17t/oZouiiTGJOaYxs+i8lBa4PCuhy2iwXeg20YMqjnjG+MQ06IObIaQxQzql gmFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289783; x=1734894583; 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=9LgtSkX9l1LaUxdbqZiUu1SCXP9yPXTGRSCaa4j0zPE=; b=Qs6yV4cQ41jI9cPvsdwLE+nJUufu3oeg//35MCT8CLVCu3fA+TbluSusHujGSehamv udWK4C6TaV2XZLCIl6mTZZ79d4xn9RcVDHt4mCwhdCwCIy9cQoR3rTAUZnEwalez/RaN 8+P6TdVAtxHdq3Fhc5kvR5VNsa1xCiGMSm2Zpx07Zwaw4zAA04SXJkryVF2vk2H2BCUn vdM4dtiIRPnGX/rT1j6wnSKv7s4ZXZE9kNBSKjab9AmE2fnLStDN40P417yCfJT4TL0T 0MwcvAkJIdUOHSqoz0t1f/myuLibcO/sdBqXSLnNj7LkHvE3Xasp9sFDlLIv+UMt7bA3 KXVw== X-Gm-Message-State: AOJu0YzvY5P9hym3+cge3te5axrRwCsl+yfon+Y2zGDQRGKngeKZt4Jq jIle7VwUcKBMnuwJgbY3OFL7DY9VfwlmwYlvx0aXrBxsx6qCqgg58akcwtf2HQMqlMbOYXl6Iph AJZBcLRdq X-Gm-Gg: ASbGnct4LYtZuyzPSojmF97uGQcFtAvoJGYBcOGvLql//AhBJA1R+jPFfgye6Rrl9W+ t7cwUNT9hXtUa1ESVwLLvSDMuhqZ8psTL+/CJLv3ylEN3Yc5OM4T9QW0ReZljoFsaKDODKw0pj8 yWEfZDMuVJGb0158qoxwf8XPoJ9MXhiu+9U3wFxYX/VLxgRsmJ0lBkbyc2SJS1gEFQIghEk+vOu yyFS/U2aJ1mPmNQfDMXeTjCBKM+18QXC9jwaHm/WMNWS+yknnJIbisHl3rbES/BOC0qgA8dE6i7 bO6EcRvYhRutdadD2uDhCeJzaFCzwK6EkOR7NUzrxOs= X-Received: by 2002:a05:6830:3496:b0:71d:f3be:438f with SMTP id 46e09a7af769-71e3b852d73mr5947265a34.7.1734289783369; Sun, 15 Dec 2024 11:09:43 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 49/67] hw/riscv: Constify all Property Date: Sun, 15 Dec 2024 13:05:15 -0600 Message-ID: <20241215190533.3222854-50-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Daniel Henrique Barboza Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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 Sun Dec 15 19:05:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850998 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522381wry; Sun, 15 Dec 2024 11:13:21 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVKOqoHmzrdg+vAlV9Pu/YC1ZfIF6+ckvqjsLLnzhyz58lnunHzQ8B7rp0+l/RlCFhVFnsiLg==@linaro.org X-Google-Smtp-Source: AGHT+IEvwzRTRp3PCynC4FQ0NG02kxO4IpGpQBzfHwmvEi6Be1o5OhdS+aUMjcxGnxETv8uFWYjd X-Received: by 2002:a05:622a:5519:b0:467:6901:7589 with SMTP id d75a77b69052e-467a578e99fmr188237111cf.29.1734290001661; Sun, 15 Dec 2024 11:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290001; cv=none; d=google.com; s=arc-20240605; b=Wc9XShr0OmEX4wcHDcl1Kx0ei/NIF1lPefDup7fXmmC9cw+xvqJVa68S2SpXSvjE0g snr0ZIrsQcPPFlpVJWX/0WDxsy3WT5jI1XFA1ey9o/nA0o4kwGSoE6bjl8BVv6GjNl/i 99rvPbdMKdDtRTCtskiOiuZH+Th6kzEpddHMj/RrFNJS247asKjojnW+3ZLUfQN/bd7i O49AJDh97AODEw+bXtR+QaV+XqJKNWMFoMwHnge5zqER7YcX0d7I7LdZLZoo+vw5wCQQ 3pYHf3JnAjADPofEeVGZzLM68cvRF/gBiXNt0g8+BS14kceGnyZDQOc2fr4leZrZwsRf HGIg== 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=8s/OID5KE9oMd0XN+uqlFnMR3Q80aL2JeEILGul62oQ=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=HBjkhEEOy2/ZLHmQK6CFGBn/6jfq5UWcYIM7V65heVi+2/D3ZL5YDosq6WN3VXJgDS JaX7zpdfub1vOHaJ9Yuz7r4h7csFL/5QGeRIfDHo/slOsuCWkWIZNrGjv8Tb/DVB5YSm GHC+kDsyoNTZBFS95657aX3pFcVXubeBXobYheskMdSsPPVPsITCngLzmiNVN50jbC0r CXyQbR5Ff7AzHU10GYn2I6UAWwvT2f6dwPsF2p7MHR1XNrbxaPd7cuJqtCyvY5wjMxCz ZlUoKSpdVTW4l4jHJmu1ZeRVAzr7wYJPfzuuTpkHqXcOnmmzLXfDA1HHVFU2mbmQjivO +xBQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PEeEEEvD; 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-467b2ed17d3si48968421cf.410.2024.12.15.11.13.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:13: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=PEeEEEvD; 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 1tMu0b-00054y-RB; Sun, 15 Dec 2024 14:10:30 -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 1tMtzv-0002Nr-2j for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:47 -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 1tMtzt-0001W6-Ba for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:46 -0500 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-71e3284f963so1731399a34.1 for ; Sun, 15 Dec 2024 11:09:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289784; x=1734894584; 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=8s/OID5KE9oMd0XN+uqlFnMR3Q80aL2JeEILGul62oQ=; b=PEeEEEvD7dX14nDqFPDWqZhy4EioSj5z7FrIPQWOYF5U9oJ/77ozZTyBLPuGzaIDBK dZmxyoXpcszY06IaadnGs/9lg+CdNUzTIo58ksRgEQZFq9lz1BAhBOixT0w56Kv9/Kim PjaBpq2JSR/JI9rE3EN7MgAjg92kpcBciVqlHMW+hWyhTmX5l5Nah5zn773lC22q1s1K EiGRwDtr3Xfkj7aYDg9rx2bKMhHYC9VP+OmzfbAM+HL3Q2We1jfezuRSsJEkTo/fRyVf IHwt3YW/d4km0nBdiWI7lCTGmvnMFOZqgiNPQQVR2Oeq7WqysHZjhMHbzDnGMUNKCHJk FJ4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289784; x=1734894584; 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=8s/OID5KE9oMd0XN+uqlFnMR3Q80aL2JeEILGul62oQ=; b=oT1KnJn1FlQkYKvAHR9x0a6viinQ1odilPWXy5mYmoOG5DSITOK1v5ka3GRAymMON9 Gx/PU3F5SP60zP/2d5dG3DI87YE5VnoBVMEv2encpyo4nXEvL5Co0kB5Le4jQTxuSZKK Xy1JZFIVEnY2MWNTuY58vnFpa227nVf046OFENN8vQfXSVvhcdQQLTKR7Bjsk+6Rrf+8 vFDud3V3e6OOF5s5s0BSsd3Nm0haH+8vmWmD5FFcXtsvu3hI37JJff7w3gPrfV7c3Uyk d1M2XOUzTvg3EpRE0zybgc7hDEbSzmbry9JPi8v/AlLDRsdiw4Fbl5NrGY07NyibOPy+ xMEQ== X-Gm-Message-State: AOJu0Yz1ZTG7zcwkoQ5jI2LHDhjZQ91+Ir+OrS4TBwr0AIC8bBhsUQdA uCLs+E2jxNkXMSCmxXKKpA20QcNljNZMTfqAKzX924AUqNHFYnSO9tWFbIrNTiqrOeZd/s58yUl 2Ad6iY/dm X-Gm-Gg: ASbGnctL5Pl7g5uKDGaVhNU7Hp59wAgtXv9DH1RR+4Mgr+d8WUxy+/d344vZGJdKJkH 09hbVgsTuYOODvJxWs8BBhQ2Q3QRSV3VT8D4Uh1KpVKOIZJhPaYwycxmI09OKiQ8ZtWFf0HBhvd 6n6Lz5Bqzt6y0y+WBnlVWvdPcUFcTiBIeEJbFqIFvcUApb1V93uaQqdtSTDCxuwiLg7ZZDfVdFa mW3NFVWwH82EatEhcF5J5ALwUm+nGyu/Dh+D7v5TtVFhGwuPk9ZGt1k1cgat2tASCLOFNOTtjDo 0FHPerDcJhtit5epweotkjD4ow0De/8IZhUE02vz5aY= X-Received: by 2002:a05:6830:6705:b0:71d:3e4d:becf with SMTP id 46e09a7af769-71e3ba3a756mr6078411a34.27.1734289784325; Sun, 15 Dec 2024 11:09:44 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:44 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 50/67] hw/rtc: Constify all Property Date: Sun, 15 Dec 2024 13:05:16 -0600 Message-ID: <20241215190533.3222854-51-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851012 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523685wry; Sun, 15 Dec 2024 11:17:11 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVd8QA/SPhOOfO+CHPi19yVA5yZPJ5X3pwB6I4YEYWv585gG0Q3rDgD9HZh1lUJgl2meWEPyg==@linaro.org X-Google-Smtp-Source: AGHT+IFbK0H+HfjJZsJWBWCFofyTLAetsN73fC//Q99LkzC2JbsxaeSYkxh5ITHE0cFIgZoKqRyF X-Received: by 2002:a05:620a:4889:b0:7b6:d939:f958 with SMTP id af79cd13be357-7b6fbee8df9mr1875407585a.25.1734290231028; Sun, 15 Dec 2024 11:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290231; cv=none; d=google.com; s=arc-20240605; b=eBe/Cb/49QoZuNI7fZeNOvIL2IK4vHLKddKf/7y6+lX0QiLLAdTyh/1q8Yx/sSW0Qw Tdo77Xw6wrdiaYhIcq8BcGS+ozH6oOUdVgWhID1DRITLxnzJYozoSiO7NZRnYtkj8n2y YZ9p+XW3CEixo4skqPHVDPP7mb7yyrFcHGbRaEVffPdjVzVTzQgdI3YN100JsEVLcCyY pZIlpo0SAf/6sZ7OZZdh8M4sfIN4A80W+P/5erJntgOsW56ZVzkOSLhqNgBSNZipIA5x L5P4nORC7HH25SdeaRlrtD4MdYvxA1SJQZxVk3TcB84Lky58l4TQapWl6XlTSjU5BJ7i fmLw== 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=K+GZ9ZCLooOJN0Ye6NhWRD2E6T7UhJ11+zH6uUVM34k=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=QaXKtAL8LepI3JbKSFD5EBZPdNNwblfl1FrWK+im322g4hFWydmyXhUcnX1K+GBnNl 75pjxmhb5jnBXpvTfPIcqYkF71KW8uk0EVj6zubKLYyE58jGYkw7HGwPftpPC8tnDN8/ wnAJtrB00u5k7M6la9Eyg9TtX45wRPcpyGtj9BLsgHHnSvAmS8AhWjCvfzavxU16Zu/U 7hj2UB9bqkE7fV7bBILON4tTN+b3Srbb8O48kfzUQ+/RprYyP84LVFNQmzk0lXboWHCu lsVKUL2upsupl/srPQgdFnIP/RbsHlYZF2MkboQ3NvxTC9pLVkqfkggIWFPMlQB2gZ0T Zc/Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="S/IQ+E+I"; 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-7b7048cd032si501030185a.440.2024.12.15.11.17.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:17:11 -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="S/IQ+E+I"; 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 1tMu03-0003DY-5W; Sun, 15 Dec 2024 14:09: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 1tMtzw-0002Uj-GQ for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:48 -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 1tMtzu-0001WL-VI for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:48 -0500 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-71e10e6a1ceso667893a34.0 for ; Sun, 15 Dec 2024 11:09:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289785; x=1734894585; 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=K+GZ9ZCLooOJN0Ye6NhWRD2E6T7UhJ11+zH6uUVM34k=; b=S/IQ+E+I5ZyhTAPwwGgk9HsdyDEPME63AD4fz8eSz4vUoaStdmzNYxVxxJEf86vVsF hNiqgythNiREu3B2MYpAkEB+DJX8GgxmwlzAdXCzl5XefJM2oGPqBhQnbqYLdZwyJ8tc p+5IRsw3r8mYsW6F9bL2EsRJWX7BSkjP1ehtPxKAjshATeVhi8ZuX+YnlYFoNeupGdb1 TVLnR7H4P84uykSzJT9HA/PC+XEyeNxDe67D7LtYoGextL8RIQrJFGHsIMkxGo82vE0N LmKBP8khWRnAFrW9jGUGR3dFKOkWD8skFG7W/JQ9NTF4uf2hgquAQOS9JhRziLxeLq0j XOVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289785; x=1734894585; 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=K+GZ9ZCLooOJN0Ye6NhWRD2E6T7UhJ11+zH6uUVM34k=; b=B428indqoW/2dAE5xpQpyIEYQKjIemY41rZIQk6e6pqsqlUMdgXDKOad99kQVeBNVr wpjmh5+vZkbqzbliDMc+BKV1usfl7HB4d18Ts4KG21xybkSmqrR1Vp9Q7SmfepPTvn9u ls7uh3LDuFRzCgm6UJ8UAkjY49v2bBkt755qMxXmvCMJgc03kfHMnJ7eILud6VkXUare YLsyS1D9zCobjhe1Ai6lQGMp/+pLyloAuqiM02VCvueWXuOfv4jAwNJnp2nlB4pzT6lN A3HWfS6fI+mMRp/VLYjt7hdeQ927ukpUJ50qc1e/K4Gm52AOlVx4KSf1QzByr6ZIAH82 pg0g== X-Gm-Message-State: AOJu0YxqffB3v+CKR3MDaVb0GxLgbaXQ5xC54tPevYw8Ht7MuDwUwxZC 5S/KDWTk5h36WEq5OnuXGOy7XanfveYWpOLNpfImpASaFX5yZZEnlZGufERuhVXlR2FEqz5qPn7 AXKnbcbPk X-Gm-Gg: ASbGncsfdFTBwXGgm+bwk+avj/UCUzWMjh8jNb8B9oq2iWtAC6B7tRMdXmw6ZGUUngw +0J5CCuYZyELVduhEU05f6z8C9ExV3PeiiXPqpNm/APxW81rvkzbjYPKRgdNuO6ZdCXhwF811KD 0Fi7UVA72Twi0YyRgJUYS9WSQT48VsCw7A3sNTWA6qd+KGbZHwagkh0AneKLlyRy1I9Ergzlu7v uJf9F4GHzvYys4JuGdoBscnZDoatgQZdco6XZ1QuZeET8/Qtxudy3j+ULKwVVTb9aPJ/8BK1pmO FQXu8VIgbg4APHwDWqlJfEj4vmF33RwnpYNHrnH8WQ8= X-Received: by 2002:a05:6830:44a3:b0:718:8dc:a5e with SMTP id 46e09a7af769-71e3b84ec34mr5875790a34.9.1734289785261; Sun, 15 Dec 2024 11:09:45 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:44 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 51/67] hw/rx: Constify all Property Date: Sun, 15 Dec 2024 13:05:17 -0600 Message-ID: <20241215190533.3222854-52-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851021 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2524059wry; Sun, 15 Dec 2024 11:18:18 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWJlt2aSksPxzNUzgB9jc3tqkAJvOvIW3hvxJ0p74hTlZ8+ek6jktK5xv++SpDEuhbJwG7LAg==@linaro.org X-Google-Smtp-Source: AGHT+IFPT8SgSWKeqMaHcBaZbJUTWxXMkQmzPI09UKltiqLTcW9XFj45fqYijGXSyCYzL4/civLK X-Received: by 2002:a05:622a:204:b0:466:a3d2:ae44 with SMTP id d75a77b69052e-467a57239c8mr160409661cf.2.1734290298097; Sun, 15 Dec 2024 11:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290298; cv=none; d=google.com; s=arc-20240605; b=H4trCybfysutM8d6KYPvNzdfWHFCIC0qUP8UwZOBxPsP+Ru4x2hlQI8bWQgOYnkb+n tYNvMyi992HUIfmgI6H2Jq7ycxeXxPHG/NFWdFlYfWSTl2dLRLQ2b0OT3aDcIt1yz1Gj /o6OAT5+/nHUhKAnWnrZhePrKHgp+ZjfILgMiJhXsJdROggHyVPgoHvd2vTg0a/eAD4M 3LcieHAICWDsIY65mBEzMvPsLCAkcGeh+bVt4qiAO0ylwDFEcpLNQDGINvjQJQ+Q0vaX DYKrpJ48NROf4lOEyBIAHJbmR8ZpmIs0N5ollpCP/m8fCz7N7evHamn4v/QYX125yDqi ZyLw== 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=fpW3iItI5HTlmDdHlgpSevm4IQsWBBU1taxzUX01uoE=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=BL4Vhd8HqzsP2gHzrd3Wf2DrUbgVRat6t7sySXOtjPJKNYoGonqCH2cB6qfbX2Z0yY yWPOdl17Nt8scxbtehwd0rmlpIlpALTl7S7MCWVWyiuDj3C3ui/fVfIe8KRpSagLy1Ib BFoVhLeNmJ6qhb8ygkv6+mnSsbX8CYbkLBJRiAPfK7sbM1M/mEPFwOGfzv8sF9WIXH12 WA1UpEtjfCeaFt+PjMMws+CgIQbvcRvoK+TC+vaLCT8/soeQlHYv0ZXEtCi/vP/E/6ur K5GtuEbfMi02pmkUQ4+hIsPqsvS8o79jIurVlBoBbUa4Vsfv6l3ejQZabpEQFT0UWnww 3haQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ox3KuHae; 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-467b2ed1eb7si56113361cf.424.2024.12.15.11.18.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:18: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=Ox3KuHae; 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 1tMu0r-0005eR-Iu; Sun, 15 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 1tMtzx-0002fC-UT for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:50 -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 1tMtzv-0001WR-L1 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:49 -0500 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-71e36b27b53so1648874a34.1 for ; Sun, 15 Dec 2024 11:09:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289786; x=1734894586; 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=fpW3iItI5HTlmDdHlgpSevm4IQsWBBU1taxzUX01uoE=; b=Ox3KuHaeWIZswX28alohQ99FuOqPlBwChZB4+XNadBlX3Qj7pUIgbNE+/FOzhFe+CI VvC0gKMIdoxQaIvLQjfBQFWBQgWZP4b5u2QpAQ9hnLcxL+7+QGnBrkGZhMKgieiOW4Mo KbU+pSVQUFlZDY7OyqVw4BDqDXxaGaGd4sqV8oiOlFiseM6+p4CduaJ+p9D+8m/PCax2 iqouQ7m+6JmRFp38aI77Bn6jE3trmqImxonCCrfESodax24RltQ/8/3rkZMixAfldadk rY6gC/gJf28VIpD4w0Ly7Ytxdpqz/T31/4XpLD0WTADWWlOLvafyT6qYAz/oQMmOv1pY OtAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289786; x=1734894586; 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=fpW3iItI5HTlmDdHlgpSevm4IQsWBBU1taxzUX01uoE=; b=DRU4uu9OzhDD8Heq5TnfVe/mLidVVAutfFDy6VORb3LnfosHJxmTv7wP9AxFFzyRM1 nCN+XNjKvJFEWGYY1YX1c0CKYs5bzMjHm7JcVuGJSzn5HhwXvWzh0CVvfbBIayBbc+N9 QSKuIdaz/rZ8aS2m59YqVzAt50kptrANWZebl1FAOLM1RRBCpTHH7Erb1yJAnxMWMyv3 iiMYKzoOrxLYcqP9PHxkJLaDQim5CUur0vkLSZ8EXmIP0P0mTUho08uFFvFV+ROkw7lN ZzTiAISSuBdQB39Mx2d5o5YTgZUitJ94BCgX2d+OfmhvNJZGlPs9JMIwfYvvRAT2wcY7 St0A== X-Gm-Message-State: AOJu0YzdiMy/i+RzvLH5jNy+MLr6eNLYtOOayI+VFJDhYfXe5+EwY7Vc HnTG3oZ4Ku8E42N+Jb/S0tVHM7f9xkerJ1n1bdHkX2Q78FPZW9ZNNP+oLvtlf+ooMtGkEz/WmgM yEo5wakcf X-Gm-Gg: ASbGnctTLFS4Un3p0P1x2p2xfcHQ8T08VScZ/7m5HoEIlAPg+qg8McruG6ffaB8S42C eX1C6izq5BXV5lDj/UKGUI1wAsD0Fl4SdK+8OeBZ6OPlPsWYWZY2HRgFK5NIFyHXv5hSgnKUE/7 0duUAOjQjKYJOVNCb//SEqPAbSq2p3GTavXFUIu4sXQf0NrYJrMeCH/RBKKB8cZu59wEK8tGfty gnrdityCUOpNNuyJbOkCFiZJROMQ3sP9vHwKXBwUnaZXC4r63jIjUhGKWPGlfxi3WDnPZEM5FCC XMw0rh/YYGI69pbilDBkdrmYWoCIVlKeHpqwVZy2gIk= X-Received: by 2002:a05:6830:4885:b0:71d:4264:cce2 with SMTP id 46e09a7af769-71e3b857851mr5787035a34.9.1734289786308; Sun, 15 Dec 2024 11:09:46 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:46 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 52/67] hw/s390x: Constify all Property Date: Sun, 15 Dec 2024 13:05:18 -0600 Message-ID: <20241215190533.3222854-53-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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 +- 19 files changed, 19 insertions(+), 19 deletions(-) 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 Sun Dec 15 19:05:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850990 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522159wry; Sun, 15 Dec 2024 11:12:42 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWBT/CE711bUyjNK8XzKQHt4Z3HYfcE1nIW37LScl1MMRE5T7UXc+bim4ahN1eTQ8ch9IMdyw==@linaro.org X-Google-Smtp-Source: AGHT+IFMyJHpNEonjcOw83N4EdfrrQPyPqqDMtDSJ6xtgdL5zu7yoB2yJXuxEyYRNHhplyidGwne X-Received: by 2002:ad4:5aea:0:b0:6d9:2e24:9da8 with SMTP id 6a1803df08f44-6dc96873c2dmr185845196d6.37.1734289962555; Sun, 15 Dec 2024 11:12:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289962; cv=none; d=google.com; s=arc-20240605; b=d3CSx+dRmMp+e1gFlepkHEZnVUhEggF8aaoSCk2TkHoLnzSVbDtG9QJqVmotBeMjk2 LBAlwPqL5oKoweRBkSXxRuiQsowAoqos3wRQUghnFu5F06yMCQpWQkv9j9NPTASssY9H kiYukvnh8btq7SdsfmWAjQ22YXQMDvJ7yat//3+Mj/kFSTpteUoMbWD2GFuRS8ASg5ch EBqkvBzkuOXdy/UzGs2etillXlI8YkzhRWnZ44ZmTOfpsy6nG5JX6WhKHm6zqnFxhMSJ 3blz4oL+O10/vK1Csxjrtfi3wvkOhUqBo+0W0dwuLnds/RMweUe/dOULJq5GiYJdPilL NVAQ== 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=TE3i9BvNsJ8uvWEOc4m6BExB44JWE6o+XCFwzjFJuZo=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=CeQk5dH45y+jG2C5N3SrX183Fdh0wH+2jWdvIQg9JMKT4efkNU8B4gmrLM7j40HQlX eTSTs5YgBPukMBkFyzw99CyYywJs/FuU1IWnvh2R6h/4FURVSoTmMrE1K0mjEHo0a0vN REqheJim/YYQXBZKBTrDOOB06Rr9zch7z2oCpaapfGyttLxIH3pF06gksr6o5OPwLx81 WBfQfIoFf8nqB083kbtERCnlvSwcoN5DH429YxPH9zorO7GVIxBbqjF92svw4ciP6gJN C72Qdm1Zs6en+TVuQingob5iLGTN6LnTfMEyZoSsmeFosyEyaYLcu68/GkAZ2dNOILY4 ZyAg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cSZRLJNQ; 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-467b2f41e71si50885271cf.716.2024.12.15.11.12.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:12: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=cSZRLJNQ; 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 1tMu07-0003jm-1h; Sun, 15 Dec 2024 14:09:59 -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 1tMtzy-0002iz-9W for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:50 -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 1tMtzw-0001Wb-Ag for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:50 -0500 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-71e1b1767b3so1815971a34.3 for ; Sun, 15 Dec 2024 11:09:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289787; x=1734894587; 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=TE3i9BvNsJ8uvWEOc4m6BExB44JWE6o+XCFwzjFJuZo=; b=cSZRLJNQ9+BjpzYS+9NN6YRm7/9OpqZWz+KQIebX+1PFeEPCEqsJ3ZP1XJbMsLMIxm G1zNbIr0C9UJl0bfkgqSZLu1OjkXnZrePK4MQi+5yHn83rCDZ7OnwJaQDzI1/SutW4EL nCIO9Mv6s5lnZRIxeYPp/OFqnGpwZ0tPwVqdVsiccbZT1///FlRBneCARSoB4UdElCyj ftsJk/GSUboB2nGQK0L5EjKVlOyChZnxumWfw1M1qiL002pkNQVRijJDvIdI5oSlEKWW RCqX7FygSkP6FcpTQlRPqewtl1LkHQn7Zh9m1/dvDQ3tGW/HKXGaQUPWJszhZDtDKiyO RcMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289787; x=1734894587; 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=TE3i9BvNsJ8uvWEOc4m6BExB44JWE6o+XCFwzjFJuZo=; b=NaCMf4TX9zvn21/zcejgfAm+xDGwAdLuipL9IBWUDM05CC2fo//763/DlFCMIPLndc moJsChkAjbCuDN5ECXSXJFGdTo+qRoRWlMi73QyqwxA6fhmTup620ern91uQDGr8rty0 e64k2nFty07TeEgU3Ttrxz8Gmi4ip3jsuT7/tiShOgklKZkn4p2KVhiTCXtxjZGFo2wU mA8gk4qS20HAhz3aJmrbfgOdENB2qQxDEMjuQgU4ndPl04HPxxyOwIvomC3OTys7M1V3 5lVCqk8gsm0JKw3kdBmZNRdrAiy6WfyX7LWAwJQpXA5M8aQ6ZMh7jqYnarXtqZZmq9JJ 647g== X-Gm-Message-State: AOJu0Yw/yIrDarm+skLfpmgH9TC8BepBYfiUVdHU5QBwG+e+wWN7gdhO 3mpdKrNI+IChXf2m2BQCVW41pGq0PxivXfimQV4g3r7cvbvC2/AczpJLmqCTiLxmgEFzkQsW78y mDYflPRGs X-Gm-Gg: ASbGncsX88tTi2JgeegzV0yvh6VDEFFaO8soi0Yz2ddcguM8CMwKJGWRA5wCapEroBT 0YQ4WrYewlIephmbqc5YjrKcLzJLSzeGzLu9KaExV+IZD1qWy6vUNK9STLlw5or7RdrrCjP3MkD Hxoe+UvJPHj7JMVTUlcRNfBRKqyuhJoVWEmfmbRkpdjPNP/afktQyTw66ySPU7T5IZTB+ckChRS yuOv9x5J0MvPOj6r+hF21g4nP9DQfMvk0ZnFL6sbXSfs627Dlfd+8LDfCmlqJWv00yACsv8PHOS FYYOWXXfkekxfmqNZ/cOCBgzr71eTCPNTmBPmaswv0E= X-Received: by 2002:a05:6830:3114:b0:71e:2310:7c7 with SMTP id 46e09a7af769-71e3ba73f41mr5789489a34.29.1734289787136; Sun, 15 Dec 2024 11:09:47 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:46 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 53/67] hw/scsi: Constify all Property Date: Sun, 15 Dec 2024 13:05:19 -0600 Message-ID: <20241215190533.3222854-54-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851029 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2524552wry; Sun, 15 Dec 2024 11:19:47 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUTSxKQyD/kzy+vISntphWPAsjk4WFmLxEaqK7sqVEB3SCAPNABCXKw+BsfGtHgqAusvO03Eg==@linaro.org X-Google-Smtp-Source: AGHT+IFymyg9cuFMp5Mnaa+Hf1lr/oC8N7u/Bm2khYHfCCcyO3yf3k0SmxkmHy4IX+Ns6sO5en+p X-Received: by 2002:a05:622a:8f1c:b0:467:73bf:e2ca with SMTP id d75a77b69052e-467a582be46mr154961571cf.46.1734290387371; Sun, 15 Dec 2024 11:19:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290387; cv=none; d=google.com; s=arc-20240605; b=TxJhDBBuIGHfsVeOYynt5PYDHo+A1wZKnxZZljussGsW8O4neLHy2YNiSD5Crkd4FU t691QmOHHqcLA03fkqA6CM+pFxBKFdo46/Chz0/YV5QnTtX7bpAqrMXKKnhIoeo0uUWC pmDOpxovgcmh9vxZ1EwMJcta7WQ3VIH+eFgVVv/VdthsRFfzK2xtXI4M9OBYDv/bnDyC G2vggbzBTeIZo7BHZ8SnaQJgyhjBAe1YjIFnhkvqDrLlLz+2tDdEerjR/pB5jA1s7Icv vFkFyb6JX2LjmZWfkeUv4qgVQ0W8SQa+Ja5JX/g26OZHVEmw3Z/Prh1LhZ8h7ULZ6aR1 57dA== 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=9YuFtZ+DmVXtIMH4G5/Ti8ZD+nNOe3CzMTkLQ80e6uw=; fh=I2hSNBlDKVAGYD8LQLmqSRQVeeUH8epvzOkwBVrCdV0=; b=iKW5Ev+L9lE/qkgqjrp+TtUyOFAHLxYFTYQCDsQ5s2hmaVXraKgYsuE09PQWgvd1Q9 JMA+yrXSLH24o2zVGmMBszQIwmrkOK2oNm3n6VQ7QlwmnocalLLU+KrkffFDCQ6reAFl MYN7fUIwZazgke68a/Zyb7bp+kb7gU+dSnPURfL6EUddYSTGBa1lYVCi/Z97n/5SmU9V gTwtDtCNPgyxuGplbhXCwBvAlp0wVf+d6F6mbkPB5uJkDoUnBVy1sbKxfcNoGgPhwaSh 7eICTC1gFCw/y+tlCOhuZ4B32vkIeoRkHoYNOmml9eLFbOdPZhlfKuQ6M77kFzWHVNAp A7fA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oQANsbIM; 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-467b2ed1a1asi51421941cf.437.2024.12.15.11.19.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:19: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=oQANsbIM; 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 1tMu0A-0004Er-2x; Sun, 15 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 1tMtzz-0002t1-HA for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:51 -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 1tMtzx-0001Wm-Hv for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:51 -0500 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-29e5c0c46c3so1728295fac.3 for ; Sun, 15 Dec 2024 11:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289788; x=1734894588; 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=9YuFtZ+DmVXtIMH4G5/Ti8ZD+nNOe3CzMTkLQ80e6uw=; b=oQANsbIMUl6PAywZ+OLxg9fAHcCY6AU35oF6RsQ35VbaWE04cNSL1IJ5LnY36Ne56C ChfX4sJkxsj5op62MvIjH5rdUb2WVfJj+WbT6jswhHR+8GJh0947Nt3Tho/5PsHbuk3p sxAsXG6hQWhx+36GkWq7XR2AJeB551wa8AogQfTr+FDryXV3Wu3TjxaHZpMbt0vc6V+r XexekvmwgMssu62+tMuE1chbab+bHOzHnrvmG2tC3tknAoN80EclI4B5v4TkI/XCvnBb ZIxY3LDV+VA0mNieXcpCQPqYSPzJ2HtCP3YGKUnA0Hic3fwQQjn8U+oMtkit2UYPu2TU qtJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289788; x=1734894588; 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=9YuFtZ+DmVXtIMH4G5/Ti8ZD+nNOe3CzMTkLQ80e6uw=; b=asyVrMV23JboBaUUGQBtotiFbZl6Tc2eAZ1CB2dKoB4NLPkCziD8v5WCbrmu2VI7z1 hBvNeFHek9ir2KQoKbHuA61JQWCjTcoeioVaJ4sIrvluGSjWPCpoBgW2Dx8/9F5Zx+3s 5M5+c5FowuTrgeEja40J1NNq5klIBSlmJlJbV8Oub2DL43kbVhph+++mMaOiacIZhjfJ Ng5NS5T0aR0utlOasSRtRsRu4yTVx0fdQ/G/DiHz5Yp64946j7sQn2jybdN+Hx46ZD5B +EipBL1KR1UdCHzuOxAIGkytNRmehMghrnBLqXRvdKmhLGV2nqyzZEgqKhg+RbVEobW3 Sybg== X-Gm-Message-State: AOJu0YwF7O8PMHB12FVys+BgT5+/gZUx6eoGg/Il0LybyBHQUPrxvhJW rX0Q0KINF6ERBDL9/FvLEEBEmOvNosRhhgnTbrPLHEtjdH/4n6G5smtkqfL9r8+0RGUrzeM8lbf GIXIoTZFy X-Gm-Gg: ASbGncs7XuKszaHmBZ5qA4l2ZUCV5P/jVW2rqzaaz/hs/dLHR7+U9zlLnnTusHzZtX/ +0BRwSOQTND+MTCHps2SmnQm1iHIpvwoac1ql3IDZK9Ss2npvUtjOSTbz764RT3E8H9C1B+J6Vs 5CMYex4FzjcxZXu2qfT8YV0sh5ZV/K783LsFZCCMPehpXmiFcm9FADuwEhJR6J+dqy6re7jvKTY lKvpjhX5IaA9WxeVjpcdcV8ZmGqJQji5EUDA+MNccL+jOy67s1ky0AZK5Aedt2KaTrFvvhMEARQ yPuoaRcEIoQrfpkBeSHWchIZrQ6wguo+hoyLT43g3Rw= X-Received: by 2002:a05:6871:4095:b0:29f:ecfc:32df with SMTP id 586e51a60fabf-2a3ac5bc2b5mr5741324fac.14.1734289788281; Sun, 15 Dec 2024 11:09:48 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 54/67] hw/sd: Constify all Property Date: Sun, 15 Dec 2024 13:05:20 -0600 Message-ID: <20241215190533.3222854-55-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851016 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523701wry; Sun, 15 Dec 2024 11:17:13 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWfj/oy9DCHrYcZ/0JHbpRBF2PMQca3Lq5811MbCQNBnVrjZDjzL8/JavmWE/yQZA00wS2KOg==@linaro.org X-Google-Smtp-Source: AGHT+IGq16DaaRl4wbdsCab8EXCnUv5IpIA4lPm7jUhflgj6K7BljJW6G0Sxhzdu9caI69D6PX/B X-Received: by 2002:a05:622a:14cd:b0:467:672a:abb6 with SMTP id d75a77b69052e-467a5797ddcmr207212511cf.23.1734290233189; Sun, 15 Dec 2024 11:17:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290233; cv=none; d=google.com; s=arc-20240605; b=Hj+JVMvgcVe7cJp8RZDGeEv2fCYtBFo8LfJFiITNcrA1AyXY/0Zjs813u52n2S81ji PhWqu6Q6AWj3SP/TreiYYUvbeyp6FwDAyVJE63Gz2G3PUXlHdoWHHxJ1R7wpn8hZmWEb 8+NrivL9G0x3R0Ef9AmqOFFI2v9tVs7Txae6UvPNjXtG9Tyk1Y4E1O3oHFsa9S30k42K oiPLUJkrtphLeLl3P+1nAzy94Yz9BBja6/IHzGM99fJTfgCETDVfRPzpVT0jdBXnXHfN BOwtD806WOjGv5M5osJBSLpoOI+8GgM9NEUdFQkJR+uweX6KYi5ezGEFtajGVOE6xcqW sGPQ== 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=zEHd4CM8L1GCpQcebyZN8Iy/9TXq3pypUB9Ffjp85Gg=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=NT6Hmfi42rlNd5vDhb+vlieV6wYwXcqV1Z5kDoEK+uFPtT75yhVMt5AThkWncYDM3d b8C9qiSMNNXn0O1qPB5lqJeZabBewFlszzdw373fFtRLDsCsyCc2j5xh89LcgGcnyOKG dgx3fuSjUI9aGlCfXhHF8WSDuxqqw0w/naYZJG79PfWFoPxcfmA8K3ok9d+1Qk7i67oP gXmGBLhLFUqGNx0xLkhK0u3H4y+o5TGSWGGFvu63gX1cOe4GVSjBwwCtfEuVPn7xuQUI cNn7Bn77CyQdRr0sYatxIMwFRFU3xM8Yiiz8iTbQkhoGTM9ylYfDdy5XJHKbxw/28oqV tYFQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HrHGGx4r; 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-467b2c9a6f6si52591431cf.79.2024.12.15.11.17.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:17: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=HrHGGx4r; 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 1tMu1r-0006YY-Cp; Sun, 15 Dec 2024 14:11: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 1tMu03-0003XC-R7 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:56 -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 1tMtzy-0001Ws-BD for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:55 -0500 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-71e1158fe3eso1714666a34.1 for ; Sun, 15 Dec 2024 11:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289789; x=1734894589; 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=zEHd4CM8L1GCpQcebyZN8Iy/9TXq3pypUB9Ffjp85Gg=; b=HrHGGx4r1YrOjymjZrWhOFcOdglUEsmozkYqF/qVjOMSCHlCcN9APb8u9D0amHz96s axVeQmHFkdB7AUvtf32l1r60Ij0Ju0434qEkVmv57K2zhJDoLnBgCAbPsRxg/h4pRY9H uDEmmLG5kjJ/lHMpQuaQP161bwia+oSb868Lh9eTlrWYqw0p636yUHIHuEEozvKgAlEt YYHK6Er3pnRJwAr084uf+oAu2qgSJnTCXSGaALsHr2C9zgTNhg4wUfhf+mH7fIAyIAXv qF4RCH86sSIeUjBDJIBNGq8V/FbTLkCsp831X3I2IE91hrMnbxsohmBVo7fHa0p5Tzb3 gYog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289789; x=1734894589; 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=zEHd4CM8L1GCpQcebyZN8Iy/9TXq3pypUB9Ffjp85Gg=; b=kWKVfCc1k4MkyynLWmwAuCPnWhB+NIQIyM89hKWD7tCrLYudOBZibAtQq1NoG9DNtb G/icNdtrl3zVLe9DRco5DyvTgAtLqqfWc33SmUuq9/wNtJghKKYMw3kr8ZHW+WZuxLEU p4cvnD/BDKX9CEhZh5IzIy3R1i9JHvRiYECB72q1hURSzCib0d0KkL8sTeqheBHNwKHz s9jrRWRx0feoi3Xev5WtMYX/j8lmQrENS6ZG7BQeBLSTXAWOqiPQ95qE+1cROks9urE2 SjkcFr0TPhDYQvacbU8ioZeXWvWoL8sHTijRIbZs8iSvxo2hfyePEX+7fi8WLJbBTWM/ gVeA== X-Gm-Message-State: AOJu0Yzh/e3n/xozPFxNkcWyQzWQ05OCm52P78vmlF80A48sdq9prVVK vXrpQ/Qo47oG4K5hi2i5NDnXJtMVqJu9UIyJSVIsc7/E0Btz02xUI5/Qa0R8SdZK1N0Oq+sOk/5 Gf/bRb2BB X-Gm-Gg: ASbGnctQI05WNziBV8BZqSvo2DuRiDle+gKUW4CUjZD91iz/h2yqQIt0I3XL0lSYNYr old6Ae7RK08tGOODdUR6/sGXmBbvIXHnXge9Iej2bml5SiwRuSxYoMmR/VzUOOX/ePe0AMbRhZQ LQTRbJPXwwjdo8BWKB+JVfIkkbrIhUoiJdaZep2U1Iy2aGtjEXL+RZ2i0PPJl2c7vRO7d6abkuf 1SkS8MPHoRXkFKtvDrCD4ThEIHm4RKW7aV6d3wL3cTPyKRkQCMcssIKPIj9073Bee7m+IOemksH pHPSkW2pGbO0rbS6NmbnS5nVSkhVx4jYSxPfe07xsjo= X-Received: by 2002:a9d:3e03:0:b0:71e:4ce2:432d with SMTP id 46e09a7af769-71e4ce24574mr2401088a34.19.1734289789030; Sun, 15 Dec 2024 11:09:49 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 55/67] hw/sparc: Constify all Property Date: Sun, 15 Dec 2024 13:05:21 -0600 Message-ID: <20241215190533.3222854-56-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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, 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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- hw/sparc/sun4m_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 Sun Dec 15 19:05:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851008 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522940wry; Sun, 15 Dec 2024 11:14:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXKwtLmZdKD4ezDqQTEADv0J2YCNPEKgiRbuLeVrSJzLx2KOvrpofy31yHeO8IWhSfEiMVN5g==@linaro.org X-Google-Smtp-Source: AGHT+IHZ+9Ptmfhq86FSlILkPCJ/6Oajs25wqzxon8PHL9weptD2dCAAkHIN3MGnrq83mU519Q2f X-Received: by 2002:a05:6214:dcc:b0:6d8:b3a7:75ba with SMTP id 6a1803df08f44-6dc9684ed76mr183264676d6.45.1734290096973; Sun, 15 Dec 2024 11:14:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290096; cv=none; d=google.com; s=arc-20240605; b=P5xAf52kIGNJiLck8rDzzS9GZRYq59qkjoWeRd7ppLRpfv+udi/DnoldvsVe4nU3iE CtbAhFj5IFkHvxKvVx6YcBkLnJowXxDg2KtZEN9Io5RUAV1GffAKU6D6baLDOCgstaXl uleXG4hN/iHbU7jnZpAYC+9WSkvhNWiA89E9HDJQs2WwNM3PeP/sTiEZfDpdKUR6Wysi wmwMH2C0dTSK9qBOwgT0CsgWg6v449d8cP5AuI3E9//wD+cxlb2lHEArM+j+MQTQMYJl Na6d25ujJIggZi4RSrvrfoKQV5GL/Vdamu5zwjBhRa1NZC9n5Dh2rll080ay+a+p+iTY HU4g== 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=T+3W25tZKNwolMqrRntpySrnz7X/bER0nM1ryiF0CDU=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=GU50zrn1w4/2u6+2SptqXu2sJ33E5dXyE4WijK1jdvxf3iRvhm+fpe/cUI3r3yg8qa hPvHaY62etBbtHflY36O25iUf2uHxni0pEOcpAI8wEtnVDmFG6WNa2ZMFGr08x5AsDME mx/tNHU6PE86Kj0Wa5MZvvKwuarPAc2KhFUa9v33f0Kddm+F37JMC/oYzpAARQpiHChr HyZcEWXoiOHWbxkpVa62b6HDP5RTuLP5w5W+Fopa3McsuY0o7IYPS0XFq5P+5UFWFFiR iGwgLEEtsvan0sK8fjWEg+gGa2mlkkr5B4bh0p05IikSjmFLtzFxdzNs4uF/lnSrngv8 IKwQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sXyBl4OX; 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-6dccd1c9b74si50920916d6.139.2024.12.15.11.14.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:14: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=sXyBl4OX; 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 1tMu2D-0006iY-CJ; Sun, 15 Dec 2024 14:12: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 1tMu00-00036R-PS for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:52 -0500 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtzy-0001X6-Vk for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:52 -0500 Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3eb87127854so1013417b6e.2 for ; Sun, 15 Dec 2024 11:09:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289790; x=1734894590; 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=T+3W25tZKNwolMqrRntpySrnz7X/bER0nM1ryiF0CDU=; b=sXyBl4OXN1GEBETDWUbJg63TwV863b96gNJ1WuU2XZM6VSG8EueIrNvp6NT2v2zwlU Tylgxnj7p0xzRndMkXdyelZS8xAoPjh+P/GvZdfx9XRsR+AgC8tNZRUZDsQhUfjwBVH6 TWGG/ETUY4hgiYNsKuiVo9+w+t6c8EGkOPQz6TK9UfWmLbl0QVY+N+itfD4jCmP0gWbO qCh62FsfvStvTzgT99oaRblh0r5wEpAh4ePW2KQR3oQRWDtQoJJ9sklnUA7J/cgfOq7p ZhcZaed1sP8TVosz2/301TDtFZDTNqL1na6FCa1b9K35R9sUdk8F0BMs3jh7F9247iko iFBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289790; x=1734894590; 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=T+3W25tZKNwolMqrRntpySrnz7X/bER0nM1ryiF0CDU=; b=X48V3iMW2W9QY4vsUKJLQTlGGT/aNHaAGnX/hrHTDI1ask1dvGJeptJWKqqdrL1I0G E1EnxFu7wtbGa7HULPQxUIyZltYXL6ZNCJBiTBWJUK/OK7C7BqLQgrbTDveo4jMkydAd owxGkEE6D0M8Nh07vAxW/F+/3sbde9B+kk9yP3DaofurzxcD7caLrjCYQdoXrqckB8eC cMPM6FneSLAN92lBZpzmnj/z+GjhERg16PyNsFu0MuPRqPed0b0dIQN7q4Saa8Hwds3U nxjQavcciiPSjsaAcQQmUnlvdrVCorKizkhPimWAA6QIM8nl4pcoHYLmfDXVzNlvDBKi eFmA== X-Gm-Message-State: AOJu0YxMkUpSwJYD5rm+68IuprAu/PZqKNRVF4mZYlYssGTuGT8pIqqf FhyMxaSrWMnFksW28QllMvzFQVpQKiTNOjR+w0pRWJSMqlToTEwXX6xqp4NQf+6ucy5nvG6pFwX 7/5h5ZLrl X-Gm-Gg: ASbGncu8GmWNq2oa4yb8xY7Wt3yjdWiTqOWJunClJXdguBCqi89Q6WKOVWDeRyW/7tb Lf5fToqhd+ltAfIrsneAeOdJuD9asnXAyd4aaIYCiQF4cxFEI5MirJ5tuK2TPjvO/mHiRyYJQdK qHQmJzuKJYfQ8D1sqeKar4+TRAD/Rz1q7nRIw3zlpyUMod0hk5/qVwPhSudGrdO76y9btVW38DC 0/HjgKZGQU2rqOw4PMF+YZ3yrcEzMphnYbgqPVABrCGT1v+Rk1oQmVHxBlSq+xdzA39/AFMxRmU gBN98FfbMdevad6tNz0HA3/X2u55xIlZVOg2cIi5L2k= X-Received: by 2002:a9d:3e51:0:b0:71e:57b5:224a with SMTP id 46e09a7af769-71e57b523b8mr2184611a34.11.1734289789851; Sun, 15 Dec 2024 11:09:49 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:49 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 56/67] hw/sparc64: Constify all Property Date: Sun, 15 Dec 2024 13:05:22 -0600 Message-ID: <20241215190533.3222854-57-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22a.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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- hw/sparc64/sun4u.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c index 541c7f74fa..7088ac273e 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(), @@ -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 Sun Dec 15 19:05:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850991 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522210wry; Sun, 15 Dec 2024 11:12:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVYsuwwaBWNEDOGtPAzUsr1CmTAbl7bKKsmm55F9C+xwucXOpOsRwCCRm4ofUKr8atnpUtRQQ==@linaro.org X-Google-Smtp-Source: AGHT+IHhY0jUGNfOd2Kf3uh9W1uEBLmKhdJGT0vdiKoV3g3+j/C7Dwl7+5DY3KGw1eVRpYagmRoT X-Received: by 2002:ad4:5fc8:0:b0:6d4:27fd:a99d with SMTP id 6a1803df08f44-6dc8ca5706dmr210138646d6.19.1734289975413; Sun, 15 Dec 2024 11:12:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289975; cv=none; d=google.com; s=arc-20240605; b=HU5aXfmSvjZpSamd3XFrm/9/a0I3QJ/qoholn6M8BykChW4g96LYd9WHh0yMU433iC Arp+kr8HHqIZqkwrdWgIqCJz1rb1sh3PuaBmuCJhebyRh11r844QFo/e+C9X89RECeGk a2IwNi+IDRwBph24/3nn9JGWNMQzKUW05wXXO+OocsdphTUBaFOtfnKsl8PS5cE5ElUl XxSpsWLYYYcjrnQ+2z34oM/S+PozGd0sf7PdC/S8tQ9PgYWgJzrGQwyBo3mfS1FssIgc Wm5iXi4K9oUQudSd8uCS94qEIACzPF6Vb41c9vIk1mamAYyuy7ezafNrG/IMW0ZyyX52 paOw== 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=6L3BYpq1x+ED6fgI25BXYsC6DYPqvahLoa97JqwBXKk=; fh=I2hSNBlDKVAGYD8LQLmqSRQVeeUH8epvzOkwBVrCdV0=; b=Z1HE0m51BDcPXYopdySxUIC79HpwD/bVkNnef+bTCMsn7cv+vZas1XA5z3pcKwWa8i aSdEJj1peZjIBZ6TYl12oygXikB4DwNC8CyghkdJR4m7fFwOJdR87PhvNvPaDRDIjYlb wQ4uTu7QQ6wOzkC75wyV/TZBZcL8uAHRxKUZwsV51MjmMbH5cNMyK06fTuGem4EzWZ6S mZnXoq2XEEDARk0cGMl0IODnh6yIR6ABXwr5zegN4KaniF56P2eauF7d+426/YHMr3u2 +9fLuGDPs4je2+VReY+oUBG7w7PqUtrfV2dTi/nNXDGfKj0BZM2KGqjDJ3XlfBFYgpBA 7HOQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g7hTPGBm; 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-6dccd373d26si51090126d6.356.2024.12.15.11.12.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:12: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=g7hTPGBm; 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 1tMu0B-0004My-EB; Sun, 15 Dec 2024 14:10:03 -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 1tMu04-0003bG-Gh for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:56 -0500 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMu01-0001XR-Ix for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:56 -0500 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-5f2d7868ef0so934777eaf.3 for ; Sun, 15 Dec 2024 11:09:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289792; x=1734894592; 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=6L3BYpq1x+ED6fgI25BXYsC6DYPqvahLoa97JqwBXKk=; b=g7hTPGBm/vbGIptpNM2uDDumYbNSdFW4UuxUOXGUUQ0eUl9wGoJ4IYYOQVGFPQNTSG G/nQf07xB25wdIHGktvYWU1JmzzuPNFnyPukLeJRvU4GG1oG6X0Dkyk8ZT1XgM4wa6LY PfojcmhsK0kvsEqW6U30K2NjQXwz+lj507AbPpJH1Ttq2/CHTbZ2Z6qYQSLnmzExhYJ+ 39iP0Ahh/J4fbM1ktYIYgxZdP0kLA7EVtj6Skb85iq5h4BLutJUpGd7quFSENrw9aBFy 2DFPxkntZl5JMIj/0ekamyAxaDMg+QPkB/GDasjxsWt6MS8awLmyriqdEnJCJIhyL+f8 N9vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289792; x=1734894592; 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=6L3BYpq1x+ED6fgI25BXYsC6DYPqvahLoa97JqwBXKk=; b=Jj1eCn7LXzdtcYs+YGy3aeKrpLLcklV2z8DxKNowSXjqueHblIy/Tm1pz5nLWkRgmy l74ssZYpKpgN9Vg3erSDGCD+Ufg9N/WO+sdafnFiw7HSFKp/qeg/XUr8DtAB0wMSeF0i Q98XjE2JJQNxPlzERTXkguaoOsGzfUoN8NlW15pLwpwrqcQXjY532yXfjhwLV+HiC8C9 mHADEgvbj6xufKddo7dTTjC362Ny4Re9FTvzOlymA/4JM1ikPuzOCFSGFCNC2MSOW2jI EfZXclRy205otO1Vfsf2k4F8QgvDxEPd1qbLAPeQuzaEMlSf8Up6M/DRF+ycvSwbMgz0 k8XA== X-Gm-Message-State: AOJu0Yxo/lRXKhJVGgFY+UFWBo9T6GD3ZbK/YOkRY8SZcaX06kjRLpQj GShs6ERH4r7/jPqm6VdjheRyLAsfXGumcMrnavsT10CPpnSLrPE2qQCpiDWBvXXELTVLVBqCAma LI37b/al5 X-Gm-Gg: ASbGnctAIJf3PDfgqv6JiVmCrG11QR9PARFr3iOojOEf04M1IOhJfFoje7tCtAfBPDJ 0YoLX2kamPk/jjK13lRBCnaiZ+JA2tEZfCUQcL4MV8Z62/VcLlKsmQUKUvzmZi8uhVQMeCzz2i5 c7xm95/JKvU/kM8P5I3+4mVbWgpOMXMomDLb6JVADlrWM4WHB+tjkUw1EVwKsJaayMnRag2I6bK mHbaiFAfurW07Jp0yV5PXylB+UWFecKo2YvqT93FZZbpUWl4dTeRkfmUDtERImz624ayWBMcnVZ v3p4hS/LQxORoJo/HYhM4pJyopWF20aEheHcBHd7vc4= X-Received: by 2002:a05:6870:4202:b0:288:5ae1:7318 with SMTP id 586e51a60fabf-2a3ac6d6547mr5474683fac.22.1734289790732; Sun, 15 Dec 2024 11:09:50 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:50 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 57/67] hw/ssi: Constify all Property Date: Sun, 15 Dec 2024 13:05:23 -0600 Message-ID: <20241215190533.3222854-58-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c2c; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2c.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 Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851009 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523245wry; Sun, 15 Dec 2024 11:15:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWzylrrsoerGL9ZVB9miP0ceYjdJQhpTQvhPddj98lufY9mTJaw15irNe0Wr2vOykwGxvmyGg==@linaro.org X-Google-Smtp-Source: AGHT+IGajHiftdmafuZ/pD1UfX/rSYitglsBSXiF4NM9WCX5s0+L6BqdiBzw0kLpgSAO6yZuAwAj X-Received: by 2002:a05:622a:8f1c:b0:466:957c:ab22 with SMTP id d75a77b69052e-467a582ad16mr141065411cf.43.1734290148167; Sun, 15 Dec 2024 11:15:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290148; cv=none; d=google.com; s=arc-20240605; b=XRm+siY7nWjATIHophiuaEwLHsPg4bKDqecGA37znjWSM0rmx0RXCCURPOjwOftq0L N2WE/sqqGO9mGZjKM+apa+lkyOOPKvD8fdo1YSJf5y3wCpSZYKlB641VoFukhsO8sOeD FJm8JwTAEivAxB2S0H9siWs1+MtgO3AquzBNnspzJ3GZqL3Pax+2LiWqOHv4CaI9czZ1 CtOiSSEf7eEp5ogUFJmgXtt3sCOlcJSFdeuNYy6oofeZ2HiTKz/gRDUEWQJbUaMuCs3+ rLJYEFJCSct1pwAA2ZycoOTYqb02+iNY/l1sMILaPwq5FB1AuIsxjJA5jNl7/MiP/MBp IR4Q== 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=gcdwxS5tqG7VqmQrfmPwO9p1z3J/hx5ZWXFaWSbhrfA=; fh=I2hSNBlDKVAGYD8LQLmqSRQVeeUH8epvzOkwBVrCdV0=; b=fc2VCJ1TU1CE0bgfo8QoIrStbr14atvdvIwr+wLFwlHGVgvQsiCaly/7cNq+RDoXpw QTkhFiDbgXSOWtWRAxA5FRXFFyOsOx1U2xMBtzs6xrNyL27a/hvUzUp4VhmWQXuurrEc 7BhBRd3AvNsnSuUVGbICm2GwZYfXxFCYY70b+bkZIL9S8oVNAGrpMobaC6V7W61sZO8W uQ2/Pmrsro065CExDLcX6aOtivSvC4v3mbobsBKNXeFY/S9qn4nNie3uIo/IdDml5X2U 3uWkO2FdfPH0w3KhRHNkNEPvsVEY6zH7rAzyA3K0La/wqUXt4I0/xzHPsZ3l711AzXfB 7z/Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="c5hzgK4/"; 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-467b2cb9bf0si44096601cf.168.2024.12.15.11.15.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:15:48 -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="c5hzgK4/"; 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 1tMu0E-0004bd-Bo; Sun, 15 Dec 2024 14:10: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 1tMu04-0003YH-35 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:56 -0500 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMu01-0001XU-Nb for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:55 -0500 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3eba0f09c3aso972065b6e.1 for ; Sun, 15 Dec 2024 11:09:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289792; x=1734894592; 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=gcdwxS5tqG7VqmQrfmPwO9p1z3J/hx5ZWXFaWSbhrfA=; b=c5hzgK4/eqVjPPAb6zSfs+uOY2wVPvgIzRlPgpbiNc8xVENvLW42v6jSCgUxz1L0nf o44aHy+l5y9dc7po41iA3dZ3ieq2S4jLnhFKnurAzgCtcAvAbGFohusL+SpadR3Xre2l ip8GegiJL1NGLeWbJdTdklPueXXgTnesHyxX4244+Vzko2EfVNTyLdZMnCE4n/yMfTJn AtlQKxI86+nefSJMV3Mxxqx7nAjC+Ce1WsnN6suBLi+H1z5TBnYIw55P+ny8ARXnwjO0 e1uouHMLrnjf7R/Xc7ltzHHOS+nlTTb/pofmTpFndPhxJYUCAGNB7ulGx4MVYLVSIFjH IFIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289792; x=1734894592; 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=gcdwxS5tqG7VqmQrfmPwO9p1z3J/hx5ZWXFaWSbhrfA=; b=C76fiihE1d6Ry8DaSZCz2VbFMEri6MejoNyGRmC1ArZb7mnhAJWpxGtVQCPdVNLr4D HVUwE78XHFceE57R17Y7Zg9egcIltziSjQ/n1eVIAd6Gc31+wAt9kdh8fQLyHenjacH/ LHILIWdNM9DB1WaELPUt7qjBYw5Ikiis7+sO1dB8FBTbDPqttWUivJqcWkWlpOw23sC/ SzmAykbkYbEG7IVkHZG85+zRWem+zeMBGo/OpDmGzQpsPBxHsEYFprH4YBUDGbLp1DjI E50Lhs46gzbF1f8R6MYLP5+4Y9YuDGpMQuBvwpLaOoyNKbQm9Ll07PaNFSEMfLpgwDtI Zt6A== X-Gm-Message-State: AOJu0Yx79R+s06Nzjcs/whn21Nx2WVzvIU7I/xpYGHRHkrTANIwTHmjM EaK1Rp29Iy5bQelZR2gQG2hQh5FVHJ+CrwtjvDI/D16Cf2YUqGK0ucXN1pNxLjZlD1mHEg7F330 XotQ8ZhiE X-Gm-Gg: ASbGnctZbhoCZLiW9/QGwDlUIlcQJ7Hj36dxZydlzJl5q3CeCuxHT576pOe88JMIBVF 4f5fi+A6qw0RxnqjJ6FbAUKYgR1dQ2Wx3aRuW1ghjGbKtyDyguYjbMh8qSXsBgD4fmT+CBBM8oi k6QusoxRM9wIiiVXICoGLZYrwTxkEbFJW8eZf0B8CHbCs7tTpewDEZot8+W6COmM3swpK2fB1r6 7ctGb3zsit7xr8Lby7Q/2vL0K/Uaqxrx4ngwj33m8Gd/wNFptkv1Dpu3BIMn1TWcokgN27gkmwv /H+H42WOJV3dvaA+wQDfUZCuCYxh0bBvEM3Qu4hbWzI= X-Received: by 2002:a05:6830:258c:b0:710:fef4:3c92 with SMTP id 46e09a7af769-71e3ba26862mr7499957a34.21.1734289792489; Sun, 15 Dec 2024 11:09:52 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:52 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 58/67] hw/timer: Constify all Property Date: Sun, 15 Dec 2024 13:05:24 -0600 Message-ID: <20241215190533.3222854-59-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::232; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x232.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 Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851003 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522878wry; Sun, 15 Dec 2024 11:14:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVArtATJLZsGY9U9UFgMRI/o6vMd+C9DS/zPCF/6KgzeA061EJ/cBxzd8LnVgTIo+RF/lsPLw==@linaro.org X-Google-Smtp-Source: AGHT+IExeTboJc/zyWyAPt2c2xsPyQyGmiM8Tat+hHMBV8GFtj6YWp8SFodieR4sHk+2tSl+TozR X-Received: by 2002:a05:620a:2989:b0:7b1:45be:2e87 with SMTP id af79cd13be357-7b6fbee7f0dmr1358997085a.18.1734290088326; Sun, 15 Dec 2024 11:14:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290088; cv=none; d=google.com; s=arc-20240605; b=AN60oAlW3VVaXM9QOAttmft+vHWFqnzOWYVbk/KIn9fHAqdJKjKXSPuTE9KQRp9YY2 4ixxWFxnsrTXPs0m27Ah9XiUjClDpRltPP35jixn4uPJi1X63wEl35YmTYccZdyTThGH JHFFP1HZWhaKv/qm2xgondakm3ewyLJ7Oo7zH2qMfpq60xAvKZpaTVoAr0Wv1EVOGUaS kPra4/eNqzgIwgWEDKqViJN1vxo6DR01S2LH1TBFldDuOFe/YXkuztGuDmq+XFwJyvmo aJ3qI3mCz/hM/bkhYaTo+eYiVV4DHCGoUyTY8GwRkyup5d94rka2d5s6RXo0PjtcQ6Mr 8QDg== 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=0pjAe5uWC/rd99tnYHP992w/Wxqt6VB986qUybTKyd0=; fh=qdQ7xnm0kQ1NI0orjLSaboHP1q78Iv8bmv347KM4OD4=; b=Ij39qqzavB16sIhgtEp+hBvs0A9JXy98p2lIeQylc1HREjOwf813rW+B6OGmPWiFp/ kuwEhyel1EUVMzYOFDJoDJ0a2WdcykjV536iJe0SQKTs842NcoWfJYzTXEZV9MreZIBH ra2spoKUThCTgreupOaPtj15y3mt0ckYEmZzCnMM3uQgnkcHmja569krPbiCJbYeNnUQ EomLbaMaRFda2Fdiyj0RuwcOfGvH0wtPpdJsTX0z+fKtRBWoJkgm9EmAhKy8JDuYxSKY mxRUhYi+HGkZS5qf4HuVwu5SutXVX2m4XdeJkvbRfYud3axY3PcOTkJe/Zv0RUXtUbqA b18g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mp3Gyraq; 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-7b7048be766si513069785a.235.2024.12.15.11.14.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:14:48 -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=Mp3Gyraq; 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 1tMu0F-0004i4-QP; Sun, 15 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 1tMu05-0003hj-98 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:57 -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 1tMu03-0001Xg-7R for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:56 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e3cbd0583so369471a34.1 for ; Sun, 15 Dec 2024 11:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289794; x=1734894594; 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=0pjAe5uWC/rd99tnYHP992w/Wxqt6VB986qUybTKyd0=; b=Mp3Gyraq34R++fsBpAqc4m4DmlLSOocHVAVZ9msc5jtYUAQG+ZRzQ7qAnoo910Gple 6wLxgUb+KiZOdwHVcj/3IccxYnG9DLEaOwaBo/ubyl9XVADUAR0aysL8pqWSTb2Y+evZ 5LULBKqSxNXc0gpc4b2nOHp2CMM/33xE48xEyTUDdDoa+Jb7MtTeCTqH6RYRkALLoPIL /W4vKxDUsn+yKhONI1Ij+2XPD1in52hLhMfU354/zpQ8GDmaDMxye+RmNdhMoGJql5i0 sBdaqW1JAtCau50UulcK71sXU3KOUVoOENSGaFt6eWewr9B/gZZE5+n6aPYIrXUMOIPd FXgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289794; x=1734894594; 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=0pjAe5uWC/rd99tnYHP992w/Wxqt6VB986qUybTKyd0=; b=HeHiefEFLnOgPtzV6i2eOL3L5IlOuaCY80/tVjDulDKEd5Ly94piWgyY45guisAv7G JURiJyCYRKvDBtTHpXROqawH0G0+gPtRTRS4HlvE0HpSkjqYeTP5OSUan3ghN/xJHl0M 41rvE1w6xW2BUTAoV2AFkFCdJ98uvKukxrGvFxDvnxTtMBdbHCw6E0t4BCz8z1ca+7cX ln9sudnj9wZ+ytUNtCR0Fisx7EZ4lV/5rSssThq26DQGV3lesQqvLVbZs8XRewpf/ugX Wm6rQvTODoPhjUoZqreM15Jy9nNALhRng+wQsmbxUFp3y+bKs4Ee4fzHV1f7CjgiRxU/ +jNA== X-Gm-Message-State: AOJu0Yz4ThotIHKCOKIFsLv+Aw6JZTFXVhWztWEBdvvIE27katy8jCDa nmh+rT3SYZiVuB4R3IU9Lpq7H2SX+okQtz0+ER28c5oyjLgm5eiPifV0RRnjxmgZXJIXg+yo/Je auKqFOnS3 X-Gm-Gg: ASbGnctifKcwwaWQe+RSWtv04zMQUGfcEJ8QWMEjJru+lt/txL1DPit6R95fNhfvdHP sgGU6pLErofceqr353hHWLsNs4g0pulDfzkcoaQr+H8N9l9qtNVGdC4e2pRCWFGECFFea1h8kmi s2GCVWUHLHpM/9d6ayi1i4n4EW2PbQqXTMOkxwYeY3QQz/b/UlySBQ/OATN9E1ZwU35yaVr5TxV HYw6Lf2VlT1YZjTJBDtrR2UkDT0OhkyK+o9k6tJbZRgdZPrDTD17Q2Sl/px4sCM576z5l+/n+CL sp0/SOBfvwTAxgNhnLcYPjMWRl3kkxVnb08bTrF3hEQ= X-Received: by 2002:a05:6830:3695:b0:718:1cb6:e593 with SMTP id 46e09a7af769-71e3ba4a008mr5528128a34.27.1734289793947; Sun, 15 Dec 2024 11:09:53 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Stefan Berger , =?utf-8?q?Ph?= =?utf-8?q?ilippe_Mathieu-Daud=C3=A9?= Subject: [PULL 59/67] hw/tpm: Constify all Property Date: Sun, 15 Dec 2024 13:05:25 -0600 Message-ID: <20241215190533.3222854-60-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Stefan Berger Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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 Sun Dec 15 19:05:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851023 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2524072wry; Sun, 15 Dec 2024 11:18:20 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWDNKOh2yxAi8SUNdnPjwOdjrNTbAJKiaY3RxyNMAiba8OhfCUeiTHF9fRG4A1vLRMHDCazZQ==@linaro.org X-Google-Smtp-Source: AGHT+IFyGtwRnfZ+JfQRPKablsC1t9IJtr6c9luCXMya87E3UFbVR6P1aWTQhupPpew6okvRSuCh X-Received: by 2002:a05:620a:720b:b0:7b6:d611:5d35 with SMTP id af79cd13be357-7b6fbf087fdmr1288094485a.32.1734290300762; Sun, 15 Dec 2024 11:18:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290300; cv=none; d=google.com; s=arc-20240605; b=hwrIp++wrjSreFzBFEAxJFjQU+F1ZTXnMuG1MPoeJDgVRbzriU7msKTvCgw1+Yedbs xuOtF8cLHy4rQaAIB70bNT5FS7GSQhUVBRLmpVuw+eQjknDvGUEk6wQIY7G/aVV9VP8T iUZnOg8bYiVsARid4cINvbKAFfJs00IaQSPRxcSSbxv53mRTnZhky3B8xsMb6ECTnABc 2eFbnokQKeWBn9S+beTbsXCI4UKSUTJHXjbfdrPvPRIxYWmhLW71ZU2aBmNLMLjSzFF0 5U29Eze8ey7R/GewBWMYFBmOg93BW0t8KduMVRZtK3bNy5p3QUCAuZGDS5k9hUVvygj2 2Eng== 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=FOXuwhe/X8DCCmXnKuLNeVCJhg3yybg+mdVjtiSSZ20=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=We4Eqx9w5g8Hn0e3wZLxVqG5u83QW0KzlMJTNSn2UOxHbgqawfe3Vphw7PXD9RSLc2 MURjSbdC9pZGQhl7mGpNJo8O5VKxeJvEvR9Fqj5la46ebnCu5x8uw6mG2a6o+O6Sn+WV aIkrgpECW6Ksom3Ik+36/PH4rVDimYYNb7BH8mdzc7ZAzZ0lNCfILHLonA4rkfE6Hll8 x18Lbl2m5SKxlXX0OiNDKn5RsOBnq0OJFahUiAK3GEJBWvCk9/dxqd7GcimDqoZRgZ3i SV0/9UjmyWjLQo7X3LigBT32t+cMu/aBqDaL5bEFzKGf+6FEPHn/+e+4AQ8flvRVdeM1 zE0g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VGad1h+d; 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-7b7048e20d2si528199285a.481.2024.12.15.11.18.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:18:20 -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=VGad1h+d; 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 1tMu0u-0005nx-TU; Sun, 15 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 1tMu05-0003kG-Tj for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:58 -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 1tMu04-0001Xk-4Y for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:57 -0500 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-71e3167b90dso1563542a34.0 for ; Sun, 15 Dec 2024 11:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289795; x=1734894595; 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=FOXuwhe/X8DCCmXnKuLNeVCJhg3yybg+mdVjtiSSZ20=; b=VGad1h+dJKsOKRsB8fI+WwPnUvuj9Wjc4+E78udJ3fdZpP+uF9KBbjryKCmOOhCNkI zIlm/JUsYueET2SivulLQhanfVhKojPqpioGaH0a49C6B2XClgE0U7X23yyKI52uhTN4 5WGUHnDShBO2U7tNruqno5OhmK623ycC8RA5Znlry1LWgCoiHRZq/DpGL88CwT81ibcH aM5SptBx8FrBdQmM6BeSbj0NxN9Ex/pUW/S7btytPYq62juQwAk0jjeAQqLMzSw1/Nyc gPEagQwy7A+8+MdMdQ9eYbfqVeFNLCQbD/WpNvFHWl+53twdapNJB9J+Yt62+83Jdrni WKSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289795; x=1734894595; 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=FOXuwhe/X8DCCmXnKuLNeVCJhg3yybg+mdVjtiSSZ20=; b=bFFQ+qK2qFQzhCc1XFht0UcOfzZEMQBQoFQI21CMCb1xbdRqgI8trKS4Ajer+0joTz wJT0t8tohO1TEtCI733Bmlz0EhNoOA+SHyBvgCIyeQTsTwp2dXu4qbxIPjX5ThhKNEZ8 poMUpjy/vx57BlhXRxeIuRNkm2dpoqUp+4c3isEndcBlf50kCSL5UOMpybtksOH94C/Q aGuDGLI1IMwcm4kZ6DoeYDuS96XBRUWdLRvAgQbMxG/gz7BrQjHLTs5K/ygqdYPMdgQV 4ueD91ZCZVGnhsbn3BFqwQkeua24BP5YktvMBi4Ta95eDozkjA6pua0qi1E+4pZXIpAB OEVA== X-Gm-Message-State: AOJu0YytDLtzFl6+7x9eUhk7LKo85De4lusmk6VFzZaocinakFMZwrCQ dTKnCSF701gUU0oFlzUkTKCZpul3nN3KM81yOnjLXfRAuy2tGJd+oWv6IcWJ6cIYL7voV+bKUgz DBCuQ04yp X-Gm-Gg: ASbGncucL3SeuyT0M6UwYQyleZe3W/OfXJoyGgBFR7maUeUb3cHWbfzp5+nJvWegwQ9 4vQkvOUe5CY4wBPnuWwR9iohHhGJlIsCdj20D9CgeLZ2hLteC2bKopsIKjXxgbx/7hevm5aGXsj uioAPWn6YCqJ/R7Xy5G1Wlu/JMNvu2F9sCL2N6Z8ircNQ5f7+V5LimzBlTNm78xz3IHDWdtuyf1 W/CtRtijfIuPRetyuPGDLwun+cPnUXYBkjMrmYqeYKHTx2IuaGvhFx4mG3XPTIf+HwHyL1n6Uhr wSTddvCcidVrzORHcuW3Rm8uNoW5/wA7rMfbrCSPtRY= X-Received: by 2002:a05:6830:6c17:b0:71d:6221:d4b7 with SMTP id 46e09a7af769-71e3ba628b2mr5847366a34.28.1734289794799; Sun, 15 Dec 2024 11:09:54 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:54 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 60/67] hw/ufs: Constify all Property Date: Sun, 15 Dec 2024 13:05:26 -0600 Message-ID: <20241215190533.3222854-61-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851014 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523690wry; Sun, 15 Dec 2024 11:17:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWWJRtNwrG4q5kbWoYIlcRAIWobq5y0j3ly0mBADBcZHIqfvkxfdORiHBA516VHrxiUmG2iWg==@linaro.org X-Google-Smtp-Source: AGHT+IH17o7kKT9StqYsLgg/yX5Se819p/TB+QnbzID9U7Xtwtq6lW/ilOcEEXuBJPmyejqGGgTz X-Received: by 2002:a05:620a:8809:b0:7b6:67df:51e3 with SMTP id af79cd13be357-7b6fbee7b34mr1607778685a.16.1734290231757; Sun, 15 Dec 2024 11:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290231; cv=none; d=google.com; s=arc-20240605; b=SXfUPCJVkte8N+1IDwFhQpapE+QDAMESuRpsp3iupiX9m0q/kVd+Iyu+9v4FxsS5Wl LNRrtsrRzmwZZjU1lffQ95Vpd8EeH67GhDD0ZujuFdJabdP457MiR9WwRtEE1WPMfyR7 4LgdrI/pDQxrr+ysGQT9iI67MHTeqyY6PIfDorh5jDgau9+qv8XtJPvNL7zIoYkIudp6 hSPx0zaeEbeW3Ge/isXxvZ9J8N8sc9zk4yeHOCLMtiDh1E2OCZHsFGuq/UVFNXomlCr4 FEDbSF/SUFquKkSttyNqBzPd5bOklmOpym1Og36wZPpINFkK/iO/DsEip/AOQztnnzGD fUow== 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=uAf44RLFv6Gad90RDm0aq5Bw6DLI2y44Nb6zhHpVoxY=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=Xfj5Z8RCOejAN4iIjFwO+UExxjTzFZZ/Qog4fgVBIWfZH4txrvLTuW6Y7wbacw419T BwvNag3zd4euBxs8RhLID0JQPPYiVViap65u5FCV50HSk9bdpG8T4XD8VCxKsZonivip crvltmEw5vzzmbMJ+BYhNkhfzVIaUFVlIM3iy35GZCLmTwoVhgoT2Sw2o5/d6YEru2Ah DdM3/CCftWJ+PmTvNpOcSh9u+k60bbigY9iI+w3wQvkRDBPZWlgvkEuWNta9yQy/32ZR 2/3xK0g6ZLzlbZqHWnXOZut8TIC51bdDcIm9PO3LdG4Mqgykigi8n9zjyf6McXxZHqmr u78Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="iDx/jKMw"; 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-7b7048e4e97si526847085a.561.2024.12.15.11.17.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:17:11 -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="iDx/jKMw"; 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 1tMu1d-0006Nh-BD; Sun, 15 Dec 2024 14:11: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 1tMu07-00041G-JX for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:59 -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 1tMu04-0001Y0-Nb for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:59 -0500 Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-5f2d5b3c094so725906eaf.1 for ; Sun, 15 Dec 2024 11:09:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289795; x=1734894595; 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=uAf44RLFv6Gad90RDm0aq5Bw6DLI2y44Nb6zhHpVoxY=; b=iDx/jKMwED8Mu9JdEDUs7Fqp81U09//S4NoK4zr6Vu+7EBDW+XfMu3NKwqddrrhdCS k4REbAXKTONRQaKr//a6hF51z0m5ESLuDwMb4DmsNX9u4qTd7FQ33Bl7KkKPtR6/BXXI gH1SJhkCnYkHo08p3zXP0hMxaZwH1KNNPnMw5/SbQiFxa37VTXoXpRDJeXq1Ul5Oas8J yGIXo5ZW216MdbSR8vaS0LZJWzbDRB/pUvlSicw8W+S3rHEMzwJqwiIdzH3cSK9o0+MT r1XrdoH6f4o+vyehb1XfGOVzJ4cqTxI/FN8JqSSGbYV1lnxORAt9UYE+qNuorv9xMg5N dPvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289795; x=1734894595; 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=uAf44RLFv6Gad90RDm0aq5Bw6DLI2y44Nb6zhHpVoxY=; b=mkbBk79dOvwYsMalOQQoxJ8bvga1uncEupSWOaS8lkJbxe/EviwjjPb5NN6kt508ky bo/85hmwq21qVBy4n0fYASu7LsO+XY3qos+7GFYWQyEM5DzCMfQI8xVWZz1gWJtgO55q ZEHmAPEkRmNVJgqTD8Qax+DSQtjtJXZ8aKn5NwJbi/0o6Gm4logvxPieStkBjRMIurmI 5td3z+XyVbf8dHyLtu7wswPe2UF/qQkkp3RFyCmAioHm0K1FidnVli+LC0FkUF06Eq6O M7gLyATE/Kq7QLsqikxn/Q/io3XpEHXRYkZ05kfRIIHmtB1qAIYjZb4pQy7W4gmZCDee SQeg== X-Gm-Message-State: AOJu0Yyz8weY80rxDm6FLaJE4CAwAKAEB1LAeZk9esU/PxLNGS5rzf0r h8mdEsWkB6Bwx2V+R00l2IWae2hiA3fPgwLlEEYWx0YCGrq1kmic5BhZ0gAVhnYPz2ls5E4iTww U+maWcTgs X-Gm-Gg: ASbGnctjvZwb7bVbTnddZihEDSZi19iR7GMI16QKECW+uMJy4mrX+OG6e+x+DA3pNYp l4rxJMmZrpegVD0NGtcC89rkJG4Aj7PmUip/1dkH6o8SoYlAc01x+PpWKC0LGU1YJec9LYZA53G Yf6O+eci1l88xBO60PboTGD8z0vjxdTLx9KPw58fBh4skIGzIMBZGuDK2ZDX/j+C4SUEnyip2e/ N00qSNdbN5RwdJWRxauDCR4xlMVr7+UvaHY/tsZjZYtsbEO1sdnKL8sr5wUs3410vrLHLMVEwdK Qt2bX7XvJ/dD7bVb2TNJDMqp9Z1YjKPpUqc4xxvJIYY= X-Received: by 2002:a05:6870:2c90:b0:29f:d0bb:618e with SMTP id 586e51a60fabf-2a3ac6dcd39mr5793001fac.25.1734289795506; Sun, 15 Dec 2024 11:09:55 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:55 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 61/67] hw/usb: Constify all Property Date: Sun, 15 Dec 2024 13:05:27 -0600 Message-ID: <20241215190533.3222854-62-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Philippe Mathieu-Daudé 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 1a191fc737..f06e7403e2 100644 --- a/hw/usb/hcd-xhci-nec.c +++ b/hw/usb/hcd-xhci-nec.c @@ -36,7 +36,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 Sun Dec 15 19:05:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851010 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523271wry; Sun, 15 Dec 2024 11:15:52 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU7utNmGJFY6rFHxURyHOEBDbfHhnvlor9xGrq7mBzPevgXyngVW9VtdhkZcVtHB1xO83vWAQ==@linaro.org X-Google-Smtp-Source: AGHT+IE+M51xbyEXvytrccJZmZdhnxpaT4KAQXEgc5Pi3h3QjSkIAzpXogKuJOy8Q8vycaW1M1rC X-Received: by 2002:a05:6214:4115:b0:6d4:180e:e7a with SMTP id 6a1803df08f44-6dc8ca8efa2mr196294426d6.24.1734290152160; Sun, 15 Dec 2024 11:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290152; cv=none; d=google.com; s=arc-20240605; b=SnKssEhUSK3+2aD9ki36OI0v9LlfAQrFbSVYktAGlXWwtUkKgott2KAK/6zpKRTmpB I3dHSYlSXBjSx6SQ2CbFooKnoCSXE8L8FqFhG5x+qe16xW5Gd460HRYh3dhQCCvvhPId gm5ZvolFh+4WjCumenX5uW1eEHRA661QUdASvDvDiXe5lC7meucChQYrvvDwwnuFbmzO fsf2lUKUCvpaEeoG1NJ+GTPNq0AbS0BwFCKALma9NV/tgmQ9vIrOeLHx6AjnU/b6lu82 JQZYdUtAgKB+FbfWC75qvqH6gGecLiZUObBETVgH6+7/7gxTN7yXkqEG/9OFN5Hfiks0 ErUg== 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=gKgQK+6ZUCTVplJd6G9s9xqdYnMK41SpV7U5E5JQQwQ=; fh=I2hSNBlDKVAGYD8LQLmqSRQVeeUH8epvzOkwBVrCdV0=; b=LRiBwNa9BCmKVE/+0oHxjc5QrJcVBacNd1wIOiCzGKaZMSNuqgANsdOs4jVKkm7Z2s /jyilo8dxBYohefd1pLTKnGpnjUkaUu+K+0eAsYOnLQwf/zwN5OD8cPD2ZVG0x0P4Q2c G/h4a5clCd11Dp0dbiqGsn9ACl1pZLzf3Dq+kl/8X0I/PfexZ/gE0Dozvv1cDxTVDDhj IV77/2Oj9laT9bccDsmPWqWihecqTQuQfmYcy12ZsOGu73n9BhPdnx64maZuYH79e5bB 1x5KZ0AiTSOBVf+HEd5jipJA/mb8FrWvcWJyHkmqjaLadM4d7wUL2MIiojMUjM/cNJED UXhw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yxJiUXA1; 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-6dccd395f58si49391606d6.418.2024.12.15.11.15.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:15: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=yxJiUXA1; 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 1tMu0e-0005Ol-SY; Sun, 15 Dec 2024 14:10: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 1tMu08-00043k-7k for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:00 -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 1tMu06-0001YM-Dn for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:59 -0500 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3eb8db8ae9aso1573122b6e.1 for ; Sun, 15 Dec 2024 11:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289797; x=1734894597; 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=gKgQK+6ZUCTVplJd6G9s9xqdYnMK41SpV7U5E5JQQwQ=; b=yxJiUXA1fdGsUmK/HijnJyPjO5C39iggNKuTWUwuqynzKwLTdYCh9gKNZ+RZcIkupT gTK5bm5SQ8Uyfef0bpvCH4TSrikRM+38l8igt7qOPrB14wZEZW9aNJKIgJNO0/2NKjfj P9e9yrpPn0cnrEqUnSKvveodW5qO0D1eI4kC5QlouXGqac+TuGhw/jaCpxs984JdyhNo lqBz1IUHWoJ24BqigOGl11b703L+oCjT5758hoG6UEW7LzwbapnsNfYBuIIIsT7Hqk+p OHIC4rLDOOd/XPltnqLz3mVgfbZyaQGCgNDF41deu/+hRLsBzQN9A4Qjl/VY2EDcnfCJ M3og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289797; x=1734894597; 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=gKgQK+6ZUCTVplJd6G9s9xqdYnMK41SpV7U5E5JQQwQ=; b=axsVY5I25+cobJJ6Jzm6JW5zw71CB3y5X7h3NKN8trDRFrbb/I+CMvoeA+PqRj20lz ESDCUBtcJzfmEkHN+9fkuc21EopRC2WSKvCjrf5mUjzScpEytg7GNg4FFVmPe+PUf1gT qw7MhG7o3XeQo6HfOm+tBtsRYA1MtBGJejSwrEHx9kD0JSJxRFxgCBRj+oBLbyjm53Tx 3k2tXZ0HGzgvwZ1ilTfuL39A7ViNg8sod6wEi/sDe3LwIWlNyXudLbohZH1KfxrtP3GV CHCkMuA0zWu4yzksFdqbEYlPkvj2/Ix9Fsano8JK31gyqmZHpkngFelJIvg8H6JTqL6+ 466Q== X-Gm-Message-State: AOJu0YwXRDjPym5WFRO9rXzi1MPhFCmwdxasGb/9vkpm+6Zreo8lq69d 2BAQR8KpYnm+9VNtd7/xrCpKx19cixaOUW58qsc0OA2pLr1O9KWTF+DgpBeCSvqmQaIw0A8XBhx pJFNaOXCa X-Gm-Gg: ASbGncv1K/k7JDEJwztOk9uXedv+UdiJ6wm73j5p2cpPsCwLd3hZUjh7fTxh66CRSYM K5Fb48WdBe0wSAobWzIuDCXunwqI2cq5q6PMZ8BRJrwEbpDoXRi2K5VbiVZyVdOLWbQ5KFx0Moz 6AdflO/IjJ144pTYSXUUuSjxjW+HnYwWwD70OAoEkv0CvrdamFPOY50OClMIUFf3pOdyLjBY31z NJSOy+2rp4jizKB1RriLXpx9Oxd8CiTlWRuHl6H0eVxAQtxhSbEDzGGlFZQSd+WnB+EttIwp9DV i+1PAAph7cnDT+bEVsgFSgkz28HSKl84b+ErIcyasiI= X-Received: by 2002:a05:6808:23d4:b0:3e6:5f6:c2b5 with SMTP id 5614622812f47-3eba69108e5mr5216975b6e.26.1734289796866; Sun, 15 Dec 2024 11:09:56 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:56 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 62/67] hw/vfio: Constify all Property Date: Sun, 15 Dec 2024 13:05:28 -0600 Message-ID: <20241215190533.3222854-63-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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=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 Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850995 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522270wry; Sun, 15 Dec 2024 11:13:05 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXCwW3WG/3yqo+ewI4bfNrQy5yHr0zN6asGlbN41U6TFCCkzdAnaOwWYYavjyj3jZzJuIk3zg==@linaro.org X-Google-Smtp-Source: AGHT+IFn2GpKWgAApn7P42fcLyz1nuSqBNOBHxsdRRPX9nUDL76F0yM+1cmKLAbZZ7zGVOim3bVs X-Received: by 2002:a05:622a:4ca:b0:467:6e25:3f3d with SMTP id d75a77b69052e-467a574dfeamr176344831cf.15.1734289985115; Sun, 15 Dec 2024 11:13:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289985; cv=none; d=google.com; s=arc-20240605; b=bpIaZDUYeD7urH3efs99gFqYTr8LOCD7zpE5d5ZWv3NHQ0orafGrqoQod4KVwkF7j2 yTxSpZ8DL1WHHhU5vWtv87nXHhGNkiWyPT2H1rDjFZotcRtzC7pPZtAUWIUNCUwYQJKX 4nXDfFWLMK0Ny8KfaQbskGZFbcnZXMcihYfvz7kyECXGREq/OWFPkuoqG77kfCezToNp lWGwPefEnMwC9F0kfWjpkx3DV7UtfgFxOJ5iIt6UZE4XIDgKMSGmAWKW7asPU6VhiLzY Uvfjv6vhQSo8i3gPrsfNpxTBGBh57Xsis/09L+mL9EDVp6gEpDK4PjhwTQr8bU1lZEjf 0grg== 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=B6CqmURNxHAAtewHFIbzq4SYWA9eT6bkucvqiTjmDsk=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=fY9SkNo9XDqttQGaPr/GZkO8YzCD2FTFYf9nw08jrmv1VQ6n10GxR4SFjsVftpgKoP TQNoZWKeJEmj4HlMXV+xjI6nDwfPhhIwW1wb4rv9LIPVr2jsxAlvWRoY9DRlLOl1Actq G+5t3fbrXb9jyvYh27EBAnr7g13vo1+6guHcEJgcE2fxfc5PrTocePwm8/uZA+qaXIKF aNpQ9EdmPr/SLB1frbX6/IofpIYmAgEFAo7umULhnqQE6Q8lJXMIs0E9jAVyVc9sSn7H Nobl4c5XxtLJPm4GzHLR3JsS4BQNjnCKpM107Il0WS2Fc4rVVNEBfp8N43UtWGs6zNVg cQgA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PzP6b5PQ; 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-467b2cbb805si57034371cf.208.2024.12.15.11.13.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:13: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=PzP6b5PQ; 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 1tMu1Y-0006IT-At; Sun, 15 Dec 2024 14:11:30 -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 1tMu0C-0004Vo-3B for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:04 -0500 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMu08-0001YY-Py for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:03 -0500 Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3eb98b3b63dso850603b6e.1 for ; Sun, 15 Dec 2024 11:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289798; x=1734894598; 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=B6CqmURNxHAAtewHFIbzq4SYWA9eT6bkucvqiTjmDsk=; b=PzP6b5PQrD9Ev27zDN2T3M9O3uC5xPPmpKGi+d2CnZqrfT1kRsokmpHhiljSMK2+N8 YVKlcCM+5AtlyUhZh+qNHPxtDCnZCZpzENv1D98tzE3kT00bj0Y58AhU787nYS1WjYcY at6LYdctw8FeHNQqEn6hSXQmjsw4DYPMEWysMiNJwVvFrXQIIXrVeUFh3kDyA/LC8grB icn06XIue5RRPY6ZfRaj9J02tTjPS568pTVhUJDaCpKHfJn4NSHxPVlOwIoGDJ3Y2nY8 ufkPaajB2QKJshcSmEROcilAHKDdS1qhrOsauA9juW5LxDllVpaFrkGZuD6Fc1MnglYQ 2w8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289798; x=1734894598; 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=B6CqmURNxHAAtewHFIbzq4SYWA9eT6bkucvqiTjmDsk=; b=lVleG0YlxbvS42kchFxxl0xEoBB+yGt6Gwp/G3WzIRSQmEwzETApuWnk+bOulAG/CV 4ECZv2ErzpAlw7itEtHMacPnxXe13LML7qoR608wyQQY1ChMt8joS5BfiKHhzu7LN72Z dO+PPCYmkc9k6JzUgKJc/hZFGD79MRm2akaWtu616RzBbDCFNe9dQJZ6Udabi/L4w80U mfHz60/+MP9Z1MQsVXmggkbKF4RgFfu4MBkeDIMS7ALXlOL5R3OTpvu8c5In7G/TYf0e 7JF3xNfd1FTA2IqRShudgF0VUP7TBo+dj7mPG0mmN+i8Rgjiggt0WmD0ON5LXzxVMAX+ Rc9w== X-Gm-Message-State: AOJu0Yy3ZjMY2uf7uYtMQ+Qixv8vPILD6lhqnLROpalvs9ArPwKt57ri DDDOSi8W+TDTCW+0idAN+lulgA/0zr+F7clFhArjWJyHfmj/HfJs2P+tZz70nGVqY/vfNSkzlF4 HYZtx331W X-Gm-Gg: ASbGncvgA+jsp6L9N7WJzotk3sffVshR+E6AuR5u3w7TQDFxmNQ1y7r+VGoFT7yNIwf VglWkRHIai7D+lOD4newNL87aqLoFutnJr+xNQeKP65mkh/x12bCOpzI3LOYB+V8XFneKjehUK5 KK7uCc+M7U1Ts4IEgMGyjkBhaZLZAP5j0Nt+jTKQy7muX/w4KeWG705y9sKbLszT53M3SBBThWO kRcY0TEIb86deLTWj5NUigPLMqJVvA8ZjJrSHUQg52SatWfFyCzhW7o3SAUphSg6k5zd0kifAMW aO4n7BRwuz+prdBCdbdy00w5UAUP1FZEzE93bIFX+FE= X-Received: by 2002:a05:6830:6c12:b0:71e:5a:f4e6 with SMTP id 46e09a7af769-71e3ba24b35mr5054271a34.20.1734289798256; Sun, 15 Dec 2024 11:09:58 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:57 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 63/67] hw/virtio: Constify all Property Date: Sun, 15 Dec 2024 13:05:29 -0600 Message-ID: <20241215190533.3222854-64-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x235.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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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.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 +- 38 files changed, 39 insertions(+), 39 deletions(-) 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.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 6830fcfe17..685c548361 100644 --- a/hw/virtio/virtio-nsm.c +++ b/hw/virtio/virtio-nsm.c @@ -1705,7 +1705,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 Sun Dec 15 19:05:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851019 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523740wry; Sun, 15 Dec 2024 11:17:19 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW2ThfgpVwOVc3D1clX5DgwgaziIHhOcZLdI8CUo0LoXsuY17a3fXKiInFdA2EURDyCR0U3Hw==@linaro.org X-Google-Smtp-Source: AGHT+IHWGcj3gEPUElH2dPNs3HQRqY5y8ZLXRVh3rZdyshg6/ucma/4BTb4jtdzx9mP/3G1bw5UL X-Received: by 2002:ac8:7d4d:0:b0:467:6703:d469 with SMTP id d75a77b69052e-467a59fc552mr146433331cf.2.1734290239247; Sun, 15 Dec 2024 11:17:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290239; cv=none; d=google.com; s=arc-20240605; b=EephqZkhe4bkYo72/dJq5pemVNk7Rf4O3hL+tMNTHlUDyurXR0xSEhFz6N+a7omiAF IENiOtDLOLJ8Yjm7ZiSvPJjdmToyrSe9yWh4G1XWca7Z1JmYVjfJtZ89bma4WBJpw20j 0662ulOd3tvSRUMY31gak8HG9p2SFcNJDsq9/PH5RnROHrHJrCxWGmRgw/2Z9BgBlbF8 xCSYNr/0UBTqHk9gF8HgEBy3AmbXusD1ZjA29WWW8tAFDsGjT/QTTXhcTKjd5IdTRz5B 3MEwf1I71wSdjfFmkVB9jHGzy7D58LDQHQv1f4ZUVDFkG54h3YkqZQOu5yVL7hOuUqBV nu4Q== 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=8hiXz53ezNkAih0cAwWg6vh6hXFljD6ps3qWyRrDs8M=; fh=I2hSNBlDKVAGYD8LQLmqSRQVeeUH8epvzOkwBVrCdV0=; b=BPjQOe2YsOqrSUA4Owj0AEJSSQ/CLLykGRwyBjzjKAl0biaqZa1lD4eMU7GWCYU9u8 3i+Kggq3T/AZwP/578SH/3/tgDH0l+3Kyp1rWEV/cuTcRo5F/WEdETwjzuWAdGG3LLz1 YcaKBvOxyTQAW5Uv4g11vnRzT4XrDW4NvuM1XbpkFsl6HP9VUwLaTOo6HgdBJNrOkrze Bs1enVEC5KLytRcUqgrO9nIT39Tn2BTWYXVNC3IP7ssBk0l238J6jaq7UpoZpVZIhzaj 4AN1VxqoFsQaGjJED0ejfHsJ67n6xeaWd2y7lf2KG8yd3QLxb+nml2PCuOoqytyop/bJ Gb0w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WHanRsaW; 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-467b2c98c2asi57234531cf.19.2024.12.15.11.17.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 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=WHanRsaW; 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 1tMu2X-00071G-Q7; Sun, 15 Dec 2024 14:12:30 -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 1tMu0A-0004L4-I8 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:02 -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 1tMu08-0001Yl-MC for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:02 -0500 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-5f321876499so1615116eaf.1 for ; Sun, 15 Dec 2024 11:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289799; x=1734894599; 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=8hiXz53ezNkAih0cAwWg6vh6hXFljD6ps3qWyRrDs8M=; b=WHanRsaWWZBHD0i/knf7tN1rOfFDq5EAOdc+6jQm5WkvzQvGlIA147gQHefV4LuIGo DpCX03+iLXNeR4fqWvW9Imv1JGYoi/KWYgknWRIgF0LQg8Z4LfoSQtcx4FLVJrim+mLP mm9IHXJH5aTH+Q1YxdPgwcApgKgHz0EC0Q5eFaWpGjOeLx9eUL+K8daCvv6abVyJ4tSD xHS6Tk4w6eGjFdxxz5h8LRbmX2w0UiOtupmFqvXe4F2KoHHL/rFru8ffRh8fk/yydH8D LqB+9wjb0v+ZLMleeGZ9XW8/gnWEJ14qaFr1D46nRKtrfgo9v2BfAmD8/GjEsAq0YeeH TM8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289799; x=1734894599; 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=8hiXz53ezNkAih0cAwWg6vh6hXFljD6ps3qWyRrDs8M=; b=dmTJPOiWfreHxW3ZM3Fsmn4hgjDoXBTGIXj3hnaG7Pozy4oj/lozhnNynXL7VP1mUN E3llNQw9VlCN6hHMYo9+Nxcrvh1XXP7DuPE+cYFaCm+I/gmYhgV1SuMsga/G0QQ8xtwO 9iY1xqxkAoypiudJUQZHFuxORS2SIpRKz5ivozLeOxlDI43F/H7OYGjGgjE1DJDrYxAc vFuFsD18crEKxBhrLdapCibOX0IR/3lY9EFpMI630ob7/Fi1DpeeFlRiBfsX1XKjFZqJ OOjBdQhhqI9rxMLQvca7t6ekMHJ7inrEb/4lWOw3qYeKfpevLzFzTQuYWvf9dXXpCWf6 Diag== X-Gm-Message-State: AOJu0Yyhwa730emX8M/fZInswM0jKbloHYdS3J6gWoWavyfyZeMHKOeg 8ibbwBNMylVkq4Rp39AR5qi4SXzOL64R6gIZSUz5ZNcHjSVk6ko0F7+qRNvsnStf+QR8zUeLWlW 8RJC/zKzw X-Gm-Gg: ASbGncv8f+sQm7nZdlcf0emtCAkl/JHVEvbKOaMHBEhc0bZGsyrDz3hTONqFmYBfCDS qmk0ndN7AxDOiE4xBAjGlTOXghNicLK3P/DoTKpqtg6ekw1gBvhVgOEl6SogyRsVEs3JHwQVud0 W22bK3Ww4Wx7vK+fO+MhZ+Gf5NKeCPTpu/N1udZpipcuDJvX9tVmsNYbvdqHynoFuk9oB5Wlk0o 9tHNoQUIaiiOZjDT1SxXXNhn/lqvsgMiSouWH0RWAB7Nl3NyN2Iv/uymlDnMIE5cI6F0RMnCIWh HDXy3lDO+CIjxGAdg5riGfAfVk8IC7PcRPqEeiUuMyk= X-Received: by 2002:a05:6820:b47:b0:5f2:b1cb:3efe with SMTP id 006d021491bc7-5f3243464b9mr6052769eaf.4.1734289799621; Sun, 15 Dec 2024 11:09:59 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 64/67] hw/watchdog: Constify all Property Date: Sun, 15 Dec 2024 13:05:30 -0600 Message-ID: <20241215190533.3222854-65-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851011 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523686wry; Sun, 15 Dec 2024 11:17:11 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW1y5qcapVx49gQ1vKaoZya2T7X9N/l/4RIOrBLV6Oy7AgzMCuucYR45rQYFe7eLgh0NQEDnw==@linaro.org X-Google-Smtp-Source: AGHT+IEPouIMVcWQSrm1C70EXacdImxIc+4e0aaOllgj4NNk+Fj/Lid9RfT0lrV0tG8GOckQOR6t X-Received: by 2002:a05:620a:24c5:b0:7b6:de3e:1838 with SMTP id af79cd13be357-7b6fbed3babmr1413366185a.6.1734290231035; Sun, 15 Dec 2024 11:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290231; cv=none; d=google.com; s=arc-20240605; b=O/0TwuLFbSS80fxJJs5dNsv8gB9g6Cwr4yzhH1cVKx4nElrIdVE+EglxD0bK89RIG/ Oqcofv8Bh6x1UBFUhZuLLrv3TA5YzRfumJ+Hpy9awWk0zH/bQLXskcGZleZj/RgfEI5l YJEMXhPr37LDURkYPDnQjmHv4allle/J2IX1Oa2KTAzXE96ctpnGWz5Nw3t65p34jzcV SrYtrJf/Nj15l1HDZZJ+OY0B4yh6VfXboRFDwuyoFtLwa/0S6Rt/KGlthjq5ZuHbI9jJ oZkfVhsPxmjOrAY+tUSpU+OGCJsN+IQui0KPzvH8vYGvoAEg2pj8KQjwwli74ebgPfpy 55TA== 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=S6+2f1Qt1iQIeMMghV4HJ5IGr7dqh4AUipAH5VoHJh0=; fh=PAWKCm1qP69fCw3gXnVOLNCIZAkfQJTKoHHmGUo32P4=; b=jPWQtuf3WGNbehs48LLf+ukDkK8GdtBncoGU/8wtCVxIIxovoUb2JwB3VMWSxiBTp3 b4KG/ogNJTbqgKXJC/W5GXNXpj1a+ikjcWugzDdOABgzC//DkgMU0yI6NtNNzMbDhCN5 d+TpMHpYyL9WMGYTsZjFzrJ46nE9dDFimtInc3GifI0SriswwL34dp5ikd0b205VTj/s J2gMvU2dBJjIRDxEaB5iqHQAgcMKZvF6z1ucuYtPMeCcCV/2o5Qlnoo/V+v5jdbH1+uq QZiOuAe61ubkJNArfaaHtzRyqbbCt7mxsPK3XdUqp83G0fcbGqjQDt7KKjpGD+9grlFx +suA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RwsVarAY; 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-7b7048ecadasi500086685a.589.2024.12.15.11.17.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:17:11 -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=RwsVarAY; 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 1tMu0z-0005qF-41; Sun, 15 Dec 2024 14:10:53 -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 1tMu0C-0004UR-0g for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:04 -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 1tMu09-0001Yz-Qi for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:03 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71ded02b779so1778978a34.2 for ; Sun, 15 Dec 2024 11:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289800; x=1734894600; 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=S6+2f1Qt1iQIeMMghV4HJ5IGr7dqh4AUipAH5VoHJh0=; b=RwsVarAYPgwtvuSWoBVqNdWHXtOJwqbNcgaef0U0rRbwjkBqjkKz6KOFJRlgM1Gn2x 2eUekLhPfJ/sI+8szMXKJFI8/kQ5PwTBUCHIGCe3zTToIY7G31XvvxujO6kTm79Lmfcf 7EKjyxoalqEsL5+WLC0LRzRDID+oN/RfuDo39WTS1Gsy5w6qW4BXqAaMjlFTuZFxHTeS ToIK7pZv1qs1TFlkWT4QPQ/T7wFB7hwdvquCqrSmIzeiwWa4ZLrEOr7zLh2+Tqxh6WFk ajoCpZrPBOJwRkut7rPKuWEBXTh2g8pUwpcSTGL4pZ/NFKWZmFXjBORRvDRYMuQNnzHP Xr1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289800; x=1734894600; 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=S6+2f1Qt1iQIeMMghV4HJ5IGr7dqh4AUipAH5VoHJh0=; b=B/xSMPmtmGsUn7npBb13MWhOOSj11wHzmHNONb5XHfW3umbtXKs9D8XRQvYle0bDC7 emPtdEZPKUx0VFKs4xBrpZ7UyCTe9C1C6LjCD1O8IF0aPxjFVgLN0fPoXdG0d/aGfInk +MKdSw9/9pvOVWAzlLn9nODuQK3KjwFDJ2plPaR3rw92bSnenDvRgoB2y8kUhNdFEoVk o51AKYUt4QFcp+xwgNWGAflNJ1OO8Wh4bemFmvlvTgGPncF7gH87lNosXUUukkAaZzHF BS9dvk8bj7oXsfxO1Az7nUy3CN3tPS7JnLIYHvfme6wzrhaQz3opZ1O/nQ5eDm9lrvci mx/g== X-Gm-Message-State: AOJu0YzM6YgNVhA6mb7Ygkvb8XZI7ig0taLYajaV2Vrr4HsvWiBJleSh HKFbm9NriV/rnsrBZnPvKwSq5cYTl6nXdzLx9UGzh4uhsDyF4hOBhxsGrVVXH6dkaIqGbKj1Orf LLfgiVCfj X-Gm-Gg: ASbGncuAILFrRILRvyPVJQTW0r3IOjtF2UHPRG8TD8o42iAjP3z0ioeqZCZa75yqNrY fI0dDaxtFoSEcxaINCAFE8vvqGqlsEuJc2Hl8YaPDYBPhe7tBiD67C25+0Hv6NH1Y5SBDTH2EV8 UHb8oomMJUIJUSA+y+jPFG07M9Aw+XmaAPgFelYGn5TkR/wzBn/M2xmNOi4ILbzLREuHjX1VnFH PtlsWZ3crMbvQEv2lyXOGk7yHj0DblU5lGtRmfQmkTVS9XIPQE8UP62vC9y6WbO1g0YOsFMZu+w VAAuzJ+/gFABJTSiPyP8pNVFXsSeVizxX57Xjmd6ync= X-Received: by 2002:a05:6830:368b:b0:71e:946:80c4 with SMTP id 46e09a7af769-71e3b874820mr5890609a34.12.1734289800675; Sun, 15 Dec 2024 11:10:00 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:10:00 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Jason Andryuk , =?utf-8?q?Ph?= =?utf-8?q?ilippe_Mathieu-Daud=C3=A9?= Subject: [PULL 65/67] hw/xen: Constify all Property Date: Sun, 15 Dec 2024 13:05:31 -0600 Message-ID: <20241215190533.3222854-66-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Jason Andryuk Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- hw/xen/xen-bus.c | 2 +- hw/xen/xen_pt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xen/xen-bus.c b/hw/xen/xen-bus.c index 95b207ac8b..0d7defb8cd 100644 --- a/hw/xen/xen-bus.c +++ b/hw/xen/xen-bus.c @@ -1092,7 +1092,7 @@ unrealize: xen_device_unrealize(dev); } -static Property xen_device_props[] = { +static const Property xen_device_props[] = { DEFINE_PROP_UINT16("frontend-id", XenDevice, frontend_id, DOMID_INVALID), DEFINE_PROP_END_OF_LIST() diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c index 3635d1b39f..557aa98be4 100644 --- a/hw/xen/xen_pt.c +++ b/hw/xen/xen_pt.c @@ -931,7 +931,7 @@ static void xen_pt_unregister_device(PCIDevice *d) xen_pt_destroy(d); } -static Property xen_pci_passthrough_properties[] = { +static const Property xen_pci_passthrough_properties[] = { DEFINE_PROP_PCI_HOST_DEVADDR("hostaddr", XenPCIPassthroughState, hostaddr), DEFINE_PROP_BOOL("permissive", XenPCIPassthroughState, permissive, false), DEFINE_PROP_END_OF_LIST(), From patchwork Sun Dec 15 19:05: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: 851020 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523959wry; Sun, 15 Dec 2024 11:17:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXO9aZsOa8I617Zu8PG9mmDwvDdZrpWqc8QNroKMMPPhRojgHb5k1p98z9VdwtkHpoXa8+Tqw==@linaro.org X-Google-Smtp-Source: AGHT+IFCC1NfmSekJ04ea84P2tGx6m6bCN3r2l8+cuBVn8vggK1hpij4jJ8r1BzThZKE1BGRWsNE X-Received: by 2002:ac8:5d0f:0:b0:460:f34c:12b6 with SMTP id d75a77b69052e-467a582aca1mr209734631cf.44.1734290278791; Sun, 15 Dec 2024 11:17:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290278; cv=none; d=google.com; s=arc-20240605; b=iM68GKTDXASIVguzy8uerT/NAQbyUiTh+EiLM8FEzO6rw/U0jHxRxCa1gTqX9UV2dB gQYPAbPIOYfyjxit/xx8BtOMP3v9gcj3GD5CUNSa/W3N9w/ARRD5htfXR3GhGrCb0YI1 voICfcx1r8MJkN3SnZoWuYQ8qMzdwx+LP95eh9XAslFuWoV8X1MwHcY+OAhvpq2nn8GN uKtsWjJaOUnJKdQ5JoFMPUkDegrn3yP+FJwMdf/jlmqCcqvmI/eVR3Vl0689uTSA33Vl sCgXIPe5nznrQQwJz99kCxs46ydUcLI7/tWGHRZMjBN4Elzt+dNc6p38dHVKq+zKooUU LB0w== 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=cg3lUmbt7wwIutnt45V0TVXZjKRNVCq8SHBaFS/d0Ew=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=jkJ3t7nykG8vGEkW032p7HtIQXohT7VJT9ubSOvviHlAMsqMWp6aJHsnroiXr4SiJE TvdkryxbJ+WJ5hr5JFmZi0rjZLGc25Hn5lqwhP0UZCTKaur799Aj9QSQw1IXcSfGaHtD /SDW4TKRlsyisM43mAdX7q6UuCVB6Xa62FE+anCPxMackrAQIknrq7h8gCK3PRen6vEk CKKms9gWn7KolJpUT7PdvwHYdC3e38OEut2jFUbFm/lKY7pkbRNNvGvfs3g5mr3xq1gf pnKFcl8kLj6RdZcG+1uEYjRPT3lyUYk8BP5dX9olh/CcI4PU7HBzGGHUsmBC2G8wHJ9b tNfQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u4m2+Kus; 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-467b2e86216si58811741cf.316.2024.12.15.11.17.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:17:58 -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=u4m2+Kus; 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 1tMu2h-0007ic-PD; Sun, 15 Dec 2024 14:12: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 1tMu0F-0004mb-Vn for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:08 -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 1tMu0C-0001ZR-UR for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:07 -0500 Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3eba0f09c3aso972099b6e.1 for ; Sun, 15 Dec 2024 11:10:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289802; x=1734894602; 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=cg3lUmbt7wwIutnt45V0TVXZjKRNVCq8SHBaFS/d0Ew=; b=u4m2+KusrfxgTeagG5lMRbvXRvWdmofcd5Yvi6rPQoMWIdVipDh7Vn+eLpibytA3e1 IgCwjZW8T1VmATE9t8kKQ+jkBlgMOQ3da4/f01bAhqL4kgKNuxO0mRpwpXM2UkB+KH1D K0kn8pU3CWQIsf1exg0SNxMjSIgNomAS09X09uNp7nTewkVoKWPx8vGyrW6N6Yj3UZxD Cdm8rYNbZn4WM2VKpRMexxnUusDlx6/UM57Gi/P1IYTThM89XduGmrf0dJIa5PiMtfoc OkocxFqZi6U3/So1dkcMa83QWdvMZw7W2YNDR6Vdwpa/WCGaPXuOvh9MwhTf8N9cFz6y zSnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289802; x=1734894602; 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=cg3lUmbt7wwIutnt45V0TVXZjKRNVCq8SHBaFS/d0Ew=; b=RkurslXoMtUGEPmBID+b7iaYXVd+dhBceboXgj3psYjvOWwu7k62IimqL/ykuVdFGl tPECduC6ifsI+uNmALWF7BxJSlXDq3VCULBZhucrK3UDClwgAVvcrgLz5ncmCBVjJu4M vqvkFq3MVHnNfLcqGPychxf+8eL/FQ6spN9wZx7lbN8oE5D5ohq+/RIdb5JSILBSG1D3 dWkHouGvxep2oDrV1AZMxBOdmn7GIRaVHI0Ec5ToeVbHnT5KJrV5EOf1j4gcsVivaaiZ zvvsZerRwBPgXkPFCatIONRsn3FmnoR4CdwodxJPNud1ZaLaA32PMxosXpzdOoFXY/mO zPlg== X-Gm-Message-State: AOJu0Yw5EQEEJKu2BHtstZhv6R98u5LtNOw2tD0/LdcVwIAJX6HpCwYD Zi4u8AiYFEjMvIpzmzpLhi1XR/1iqy0QXzr91qoDdtuvPuPrcHEc3AY256ps0bdHTBwWWGr3Fld qLKGru1+y X-Gm-Gg: ASbGncuZM1tSuoigG6i/7Dve7xZuCBTuyvgmWUGJZKSEPOLLWP04/YkhP5zWX2cysIH pXbUUr5tpgcJAMKCEqVq4KMExhIEh9ab1LUUNClHfCdU8JWC+jcqa0xUXAXZQbB1v8VrJhjDZ4F qnSYTwuLVc3HyzKKJXO3VVmQEJAtvE2c4ebS0/+DIKavi2c8T7r/7f7CqNDKsm9WF+dS2IDVjUJ D/n3z5Hw64Hp1suwcXzoQnnSwrdYNW54VkSM3JVbZ6we+JwSLQMAC5XXPxDFl3XhjuXBeRMbc2X aesGunAe9+pmr4jLType1urlI9y6+BjKEjB8AWnBXbk= X-Received: by 2002:a05:6830:3695:b0:710:ec4a:b394 with SMTP id 46e09a7af769-71e3ba498a1mr6814946a34.29.1734289802396; Sun, 15 Dec 2024 11:10:02 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:10:02 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 66/67] tests/unit: Constify all Property Date: Sun, 15 Dec 2024 13:05:32 -0600 Message-ID: <20241215190533.3222854-67-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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 Sun Dec 15 19:05:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851001 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522876wry; Sun, 15 Dec 2024 11:14:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU0nPlM5f4b18duks+k34Sqqlj7+kFED6ZnPOK1H8ICaGyW+kAaf09oJq5PY406n9KTEmEzxA==@linaro.org X-Google-Smtp-Source: AGHT+IF7trPIDKvnLzguR6wiS4uNDOwbGXm3lNP+QXZrIAouGHORGsHiMu6RrkV6+9KAos0zZ9NL X-Received: by 2002:ad4:5aea:0:b0:6d9:2e24:9da8 with SMTP id 6a1803df08f44-6dc96873c2dmr185958006d6.37.1734290088005; Sun, 15 Dec 2024 11:14:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290087; cv=none; d=google.com; s=arc-20240605; b=eWLNYBZeeABWS83YZI66wVQwkJoxlUW+cxG+uDYLUhTSigHbdaIfd+oCdiYjaJp0vA dUrf3FS/t1Zr4yxH4//L0ipZdfEQUhFSAZl+KFTEfpS0446371J0QJf94C5VGzh61DKy rL92lroC/TgB1rVHTF8+0xQ195DOYk1Kjf+QQbnbbpqobzk29gcAjDbEe1XIcxqp1DLN 7R8BlzCVaOwbevlb0KF/ROJQEoB8ocIqQJnO/w6/6LyxnB/ZwATFFcZdNBxzax0yy07I ywTw57KzckQS4i1cT1vyA8Vh0ZthkEqYZ+AVkhph9GN3lJWl1NXlCPmqDEXfOszcwteZ CcjQ== 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=xi4R9boo11xQYFP7RbWeb0vhVfO/Fgh3TkVnelxmyDk=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=U87CIahSVYojU7e3KHuqb27e8s85gksmgcdoefrRj3CQJtIYktNBbDZH4D9EybRGLo MCtEUZazBgvFYyou/qawp45FvXsLs6+t0DbtpquuLLSR9fxW15w9XkG1UgEr3tGmF9wh UArjtFDk43VLA2HaIuPNuRPXgzIkodPQeZ/MVCe/ETojjhS8luSU/vDa6eJv7uUSiqnn 2Nago3G3y268ManYAwHZU7QtpPk19/9XpqQHE2tHPBjg+FN8WTO3mATW8b5Qd13tbQDN IMiR7Te1PjV6f+NjET36fNMJ6nt+2y+VP3K4f1accj0MgXLkI7X8pG1dXfRAXDXbROnY DpOw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uSF2T2bd; 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-6dccd3752a2si50341226d6.393.2024.12.15.11.14.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:14: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=uSF2T2bd; 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 1tMu2e-0007PT-6o; Sun, 15 Dec 2024 14:12: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 1tMu0F-0004m8-UP for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:08 -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 1tMu0D-0001gX-6Y for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:07 -0500 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-71e2aa8d5e3so1827456a34.2 for ; Sun, 15 Dec 2024 11:10:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289803; x=1734894603; 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=xi4R9boo11xQYFP7RbWeb0vhVfO/Fgh3TkVnelxmyDk=; b=uSF2T2bdNQyw5Gxz3t20pC//5nmARodOb+ugscxPvQvPhU5LVHEmKxvNhwd0SdyR+k gy1Ms+mQTuzWqUB9MvSuobVnLcTycxO+/Pic0xQxYnvbuEefgJ95dvfi4TlZpoR3wkvX tQZdcfA0+1zvNwU7ifHfYeMlnuTQWtQSHe4VGrtT3D2sXCe0JjCOGtVlEA/vPdwCFYzr RsrTCURw93uJwTNDotqUgEVBNrv1lb/phD0QnvLl5R+7KBCgqBTLRo5J+KtaIEyshIpJ p6Og9/gm0jXCsqi3lTsWYDav0tSXRgTDubT4aWtCOJ9EiyZ3mU8cbkmq1Y5qLOHDePGp mhmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289803; x=1734894603; 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=xi4R9boo11xQYFP7RbWeb0vhVfO/Fgh3TkVnelxmyDk=; b=AV5SYR5Ido0WIuJTkKYZSWvOQpL6z9Mvmu/wbPFIeuD+BMwU66BBqiE0ZAuGpMGjRS nCrl022t9PrJVuzcKrLKXJqFP0CavNgHeDwyQzAcxV7xhZnF5v1dkXwtrE8hx2L0hPyg axJ/gyrHykNJwWZG2BDF4GlokRJQM4Ps2KHBGFNT+0tzLNiVGoUVKtpeVgGJGYRKl040 ZIaHoqt3AALX/DqslpnNkm+xDvKeR70jv4SOsMaqvqjLCTI1MRhPiVE9dF5kSaivxvn+ 4RjkrWvO6bMuD9TRIcRlaPA4D0FjJO/NbkoTOT1Dcq/d5pwYRqrknXULkUQCUJzL9adr VDpw== X-Gm-Message-State: AOJu0Yx5kDIEUSh5697tSlPnycgnphYuQUR8IFPhUyPpbkS/Ih1DeIlA WHgVzekpzCCYkEPvy16RmnbquSjBZ9lr7FFr/C1JMWQik+h044FaU8/NUBA6VOf3B7wNRWtnOEt KLlgEKgEB X-Gm-Gg: ASbGncvKFrAtJXVHx95WehnUi7q0mfWGTU6/LElVnudGV9LUKefqu0FIvUyE2qdFob/ dl28z7k01olfjY2n+C+JaezIm+O2AF9D7b2mkQS82h58QnEupJq9v4PJQvyxhP0ZrbJv3HNhtgi lseEtTlqJ1fOfqrw/BnE+3+dj2Cb1chDr1qSiUf6XUsw++c2V6hCNkaB2/LV9QE+opyvD+7TW2w TDvl+UhIOVhub+6HWXf0pv440lD/dWJ6Fx80DVR3UrNM/tJTs/LOKq5iUyJFipd7s+WAxKixxCB z0nSlY2IalRoKfRW3cWTrWQ+owDDyAxIauIBn64wYz0= X-Received: by 2002:a05:6830:2713:b0:71d:eee3:fd26 with SMTP id 46e09a7af769-71e3b82a1b8mr5133943a34.4.1734289803742; Sun, 15 Dec 2024 11:10:03 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:10:03 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 67/67] docs: Constify all Property in examples Date: Sun, 15 Dec 2024 13:05:33 -0600 Message-ID: <20241215190533.3222854-68-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Philippe Mathieu-Daudé 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),