From patchwork Fri Dec 13 19:06:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907671 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3B24E77184 for ; Fri, 13 Dec 2024 19:08:57 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB1B-0002Qp-T9; Fri, 13 Dec 2024 14:08:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1A-0002QS-C2 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:04 -0500 Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB17-0006RP-3T for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:02 -0500 Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5f304ac59b9so1028155eaf.0 for ; Fri, 13 Dec 2024 11:07:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116878; x=1734721678; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fg83bkK5yDHZA4CF6jEqCNLgZcxdUb+0IUzm0zJzq60=; b=yLenxXzWQhLDhPynk8VpDALc6rFiWjmfSifIeS1wa8o+rG4zPmYkeXknqhu4EFuLa0 2l54WQMoQB3l24CrMyCsi2kKx12pLKEtElJdJGX3jj2dmDJmjUAeDVf01EMltH2DcOgr HsI2N6Y0ws8ZRnfuFDE+fTkhMOWCUJ2SEh+6RXke95MlaqS2Ov8M6iGW4WFP7qoNIh2t whwn0uYhd6aUcLxpu6kWFw24wN+lS0asP8JprQFx/a0B+kqdvbb8mQp/PxGyzRmRhW/p Wd9TVoS57QqZQuUFzkqNGyzMFlL1YSuj1UJgRuzAuSuSO8enwOLSiOBE3khU7brrLTuI 5Ctg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116878; x=1734721678; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fg83bkK5yDHZA4CF6jEqCNLgZcxdUb+0IUzm0zJzq60=; b=l5UFDRTYVx2aWHxgboQ8qibl6dNXtH7jA37vqLu+VejoFnNP18XoaYSMjjZdTu4ma1 ODQzURAzTWvI/t71ibtVp6viBgRkS8LtazObn5prOWiCIpeYKDlN3tZ12VHwTqImAU77 Ty+FBMB8jLNRSzrJ1OAZmIVO2ZJIU7Bsir2W2a+BtH6OaWw7wO/YC85UCdmz6SafdyLb w2v/z3FUS5i32wX0wEuoKd/c/Bi92XdKp6CHPESpkbJ5/TL5y+xO95AOpFLuycmSNAJf 8y8ZA01vkWrX+c9bIxNZpvMfGMCxGFK7pRUyNo5hE1SiBRQy9Fkjc712V2+lS1AAcyjv uDVg== X-Gm-Message-State: AOJu0YxDZdvTeIQxsHghwWTPrqL9HM3dKT2Ad/rZgXHRCu2TjhPaVpQj ViO8THzdcPxENKhtIyBhcyyZk1G4KTtoUNdio3RMaiP6ONYbn1aj2ew0qjS5e2wj1VMEYS5slII RAvYNSgF7 X-Gm-Gg: ASbGnct0CCwfJsBc/rU39mivrTcR9UUehXFNUiskA3rH9ettt4adkurXO2WQdeNg3pX gjuTWnlmHfnqTD2WSmdVFiTeIw2v9zR53TYtjU6WqBFPOtU279pX0pCpVPTzNJF3aNZ4yHLgwnG HIx1vGqNsZpPvZn4nJiOYLDxbSvyzvJ6YYk5ZxDyxifFocbiZpV0YdFdQrDOHfQKY9ZOS30TMYp NMVvkrLxRXepAnUuPcDHQq12v0eqsTdpAT0wBSKfUN0obohL4xqS30ds7rQyBtD X-Google-Smtp-Source: AGHT+IG9mwVMxgF7u9CJXhYmIYbKAqZtEi8lkzzYIBYMlis6b7fu6wuyWXNSxxfv+D1gGuewkW8E5g== X-Received: by 2002:a05:6830:6f82:b0:718:9f3e:6bcb with SMTP id 46e09a7af769-71e3b85e5damr2192742a34.10.1734116877764; Fri, 13 Dec 2024 11:07:57 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:07:57 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, wannacu , Pierrick Bouvier , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= , Paolo Bonzini Subject: [PULL 1/4] tcg: Reset free_temps before tcg_optimize Date: Fri, 13 Dec 2024 13:06:32 -0600 Message-ID: <20241213190750.2513964-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c2a; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org When allocating new temps during tcg_optmize, do not re-use any EBB temps that were used within the TB. We do not have any idea what span of the TB in which the temp was live. Introduce tcg_temp_ebb_reset_freed and use before tcg_optimize, as well as replacing the equivalent in plugin_gen_inject and tcg_func_start. Cc: qemu-stable@nongnu.org Fixes: fb04ab7ddd8 ("tcg/optimize: Lower TCG_COND_TST{EQ,NE} if unsupported") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2711 Reported-by: wannacu Signed-off-by: Richard Henderson Reviewed-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé --- include/tcg/tcg-temp-internal.h | 6 ++++++ accel/tcg/plugin-gen.c | 2 +- tcg/tcg.c | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/include/tcg/tcg-temp-internal.h b/include/tcg/tcg-temp-internal.h index 44192c55a9..98f91e68b7 100644 --- a/include/tcg/tcg-temp-internal.h +++ b/include/tcg/tcg-temp-internal.h @@ -42,4 +42,10 @@ TCGv_i64 tcg_temp_ebb_new_i64(void); TCGv_ptr tcg_temp_ebb_new_ptr(void); TCGv_i128 tcg_temp_ebb_new_i128(void); +/* Forget all freed EBB temps, so that new allocations produce new temps. */ +static inline void tcg_temp_ebb_reset_freed(TCGContext *s) +{ + memset(s->free_temps, 0, sizeof(s->free_temps)); +} + #endif /* TCG_TEMP_FREE_H */ diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c index 0f47bfbb48..1ef075552c 100644 --- a/accel/tcg/plugin-gen.c +++ b/accel/tcg/plugin-gen.c @@ -275,7 +275,7 @@ static void plugin_gen_inject(struct qemu_plugin_tb *plugin_tb) * that might be live within the existing opcode stream. * The simplest solution is to release them all and create new. */ - memset(tcg_ctx->free_temps, 0, sizeof(tcg_ctx->free_temps)); + tcg_temp_ebb_reset_freed(tcg_ctx); QTAILQ_FOREACH_SAFE(op, &tcg_ctx->ops, link, next) { switch (op->opc) { diff --git a/tcg/tcg.c b/tcg/tcg.c index 0babae1b88..4578b185be 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1489,7 +1489,7 @@ void tcg_func_start(TCGContext *s) s->nb_temps = s->nb_globals; /* No temps have been previously allocated for size or locality. */ - memset(s->free_temps, 0, sizeof(s->free_temps)); + tcg_temp_ebb_reset_freed(s); /* No constant temps have been previously allocated. */ for (int i = 0; i < TCG_TYPE_COUNT; ++i) { @@ -6120,6 +6120,9 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb, uint64_t pc_start) } #endif + /* Do not reuse any EBB that may be allocated within the TB. */ + tcg_temp_ebb_reset_freed(s); + tcg_optimize(s); reachable_code_pass(s); From patchwork Fri Dec 13 19:06:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907670 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B9E9E7717F for ; Fri, 13 Dec 2024 19:08:57 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB1G-0002Rz-3R; Fri, 13 Dec 2024 14:08:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1D-0002RV-Pb for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:07 -0500 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB18-0006Rq-Nj for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:07 -0500 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-71e19fee3b3so1669553a34.0 for ; Fri, 13 Dec 2024 11:08:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116880; x=1734721680; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DLUzbfuqaQK1ED8d++hVx9+Fv9mlyMdyo3cb7lVSrZY=; b=v/ZulzyKCFlFTwQvtMJ+y76ZSkgZbMXVzoLX8tIG296y/9mhoVX+1e2TBQAEF+3YSW WAlW1gJ3HlEu/Hem1jGbQmcTJuLxn0IcSkZjTotuEVe9ygilssZSJH7Jt1VZmRa9kxXV fju7RZGpTWKqytNEsqEKUbL4f5lPGZyX0IbNCVS8f4LBLEZIeY+FeMwIcHz79TO4KlH+ VFUF6H1JeFKxTgTOE7Z3BERcIxZTkJA7lOBwQPFfW5uoSEzbfiiQ/K/De7HwqOK0+fug fxyULk6SEn+rWInVzZ/C4QcxDfw6u4YRttbEMS2z95B48Cfyyq4qfwDeHhcuIszGs0n7 mGkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116880; x=1734721680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DLUzbfuqaQK1ED8d++hVx9+Fv9mlyMdyo3cb7lVSrZY=; b=hl4l6/UgsHo9mQ/baOlxYfBYhzRqew/L0tvGVbFcObu/deFk+LEYmqFmvAlyCcE67A 2mPaSAduVqePbrpR5sUM85Sr77sBPlVWZsVsbBKCqv/Y+5oFO342Zv/fMpsNgc/bsi75 amP6XQ7WmCbWQVqQzb1ce3E+3ycgcr3/a67EtXKhIM/53cRoxpBjcpDaKC3V+ZWt0AoV wWoHUyLB80WAgLRoOwN8v3BGQUkiugY579tNR/b3aKf2rW87MLiCeBcelPoi9isU/XAm NFQQ2r7KXylEZaL63dnwtxAyqY3qIYzBzLtPptnbp7GqJ4LWiY/US3JZXeDeP5nSsNBA O05g== X-Gm-Message-State: AOJu0YwV8UwX2FmXrnBRh9JIsGu9b/WWIlnpGeMQTocXjObRhigIMwQb mRhMJJHGI6Y2QshQw62V1XzMETxtkD+HtpPzwVch7GImdnlx9R+Xftw/noqibvSm7/eZF+ND+fH AVGDpHahe X-Gm-Gg: ASbGncsRYt+RSFumazPfH8djUGVG7LAubjiVeRLkLQk9VJTrmjV5YkOQnc79yDBfgz1 L2oJc/yqOBnODaCXdGTQEIHJN94gbRk07+ag/ot24NxZsV3zSqkG5vqldhJ7o2jHZB9cFcen8Wt G7B6i7f23p17uHrafv7+5+53OIL5RIC4YY3uA6PeglSVy0nNQ5HepoWiuJeJs1tpme3Rlnxmnhc 9sd39xdmWZM8mwNwHmGdt3l2PzULyAhXphQCws97htG7EOIGtM+p3d+oAHY/+6q X-Google-Smtp-Source: AGHT+IE7ee7P2jPsSBnVkjmgySOrSS4DGP4ItowfUVWBcq99cgiebxMwVDx+57KFSooRXm/Q5JVO5w== X-Received: by 2002:a05:6830:350e:b0:718:9160:a3e6 with SMTP id 46e09a7af769-71e36ab9d99mr2800232a34.0.1734116879933; Fri, 13 Dec 2024 11:07:59 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:07:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Michael Rolnik Subject: [PATCH 02/71] target/avr: Constify all Property Date: Fri, 13 Dec 2024 13:06:33 -0600 Message-ID: <20241213190750.2513964-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- target/avr/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/avr/cpu.c b/target/avr/cpu.c index 3132842d56..a7529a1b3d 100644 --- a/target/avr/cpu.c +++ b/target/avr/cpu.c @@ -149,7 +149,7 @@ static void avr_cpu_initfn(Object *obj) sizeof(cpu->env.intsrc) * 8); } -static Property avr_cpu_properties[] = { +static const Property avr_cpu_properties[] = { DEFINE_PROP_UINT32("init-sp", AVRCPU, init_sp, 0), DEFINE_PROP_END_OF_LIST() }; From patchwork Fri Dec 13 19:06:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907680 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3704BE7717F for ; Fri, 13 Dec 2024 19:11:54 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB1R-0002TT-35; Fri, 13 Dec 2024 14:08:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1O-0002Su-SI for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:18 -0500 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1F-0006Su-El for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:18 -0500 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-5f2e13cb356so1019278eaf.2 for ; Fri, 13 Dec 2024 11:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116885; x=1734721685; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mSpM/cySkQR88JEHiMbsxZTNBsH+C3Qxc74QedSJwMg=; b=XfKLNa9qZqlZX8iIMUUty/QeQGtF5zVpKLN9h6jmJUjwrQinjHIf4AOI0sPsZgmNug Y6bIzo3+Y10kJ72maPZBSywlMCmoklqeKYgTy8i08LHVTuS7uHtjlhfhBrUnA3HT4A3q BOfUKZW9K91sPkhgwsksbEOCWyJ1aIz0l5/pV9evhBvhMw65QXte451bo3IYiQqB5VlI SUs2Q6K92aboumamKus+EbEkonTSBbv8wwFs6lYsyfFhsW1qv/dGh5ZuzEBDz84e81uU sGU7tchmdeuxf5hajsJfi2iUF5LIkK59OAd8zJqGNK13zxfjkLbeNsKyLS8moa+5Ftoj ruGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116885; x=1734721685; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mSpM/cySkQR88JEHiMbsxZTNBsH+C3Qxc74QedSJwMg=; b=l93ThORlwo2/TxSuGI4qvxv4r/eEwFhphN/TaK2brItIF52gWz3f4FaoLD2HoK8UXU R4veiPEGVKZ9VrgidLcVHnk2q8eLDdQTjBdC7rYo01XoNFDjwU0NgbX+T17OmHVWY0mf nrzETfqwRB5fN+BFAFWapqqnWJA4lbvOxudcHcMI3U/bdU5egBCdgq857hTsuYYki8Xe HWsdV98bw30P18eXNtihb2JpRYZYNbDZwwiZ7RCb2JbProoyoMeAtRiAQNVes0H4GCM7 gjg5P0LJBhca7MArlFyetjP+11gJk707oPbWEzyChX03Bi4xKBlK7NI8gTOqZ/6bvU8B c1/w== X-Gm-Message-State: AOJu0YxGwJ2MKskELlhmBNR0rbdQAUHi2F0/bJMgoXnkjE7NFJ/tx99C l9P/V1EgSXWWwul/Bnwt7Bc1KAO54Lcr+wnm00VniFLlzS4YM+ttleChdMyxOXDacdgFT301/zk c+rl/X0JC X-Gm-Gg: ASbGncvGKL0vzxPxhOzjZTHb7nmzCBa3OpHRgxQxpkJA44PJ25QapaGIwQ5R2RPARsx FP/1Ls35qmMtm2wrL+PBdHYdi2I98B8WNrOyrkwrGJwkFpBG0p/VgV6Wn/B+cgthzF2uW+Vr/JB yyZPxntSKieKVXe4UmyU6dx6DWRadJ5tYM8173W9uDm0cHPMogpdGP9OXYzJPryianoHLmMrvRy FyUuGo2lLqmeJBsyr7Qa9vQrV0PquEzWLZyFK0v0Rn3XFq+1DA+QE0WJnXIdnkT X-Google-Smtp-Source: AGHT+IEaTe0uJAW1Xl0mzwP1EYUCZQb9gvn2N/T9mZEaTGRzrK2xpZi/FUgytaIxWgmBpC28bNkllQ== X-Received: by 2002:a05:6820:1844:b0:5f2:c035:9d1c with SMTP id 006d021491bc7-5f32936619bmr2336405eaf.0.1734116885093; Fri, 13 Dec 2024 11:08:05 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini Subject: [PULL 3/4] include/exec: Introduce fpst alias in helper-head.h.inc Date: Fri, 13 Dec 2024 13:06:35 -0600 Message-ID: <20241213190750.2513964-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c35; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This allows targets to declare that the helper requires a float_status pointer and instead of a generic void pointer. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/exec/helper-head.h.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/exec/helper-head.h.inc b/include/exec/helper-head.h.inc index 5ef467a79d..bce5db06ef 100644 --- a/include/exec/helper-head.h.inc +++ b/include/exec/helper-head.h.inc @@ -23,6 +23,7 @@ #define dh_alias_ptr ptr #define dh_alias_cptr ptr #define dh_alias_env ptr +#define dh_alias_fpst ptr #define dh_alias_void void #define dh_alias_noreturn noreturn #define dh_alias(t) glue(dh_alias_, t) @@ -39,6 +40,7 @@ #define dh_ctype_ptr void * #define dh_ctype_cptr const void * #define dh_ctype_env CPUArchState * +#define dh_ctype_fpst float_status * #define dh_ctype_void void #define dh_ctype_noreturn G_NORETURN void #define dh_ctype(t) dh_ctype_##t @@ -96,6 +98,7 @@ #define dh_typecode_f64 dh_typecode_i64 #define dh_typecode_cptr dh_typecode_ptr #define dh_typecode_env dh_typecode_ptr +#define dh_typecode_fpst dh_typecode_ptr #define dh_typecode(t) dh_typecode_##t #define dh_callflag_i32 0 From patchwork Fri Dec 13 19:06:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907674 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 928AAE77180 for ; Fri, 13 Dec 2024 19:09:59 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB1P-0002T2-O4; Fri, 13 Dec 2024 14:08:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1N-0002Sf-VK for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:17 -0500 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1H-0006Tf-5q for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:17 -0500 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5f2dcfc426bso502547eaf.3 for ; Fri, 13 Dec 2024 11:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116888; x=1734721688; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bDQV5UPQrrUTmFDcWju1X4JKAdBtmrkzDO3G5qiLKzA=; b=LS2yUeqTeX16QzZV2wsB8bwAIoalGZGbTWO1Xb6ZG4qmlQmCnR9NzmTR3CZAK2NPil t3UYaXpW7bppYIiL9vVkNgadojM0HSjkMT0eMfXHZepYsqpotFEXcl+yHUEw1N7goAqs tFLspprv7o/Pq53ve/YZ7pUzfOMb96GPtfHo53rZAu6HdNp+OkkeJpCZf5tzn+y4teO+ TOMF8cU5GO8BOhHVDs9ANPGElLbH7tRzTj09KMkMXrTLrXs4spjent8Tb1/X/H6nWJJP PGgYkzh6tJwcpa6AhXBLnEgdwZUJFqAuJG0P87VR89PwfjdjT/+vsDPg51Egfv/fa7dS 3Cwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116888; x=1734721688; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bDQV5UPQrrUTmFDcWju1X4JKAdBtmrkzDO3G5qiLKzA=; b=k4DW2JMUJCJ+elD72tRG00axCm857FW4qiNeBif/s/kAOnUWMKdDHmMFAyMbIG+mUz UEcUYQxnguyspOeuEffweu6NQBvI5AHL+3+EoHl7rHid8EZCq20scCsg+tHYrQMhN5A4 PS/ORGmQk/kRomryP4UIpJdETPGmarrBHmsMjg0+1VDbKvSobEVgo9UzE0MbTaQzAAGL cGIPeFfVIyK1z5FwrXUtRNSxmHl/2GDjW8P9nh/uOrx06malQu7BLC9tr9oXKnVOj7fQ XOa/KU0LjsAU9+Td8l7NrQaPYMkMIyYvh1yD6V5Zw910h7oXSVvBJopxN8fseDBGMPTU zfJw== X-Gm-Message-State: AOJu0YwEyzV3WNoyjGFxhlVEj8zeDpcS45hmTgZmu5sUoMvtXG2hqzx/ rZ9Hf+WKt7NqnOr323Qa9HoevQcQjdAzJopW5OXPWFej3brZ27cs1XFmfmsADOKIEkZjwzY1I7g CV1w+PS4Y X-Gm-Gg: ASbGncuJdPGEYdnBNPFn5SvKB0lsm2Fxxn1QXyGqMZSb2UNCm/I+hNovJEl8LYdphzm KjRVMNy7rcRj0B1aV9Xq7VBFXvp+APGnhpQAmjFEVR8vlNny2HpPEBIC6p2cYMASNIReFZaeZyr ZszNm9KvabZKK+OOtJH4F8J2horD1SKG6zhC2onR0ss9d0h6FIizmWggcdZiSGLKUwEUJkXHXa0 BL1JruxSUTWkgmIJwrnytkT05zSAUWxYcfjk9iR/bbStl4dZLiIhHZbUN7GkoWs X-Google-Smtp-Source: AGHT+IEkPLk5k0h+n05UqVoZMdKMSHDE8u8kiQgc62Pq6y9ubDgZs70scPMgC/wOsqX+pYSAiQK8Ow== X-Received: by 2002:a05:6820:1612:b0:5f2:b301:e918 with SMTP id 006d021491bc7-5f3295eacb8mr1947943eaf.2.1734116888359; Fri, 13 Dec 2024 11:08:08 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:08 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Zhao Liu Subject: [PATCH 04/71] target/i386: Constify all Property Date: Fri, 13 Dec 2024 13:06:37 -0600 Message-ID: <20241213190750.2513964-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c31; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Zhao Liu --- target/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 305f2a41cf..5253399459 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -5384,7 +5384,7 @@ static X86CPUVersion x86_cpu_model_resolve_version(const X86CPUModel *model) return v; } -static Property max_x86_cpu_properties[] = { +static const Property max_x86_cpu_properties[] = { DEFINE_PROP_BOOL("migratable", X86CPU, migratable, true), DEFINE_PROP_BOOL("host-cache-info", X86CPU, cache_info_passthrough, false), DEFINE_PROP_END_OF_LIST() @@ -8407,7 +8407,7 @@ void x86_update_hflags(CPUX86State *env) env->hflags = hflags; } -static Property x86_cpu_properties[] = { +static const Property x86_cpu_properties[] = { #ifdef CONFIG_USER_ONLY /* apic_id = 0 by default for *-user, see commit 9886e834 */ DEFINE_PROP_UINT32("apic-id", X86CPU, apic_id, 0), From patchwork Fri Dec 13 19:06:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907669 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AB209E77183 for ; Fri, 13 Dec 2024 19:08:57 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB1S-0002Tj-1c; Fri, 13 Dec 2024 14:08:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1Q-0002TI-0C for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:20 -0500 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1L-0006Tu-5m for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:19 -0500 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71e163493efso1026973a34.3 for ; Fri, 13 Dec 2024 11:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116893; x=1734721693; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jImwOjJ09GIg50zurORlHyEBWxYYv3iz1UDBPMlQCZc=; b=RYIVVx7wCoE1e+avu5fpJbCM00f+8SpJOSrFh/9OX/xYcpf8VXSCSDulPU2+86BUb+ 32wsrmciW4WQXIMUCypt5QGKvJOjap7Aof6SCnWksc2sHs+Fb9AMOyspn1GX/Oatxw9H XGvrrAAdTUnCajb+6tEbmBwVYW8JWmsLWHMe8ZXJADcEWR6WnSl7R3gBG7gbsSXE9SQ8 gSrye1+ApBB5cPEiXJB82EVPgXFnRyAh52r7ta0NEfsRnFfikFrZrDqXL9UAIXIgEHYN IAJHpzsokYwKoDJNCMK4bP7PY71G5gqTrBQ8HSBNNAIq+pwmnDoUFnacY3Et9GRKchbg aDww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116893; x=1734721693; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jImwOjJ09GIg50zurORlHyEBWxYYv3iz1UDBPMlQCZc=; b=jKoWfs1xw+vso6Z9cDlOl/qu+H7bbbQIRfuQnZkBn2f2WmAAGqWwV7oAG+H8e+2pfP 6obyO9kJHSClvIwppCXLcRliLjQ0w4vzQzKf7L50H/xmq57rv+67unFG7qjuLfOzg9ul 6RqwStyPvPIDJHVhfSLrjG0JbjnBnn3FJ9jUMZbr/nVOEfHpi95OHNJb0FB40zWT73kD smOV/cIKwFld2Y1PjbHZMkyICypbzwUA0ZA41IFM4ibLF7mvXRic6qyRdios1P5WiIwH cBYouD3mgdFaKrmVrjW6L5Iv8mprOWNyzO1Jb4GznJPrwYt2FovqUXJFwiKYQHosRJfu bxBQ== X-Gm-Message-State: AOJu0Yw0d3Rb+VIufzVF6OCEKxNytHFIJl6K9ftX9kkwXRzv+tBOWt1S wdI0c0qsfLBcym3iEy+KWCye8rmyF2HU1Q2HSpN9V3w+qs6R8534E+jEf4bHouPJgCWSgm3KVZF L7h2v23jy X-Gm-Gg: ASbGncteutGYQu0paa7+vQ+DrjEa+uCCW4F1Qqpz+C4PiCc1Zzeq1mfCNhIK5xT+oVL Ta3n1LQFvlw+W+fy7Sv37nn+3g+rwUF6pPi11sB2DC3H102TcVOPQN2+ZEyeNNz6JdQ8dLUOiCF TSdzzB3sQhe5yzdq66Yn+orDavqBxQ1Bgo2dK19bH07RkywiGavMogbwvXv+X6odmeXLYpZOaSq mAS1uKRZmW256oiSXNdVxvwbJbEb3UTQ830jFrA7YkMtckB+QwkO/NbY3izJ1rl X-Google-Smtp-Source: AGHT+IFABWsnhXiIoWGMmQAbS8lAIh6RqMdZdcNCROKnGNeRQ1ps5qgfTtWM7Ae/bjgFsPgWYJoSAg== X-Received: by 2002:a05:6830:388c:b0:71e:240a:47fe with SMTP id 46e09a7af769-71e3ba33ad3mr2014950a34.19.1734116892755; Fri, 13 Dec 2024 11:08:12 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:12 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" Subject: [PATCH 05/71] target/microblaze: Constify all Property Date: Fri, 13 Dec 2024 13:06:39 -0600 Message-ID: <20241213190750.2513964-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- target/microblaze/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c index 0e1e22d1e8..0e41e39c0e 100644 --- a/target/microblaze/cpu.c +++ b/target/microblaze/cpu.c @@ -339,7 +339,7 @@ static void mb_cpu_initfn(Object *obj) object_property_add_alias(obj, "little-endian", obj, "endianness"); } -static Property mb_properties[] = { +static const Property mb_properties[] = { /* * Following properties are used by Xilinx DTS conversion tool * do not rename them. From patchwork Fri Dec 13 19:06:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907696 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C0D09E77180 for ; Fri, 13 Dec 2024 19:16:38 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB1Z-0002Ul-9O; Fri, 13 Dec 2024 14:08:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1X-0002UN-H2 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:27 -0500 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1O-0006UJ-Db for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:27 -0500 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-71ddc7325beso207997a34.3 for ; Fri, 13 Dec 2024 11:08:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116897; x=1734721697; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=e2FaMYSRpXTA1aFa03SbQJetzuGw4zyxlsXPWwQbGKI=; b=S6WxsRBRS4xzn1nHaaS9ic2cz/TceRnRcLpefvc3gycLm++U3wEXOU7ms6iql1WhrN SEEukUjFz6ydcHfps7cG6D2eRvh8PM1mATdWjl6cZ6IXccP56YSfdMOzay/FtU+bPUFL Z9Vjve1NwhwFwn2uS8g1LqXGRaTRlnHErJESkRFjuusnXgewIeXdRgCI7HfvOyPVtBL5 1LiwV5SlnkD4z6OBVZbogtG7hWVBsnDQIoVZlqggsgREsHTauqzY0B+8F/7kR/Dg0ppC iRgQs4NZEzBf+rO0XzD2FdwXwt8pUSCQfTFzXw0BRU3rSuPedgWwaADqsQnWgFlIPb9o OeFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116897; x=1734721697; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e2FaMYSRpXTA1aFa03SbQJetzuGw4zyxlsXPWwQbGKI=; b=riDtFc03S+psHi3t/beN36vjj7PWJLDLW63Hxkn3q5YzyHZo0qPM9LUauP3Om0cN0h xoYPlEcOh1/K/55YVxJOIr1ak7FLw+PtjZbvtFq59/nwA6KnU3ykG6SH3nHYiOsk128n 2i8nCr/j+ZHQbNDI70QrCJkg3OLH0xD6LI8tJgyT6zb8GXkmvOOUyi0Vb5P3+F+vIMp5 kQGTKD3fdHWJhElNFpwn8zGQRXZS+B1SU3AUcx/gSfGnz3WsHZ+ZWS9i4LdXoZoEyPkl sSPQWohVmRr4BH/keizzvdr1ch1Ly/xetX7vGUicN0bbro2L2a6XUi1toeusKIXYCAkN 0O+Q== X-Gm-Message-State: AOJu0YyABWAhu1vEA8993STcNIettfJop6J4pb51MSiyLIXURYy1Lkvj ApCZ0yUwfxuVySTo9pMn003AWIKurnr61G3PVCuF+VX75Bfg/n3HEwPcqmd51RWFYht0zl6HsZ0 wqNbLAlDS X-Gm-Gg: ASbGncuYCjFh3FrRS+iDHxsVv2DVUO9InH7fP228A6HN6x0D+Z/YeWv9XxTErfeARzz KEogTZmHZhEv+eBG6GfiPeC9Yn6iPHNB39nfAlrHGFShX8Q/wRk6xuJwElyDkn6DQAxDOPBJTqQ VpssCJNZ4nxNmLrDcfReBhnfY3OjBQFez4X3N+MeusVEsMhiwWtwroZOoUTGgFomFWImfp/uPoa +GkTIvU2r8t50DHhZdmxuQolFj231mKjKbO4bbVAFnFzb5aX3wLJG2EJJhkZbiI X-Google-Smtp-Source: AGHT+IHvPaIqzi9nsQgAqlbVMpPUgAtYJed7d7TChM7R3MvZA2BHTevmR9LxRrfzM3OF+EtKjRCBLg== X-Received: by 2002:a05:6830:6a13:b0:71e:1fbe:db2a with SMTP id 46e09a7af769-71e3b8683dcmr2304738a34.12.1734116897208; Fri, 13 Dec 2024 11:08:17 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , Jiaxun Yang , Aleksandar Rikalo Subject: [PATCH 06/71] target/mips: Constify all Property Date: Fri, 13 Dec 2024 13:06:40 -0600 Message-ID: <20241213190750.2513964-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::329; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- target/mips/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/mips/cpu.c b/target/mips/cpu.c index 4feacc88c0..02c0e1b0f9 100644 --- a/target/mips/cpu.c +++ b/target/mips/cpu.c @@ -539,7 +539,7 @@ static const struct SysemuCPUOps mips_sysemu_ops = { }; #endif -static Property mips_cpu_properties[] = { +static const Property mips_cpu_properties[] = { DEFINE_PROP_BOOL("big-endian", MIPSCPU, is_big_endian, TARGET_BIG_ENDIAN), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907697 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 194EEE7717F for ; Fri, 13 Dec 2024 19:17:17 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2E-0002sQ-C1; Fri, 13 Dec 2024 14:09:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1j-0002VM-CM for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:40 -0500 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1Y-0006VT-7M for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:38 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e3005916aso392464a34.2 for ; Fri, 13 Dec 2024 11:08:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116905; x=1734721705; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/N1O6+KdnI0Nthc0qwwbnzGBocJ9psam8as1orMligo=; b=B9QiR2oY+6rhxt+qKsFf3jl2U12fVDRpZgF7pcTigE6cgqMxWLJ3oFUdG5zn94x9/E H2sE2CtBUtm9hqizY1eHIj7ldieVCSZbyW1U418/1UN4rsfzf4+uWVfI0VwgBYi4Qqcn O/RtYIqu2t7v1AhtTdxvfAR2zGjukGVef6hTooGgPqCyDDkN27FQRGLmopTALp3RYXzJ Qkgk3npQecOADXqpTmaam8Cz1KfDdgFkWMPUn9I3HmZe2FFRXJraxc+DIBQRYRfHRvJS 1ELTHWo9KDifIEd8yAx933hkAyxTmalD359Nj0uluFOnGyGE61xYJUM7Rp7q4LPiYFAi pWDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116905; x=1734721705; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/N1O6+KdnI0Nthc0qwwbnzGBocJ9psam8as1orMligo=; b=Tv8yP5aApUMO1kyk6FVnKqPHM33nw6b6oRrVLn3F0XMKnavXOn3TwrNee0Hp3aO6Xd 8CAcpVl6OUEkA+Zd40c6nN3A9PxHmnr9xOQmqcU4LxBO0oEHHQPJHFeDuIsLCGilROwe HlmxIAitqzsy6RZAoS7LYLEcuTVy3cFYODKpRDEx/65qmsTlboNkXvUtERaNZ5Wut2Ua /DSKoj9bWvGZiVKfoMBcYrqCN41qwMT2mPVmzZy97XGQzbpkC2el/VsF/ZzueBeK7XMW mHDdbm7FDCKcZibCZ5NGV4nZj33aO9IgM/oxaxfZaKSF2jsd3vE8ZVO2i3swZv2I7iyC 641w== X-Gm-Message-State: AOJu0YyoqSQLmcTPawThf/fQK3sAOwOAt+koly7LvRwZnIm19RZI1v75 wjj+y2oud3bK9c3zXzmDJ+w6gPf+9eIsYvQ8dIzsai5SkcZpZa2YalHj2AhFlOCP4pEpC7/wdFi eCxi9O4wl X-Gm-Gg: ASbGncuicPUqgEq5cTBHC0dQq8oMoj5Vs1IBAzEYmboMc+vWNrL1kSR1iKCanzCV07h f+/t5S1krQo/GwmrSTvajftj5HxjMwrWZSiV2SjytH1+VAiZL28+ZOPvBWAF0SSSeomaHxgMt8A ZV5j54GG/IPv0UfzIXVlO4awS4nxrNWKgaV7aSEU4UGcJdSEP+fY74QzXhmtabEKk2bLnLiL0oH pBOEabqNWhVKQi/qu2IIlXabcsjFq5no0jwEgmuz7ISwVbb4es6okVY9gjl3gJK X-Google-Smtp-Source: AGHT+IHE8OiA5O21jl1bl6r3rLUoq5bZS1aL1TbJmx+Mx8kSDE8A/boiyGC5l9ThClarUHh8ociCDA== X-Received: by 2002:a05:6830:6c12:b0:71e:5a:f4e6 with SMTP id 46e09a7af769-71e3ba24b35mr1944612a34.20.1734116904828; Fri, 13 Dec 2024 11:08:24 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:24 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Nicholas Piggin , Daniel Henrique Barboza , qemu-ppc@nongnu.org (open list:PowerPC TCG CPUs) Subject: [PATCH 07/71] target/ppc: Remove empty property list Date: Fri, 13 Dec 2024 13:06:41 -0600 Message-ID: <20241213190750.2513964-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Harsh Prateek Bora --- target/ppc/cpu_init.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index 1253dbf622..5e95790def 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -7414,11 +7414,6 @@ static void ppc_disas_set_info(CPUState *cs, disassemble_info *info) #endif } -static Property ppc_cpu_properties[] = { - /* add default property here */ - DEFINE_PROP_END_OF_LIST(), -}; - #ifndef CONFIG_USER_ONLY #include "hw/core/sysemu-cpu-ops.h" @@ -7468,7 +7463,6 @@ static void ppc_cpu_class_init(ObjectClass *oc, void *data) device_class_set_parent_unrealize(dc, ppc_cpu_unrealize, &pcc->parent_unrealize); pcc->pvr_match = ppc_pvr_match_default; - device_class_set_props(dc, ppc_cpu_properties); resettable_class_set_parent_phases(rc, NULL, ppc_cpu_reset_hold, NULL, &pcc->parent_phases); From patchwork Fri Dec 13 19:06:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907706 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81B5AE7717F for ; Fri, 13 Dec 2024 19:20:25 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2E-0002qD-4R; Fri, 13 Dec 2024 14:09:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1i-0002VL-SE for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:42 -0500 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1h-0006Xc-6m for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:38 -0500 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-71e15717a2dso933243a34.3 for ; Fri, 13 Dec 2024 11:08:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116916; x=1734721716; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bMmfxBtIiIXQAk+hQuWMNvOte8CftqHpp2z6mVglAAg=; b=PsxB3Kt1Pk8kIaIYCsx4pH3CLcCzmAfQl5wzZhRHjwv2y14bVCXrNxWcztlBvtMqoO 58jJvPb7Jn0wJeLovvy8kpVuG6To+UpTXbTqbJARQfTNsEcCNgLhnifJX0re/MJDM1nA fCXIz5S25ozjGGYHeXg0EbbXMY0kmtD1mOHEuaYN56ZTcdcrhrJ/DWzGGGY5tx8EPTeg mSgm0c28nbL4ykBAKfHGLHj+e+Bw//Xoae+2k0itRS2JeFQ/IvN6Ogk9WWkgFZaaUjcv VeMmlFfxrtC2O89CqlJeV/cJGWRZjh/FxTOBWkGJKfNgbK0fX/BbXLjVTRW7Pog7KiK2 mRoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116916; x=1734721716; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bMmfxBtIiIXQAk+hQuWMNvOte8CftqHpp2z6mVglAAg=; b=hqjqXjKQocBTGtlYRvCZCOMiXvQsCklesLD8YQvn/2W63dJBW7twQgoNGYWgQUjTp5 0mUvqfSZIdLD8aslGiwl4Jibb0RS3V7Dv8TYe0meowIdKk/GNfHrqVoF8mhx4SBgw9X7 bkhe8wUxHsgutnIX5FHut6CaPwTWT2coqkOFgzO6EgH6RPYs7VFYEcTrMVMep4PuoBXa 5boXxieSZwdq44MNLOPyET+zg6FBXor2QCHRF8LAFMvYDRvU5+DKTUr8w/6k5O87RJQn t1NXx5vVidzoKVNJdHvj+zcnXIU81EP+oKbLJpeT1jun78Bfq2SYMuyfBJpRDWeZWESr 06Fg== X-Gm-Message-State: AOJu0Ywir1CN7KxDQge4u6a/IeeMBbsrQ9/J1ZQ8f6ZGDAv2N2Uxt+EA 2xj8OWHLXXlOxrILPUP2VAUE/IIvC7rDpUJEANyyB3H9tUuFn7Ztg74cWUdNumMbXFG/MMz/izG MgvWd7Ia4 X-Gm-Gg: ASbGncusHNhXdNjHAk4aY6oDyBf6XfIeCS9TA4msFM2D84JvAHZ10irNABWZwQ04zyA HO2SYZKvyE/GbV8ft3kwOgORGFRJz+vL4EO1c755G6ZaJNUKWczeUZabTX2Vfzna+eex5kSS3Ib NuY65kBy3i6SuPxeA9bT0sJIwESZnJkCWEBH5ImgcG49JOhj6hvA8sgCFqN0DNE5jVMsmxeZB1N S80Oi7iUoRc3Uv5iBbfmnAwdWdjU3HpQ1AbpEvzXFOMYb3Rm6w7olUBVjbJLb3K X-Google-Smtp-Source: AGHT+IHR9dtrRL4g/E7x0+FRYpPWMzlKYyihfOxPXAT7iSgrm3iYxLMSyRaqRPWEIdZBAwzGSr5TAQ== X-Received: by 2002:a05:6830:380a:b0:718:a52:e1cc with SMTP id 46e09a7af769-71e3ba3a182mr2496590a34.25.1734116915785; Fri, 13 Dec 2024 11:08:35 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:35 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , qemu-riscv@nongnu.org (open list:RISC-V TCG CPUs) Subject: [PATCH 08/71] target/riscv: Constify all Property Date: Fri, 13 Dec 2024 13:06:42 -0600 Message-ID: <20241213190750.2513964-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza --- target/riscv/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 80b09952e7..4329015076 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -2661,7 +2661,7 @@ RISCVCPUImpliedExtsRule *riscv_multi_ext_implied_rules[] = { NULL }; -static Property riscv_cpu_properties[] = { +static const Property riscv_cpu_properties[] = { DEFINE_PROP_BOOL("debug", RISCVCPU, cfg.debug, true), {.name = "pmu-mask", .info = &prop_pmu_mask}, From patchwork Fri Dec 13 19:06:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907702 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63254E7717F for ; Fri, 13 Dec 2024 19:20:01 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2I-0003Di-UO; Fri, 13 Dec 2024 14:09:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1o-0002Vx-O4 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:53 -0500 Received: from mail-oo1-xc29.google.com ([2607:f8b0:4864:20::c29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1l-0006YH-Oz for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:44 -0500 Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-5f2efd94787so1261754eaf.2 for ; Fri, 13 Dec 2024 11:08:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116918; x=1734721718; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KfKmXC0aO5/KmkpGNbMSuzTs1IA6VJWmA6AglE8msBg=; b=qjWhxzLw+f1qeJgL5O8Zc3lFfp3RKZWDtvvi7yqOtsv9sr8orZIXZUsgQr9S4x62yu AMeb/m4nkItMS+Ufo/vRok1YVHtjdBM/W47xTo3aw2YqeLrZraCi9jQf4g9dBv/yNXSm 9oqePjZT7ibAEF+71SZZaKXJa8OZ7xeacaqk5WEqyjYlLBM/M/5RtCLMLfyK1Fcq7McT h6FIgE5FkxPBaU06lribmkfwKT0ht3r40B1RCUjpCts9QI0GlehF9oe6yDL19r9xA9yI TLVsX1RAMb7TAJjK/6BvNN2sMMVSkUc/lanDjDMA+RN8qEnZYr/20V4LgQ99ZLHSl6wD cA9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116918; x=1734721718; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KfKmXC0aO5/KmkpGNbMSuzTs1IA6VJWmA6AglE8msBg=; b=glTmQ5HdF0P4AZn3zw2wz8HDxWmm5TbbX6lYMmcjKRFESYttU9HgQxSl7dn0cr8MEv SlfeJbIjnMJgrDf+dMQrtmTvbsNTOvaVefLM51qLboCSRPQUh6ov3cJSNaeOtqlEVaZC OWyIdQkx2VFk0eP3ZUpXH18l2/YZAtTwk/p0Igc6kVbJ90p2Im9duxOVcDNowjA46fHp tUhfhMIv8a1cDZfjjp2KmXIph4WqahT08dextGxziuBghrU8WUcWz8gKIixLLwUuvs5A SLlfP9lZc2GSsY+iGljwzjMqXzfHIDorPX67+PHZS4gmiNrQJwYUiSc7RPffw5d8bQ7d VwAw== X-Gm-Message-State: AOJu0YzvmE5+IUwKBCXzvNbmjU3fZHGDqpm+I0Npi+a4bi3xy9o7GGez 2tcL112UvTYsSku7KLePEwiILfyom0uWrbTPXanLBKmC9i//WLTWqL+ZE8aqwKV0NgznlqzMNNl CbjtkGOIC X-Gm-Gg: ASbGnctt7sPTipTnk+dVMQqihSa8BTfxy1B574vjKfD4jETBK7S3uPPKHgXxBC8a0F8 TVuEFE/dxYLEPa9u0pVMyNHA6Q6kIUZByhkBOFBvTs18ioLP0aYhorwXLEAoQHtAasJ5lYhZapO JLEV1IYpFK+bOwEoPU1iM1fKGFEE1sTKMPWjQshredyg0mglsoY4RXzu71ymFYBQ6Mfm9C5qpzz OUoon98k9CRIEOBVb+na3BmBEbXJRWcep0ueavgqhD4IZd/pZl2E9r2SJMnRpoD X-Google-Smtp-Source: AGHT+IFBh0w3wiKDbzz+9uNaaz1zJxDy6soOwdiPtR43E72iVjvprcArmIC3+dGDij/2H8+Jeg7Y4A== X-Received: by 2002:a05:6820:1ac6:b0:5f2:9d29:2c3f with SMTP id 006d021491bc7-5f32948b437mr2513007eaf.6.1734116918140; Fri, 13 Dec 2024 11:08:38 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:37 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: David Hildenbrand , Ilya Leoshkevich , Thomas Huth , qemu-s390x@nongnu.org (open list:S390 TCG CPUs) Subject: [PATCH 09/71] target/s390x: Constify all Property Date: Fri, 13 Dec 2024 13:06:43 -0600 Message-ID: <20241213190750.2513964-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c29; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- target/s390x/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c index adb27504ad..4702761ca3 100644 --- a/target/s390x/cpu.c +++ b/target/s390x/cpu.c @@ -309,7 +309,7 @@ static const gchar *s390_gdb_arch_name(CPUState *cs) return "s390:64-bit"; } -static Property s390x_cpu_properties[] = { +static const Property s390x_cpu_properties[] = { #if !defined(CONFIG_USER_ONLY) DEFINE_PROP_UINT32("core-id", S390CPU, env.core_id, 0), DEFINE_PROP_INT32("socket-id", S390CPU, env.socket_id, -1), From patchwork Fri Dec 13 19:06:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907721 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D051DE77186 for ; Fri, 13 Dec 2024 19:24:56 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2I-0003An-IL; Fri, 13 Dec 2024 14:09:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1r-0002WK-2d for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:57 -0500 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1o-0006Yq-CI for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:46 -0500 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-71e1d6c7738so1117978a34.2 for ; Fri, 13 Dec 2024 11:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116921; x=1734721721; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JKm04qysg/gEgbm4vurn75ARW08p/MAYicuTqcRbj08=; b=StpMa9rJDZms0fqTJSqcDhdfeCIJoHKZ6dKkvjJEw80fEF4v4zcS5yGJIh4oNv+BLS Dy5q7iiSVIhkdLeZ/Nd49V0sMzmstXFQgAMvIbJYujiJrTkA8iPCQM1/WFXtcWazrLFt 8EIN8Ajo6BKPsf/PA8u8Oe5wwrKKpY0L6lZ9p9kXETcbMinefXb4yDTWHLI1YtwZBXp1 0DyN4Osdk9RKo//SeJxHyCpUkVFhNbBPEbTun8KE7W687NqdFsKBpbdNegFkVaN8rWSA 89+f9mD/3LsTWD83+3pIFOJ5nYi7zvvuNU3qTnY4Q55k0eAPEbwnykeW9ARcapI4eJzm tp/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116921; x=1734721721; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JKm04qysg/gEgbm4vurn75ARW08p/MAYicuTqcRbj08=; b=YKQCKH3b2fB3qDKy64NVeLyucE45X6NVxQMXurz26o5ym9sCyJMiigf0NMLTvFxhHD b1MMaTA4IEIsppza2YouHLr4llCCfzwJHQJYILGwnov2hpWWtToPIbKtxXJoqF8+IOLP bDu1UlGdC/CIew+XvLm7B0HpYeNaM2zq/IwiWw+ZtTLwBQuBlocxhc8zMRqIDZyaNSiZ /bHzuUQADj3/IAqMqqxDvZfyXbMblgSeYJy8UITOZUXT2D7LjOEvGr8XkinT9ZBqO1Jy BXsXzIbAZ8LfVevGfD3L8PiO+aId5QIyRI3ktb5u11yWTK0UzzomywpKusnxqmYbq2vB vrRQ== X-Gm-Message-State: AOJu0YwXEMpT7PmBSgnRb3eqf9hddP1PdOIsYjhbVRR2boDg5x7EHvmf SRd17hijqofgkuyTT+wdG39dthtW1zICVC7E+h3YivpuWEcx8k8VbtGA0C3F9V22fwvAE8xooGF t9K6IW/P4 X-Gm-Gg: ASbGnctrkB8HyRjQthqNLgAqBb41R8F4wa67CZ/jiw2/2bsmawmefjo2kA/5rAX6Pnn PcP8l5Cbxza/KgJI26d7oK/sL/MKmxn50hOJlxkQ8bXm2MgbxdUbok90eCeySGviL9heIC20MDv rPhdWzxLmM9dqWKxAvIuXHwpmyj0VXN0qZqEAPocaVRtVNDkhMbfIjA8vXa7ynsFi9OV51+G5bX tJJywHaZqkEBK1cfzN9BcjYJjy0jqox38xU+gEnUqyawZpkby6v54N5CjQIcK3G X-Google-Smtp-Source: AGHT+IEXm24ToGc6IqeKoxLAgKPqwB0T7wRd1P5z7PkcgO1t3mvypyaI6PTRDRjo/onweT80OBoifQ== X-Received: by 2002:a05:6830:6e09:b0:71d:eb02:baed with SMTP id 46e09a7af769-71e3b8576b6mr2256363a34.8.1734116921476; Fri, 13 Dec 2024 11:08:41 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Artyom Tarasenko Subject: [PATCH 10/71] target/sparc: Constify all Property and PropertyInfo Date: Fri, 13 Dec 2024 13:06:44 -0600 Message-ID: <20241213190750.2513964-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32a; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- target/sparc/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c index 284df950e0..8f494c286a 100644 --- a/target/sparc/cpu.c +++ b/target/sparc/cpu.c @@ -874,14 +874,14 @@ static void sparc_set_nwindows(Object *obj, Visitor *v, const char *name, cpu->env.def.nwindows = value; } -static PropertyInfo qdev_prop_nwindows = { +static const PropertyInfo qdev_prop_nwindows = { .name = "int", .get = sparc_get_nwindows, .set = sparc_set_nwindows, }; /* This must match feature_name[]. */ -static Property sparc_cpu_properties[] = { +static const Property sparc_cpu_properties[] = { DEFINE_PROP_BIT("float128", SPARCCPU, env.def.features, CPU_FEATURE_BIT_FLOAT128, false), #ifdef TARGET_SPARC64 From patchwork Fri Dec 13 19:06:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907679 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 440D2E77183 for ; Fri, 13 Dec 2024 19:11:23 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2G-00033r-Cj; Fri, 13 Dec 2024 14:09:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1q-0002WJ-PB for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:57 -0500 Received: from mail-oo1-xc34.google.com ([2607:f8b0:4864:20::c34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1o-0006Z2-C3 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:46 -0500 Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-5f32de85789so388683eaf.0 for ; Fri, 13 Dec 2024 11:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116922; x=1734721722; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=w2fQ0c2NIl1a5M4AWrVbc1wnQ6w0xGGZJojz6lR1rxs=; b=Sb6zc0JXs+KIhkH1aS4E3/gDPfzoS+AIUWKNFFubhsxCSW2En1bxKArLMke7cDvivQ uLdjrF+6pu0Megh5X/hw2dO3voMALcF0o1P6NbE8WryhSITPyy+OAE8MImSiVkO1qjPO kXn8DIO8hxgy6NpUWm0bI6+PtOrTYvKRZJq0oKb7Lhy6ora/ou1WJJwRuTKVUpccvXPU HpUqcKirLOwYP+auGU24jz/aa4yukx4/ZT1Bt4jHuOC8A0LeoCmBxtOc5tIyo135oT+f rReEiJ+D7iCp2dvhpmvxrEqGjyN6akhbfIhqUlJgA4978+TCE0pjQMxiUe9I1kEYN3yz QZYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116922; x=1734721722; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w2fQ0c2NIl1a5M4AWrVbc1wnQ6w0xGGZJojz6lR1rxs=; b=L6Chaxn+RCttUKyTklitpaEAeaHJSsQhP16x10VKV0+RGCjOfHvyjTKXn8IJ74yF2D PT1ITjyoruLBiAfD+Jmf+9gTSZl4pngjCoU/W2Pb8eENZ6b1WvNP2wW5qAl5794l+6oc Ft8N+v0wi8xCgDIz/vR7Va7kZi84jx0fk3H8ZxYq8RzNzTyURIBAhxRGnEH9rrd983oC NB+BOIMkA1oe3kSAjDdH2mi2JuVs7lNMTRvZzCVF7I1RVBfCY++98XZfv1d6qtKD6X0m htj699z+34BkYuSQGxHDU0KxgvE9oHO65a3vkPFFgV07357028e9aG49kwajs5uSTQh+ xvZg== X-Gm-Message-State: AOJu0YxjWS9a3A7Kjcw1ZYZ1tndx/oW2A7Pg3pP5D/4Gld0tckiQCwjT e9xVNLokblM/vS8iexG1ClMH+VECdUDV+iExEdyPhN8psoyfxTtWPdXrzmcii4YZOJtWPl7eL0/ NJTliL6cw X-Gm-Gg: ASbGncuyLkdeXtToLFx4RLSpX1ELZ9TWPl8XNmZKNfYTFwdUudYbE6TzccEsqNFPY2F eb6kxhBs0yPbs8hxEfe9WdcMi6ipMZ4Ziwr3B1HzN2WQhfN17CEUQIZfqUQNfYgU/qaHBOoyzj3 DBcevvP0YJtYMcMuUOh7w7ZFh0gdoz663BqGKt55SeNvKJUI1vRQKA5I/5xlF+VRaJzCwTQS3AK BAAKAbMmFfSL/Xegb69a5LGTNUf33qSVlx5IPOM05XLqXorL2K67LY1eHL/Fi9/ X-Google-Smtp-Source: AGHT+IHFh5nZ6gfgOuQi1f3wGPHIYnmSqtkPH0+wClGwyk8K4HQ4zySmO44hh40IMohvguE+kSoRCw== X-Received: by 2002:a05:6820:2787:b0:5f2:c5e0:453f with SMTP id 006d021491bc7-5f32b33c095mr1790797eaf.4.1734116922618; Fri, 13 Dec 2024 11:08:42 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Paolo Bonzini Subject: [PATCH 11/71] cpu-target: Constify all Property Date: Fri, 13 Dec 2024 13:06:45 -0600 Message-ID: <20241213190750.2513964-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c34; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- cpu-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu-target.c b/cpu-target.c index 499facf774..2ae07a779e 100644 --- a/cpu-target.c +++ b/cpu-target.c @@ -183,7 +183,7 @@ void cpu_exec_unrealizefn(CPUState *cpu) * This can't go in hw/core/cpu.c because that file is compiled only * once for both user-mode and system builds. */ -static Property cpu_common_props[] = { +static const Property cpu_common_props[] = { #ifdef CONFIG_USER_ONLY /* * Create a property for the user-only object, so users can From patchwork Fri Dec 13 19:06:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907725 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96C1CE7717F for ; Fri, 13 Dec 2024 19:27:56 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2K-0003MD-EB; Fri, 13 Dec 2024 14:09:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1x-0002Wa-2B for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:58 -0500 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1t-0006Zg-74 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:51 -0500 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-71e16519031so1052230a34.1 for ; Fri, 13 Dec 2024 11:08:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116925; x=1734721725; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DK3m2qrYLo1FElKLISrWyflVJNfhiEXCCTPNj+B3ktI=; b=IUwYAKCXWVg33ADuClOgHWt+XER1Oh0NjAjIJRz3BBZvhzhg4uuZAJ7ZuUwEC9EmVS xOtm8SfU/IzWD+zk44LsHq8reIRHSjECNfXZ1wsPn2ddvFsxuoJLd/GETQkCyNta9YF2 0L1GD5GBMI59WpG+T7JpluNH8vaj14a1lq2a8EJqRbjjnGgOEPHxbmRjr7LMrzq3+9ZU udGbOvJrljdw0udJ4rUva6woh0LR887pcZ4cLoQzaM0VHzf8k1n6K8qvHMD7gvT4/7oy 6mgNf9ugbd80LRJMVndM58JPGHUyK67eRMwW/slQevynNdZB2nP18vIcrmV5QI37zYe+ jlXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116925; x=1734721725; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DK3m2qrYLo1FElKLISrWyflVJNfhiEXCCTPNj+B3ktI=; b=CX/5vhXqHcxpB0VzbIDk2tD8kDLPTdcAQsQr6NwWDEZhtcokRf3VjnSy/jMaxrYahp I5ApbUMph8Jy7qjpXOqSeeovoefpz1klIo+M/dkk25tguHldTdnb4yngct57hTCViX6Y D5p3R74hVzVrVxqYxS4cAPkhIJ/SiLMoxb7353FHItm+goW1gjFWdU9hwGakNQY322a4 cwn8IjkMlzhg5vceA1o0WjCvEORb0D32XrYaQWS2k6pS0lKo5qoyB62UPotIGoAKZ8Mj qhz+IP5cnLLkx3vzX/R1yP3iyzQgedttjPMlPr60ZTPjuS9oi1rVRDqrYboaqWIvEnxc 1tqw== X-Gm-Message-State: AOJu0YwdEJnjWlRr6+0mJsJYzTlpBJqP4q6vSj2LwkRg324L8Vx8HT31 vOjDOwd4Ki9tvnxGNlqm+jlGcFDBxlB+ehpbUAyZ4AAtYjmcR+Ze92Xur85b0SAPPdiyHVB8jyA 03V8MCOKo X-Gm-Gg: ASbGncsBgZ3slaMNS6X347wVYMCWRhNHHQReEsLifHBkJJMXEomfjultlkSBWurovJA JtWmyq18BMmHuSzBXixt+CLh+vF4hY63c4rcmWyLXiGRa1T/nTbugFHcP9RGIwaId/tYuiziNaw wRoRL7STY6OqGeGsYTA0Jwj5fxa12KOk/goh7ETLlTHGfCzpr26fjrKe2AWcjeF3/u+kBCxYxq8 tHVOiC5cI9TYFzf/kkXkt6MxIBWRRCy2VcIUaKqSuWiKWp78AB0FjjfJ/uo7u4J X-Google-Smtp-Source: AGHT+IGgQJUhEEQYm3eXccexiZQ3Ka3v0ZO8L73EAZ8fhhYZUlw4lZyHEhqI6tlAZYFxfvGBhS4yJQ== X-Received: by 2002:a05:6830:6a8d:b0:71e:15f7:1a3a with SMTP id 46e09a7af769-71e3bd180fdmr1828568a34.2.1734116925411; Fri, 13 Dec 2024 11:08:45 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:45 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Greg Kurz , Christian Schoenebeck Subject: [PATCH 12/71] hw/9pfs: Constify all Property Date: Fri, 13 Dec 2024 13:06:46 -0600 Message-ID: <20241213190750.2513964-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32e; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Greg Kurz Reviewed-by: Christian Schoenebeck --- hw/9pfs/virtio-9p-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index efa41cfd73..b764e4cd3d 100644 --- a/hw/9pfs/virtio-9p-device.c +++ b/hw/9pfs/virtio-9p-device.c @@ -243,7 +243,7 @@ static const VMStateDescription vmstate_virtio_9p = { }, }; -static Property virtio_9p_properties[] = { +static const Property virtio_9p_properties[] = { DEFINE_PROP_STRING("mount_tag", V9fsVirtioState, state.fsconf.tag), DEFINE_PROP_STRING("fsdev", V9fsVirtioState, state.fsconf.fsdev_id), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:06:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907690 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D14EE77180 for ; Fri, 13 Dec 2024 19:14:50 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2K-0003JR-4N; Fri, 13 Dec 2024 14:09:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB1x-0002WZ-1M for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:58 -0500 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1u-0006a7-8N for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:52 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e3cbd0583so199163a34.1 for ; Fri, 13 Dec 2024 11:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116928; x=1734721728; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CZ5o+wK3lUFPQSBeOoH6IwFw54AejBcTfhRb5vaU2tQ=; b=AreI7Tk7bteZVfF/PRMFP3SBQqw8UQDACiChUJNVR6gtASVMIpmjKKR2vwKo8buQkP 7LynT9Ene+GbMe4fwIcUjbfSfL0ZEjbQnpYwlOcEv4tlkaufXoyAJh5NkK7XEy3bYtmy FFDfOM9PpgbnYXDwhtAaMaPduRGyta14zFqvgrafy0vHyosprfaGHvks6b/Z3N9GCKst ZLeRVc043ZzxE24hhkrRBiWpNaNng5yMOP5bJ8IeE5n9lVvzUlnYmlv1F8+XLgvRLfFZ H6FYTqAuXx0LO3eLyxKO+0o4822tDgJX0cOfgOF35mChQlZOW61MEcPR7gNT19wIJheb wR8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116928; x=1734721728; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CZ5o+wK3lUFPQSBeOoH6IwFw54AejBcTfhRb5vaU2tQ=; b=M7YeSP3bxG+sb6tuKEuTkZ5aRHrs9olWvx7g68nAqoQiwiFlV9gij4ROzNMWr9i35S I4Xc7qY4jw7djbKqtGWuHsVq8J1jQFzDNVGI736anylfNTxPAUjI9rLyfAhXHybJeE/G 8wRzKYFv50EWJmizoxLPrkmSxJuzPAsf96jMCaQjaV7v43Ea/ZeBYfyMka8CimA8DK22 ZQCsngjAfscSJeuf7JXDUNDrwClkIjuw5wEtewhsgZ9aBpzWVTUFOrE2oSieJkG6Ylxi YYDfeYTroABH5G/75JojXllu6ojIxaOfVrz1Ia+Mk8DJfllveJbzqDhevBPeyH2Lez6y 47ew== X-Gm-Message-State: AOJu0YwnVn+Rm3LtB4f0BU+6n5/DPIt3SwfbqSK5VfTBIAZq9YEgIuS6 vOgW5w9Nj749Qi1TE7aMFApkx/LpsggSPVfzHrcLCG7DSk9SnxFVSXmsVxhD74KOk/13p99VKPx cRgRsgeh3 X-Gm-Gg: ASbGncs2D4OwyXzEdKF0eEyutNC9yU7VYpjCGnubl+CVZYS0pXlak0RuaUORH/HBkUq zocJSA2OPxn0etxsuhaGVKz/NEVkUtLqNIlTzFfoTE4fqWP5R1JDSyrGcxJFyfD+DwSndcAbeNv 3B8mehTfDREfvSc7xpoIa4J7iCmP18K6T+q/pUmAnP1TPCioqqrNd9carWZ8RrsVS9TMFKeFI5g wk8wGXuJAlN9yHcaWqibXwKLY70nMwWjPyfZpvcxkzsOUnoftcklQ2UHQYWS34k X-Google-Smtp-Source: AGHT+IHOJPtgViTttcUfFvw76b0ckdZVIlX7g224egEIPf3HEZnH2BdQAgE5qOd2b9N2tJT77qrnzg== X-Received: by 2002:a05:6830:917:b0:718:1163:ef8f with SMTP id 46e09a7af769-71e3b812c59mr2293190a34.2.1734116928405; Fri, 13 Dec 2024 11:08:48 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Igor Mammedov , Ani Sinha , Marcel Apfelbaum , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?q?aud=C3=A9?= , Aurelien Jarno Subject: [PATCH 13/71] hw/acpi: Constify all Property Date: Fri, 13 Dec 2024 13:06:47 -0600 Message-ID: <20241213190750.2513964-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/acpi/erst.c | 2 +- hw/acpi/generic_event_device.c | 2 +- hw/acpi/piix4.c | 2 +- hw/acpi/vmgenid.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/acpi/erst.c b/hw/acpi/erst.c index a108cfe49b..5ef5ddccb6 100644 --- a/hw/acpi/erst.c +++ b/hw/acpi/erst.c @@ -1011,7 +1011,7 @@ static void erst_reset(DeviceState *dev) trace_acpi_erst_reset_out(le32_to_cpu(s->header->record_count)); } -static Property erst_properties[] = { +static const Property erst_properties[] = { DEFINE_PROP_LINK(ACPI_ERST_MEMDEV_PROP, ERSTDeviceState, hostmem, TYPE_MEMORY_BACKEND, HostMemoryBackend *), DEFINE_PROP_UINT32(ACPI_ERST_RECORD_SIZE_PROP, ERSTDeviceState, diff --git a/hw/acpi/generic_event_device.c b/hw/acpi/generic_event_device.c index 663d9cb093..8c4706f8cf 100644 --- a/hw/acpi/generic_event_device.c +++ b/hw/acpi/generic_event_device.c @@ -316,7 +316,7 @@ static void acpi_ged_send_event(AcpiDeviceIf *adev, AcpiEventStatusBits ev) qemu_irq_pulse(s->irq); } -static Property acpi_ged_properties[] = { +static const Property acpi_ged_properties[] = { DEFINE_PROP_UINT32("ged-event", AcpiGedState, ged_event_bitmap, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c index 1de3fe3261..2bfaf5a38d 100644 --- a/hw/acpi/piix4.c +++ b/hw/acpi/piix4.c @@ -602,7 +602,7 @@ static void piix4_send_gpe(AcpiDeviceIf *adev, AcpiEventStatusBits ev) acpi_send_gpe_event(&s->ar, s->irq, ev); } -static Property piix4_pm_properties[] = { +static const Property piix4_pm_properties[] = { DEFINE_PROP_UINT32("smb_io_base", PIIX4PMState, smb_io_base, 0), DEFINE_PROP_UINT8(ACPI_PM_PROP_S3_DISABLED, PIIX4PMState, disable_s3, 0), DEFINE_PROP_UINT8(ACPI_PM_PROP_S4_DISABLED, PIIX4PMState, disable_s4, 0), diff --git a/hw/acpi/vmgenid.c b/hw/acpi/vmgenid.c index e63c8af4c3..9c2ca85cc7 100644 --- a/hw/acpi/vmgenid.c +++ b/hw/acpi/vmgenid.c @@ -214,7 +214,7 @@ static void vmgenid_realize(DeviceState *dev, Error **errp) vmgenid_update_guest(vms); } -static Property vmgenid_device_properties[] = { +static const Property vmgenid_device_properties[] = { DEFINE_PROP_UUID(VMGENID_GUID, VmGenIdState, guid), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907678 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19810E7717F for ; Fri, 13 Dec 2024 19:11:22 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2O-0003Vd-4y; Fri, 13 Dec 2024 14:09:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB22-0002c0-Qn for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:06 -0500 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB1w-0006ar-PY for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:08:55 -0500 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-71e287897ceso1220974a34.0 for ; Fri, 13 Dec 2024 11:08:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116931; x=1734721731; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5MVjQ/sFVZOHfVsO0iGOMYvfVDMa5zTFWs8lXg66XlI=; b=hCN/N+HrrjL1pw/PSd7fRHiTVJTbKiM0ihecyIHzwusutuMOQidTwJtuMxWlEByxPs vTn2OmLgfV+X+60IKVaVlqilNQnFp7Muow4Oz6RoVyb8GAW12qQBCK9d9iD9ksGAksF0 lIFqsR/RKgV7g0rU7Vv2cHAAxbXuUfzer8IBM1srgK9kIX8qvDVdl4phkVfz9+YILJM6 wsamUGqjQPpZWGkaEctE1X77/XYaCjHojlonXLl+FmhZBM4K9aqu8T8mT5+x4jVkNbi+ 4Hxrih/NhLIcVkFYjmKkkelDs0y16fviU2ZDuzcyIIkdk2MiZBnfDHz3da3tcAbyOpIK eK2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116931; x=1734721731; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5MVjQ/sFVZOHfVsO0iGOMYvfVDMa5zTFWs8lXg66XlI=; b=JWZzlWK6qK6+6vCKQcRIjsq3PEKUg0FU6ziZsJAkEAilNSplEA3VWreJKQB1ceMkjb 1fEepEiXog7QoCBKEg8dXZM4/FcQZcsjA2bfPW6QCHShCVuX5pWLQYnHcAJ1Q1FXWsox Snbq4UJC3cFsgGXj4+t1xj3HRwhQAUyZAJtd2duZdiTpDcwlsWpmbcDl5sbDtSgqKH8O 4t8UZfKmSRBMOxaFok90cL4Tpo2fGbBBvTE9jx9IhcvT7BGkGkNsx28aaWam4dFC6s6q 7UNlJWgjPNr5QKPQ4UOhOSGFPdRD3nXzGCWaJB3ysHrmo+Pp0Xwo0z4yOIC4T5hwRNmd ev4Q== X-Gm-Message-State: AOJu0Ywh/RzJhvcg2ciZb/Ed6Tg74FFpSzi5K4kTh048+PSWATtn1Nyq TqsGds8WwAcvsSm31Vprf7tgZeJR6nNITGCuoShg3K8JWsG+gHX1hLp8lB7StbEGM99LgkPvfaJ V2b/OuYz7 X-Gm-Gg: ASbGncvmzrJw54bJwyBteSk1kzu4b3Ut6+8bxSdUqNKNr1dQ81iXvXcwVzxsasDtnbh Xx0ygboRY1BORlVUR97b/dU8/P4aciF0/FhWV5tQMyc1do2EPrkBcb+ul+yXQ566nBcrm34zBhE P8NB5IW6KEAGqoWpjolQOYTfIPtnHaOdvjupvTjHlZKOFfVGy4y4N7E+zZJSFrgpeTqpwy3l1ES Je5W6M4PFmWIfkWwBxTyPyh65EbKGa5UD7GS5mgti4mz4xTuaSd1jHSdToRECxB X-Google-Smtp-Source: AGHT+IGHxpW0xETVO76hYVRGR+PgWhToRQ5dmf9i43wK4VWcG/pMNqdJ88vnJ5LoJu433qRBwRFChg== X-Received: by 2002:a05:6830:498e:b0:71d:eee3:fd1a with SMTP id 46e09a7af769-71e3b5bcfd6mr2358437a34.0.1734116930999; Fri, 13 Dec 2024 11:08:50 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:50 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alistair Francis , Peter Maydell , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Tyrone Ting , Hao Wu , qemu-arm@nongnu.org (open list:STM32F205) Subject: [PATCH 14/71] hw/adc: Constify all Property Date: Fri, 13 Dec 2024 13:06:48 -0600 Message-ID: <20241213190750.2513964-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::331; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater --- hw/adc/aspeed_adc.c | 2 +- hw/adc/npcm7xx_adc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/adc/aspeed_adc.c b/hw/adc/aspeed_adc.c index 598f2bdf48..f94c6f2be3 100644 --- a/hw/adc/aspeed_adc.c +++ b/hw/adc/aspeed_adc.c @@ -286,7 +286,7 @@ static const VMStateDescription vmstate_aspeed_adc_engine = { } }; -static Property aspeed_adc_engine_properties[] = { +static const Property aspeed_adc_engine_properties[] = { DEFINE_PROP_UINT32("engine-id", AspeedADCEngineState, engine_id, 0), DEFINE_PROP_UINT32("nr-channels", AspeedADCEngineState, nr_channels, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/adc/npcm7xx_adc.c b/hw/adc/npcm7xx_adc.c index de8469dae4..1781ff4c0b 100644 --- a/hw/adc/npcm7xx_adc.c +++ b/hw/adc/npcm7xx_adc.c @@ -267,7 +267,7 @@ static const VMStateDescription vmstate_npcm7xx_adc = { }, }; -static Property npcm7xx_timer_properties[] = { +static const Property npcm7xx_timer_properties[] = { DEFINE_PROP_UINT32("iref", NPCM7xxADCState, iref, NPCM7XX_ADC_DEFAULT_IREF), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907676 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96C3BE77180 for ; Fri, 13 Dec 2024 19:10:13 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2W-0003h4-FK; Fri, 13 Dec 2024 14:09:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2J-0003Gx-In for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB22-0006bU-HU for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-71e19fee3b3so1670011a34.0 for ; Fri, 13 Dec 2024 11:08:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116935; x=1734721735; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LscTgJ5P5TtEk/dzbWNj9LwdfZF1GUDxnwbVdr9OdtQ=; b=GwK7lDrUTcJ136FmZ6EVvIFdPeYAocA8BmX4vmuH4jcjjMdaE+KW9x1ME3GqGQ4jqN luUWsuQgpOYZlxxexTho1ZAU5W8dlGr6Y961bMQP1mItebv+oxby5QVwK+ly/VB6v08f c1Vo9T3/9M94pPlxwKajFPc0AoxGyEvofC1PqHaG9S17uoL98OU+ZhK1Zd+96SFIT79g fKaVi4wexJbo9fnWAJdnA6fz5E9rCco+5otsdqbGxIkmrk0Ky9U1RJJDgJeMT54jc5FI f6eOJhWidJ2QHcU4kp6AldaaB4GlAotSmPeckuFsmgWjgJF1vUg/4rICqXwiBjgyDycP NorQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116935; x=1734721735; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LscTgJ5P5TtEk/dzbWNj9LwdfZF1GUDxnwbVdr9OdtQ=; b=hF2wqKbIllYR+SEkIT2x79zGbz64CrSMAedB3XCbLMlBdvfKdBP4OQArKlv77z2OSO F+rXTkPO6Mr9iZ/BcjbldhCXGAiXz492603hTQKizCt/MnW/LUaNbeDsvvGQVuSlxjWK gZlC4yKMuDIweqCZ1J3G7FPBnN2smyhB9Oy1DPCdJ8aen3EzspRhR5Fueft4WSZ4N6lr 4IYRDFO1+1vjbjaKWRSBslN7Txh6DNHFF/xF5XQR8CHwK8UjX4B52lrrYgVBWSbUC0Cj /opB46pkjW3kH2inkuGsYa7FN7MYxQORwsL6XWdg1Ky9qe6oqX7l7yirldBbRwlMOWLT XPrA== X-Gm-Message-State: AOJu0Yxhhyz0XmJ704932g1H8RIMXcrkeRLnyTfzpe6q/b2gHlEpNrTh nGUSjikMShmtpzGicFKrtbdLlxQnF2GSUc6YNF0YCNqh2H1XlQRXBPmIYec8NljgxXane2L3ZVS kgBMLo00l X-Gm-Gg: ASbGncsYvAtEKdey5ZObim3E/Pp/Utf73aQU3oyteRcCb2rpi5WHbHYoUEnyBlrBIMk BTtLg0ryHNN6R1flWmHzrLB+LP9gogvTqHiKF+nJAXrEZPjWsqzehWGBrydBGOKtL25WtEwuQvR semPEfBRpf82ILqPQtiu9K1QNMwGtW4/6UI8YW4PO22q0jI15SNpaymnkgDxaYln3wdSmKPSIJq QscMI+7AumpWzt1afSKp5zodhKRPBPDwwjI69skHZgKusVFeYJpcQrb4xgTg2Dj X-Google-Smtp-Source: AGHT+IFD1m4jljTLq0is0U9rb732ZxoxOYIBX8G5AduldRL1nx945bZMoojnPoPvGq0WKO3S93Xvow== X-Received: by 2002:a05:6830:2107:b0:709:3a3d:6cca with SMTP id 46e09a7af769-71e3be4782fmr1767368a34.11.1734116933764; Fri, 13 Dec 2024 11:08:53 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Maydell , =?utf-8?q?C=C3=A9dric_Le_Goate?= =?utf-8?q?r?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Jean-Christophe Dubois , Andrey Smirnov , Subbaraya Sundeep , Tyrone Ting , Hao Wu , Eric Auger , Alistair Francis , "Edgar E. Iglesias" , qemu-arm@nongnu.org (open list:MPS2 / MPS3) Subject: [PATCH 15/71] hw/arm: Constify all Property Date: Fri, 13 Dec 2024 13:06:49 -0600 Message-ID: <20241213190750.2513964-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater --- hw/arm/armsse.c | 8 ++++---- hw/arm/armv7m.c | 4 ++-- hw/arm/aspeed_soc_common.c | 2 +- hw/arm/bcm2836.c | 2 +- hw/arm/fsl-imx25.c | 2 +- hw/arm/fsl-imx6.c | 2 +- hw/arm/fsl-imx6ul.c | 2 +- hw/arm/fsl-imx7.c | 2 +- hw/arm/integratorcp.c | 2 +- hw/arm/msf2-soc.c | 2 +- hw/arm/npcm7xx.c | 2 +- hw/arm/nrf51_soc.c | 2 +- hw/arm/smmu-common.c | 2 +- hw/arm/smmuv3.c | 2 +- hw/arm/stellaris.c | 2 +- hw/arm/strongarm.c | 2 +- hw/arm/xlnx-versal.c | 2 +- hw/arm/xlnx-zynqmp.c | 2 +- 18 files changed, 22 insertions(+), 22 deletions(-) diff --git a/hw/arm/armsse.c b/hw/arm/armsse.c index 58ed504b2b..1cd6b4a4b2 100644 --- a/hw/arm/armsse.c +++ b/hw/arm/armsse.c @@ -72,12 +72,12 @@ struct ARMSSEInfo { bool has_cpu_pwrctrl; bool has_sse_counter; bool has_tcms; - Property *props; + const Property *props; const ARMSSEDeviceInfo *devinfo; const bool *irq_is_common; }; -static Property iotkit_properties[] = { +static const Property iotkit_properties[] = { DEFINE_PROP_LINK("memory", ARMSSE, board_memory, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("EXP_NUMIRQ", ARMSSE, exp_numirq, 64), @@ -90,7 +90,7 @@ static Property iotkit_properties[] = { DEFINE_PROP_END_OF_LIST() }; -static Property sse200_properties[] = { +static const Property sse200_properties[] = { DEFINE_PROP_LINK("memory", ARMSSE, board_memory, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("EXP_NUMIRQ", ARMSSE, exp_numirq, 64), @@ -107,7 +107,7 @@ static Property sse200_properties[] = { DEFINE_PROP_END_OF_LIST() }; -static Property sse300_properties[] = { +static const Property sse300_properties[] = { DEFINE_PROP_LINK("memory", ARMSSE, board_memory, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("EXP_NUMIRQ", ARMSSE, exp_numirq, 64), diff --git a/hw/arm/armv7m.c b/hw/arm/armv7m.c index 7c68525a9e..e20f719c9b 100644 --- a/hw/arm/armv7m.c +++ b/hw/arm/armv7m.c @@ -538,7 +538,7 @@ static void armv7m_realize(DeviceState *dev, Error **errp) } } -static Property armv7m_properties[] = { +static const Property armv7m_properties[] = { DEFINE_PROP_STRING("cpu-type", ARMv7MState, cpu_type), DEFINE_PROP_LINK("memory", ARMv7MState, board_memory, TYPE_MEMORY_REGION, MemoryRegion *), @@ -631,7 +631,7 @@ void armv7m_load_kernel(ARMCPU *cpu, const char *kernel_filename, qemu_register_reset(armv7m_reset, cpu); } -static Property bitband_properties[] = { +static const Property bitband_properties[] = { DEFINE_PROP_UINT32("base", BitBandState, base, 0), DEFINE_PROP_LINK("source-memory", BitBandState, source_memory, TYPE_MEMORY_REGION, MemoryRegion *), diff --git a/hw/arm/aspeed_soc_common.c b/hw/arm/aspeed_soc_common.c index a5ff33c46d..4221cacd51 100644 --- a/hw/arm/aspeed_soc_common.c +++ b/hw/arm/aspeed_soc_common.c @@ -139,7 +139,7 @@ static bool aspeed_soc_boot_from_emmc(AspeedSoCState *s) return false; } -static Property aspeed_soc_properties[] = { +static const Property aspeed_soc_properties[] = { DEFINE_PROP_LINK("dram", AspeedSoCState, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_LINK("memory", AspeedSoCState, memory, TYPE_MEMORY_REGION, diff --git a/hw/arm/bcm2836.c b/hw/arm/bcm2836.c index 40a379bc36..95e16806fa 100644 --- a/hw/arm/bcm2836.c +++ b/hw/arm/bcm2836.c @@ -18,7 +18,7 @@ #include "target/arm/cpu-qom.h" #include "target/arm/gtimer.h" -static Property bcm2836_enabled_cores_property = +static const Property bcm2836_enabled_cores_property = DEFINE_PROP_UINT32("enabled-cpus", BCM283XBaseState, enabled_cpus, 0); static void bcm283x_base_init(Object *obj) diff --git a/hw/arm/fsl-imx25.c b/hw/arm/fsl-imx25.c index 5ed87edfe4..48763b03fe 100644 --- a/hw/arm/fsl-imx25.c +++ b/hw/arm/fsl-imx25.c @@ -309,7 +309,7 @@ static void fsl_imx25_realize(DeviceState *dev, Error **errp) &s->iram_alias); } -static Property fsl_imx25_properties[] = { +static const Property fsl_imx25_properties[] = { DEFINE_PROP_UINT32("fec-phy-num", FslIMX25State, phy_num, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c index 85748cb233..236d15bc9c 100644 --- a/hw/arm/fsl-imx6.c +++ b/hw/arm/fsl-imx6.c @@ -481,7 +481,7 @@ static void fsl_imx6_realize(DeviceState *dev, Error **errp) &s->ocram_alias); } -static Property fsl_imx6_properties[] = { +static const Property fsl_imx6_properties[] = { DEFINE_PROP_UINT32("fec-phy-num", FslIMX6State, phy_num, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/arm/fsl-imx6ul.c b/hw/arm/fsl-imx6ul.c index 19f443570b..1e0bbbb5d7 100644 --- a/hw/arm/fsl-imx6ul.c +++ b/hw/arm/fsl-imx6ul.c @@ -718,7 +718,7 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp) FSL_IMX6UL_OCRAM_ALIAS_ADDR, &s->ocram_alias); } -static Property fsl_imx6ul_properties[] = { +static const Property fsl_imx6ul_properties[] = { DEFINE_PROP_UINT32("fec1-phy-num", FslIMX6ULState, phy_num[0], 0), DEFINE_PROP_UINT32("fec2-phy-num", FslIMX6ULState, phy_num[1], 1), DEFINE_PROP_BOOL("fec1-phy-connected", FslIMX6ULState, phy_connected[0], diff --git a/hw/arm/fsl-imx7.c b/hw/arm/fsl-imx7.c index 9f2ef34555..0310c15b0c 100644 --- a/hw/arm/fsl-imx7.c +++ b/hw/arm/fsl-imx7.c @@ -736,7 +736,7 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp) &s->caam); } -static Property fsl_imx7_properties[] = { +static const Property fsl_imx7_properties[] = { DEFINE_PROP_UINT32("fec1-phy-num", FslIMX7State, phy_num[0], 0), DEFINE_PROP_UINT32("fec2-phy-num", FslIMX7State, phy_num[1], 1), DEFINE_PROP_BOOL("fec1-phy-connected", FslIMX7State, phy_connected[0], diff --git a/hw/arm/integratorcp.c b/hw/arm/integratorcp.c index feb0dd63df..ee6c7e0c0d 100644 --- a/hw/arm/integratorcp.c +++ b/hw/arm/integratorcp.c @@ -694,7 +694,7 @@ static void integratorcp_machine_init(MachineClass *mc) DEFINE_MACHINE("integratorcp", integratorcp_machine_init) -static Property core_properties[] = { +static const Property core_properties[] = { DEFINE_PROP_UINT32("memsz", IntegratorCMState, memsz, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/arm/msf2-soc.c b/hw/arm/msf2-soc.c index c4999ebce3..5d7c3f2e5a 100644 --- a/hw/arm/msf2-soc.c +++ b/hw/arm/msf2-soc.c @@ -222,7 +222,7 @@ static void m2sxxx_soc_realize(DeviceState *dev_soc, Error **errp) create_unimplemented_device("usb", 0x40043000, 0x1000); } -static Property m2sxxx_soc_properties[] = { +static const Property m2sxxx_soc_properties[] = { /* * part name specifies the type of SmartFusion2 device variant(this * property is for information purpose only. diff --git a/hw/arm/npcm7xx.c b/hw/arm/npcm7xx.c index af04c4b7ec..2960b63b59 100644 --- a/hw/arm/npcm7xx.c +++ b/hw/arm/npcm7xx.c @@ -810,7 +810,7 @@ static void npcm7xx_realize(DeviceState *dev, Error **errp) create_unimplemented_device("npcm7xx.spix", 0xfb001000, 4 * KiB); } -static Property npcm7xx_properties[] = { +static const Property npcm7xx_properties[] = { DEFINE_PROP_LINK("dram-mr", NPCM7xxState, dram, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/arm/nrf51_soc.c b/hw/arm/nrf51_soc.c index ac53441630..43fac8a8db 100644 --- a/hw/arm/nrf51_soc.c +++ b/hw/arm/nrf51_soc.c @@ -208,7 +208,7 @@ static void nrf51_soc_init(Object *obj) s->sysclk = qdev_init_clock_in(DEVICE(s), "sysclk", NULL, NULL, 0); } -static Property nrf51_soc_properties[] = { +static const Property nrf51_soc_properties[] = { DEFINE_PROP_LINK("memory", NRF51State, board_memory, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("sram-size", NRF51State, sram_size, NRF51822_SRAM_SIZE), diff --git a/hw/arm/smmu-common.c b/hw/arm/smmu-common.c index 3f82728758..6baa9d0fc3 100644 --- a/hw/arm/smmu-common.c +++ b/hw/arm/smmu-common.c @@ -934,7 +934,7 @@ static void smmu_base_reset_hold(Object *obj, ResetType type) g_hash_table_remove_all(s->iotlb); } -static Property smmu_dev_properties[] = { +static const Property smmu_dev_properties[] = { DEFINE_PROP_UINT8("bus_num", SMMUState, bus_num, 0), DEFINE_PROP_LINK("primary-bus", SMMUState, primary_bus, TYPE_PCI_BUS, PCIBus *), diff --git a/hw/arm/smmuv3.c b/hw/arm/smmuv3.c index 6e847e8773..026838f9ac 100644 --- a/hw/arm/smmuv3.c +++ b/hw/arm/smmuv3.c @@ -1976,7 +1976,7 @@ static const VMStateDescription vmstate_smmuv3 = { } }; -static Property smmuv3_properties[] = { +static const Property smmuv3_properties[] = { /* * Stages of translation advertised. * "1": Stage 1 diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index 376746251e..7fc13d96c9 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -438,7 +438,7 @@ static const VMStateDescription vmstate_stellaris_sys = { } }; -static Property stellaris_sys_properties[] = { +static const Property stellaris_sys_properties[] = { DEFINE_PROP_UINT32("user0", ssys_state, user0, 0), DEFINE_PROP_UINT32("user1", ssys_state, user1, 0), DEFINE_PROP_UINT32("did0", ssys_state, did0, 0), diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c index 612115ab5b..4c4ff21e80 100644 --- a/hw/arm/strongarm.c +++ b/hw/arm/strongarm.c @@ -1332,7 +1332,7 @@ static const VMStateDescription vmstate_strongarm_uart_regs = { }, }; -static Property strongarm_uart_properties[] = { +static const Property strongarm_uart_properties[] = { DEFINE_PROP_CHR("chardev", StrongARMUARTState, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/arm/xlnx-versal.c b/hw/arm/xlnx-versal.c index 3a1e2e29f1..3adbe7b1fb 100644 --- a/hw/arm/xlnx-versal.c +++ b/hw/arm/xlnx-versal.c @@ -968,7 +968,7 @@ static void versal_init(Object *obj) "mr-rpu-ps-alias", &s->mr_ps, 0, UINT64_MAX); } -static Property versal_properties[] = { +static const Property versal_properties[] = { DEFINE_PROP_LINK("ddr", Versal, cfg.mr_ddr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_LINK("canbus0", Versal, lpd.iou.canbus[0], diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index ab2d50e31b..1082c62c30 100644 --- a/hw/arm/xlnx-zynqmp.c +++ b/hw/arm/xlnx-zynqmp.c @@ -857,7 +857,7 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) } } -static Property xlnx_zynqmp_props[] = { +static const Property xlnx_zynqmp_props[] = { DEFINE_PROP_STRING("boot-cpu", XlnxZynqMPState, boot_cpu), DEFINE_PROP_BOOL("secure", XlnxZynqMPState, secure, false), DEFINE_PROP_BOOL("virtualization", XlnxZynqMPState, virt, false), From patchwork Fri Dec 13 19:06:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907737 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 151DCE7717F for ; Fri, 13 Dec 2024 19:31:45 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB33-0004WS-JV; Fri, 13 Dec 2024 14:10:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2J-0003Gy-Ie for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB22-0006bi-K9 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3eb9de518e2so751518b6e.2 for ; Fri, 13 Dec 2024 11:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116936; x=1734721736; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WPVKWgGGlxNMwJ/5ikAY8qQoL1FGwCZ0ZC/Ic6OB61c=; b=Umt6+CUXQT5runt/quR0craxg7rrNJnp3wqAwfbce8fRoeDX2Rr7LaFyq1TJjA7TC1 OEzturid4z0iPikBvCEszZVC1NdHRtQhVK9HGYxkbwinLFr+jRm3ezZatpfuySgYpotj MrO1kvRVz/K8lGYRs74XuqCGcypExa1SNd4BqXQ0+ztDZhX3zBW10Yg9kaX090pab5Mq bwIFryPhcNDoWQnPdJ/jregO03bgsD4MJxQp5CkyshJRUj6qfeiJlGPAittTZa5oKxcb YX+rrpsMc0ByNEh7ps6fyzQYXQglmldSiMOmmVUvJKMfAOF/fLqgTEmGVyjOY6W9Jr9Q z+rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116936; x=1734721736; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WPVKWgGGlxNMwJ/5ikAY8qQoL1FGwCZ0ZC/Ic6OB61c=; b=V2umZxRdAO04dB7BMrdcBAw02FXfzsNZ5PWePYMvcx7cMuqNXwDbiWST/GdDzLjr+K PzcgGYDAxhN0kpS8NmfmXSgURLwF5TEozMh6NXZMhCluZ3+cXfpOM3CmNubXOgl2UYhW 5M++Vxne8DzZvURrMM4jWj4TgQkwPkNXUOlCopMGjI/VAe32JojlA59xq/YIH83z1k0d KvSW6hcnQnH/grTgn1D7aHRSQl9A7o+mnX/kIMk/jwPhpnaibtAyfF3Wg47NijQNzyrB 0qeStJ9B8J17nO/pRmxh4vYBnueyRODxkVnMYz0aS8MdBVUnkT2Y56MECuziP8iIj3Y4 xCPg== X-Gm-Message-State: AOJu0Yz+vK19Umi1tgdTCLPv6yGSXur1X5Lg82Sd/gxy0BaVBCnVdxU6 61vm2QP6yO7kdi4G748qZ0JTHgNQsJ3zWs6ntwSlSgh+zmXhDgl1cdgphPO8t/mrJ2nTUqS3hV7 VeSx95sCc X-Gm-Gg: ASbGncv93Kn5pHqOP2AS+1iq9P/J94hHN1n8LK0sGbKhysqHt3TqbsQqcGbJcAeLFOo TOfU8Q8jHGKwsO9qpTdNIyamez888VzhHNC/ZYwDhWk9fTdDQAiuawpA+IMQS1Hw0Yu+LZnE4uz bYaCmRwd4FVSUXWLl7gZMjV0zisMKI2DQjnt5Fsw7SNEpe26uX0aMTybmUB/abC96ETk2GxJyUr ZMlbRJi+vfx6SBcE/4SpR5MeIfa39KG06+rqb14S7rXMkJF+MBh4Y1EENWnh3t9 X-Google-Smtp-Source: AGHT+IHqmqm/BgKYlJCaxgNZv3mbBU5PS1tBPWK2PHAnbl+Un4w4Ky7Z7I6UX9KlSVaDpgtVFjbD6Q== X-Received: by 2002:a05:6808:198e:b0:3eb:3b6e:a731 with SMTP id 5614622812f47-3eba67fe5c8mr2348947b6e.6.1734116936647; Fri, 13 Dec 2024 11:08:56 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:56 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Laurent Vivier , "Michael S. Tsirkin" , Manos Pitsidianakis Subject: [PATCH 16/71] hw/audio: Constify all Property Date: Fri, 13 Dec 2024 13:06:50 -0600 Message-ID: <20241213190750.2513964-21-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::229; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x229.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/audio/ac97.c | 2 +- hw/audio/adlib.c | 2 +- hw/audio/asc.c | 2 +- hw/audio/cs4231a.c | 2 +- hw/audio/es1370.c | 2 +- hw/audio/gus.c | 2 +- hw/audio/hda-codec.c | 2 +- hw/audio/intel-hda.c | 4 ++-- hw/audio/pcspk.c | 2 +- hw/audio/pl041.c | 2 +- hw/audio/sb16.c | 2 +- hw/audio/via-ac97.c | 2 +- hw/audio/virtio-snd-pci.c | 2 +- hw/audio/virtio-snd.c | 2 +- hw/audio/wm8750.c | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c index e373f09d78..8033bbbaed 100644 --- a/hw/audio/ac97.c +++ b/hw/audio/ac97.c @@ -1324,7 +1324,7 @@ static void ac97_exit(PCIDevice *dev) AUD_remove_card(&s->card); } -static Property ac97_properties[] = { +static const Property ac97_properties[] = { DEFINE_AUDIO_PROPERTIES(AC97LinkState, card), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c index bd73806d83..c1d8faecb4 100644 --- a/hw/audio/adlib.c +++ b/hw/audio/adlib.c @@ -297,7 +297,7 @@ static void adlib_realizefn (DeviceState *dev, Error **errp) portio_list_add (&s->port_list, isa_address_space_io(&s->parent_obj), 0); } -static Property adlib_properties[] = { +static const Property adlib_properties[] = { DEFINE_AUDIO_PROPERTIES(AdlibState, card), DEFINE_PROP_UINT32 ("iobase", AdlibState, port, 0x220), DEFINE_PROP_UINT32 ("freq", AdlibState, freq, 44100), diff --git a/hw/audio/asc.c b/hw/audio/asc.c index 805416372c..452039418d 100644 --- a/hw/audio/asc.c +++ b/hw/audio/asc.c @@ -695,7 +695,7 @@ static void asc_init(Object *obj) sysbus_init_mmio(sbd, &s->asc); } -static Property asc_properties[] = { +static const Property asc_properties[] = { DEFINE_AUDIO_PROPERTIES(ASCState, card), DEFINE_PROP_UINT8("asctype", ASCState, type, ASC_TYPE_ASC), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/audio/cs4231a.c b/hw/audio/cs4231a.c index 2d69372087..abc38720a3 100644 --- a/hw/audio/cs4231a.c +++ b/hw/audio/cs4231a.c @@ -689,7 +689,7 @@ static void cs4231a_realizefn (DeviceState *dev, Error **errp) isa_register_ioport (d, &s->ioports, s->port); } -static Property cs4231a_properties[] = { +static const Property cs4231a_properties[] = { DEFINE_AUDIO_PROPERTIES(CSState, card), DEFINE_PROP_UINT32 ("iobase", CSState, port, 0x534), DEFINE_PROP_UINT32 ("irq", CSState, irq, 9), diff --git a/hw/audio/es1370.c b/hw/audio/es1370.c index 9a508e7b81..6170425a5a 100644 --- a/hw/audio/es1370.c +++ b/hw/audio/es1370.c @@ -868,7 +868,7 @@ static void es1370_exit(PCIDevice *dev) AUD_remove_card(&s->card); } -static Property es1370_properties[] = { +static const Property es1370_properties[] = { DEFINE_AUDIO_PROPERTIES(ES1370State, card), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/audio/gus.c b/hw/audio/gus.c index 4beb3fd74e..dd5a5a3441 100644 --- a/hw/audio/gus.c +++ b/hw/audio/gus.c @@ -290,7 +290,7 @@ static void gus_realizefn (DeviceState *dev, Error **errp) AUD_set_active_out (s->voice, 1); } -static Property gus_properties[] = { +static const Property gus_properties[] = { DEFINE_AUDIO_PROPERTIES(GUSState, card), DEFINE_PROP_UINT32 ("freq", GUSState, freq, 44100), DEFINE_PROP_UINT32 ("iobase", GUSState, port, 0x240), diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c index c340a9481d..8bd8f62c48 100644 --- a/hw/audio/hda-codec.c +++ b/hw/audio/hda-codec.c @@ -857,7 +857,7 @@ static const VMStateDescription vmstate_hda_audio = { } }; -static Property hda_audio_properties[] = { +static const Property hda_audio_properties[] = { DEFINE_AUDIO_PROPERTIES(HDAAudioState, card), DEFINE_PROP_UINT32("debug", HDAAudioState, debug, 0), DEFINE_PROP_BOOL("mixer", HDAAudioState, mixer, true), diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c index 6918e23c5d..3e4a755228 100644 --- a/hw/audio/intel-hda.c +++ b/hw/audio/intel-hda.c @@ -37,7 +37,7 @@ /* --------------------------------------------------------------------- */ /* hda bus */ -static Property hda_props[] = { +static const Property hda_props[] = { DEFINE_PROP_UINT32("cad", HDACodecDevice, cad, -1), DEFINE_PROP_END_OF_LIST() }; @@ -1215,7 +1215,7 @@ static const VMStateDescription vmstate_intel_hda = { } }; -static Property intel_hda_properties[] = { +static const Property intel_hda_properties[] = { DEFINE_PROP_UINT32("debug", IntelHDAState, debug, 0), DEFINE_PROP_ON_OFF_AUTO("msi", IntelHDAState, msi, ON_OFF_AUTO_AUTO), DEFINE_PROP_BOOL("old_msi_addr", IntelHDAState, old_msi_addr, false), diff --git a/hw/audio/pcspk.c b/hw/audio/pcspk.c index a4b89f1768..7a6b9f52d3 100644 --- a/hw/audio/pcspk.c +++ b/hw/audio/pcspk.c @@ -215,7 +215,7 @@ static const VMStateDescription vmstate_spk = { } }; -static Property pcspk_properties[] = { +static const Property pcspk_properties[] = { DEFINE_AUDIO_PROPERTIES(PCSpkState, card), DEFINE_PROP_UINT32("iobase", PCSpkState, iobase, 0x61), DEFINE_PROP_BOOL("migrate", PCSpkState, migrate, true), diff --git a/hw/audio/pl041.c b/hw/audio/pl041.c index eb96dc2898..6c66a240cb 100644 --- a/hw/audio/pl041.c +++ b/hw/audio/pl041.c @@ -625,7 +625,7 @@ static const VMStateDescription vmstate_pl041 = { } }; -static Property pl041_device_properties[] = { +static const Property pl041_device_properties[] = { DEFINE_AUDIO_PROPERTIES(PL041State, codec.card), /* Non-compact FIFO depth property */ DEFINE_PROP_UINT32("nc_fifo_depth", PL041State, fifo_depth, diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c index fd76e78d18..143b9e71e1 100644 --- a/hw/audio/sb16.c +++ b/hw/audio/sb16.c @@ -1440,7 +1440,7 @@ static void sb16_realizefn (DeviceState *dev, Error **errp) s->can_write = 1; } -static Property sb16_properties[] = { +static const Property sb16_properties[] = { DEFINE_AUDIO_PROPERTIES(SB16State, card), DEFINE_PROP_UINT32 ("version", SB16State, ver, 0x0405), /* 4.5 */ DEFINE_PROP_UINT32 ("iobase", SB16State, port, 0x220), diff --git a/hw/audio/via-ac97.c b/hw/audio/via-ac97.c index 85243e6313..e43ddf37f3 100644 --- a/hw/audio/via-ac97.c +++ b/hw/audio/via-ac97.c @@ -459,7 +459,7 @@ static void via_ac97_exit(PCIDevice *dev) AUD_remove_card(&s->card); } -static Property via_ac97_properties[] = { +static const Property via_ac97_properties[] = { DEFINE_AUDIO_PROPERTIES(ViaAC97State, card), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/audio/virtio-snd-pci.c b/hw/audio/virtio-snd-pci.c index ab58c6410e..b762d7e81e 100644 --- a/hw/audio/virtio-snd-pci.c +++ b/hw/audio/virtio-snd-pci.c @@ -27,7 +27,7 @@ struct VirtIOSoundPCI { VirtIOSound vdev; }; -static Property virtio_snd_pci_properties[] = { +static const Property virtio_snd_pci_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), diff --git a/hw/audio/virtio-snd.c b/hw/audio/virtio-snd.c index c5581d7b3d..e2b112e059 100644 --- a/hw/audio/virtio-snd.c +++ b/hw/audio/virtio-snd.c @@ -77,7 +77,7 @@ static const VMStateDescription vmstate_virtio_snd = { }, }; -static Property virtio_snd_properties[] = { +static const Property virtio_snd_properties[] = { DEFINE_AUDIO_PROPERTIES(VirtIOSound, card), DEFINE_PROP_UINT32("jacks", VirtIOSound, snd_conf.jacks, VIRTIO_SOUND_JACK_DEFAULT), diff --git a/hw/audio/wm8750.c b/hw/audio/wm8750.c index ec2c4e1374..19e7755060 100644 --- a/hw/audio/wm8750.c +++ b/hw/audio/wm8750.c @@ -706,7 +706,7 @@ void wm8750_set_bclk_in(void *opaque, int new_hz) wm8750_clk_update(s, 1); } -static Property wm8750_properties[] = { +static const Property wm8750_properties[] = { DEFINE_AUDIO_PROPERTIES(WM8750State, card), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907673 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1754CE7717F for ; Fri, 13 Dec 2024 19:09:56 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2W-0003kR-T7; Fri, 13 Dec 2024 14:09:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2J-0003Fo-1z for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB29-0006c2-4Z for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:14 -0500 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-71e3005916aso392507a34.2 for ; Fri, 13 Dec 2024 11:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116938; x=1734721738; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yKW55J0w51PNOklb1SowP9V3cdDc2rdAjEh4kWiClk8=; b=fKXaCPhmkqmHJwS5CQpeLarPVoxe78RqbY99cLED4XPq2Ojf0nn/w8uoH8TYpIA/do P15pxGDGtJy3Y/f5UGj1TOo4yP/26CutqLuL3bzC5hqqYoc2FdcEk3L5K5YPJzUjIzgP HzPZ0sTk2tWggfMT8nVmltKony4N1DyQZimlTMC7RBK+QPf4pgCan4qeRRDl9171PWSX oJXX0X21lSbDWGEuOAXP/r30CP7sk10/oIum6SSw/u1thL5Yn0ZH9VYXFa+geMwOr9yf l2u8BhVWZUBwzxFWHexR1lF3S3WzjmsPsqFAKtSilMlrjrAiZrA0rNSSebNt3BPs+R1k eoIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116938; x=1734721738; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yKW55J0w51PNOklb1SowP9V3cdDc2rdAjEh4kWiClk8=; b=XhPBnbzgUS6T2wKQkZxKqOCD4WrZ2xhIYj8BeSG+JjHkSvqnOUQxV8ggq9bDyUdlYZ hvKgkdN4JG1cAnq7ft8pKk7qkw9PIYkn2llbzsGZPltLYdwZn2nhpxhJkyP+P0o2wQtA fQNIra6LWRHppdsXuB96za1UlvK3LwTnlizC3VDW3aqOb/l3rFvDjEWpYEdT7dc7OQbF 22GBrZARY8fIYw15LNPh2DgrIiJVoP2zs1rQaUS9eVb9ZUvUuD9OsmCXwIplXMw/ELDM 2WJP9LxHKNUkzfX+eu/MkprBkjggwIQBnJVUjR/D/IZGFIyWRY/EudJPaXoegdq0UEvM QOig== X-Gm-Message-State: AOJu0Yzh5pcJrs5fL56dokMrlfnC2vL2eN5FDoLemdOdZTlf0x9mv9YT 2X2qRzSnKN1lSUFbjm8FsnZLZQB0ScS9rYPiBMA5c9pdTZn2xOVHx0QpOARfiVaY6OX59SEi3Jo 8YKUxdWpv X-Gm-Gg: ASbGncvICS+po8ZK4f1ve4IAqkz70p7T9LVMSVY05KgZBsWesWYVUxWSsi47jrTLJxp ct/LdpJeQOgnEWWGexYfvPJ/urQ+MZAQWcyQuxZG5hRxoZP+H4eEnqX/5woPlHDnJUuYFeZreaz A9rvruoJzmKM5Y4sM42gr1RquPBg6misO59pLkwVvAStcQWpA8bGtUb3XKSFNQ83XWuElBFWPJ4 4/Z5NDoBC7eU0CiKLYNOz8P9jpqH4YABcRMFgPDvkwia+V7T5FqMuDXP28EkC7o X-Google-Smtp-Source: AGHT+IHTabqk9XfY2F1Hg2S4q9hkUEiti58oUoecZnbZxt8jYRhcbgA1BfWl6ZfG0eVePqf9Ii0z2w== X-Received: by 2002:a05:6830:6e18:b0:718:9b8b:429d with SMTP id 46e09a7af769-71e3b816757mr2008706a34.4.1734116938397; Fri, 13 Dec 2024 11:08:58 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:58 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Michael Rolnik Subject: [PATCH 17/71] hw/avr: Constify all Property Date: Fri, 13 Dec 2024 13:06:51 -0600 Message-ID: <20241213190750.2513964-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/avr/atmega.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/avr/atmega.c b/hw/avr/atmega.c index 31c8992d75..ce630ec572 100644 --- a/hw/avr/atmega.c +++ b/hw/avr/atmega.c @@ -355,7 +355,7 @@ static void atmega_realize(DeviceState *dev, Error **errp) create_unimplemented_device("avr-eeprom", OFFSET_DATA + 0x03f, 3); } -static Property atmega_props[] = { +static const Property atmega_props[] = { DEFINE_PROP_UINT64("xtal-frequency-hz", AtmegaMcuState, xtal_freq_hz, 0), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:06:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907675 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6BD8DE7717F for ; Fri, 13 Dec 2024 19:10:13 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB2w-0003yX-Ng; Fri, 13 Dec 2024 14:09:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2J-0003Gj-Cc for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:15 -0500 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2C-0006cX-KP for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:14 -0500 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-71e1158fe3eso974844a34.1 for ; Fri, 13 Dec 2024 11:09:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116940; x=1734721740; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VBuAnCPgZLHdX0sVpQB+fbM15dWtrtdAGUwOdHBBqsc=; b=HoNt0DaUOEkOA17O5Jr0EGkPPm+xC567V8+SQmEjcc2lQPqAZzgE+wHHEnAH0xfblT 2FYZbKjIQXFHDuPAImQcIu1kepnpq4JfX2CfDSqO26UI5wA8IW+G4z53VEZgV6Y1pMEp rDr0eSfvwGW4vyLtwK6A0AiMVKOv/2Ih3vDIbn1hhmD4EOz3MsJC42qJiuO5g3gESYjQ tGbegkHQaHFRmIOF4o3ysGQpxbY34a4fRDGEoazXmy5POoVPV63TVHfl99rkHqW+kmgR sjCCf8k1Dce9CoxJaK/CDhmAfJnftsoQp3/2kSEvD42Sz4krBktEPDvagOlqrwSKmX+h 7iNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116940; x=1734721740; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VBuAnCPgZLHdX0sVpQB+fbM15dWtrtdAGUwOdHBBqsc=; b=Zstm31FmSk0eeVzVbCMv3RRYYWBFGxwSTlScPh2lKJHZFpEw5/EVELSyWy8hPgB0/n 8I0nK7ZfY2zsiifC2A5VE11Ii5nUhfa1utUY0pKoO05V4xGoLCxLs9A46tO1QOwyHQCP eSYfw1uj/Wk0NUWED9RoowQeZaLhnU/pKkCpyi4SdcUHjbbU4+ShFZ38i4BGCfB9K4f3 CvtdRzt74mf0+ckeKXEGSfL87GYRyLss8EVKmI2owjLuzHPZ7WDsac/HgH9Ih5pDJ1M6 kKaT+YD78w2NrSWn77uWLrNtDVXBXfbK4L4iV9eY+EeC45QHTc/5Px6OenDnudkjnPt6 dv5Q== X-Gm-Message-State: AOJu0YzqxuT3wtun9yB4fRutI2oo4FtSFIS6aP+w2gL18Ta5GakITVlZ 79iLOm4vCWdqw29p0hONenOYHl9njocGAq71+W0jsddjxP81XD1FGGjONKd+Sqv/KzuWgCAG9Ru GeKjRek97 X-Gm-Gg: ASbGncu1CzvNAo3fDxP+rcUFTdBmMFP3FcgsIOC+C3RFCm0PnpSvxlVW/vsdqJfW75I /FYpfMcPWxV9G5W9pdJNCUCDc839agYG9vujbx1Vf4H+c/lobz7KJ+rxVGIB8wriL6kY5cOVDIB w/uKWFIVmkb8SUi/30Ynnt80RyAri9pyQZzt7VJxhO9C9LTU5OSyROOFeEC2D+lgKXuLOY2vZ3L Wa52NITk3c5H7R3wtSSl2wONKmu2Mfzce/Pv6ZVpms2Kj5Gd4UKzMiJW64Lv3qH X-Google-Smtp-Source: AGHT+IG4Oaa1CFMaif+EnKB8kf2kg/gBi+Er63DHsr2guVeeoIb4v5eKEHl55hIr030QigRhTnJLHA== X-Received: by 2002:a05:6830:2a92:b0:71d:f6d3:9fd2 with SMTP id 46e09a7af769-71e3ba3f147mr1411664a34.24.1734116940056; Fri, 13 Dec 2024 11:09:00 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:08:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Stefano Stabellini , Anthony PERARD , Paul Durrant , "Edgar E. Iglesias" , Kevin Wolf , Hanna Reitz , xen-devel@lists.xenproject.org (open list:X86 Xen CPUs), qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH 18/71] hw/block/xen-block: Unexport PropertyInfo Date: Fri, 13 Dec 2024 13:06:52 -0600 Message-ID: <20241213190750.2513964-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::336; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org xen_block_prop_vdev is not used outside the file. Signed-off-by: Richard Henderson Reviewed-by: Jason Andryuk --- hw/block/xen-block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index aed1d5c330..72cfd6893a 100644 --- a/hw/block/xen-block.c +++ b/hw/block/xen-block.c @@ -659,7 +659,7 @@ invalid: * * https://xenbits.xen.org/docs/unstable/man/xen-vbd-interface.7.html */ -const PropertyInfo xen_block_prop_vdev = { +static const PropertyInfo xen_block_prop_vdev = { .name = "str", .description = "Virtual Disk specifier: d*p*/xvd*/hd*/sd*", .get = xen_block_get_vdev, From patchwork Fri Dec 13 19:06:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907710 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A66E1E77180 for ; Fri, 13 Dec 2024 19:20:40 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB31-00048q-SA; Fri, 13 Dec 2024 14:10:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2L-0003QI-46 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:17 -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 1tMB2C-0006cu-Tk for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:16 -0500 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-71e2aa8d5e3so1086777a34.2 for ; Fri, 13 Dec 2024 11:09:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116944; x=1734721744; 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=dvKuTabJuM44RrR9LqcDtNRzVnC+ouLNjCo5mA0gZDg=; b=e8DKzh8l3mS/vYxerQuHxY/Yuazy7Uki6YxgY2Na/aLCqjWyUCHfUj16YI9lMZ1EU6 YCsUY2KrF+Q0JRVi04zRyMFT8ttLpGgIh1ke7pQoGuE5zkrhrjGyHQw4IGlTEO7jk193 1umq4Z/Mm+ei9K0kde+hp8buCBwXob27LDGxqDbkdyxWROpQLcsw5K2lJbfZHkMWxxA0 Wsh895lYEX8Fx8pNio99oqUwv+avDcwxYeHkMVVeLvtw+fwYoSHJn3Jr30yhpVT5lNOS Pkn/dnyjsYl3LOfUZ0AZAKvRpmVrvf7GeRq4J2b10GnUvD/SVZQurag0XsKgj+Dad1h7 vfrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116944; x=1734721744; 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=dvKuTabJuM44RrR9LqcDtNRzVnC+ouLNjCo5mA0gZDg=; b=N2QLspHkbKZir13Vv/uIiJDyMq9VBD/jJZ74ZvQMMQc2cGhTP/dEa14JpbDlKzjmV4 TkcqQxCdt1XdmHa6eoXDKT6+6/gY3cHbRz+7WqbS0TmQiZXbxrEDjRygjc/fG+VgLqcH pHvjfUkmllGG1WjUkzMR8bsTwLDMNgsF29szyL2xhTjm4XWPiAK9SV/gBUs05+wKHFyJ SdyXttNX2sU3pU7QejaQuIT5BlUqq2unU0Orgrk1FQXOn1M2pBwMlduaJ0CODA67Brq6 6LiBdnMo9rf8uI7Ojnlb5FtcnjCIKYn/+hqFPEjtuGfvlVppQMLHmTYC9q6FlffuGEkR Ub3g== X-Gm-Message-State: AOJu0Yz+5QrsJL7IHouAIB3eppiot9YLwJ67oC9+3wnuXmFCeb3jKxNU tghQIpzyH5H0utaudViHLm1ZskzO6u3+y8DouXQIyJR3sfcOp8FSx1/m6tNOFo81VMP3Qo4ovGC 44/PH33bg X-Gm-Gg: ASbGncsoSFjtHmU7fTIg3dNsfhlUk6f/DOfs6pR9WPIyofFIVt5SvGJr7f+fuDmMi4Q 5FYpoDeb1QJsUHmWl9sjRitChrZnD3j5bHzDPJ7YLg6miwOUSeeUq6bZ6putQC2k4uorH54r9EC khGfjaZjt7YtTP7MC07BrQuZiFS2/dolxnaefnMwp3PEiKfVt+0mF9NlRR4JXo43/+E1SqPrJh/ +tSTbOLefzPnFFNQ0S/a6EqBfRtKCruIdVK5N0wADv2gALZ+TZdnZ3G5KavHnre X-Google-Smtp-Source: AGHT+IH4rJcdXbtBNLnupXAb1IE3M6qGGNYml9H8C6S7DGbxJKBCaGKoGLFrcPQYq1LiK/0DBH3rEw== X-Received: by 2002:a05:6830:6e18:b0:71d:f239:c0a8 with SMTP id 46e09a7af769-71e3b827be9mr2189273a34.6.1734116944096; Fri, 13 Dec 2024 11:09:04 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:03 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: John Snow , Kevin Wolf , Hanna Reitz , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Laurent Vivier , Raphael Norwitz , "Michael S. Tsirkin" , Stefano Garzarella , Stefan Hajnoczi , Stefano Stabellini , Anthony PERARD , Paul Durrant , "Edgar E. Iglesias" , qemu-block@nongnu.org (open list:Floppy), xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 19/71] hw/block: Constify all Property Date: Fri, 13 Dec 2024 13:06:53 -0600 Message-ID: <20241213190750.2513964-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org 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 Fri Dec 13 19:06:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907688 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3BE57E77183 for ; Fri, 13 Dec 2024 19:14:10 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3G-0005JK-2f; Fri, 13 Dec 2024 14:10: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 1tMB2N-0003W8-Ps for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:19 -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 1tMB2F-0006dv-P6 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:19 -0500 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-71e15717a2dso933489a34.3 for ; Fri, 13 Dec 2024 11:09:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116950; x=1734721750; 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=b/X3IVDeDd+noUKxYZR0n+Vdo2pFngQ4Wz2l9zT17Cg=; b=yKlagRRE2FV9hCJWZHvHiF/l11K7ur5nTfRDYbKIRdY4Q139SC//vM9cJ3MrfCEZ1P 335YQ/H1ugT/kS/oiG1+MfUgR2ucG7Z0zeEJmq/oQAciqsx/TNCoTSCwmj6GFRCK6uGn 2vl3vWGrxVvS7Ai/01wuWlTF99OtYC2VSs7ZCRKQg4djDXc39M8cme0MFBsKW3VG3uPy 7oIf+dwwyvzZnBmR4ltoEiG3Gg6Z+Rmadxk56UN8G0IvdqL9gHFOFQ7j9bSTuyGJDfcZ VzDwxm7WGtkAb0EwfGEgofApukpgNxCUOXCZUjhDBnyU1ilH3Gg8ZN3CunzwUw0U8HXQ pN9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116950; x=1734721750; 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=b/X3IVDeDd+noUKxYZR0n+Vdo2pFngQ4Wz2l9zT17Cg=; b=QC1HLfZ7EFD6TPrBDyZMLK2HM9Amga20nZeGHrF5e5LBIsnrTDxbHOP3mDl9XEHirQ oYSLcRr1dTZ7XdWRLtNu8ufkbfh/AFRS4C2i3N/2SzMtCJNGT8ZhiQuTs4W3+EV4//1O ujepPw2+t0eAAueq5cgd6E7D5FVUfE13lp/gGr1K22BfYdsAEg0VKFfW6viqPUfS+ceW AAW8oot5SBiFmS0uJZ3EgYQp1lZAjpL4aU4RcgutiPQGYhoRgPJOEjl/a/8xMI8F622m 9m9N+WlN1qrFaU01i75W3uaKX3tZg/WBGVLgzRjOSqVP5EMQAEzviFqpf0qxGakw5tMH OGHg== X-Gm-Message-State: AOJu0YxL+Hms5cqRZ7WxRku9yqKJJjtAngR21LGDXTCDAhkwOxpohjQI Bpj9NjgophHmY/FotD4QY+Z6jO9kfHmv7F+caYECf6UQJsKIaC4+rqixzjkoRzdmdoEfL9xUsPD osJAslYP1 X-Gm-Gg: ASbGncuHu5fd+wp9xGX0hP6mbHcL8FovpbVKFYbNefNQI4ygWIO5xqhcSfvUfo7/tsF kkJLc3rmccperN76BWQPpA+bu0NrW9C1Tl+71SYXsWsTeZUPpNpkQ2TRpcCnHzHlJalMBE07J0k VZ1hkKEZeibg7c+x1O9nQybOPcc6a/V4mbDgS8YGzli+LvO/YFRUyvafRpu4zujXnNAsRvG8KGN dmI8FzM4Qgb3c+1Ru/vY6xq8U5YQH9C8n4nGdYBonTr7cM342KdDKbRTfJaPuyM X-Google-Smtp-Source: AGHT+IHyiahaPH7IR7tMGor3tb4r8tyoeL5l6bj/iA+pUDvvwPfsGQ4o6c5cVxqEWXW+NK7FcqsU5A== X-Received: by 2002:a05:6830:4486:b0:71e:212e:9115 with SMTP id 46e09a7af769-71e3ba50013mr2201200a34.30.1734116949898; Fri, 13 Dec 2024 11:09:09 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:09 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Michael Rolnik , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Paolo Bonzini , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , "Edgar E. Iglesias" , Alistair Francis , "Michael S. Tsirkin" , Antony Pavlov , Igor Mitsyanko , Laurent Vivier , =?utf-8?q?Cl=C3=A9ment_Chigot?= , Frederic Konrad , Alberto Garcia , Thomas Huth , Joel Stanley , Yoshinori Sato , Magnus Damm , Halil Pasic , Christian Borntraeger , Vijai Kumar K , Bin Meng , Palmer Dabbelt , Nicholas Piggin , Daniel Henrique Barboza , Harsh Prateek Bora , Samuel Tardieu , Amit Shah , Stefano Stabellini , Anthony PERARD , Paul Durrant , qemu-arm@nongnu.org (open list:Raspberry Pi), qemu-riscv@nongnu.org (open list:OpenTitan), qemu-s390x@nongnu.org (open list:S390 general arch...), qemu-ppc@nongnu.org (open list:sPAPR (pseries)), xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 20/71] hw/char: Constify all Property Date: Fri, 13 Dec 2024 13:06:54 -0600 Message-ID: <20241213190750.2513964-25-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Acked-by: Alberto Garcia --- 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 Fri Dec 13 19:06:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907723 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0C93E7717F for ; Fri, 13 Dec 2024 19:25:47 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3K-0005QZ-ET; Fri, 13 Dec 2024 14:10:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2P-0003ds-Ns for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:23 -0500 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2H-0006eF-KE for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:20 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e36b27b53so892077a34.1 for ; Fri, 13 Dec 2024 11:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116952; x=1734721752; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1VHlG8PfMsBdkVBprTDqyuBAqBPyNMa5du4T9t6Csx4=; b=uVELerz4HCplIJgdKTciJl3bWgtAjNOHPbJRMX/iVEJkIkW1hMNs0cJ5RFGrR8PnO7 xgawOaqH1W6Zrpbqs5Tf0JRkt6AYXlv4IJY6OjbPK0KNBuyrv5qPzufAvRlUOJhlV0Ff lWB+EpF11SMd0PPkMaJT4LHUGXL6DOG439UJgLrpgjYqPvmV6BMA165rq+r93W035KLH i5PQWxhO1bzmtnHFqNLzGTQmHisJN/nbm8udGYlCCSUVeWBbTrcvpruyjMHRgz77rGaU g1anh3IGQmnlT5KvZ3dCzuB1blixGCRS4IVwyH8ptcqczoocpjcViffuq+661PNbprKy ARPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116952; x=1734721752; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1VHlG8PfMsBdkVBprTDqyuBAqBPyNMa5du4T9t6Csx4=; b=dXBKA5z/F5ky0jDjieuBEJ5IgNJ9EOnmxWv23NaPUbA5XTpFy1ayVPgTNTG9uSQktX Y/xVpAp7KVioX/LafujoYtiDGFJ3QSSbFgNOebkvVolksROPanLc+XYuP1jwS9VKrLHt 7PlJQ0HlbiIprPz91tH5U5juZWUEZ2B+c1NkbMUrVUx2inMCrrRMJITygIgcC4nb/0VZ dNP1A1vsBEbITBUyzoP0aaV6B2xOMYHZ3DR3DU2+KP1Fyzdhbi+v+waX2LmuiGraqfOs /9Fj6DDClQnDAt9CLKrpqf/Eslvr+1raHjsdBBnZrKXV4y1g9m0Y3INOTnOtNGwpRITc HEVA== X-Gm-Message-State: AOJu0Yyv9TKonpMtO1mDiUQJlNVW+Xa18C/MRgXrvcd2Z4NC9oXFRLsO tsyVUFkJS35jIwhvv3nJPB7hWNo338ZfF9Sa77EqYWSwL/AtbEh5Pe1XNT3VBQ/BXMNuQhep9VB ji3oVetg+ X-Gm-Gg: ASbGncvgvXdetvRSgjh8lbtnPWBJWUIZA67pbOPVxDUZgLrmbUcTL1jBrZ08mEOyfJb rqF6a/Xj17BTyynuOKDDu6B9hoE7Bmj2H8nRKb2CiyHbbGAROtoVp7lpd3INI2XSwotWIUfjjGI Hzo9cMUzjcXpVybuChb8JVh8+Z9x/Y+ZuxGn5Yz/s6aIjKibQZzCeDSRzOYrw2ts1PII57Eo6CK byXA7wHjAKdmdMBylDoyHHeAdV6JpvFFkUx5CFUCdLPfxS837FJhafQeZHAHgXt X-Google-Smtp-Source: AGHT+IGEyRH9HHL+hXI9ln61NXdu6hBQ0E0Azc7UfGZaiXjnedQzhtzXg8cv3yXUzGxNJkJEPojP6Q== X-Received: by 2002:a05:6830:6c14:b0:71d:f429:7f95 with SMTP id 46e09a7af769-71e3ba779d5mr2253520a34.29.1734116952105; Fri, 13 Dec 2024 11:09:12 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:11 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alistair Francis , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH 21/71] hw/core: Constify all Property Date: Fri, 13 Dec 2024 13:06:55 -0600 Message-ID: <20241213190750.2513964-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/core/generic-loader.c | 2 +- hw/core/guest-loader.c | 2 +- hw/core/or-irq.c | 2 +- hw/core/platform-bus.c | 2 +- hw/core/split-irq.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c index ea8628b892..c1cddecf60 100644 --- a/hw/core/generic-loader.c +++ b/hw/core/generic-loader.c @@ -179,7 +179,7 @@ static void generic_loader_unrealize(DeviceState *dev) qemu_unregister_reset(generic_loader_reset, dev); } -static Property generic_loader_props[] = { +static const Property generic_loader_props[] = { DEFINE_PROP_UINT64("addr", GenericLoaderState, addr, 0), DEFINE_PROP_UINT64("data", GenericLoaderState, data, 0), DEFINE_PROP_UINT8("data-len", GenericLoaderState, data_len, 0), diff --git a/hw/core/guest-loader.c b/hw/core/guest-loader.c index 391c875a29..74af00cee7 100644 --- a/hw/core/guest-loader.c +++ b/hw/core/guest-loader.c @@ -111,7 +111,7 @@ static void guest_loader_realize(DeviceState *dev, Error **errp) loader_insert_platform_data(s, size, errp); } -static Property guest_loader_props[] = { +static const Property guest_loader_props[] = { DEFINE_PROP_UINT64("addr", GuestLoaderState, addr, 0), DEFINE_PROP_STRING("kernel", GuestLoaderState, kernel), DEFINE_PROP_STRING("bootargs", GuestLoaderState, args), diff --git a/hw/core/or-irq.c b/hw/core/or-irq.c index b25468e38a..fc52796f54 100644 --- a/hw/core/or-irq.c +++ b/hw/core/or-irq.c @@ -115,7 +115,7 @@ static const VMStateDescription vmstate_or_irq = { }, }; -static Property or_irq_properties[] = { +static const Property or_irq_properties[] = { DEFINE_PROP_UINT16("num-lines", OrIRQState, num_lines, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/core/platform-bus.c b/hw/core/platform-bus.c index dc58bf505a..a29c9c6e59 100644 --- a/hw/core/platform-bus.c +++ b/hw/core/platform-bus.c @@ -204,7 +204,7 @@ static void platform_bus_realize(DeviceState *dev, Error **errp) plaform_bus_refresh_irqs(pbus); } -static Property platform_bus_properties[] = { +static const Property platform_bus_properties[] = { DEFINE_PROP_UINT32("num_irqs", PlatformBusDevice, num_irqs, 0), DEFINE_PROP_UINT32("mmio_size", PlatformBusDevice, mmio_size, 0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/core/split-irq.c b/hw/core/split-irq.c index 3b90af2e8f..40fc7e2e77 100644 --- a/hw/core/split-irq.c +++ b/hw/core/split-irq.c @@ -59,7 +59,7 @@ static void split_irq_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out(dev, s->out_irq, s->num_lines); } -static Property split_irq_properties[] = { +static const Property split_irq_properties[] = { DEFINE_PROP_UINT16("num-lines", SplitIRQ, num_lines, 1), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907682 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3230BE77183 for ; Fri, 13 Dec 2024 19:12:03 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB39-0004xI-Rd; Fri, 13 Dec 2024 14:10:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2P-0003du-OD for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:23 -0500 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2M-0006fF-G4 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:21 -0500 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-71e181fb288so940799a34.2 for ; Fri, 13 Dec 2024 11:09:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116956; x=1734721756; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kqsWYMuz61V4FPOOjOmLye30zpmvR8d0aYJuhAdGM4M=; b=kU+5TDMuO4VLB/YUavKKDNtpH/US961bs7fNLlnbq7482yo1NCX6grbZNoNZu5Hteb wugRo64oRBrvGFCAbOSbaf8YSLAJ2SrAb+d9sWIafmydsBzD2K2ga8JF+e7+yiqIGNkR Y7Wz5HuRE+fYZrlArCJXh3s7rFVV1TUaTZvkKDmA2K9ipk9YOkSzSzr6s2O02trBkjY8 3i8OQLZozQqOMitqcy0L7pVZAIEttOPjnd+iZdPU+eUM0kmdTvdrun5y+gBGrTk52Ms6 y5DDmn+mZIrt2EWeHC12ruDl2QSx9YTco9IbZxl3ac9Kz2cAwV8PrJRwT7gQJVk25Jwc +jMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116956; x=1734721756; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kqsWYMuz61V4FPOOjOmLye30zpmvR8d0aYJuhAdGM4M=; b=vcvoI/bQZ2TI81+p0XF/eZUwKHOn38z2z8WIoC8/TwQdEOtN2+a2u0ReXssCEsdA8n o8c1x+KY39Mn4KJ3cOjkF9w4QeOviFOSsGMnzJgcFJ2rszICB0kO60w2EYgg4iVksjQf X7QpqAbfW5+luylw8EIFIldwyzGr9jdAiKAYhQdA+5FNmKqcwJC7Mfgb0IM+4WpTIeqP VWSR+pCDyzYNf2MoeZysZal/lup2g6QWfND/Zi9pZVfutP9rIHBxsY5gCz88CIHrwG2B d75Gtzh1F3P1W5/ru6Zi1VHoZ9mkTw+PjxG1STfQRVKlgAmth29rVH3Vl3otu+1Bw+5x YYoQ== X-Gm-Message-State: AOJu0YyVA/0F7fo+IAAhyBG6KQVjvQwRIaNqf2MgFZ2RB6h3mTVOOcHS A/3xh8qwJXQ6H4Orl1Y+/uUNzqAZhS7xa1+BfyJGq16E67LOUNIoJuzqgqsgfa3CO1B62G0ev44 o7dwUUfnK X-Gm-Gg: ASbGnctHlAqfFGer0Eoa7DHOknx0Q8WsmxsQQch9SSpRSNWu+kV6HAICGyRJKkDsIam ApAULCF9eN1YovemGc36gJyrjWpOHWDC0Y8a3jQ+wST88UwuFlxuny/P1XxEGnP3PY0sHP9tkF5 LsHDXL8/GPKkVhwFnRsGl/6mY6JKAXCJj9qQzriWsslMA6GCMrbSCcBCAdyqr8aNvSu1sYPxSUT gEf5qRC53/eoTyTqtjRCO/wXnu7xGfg2pOUpwxXL+EeiaTavKaY+8NFCYgO15fh X-Google-Smtp-Source: AGHT+IEkfUD5pXbZeGZ3upc/c4xRkpnTj3yShEzxBn8C+Rvq9IDnNdbtH+lpMgfiUzgvW7rFrt5tmg== X-Received: by 2002:a05:6830:2713:b0:71d:f562:5f75 with SMTP id 46e09a7af769-71e3b81133cmr1994979a34.4.1734116955171; Fri, 13 Dec 2024 11:09:15 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:14 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Maydell , Eduardo Habkost , Marcel Apfelbaum , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?q?aud=C3=A9?= , Yanan Wang , Zhao Liu , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PATCH 22/71] hw/cpu: Constify all Property Date: Fri, 13 Dec 2024 13:06:56 -0600 Message-ID: <20241213190750.2513964-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Zhao Liu --- hw/cpu/a15mpcore.c | 2 +- hw/cpu/a9mpcore.c | 2 +- hw/cpu/arm11mpcore.c | 2 +- hw/cpu/cluster.c | 2 +- hw/cpu/realview_mpcore.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c index 967d8d3dd5..5346b8b6c6 100644 --- a/hw/cpu/a15mpcore.c +++ b/hw/cpu/a15mpcore.c @@ -144,7 +144,7 @@ static void a15mp_priv_realize(DeviceState *dev, Error **errp) } } -static Property a15mp_priv_properties[] = { +static const Property a15mp_priv_properties[] = { DEFINE_PROP_UINT32("num-cpu", A15MPPrivState, num_cpu, 1), /* The Cortex-A15MP may have anything from 0 to 224 external interrupt * IRQ lines (with another 32 internal). We default to 128+32, which diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c index c30ef72c66..c3fdfb92e1 100644 --- a/hw/cpu/a9mpcore.c +++ b/hw/cpu/a9mpcore.c @@ -158,7 +158,7 @@ static void a9mp_priv_realize(DeviceState *dev, Error **errp) } } -static Property a9mp_priv_properties[] = { +static const Property a9mp_priv_properties[] = { DEFINE_PROP_UINT32("num-cpu", A9MPPrivState, num_cpu, 1), /* The Cortex-A9MP may have anything from 0 to 224 external interrupt * IRQ lines (with another 32 internal). We default to 64+32, which diff --git a/hw/cpu/arm11mpcore.c b/hw/cpu/arm11mpcore.c index 89c4e35143..193fc182ab 100644 --- a/hw/cpu/arm11mpcore.c +++ b/hw/cpu/arm11mpcore.c @@ -131,7 +131,7 @@ static void mpcore_priv_initfn(Object *obj) object_initialize_child(obj, "wdtimer", &s->wdtimer, TYPE_ARM_MPTIMER); } -static Property mpcore_priv_properties[] = { +static const Property mpcore_priv_properties[] = { DEFINE_PROP_UINT32("num-cpu", ARM11MPCorePriveState, num_cpu, 1), /* The ARM11 MPCORE TRM says the on-chip controller may have * anything from 0 to 224 external interrupt IRQ lines (with another diff --git a/hw/cpu/cluster.c b/hw/cpu/cluster.c index 61289a840d..8e43621b5c 100644 --- a/hw/cpu/cluster.c +++ b/hw/cpu/cluster.c @@ -25,7 +25,7 @@ #include "hw/qdev-properties.h" #include "qapi/error.h" -static Property cpu_cluster_properties[] = { +static const Property cpu_cluster_properties[] = { DEFINE_PROP_UINT32("cluster-id", CPUClusterState, cluster_id, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/cpu/realview_mpcore.c b/hw/cpu/realview_mpcore.c index 72c792eef1..9a0ff1df86 100644 --- a/hw/cpu/realview_mpcore.c +++ b/hw/cpu/realview_mpcore.c @@ -108,7 +108,7 @@ static void mpcore_rirq_init(Object *obj) } } -static Property mpcore_rirq_properties[] = { +static const Property mpcore_rirq_properties[] = { DEFINE_PROP_UINT32("num-cpu", mpcore_rirq_state, num_cpu, 1), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907843 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 13C01E7717F for ; Fri, 13 Dec 2024 20:05:43 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBuW-00065g-FN; Fri, 13 Dec 2024 15:05:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMBuU-00064k-Sd for qemu-devel@nongnu.org; Fri, 13 Dec 2024 15:05:14 -0500 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBuS-0003YZ-Gj for qemu-devel@nongnu.org; Fri, 13 Dec 2024 15:05:13 -0500 Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-844d67eb693so145423439f.3 for ; Fri, 13 Dec 2024 12:05:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734120311; x=1734725111; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MBYc4aQlrS1igcjODeijBs12yeJjZWYu4l53GmXO3AU=; b=nF9UpnHGQRIYzvkTfQvGI4ubej2z6CQfLwGd6Rud1jKdE3moGdgE4/9iYa58vhLAsa qOa2ywQtBNrIWe11KkQia4bk4UAmGzZ8JvjTgTXkGNgR8dChx+45kjj5awvRTbFCyuiY HyiX4HmhjY9nfAeqRuW+cur9H4O8yB4n1sywOdJWnTFVWsvT8FWX7GlTwV7TK332k9g6 JzSxWm5T7vZhk9MOzUnKOJOOmxqBtayWj0gk+z2gtQOMn/V541Hjtwe21+HZvS3ex2M8 41L3K7Xw5IPswJW2rlEpCnC/Wxw1eKsXuTE7xREMX6axGzIJsmfS9vtLTFqp9t62NU2t fRXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734120311; x=1734725111; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MBYc4aQlrS1igcjODeijBs12yeJjZWYu4l53GmXO3AU=; b=O1/dk76Nf13OjNVmy7DvYU/ndntM0eylsmPnpP/KZ0XH8GA9fAdBHTOlD8IHMJOET/ d2jaqgfPDHdFKsIs56DeDynto/y/ys073g+XrULQdX2Qj+bN0OjYEg19/JCQDET5W1fF 1QuR0OMhUf/Nkl2M3uCOs2Tm+k3ePZdaslNOw3dgKxKSvxgRNVERg1s4ds+KcbP46BC3 ofzDP7I0vFmFUL68D91GbCL/0sOJcS3D2BaDM+RuCZCa88ANb0l3giKSPPis07g6Frm2 tjOY0xQ2xmtjzju4V3wcvMj0feCmtqISrB0o4RCMNUk3Cv8zWiVoiC7vS7Vg2+ktKgj8 u55Q== X-Gm-Message-State: AOJu0YwWPTO62mY6Yh1UllTMQJa16tILHEBsczKhMsRt0fEDqYyoQZCB ebcKgbi4sjrXxJqu4e3hwEY17Phj4ZpoGjos62WtJqu90ig3k47i85WzpIr0UgxWPKsC9qGoJeq j+iM61hue X-Gm-Gg: ASbGnctNkWxye9mXyQb53vObaXmYDTaMQ2kpH2xU+Gk4Gn568JAdtUg4wVj+JlYTw5Y 6zcYh3xBXSl3EC/GO3fhfC66IeK3xOpPjbzlpb+qGQxZ2ywfpXGCeUyMvVclLunFxKIAc1y1sda B+JMd8HgznOjdCD1Ryn3MgOquqU/Vy9McHiUxXVJwYu0IFHClbBQBMxa3i32HLdqDfNX2+6FzHE CyTN49Tcq32golGQ0/Rpc9D24TEi6a6E6BrzCu5ZTxtyQJg1ZqqqyZCourK7AJ1 X-Google-Smtp-Source: AGHT+IHzbFC26rD43dDUHbcP/ZqPJGU/b0iz9DtdzCOPQvM/wfXDFyqlMAAvMM4rdtH6/Vgioaxefg== X-Received: by 2002:a05:6871:582b:b0:29e:4346:7fb9 with SMTP id 586e51a60fabf-2a3ac7c1efbmr2259520fac.22.1734116956378; Fri, 13 Dec 2024 11:09:16 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Jonathan Cameron , Fan Ni Subject: [PATCH 23/71] hw/cxl: Constify all Property Date: Fri, 13 Dec 2024 13:06:57 -0600 Message-ID: <20241213190750.2513964-28-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::d35; envelope-from=richard.henderson@linaro.org; helo=mail-io1-xd35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Acked-by: Jonathan Cameron --- hw/cxl/switch-mailbox-cci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/cxl/switch-mailbox-cci.c b/hw/cxl/switch-mailbox-cci.c index 4f419443ab..3fde0f8aae 100644 --- a/hw/cxl/switch-mailbox-cci.c +++ b/hw/cxl/switch-mailbox-cci.c @@ -65,7 +65,7 @@ static void cswmbcci_exit(PCIDevice *pci_dev) /* Nothing to do here yet */ } -static Property cxl_switch_cci_props[] = { +static const Property cxl_switch_cci_props[] = { DEFINE_PROP_LINK("target", CSWMBCCIDev, target, TYPE_CXL_USP, PCIDevice *), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:06:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907681 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8E3BE7717F for ; Fri, 13 Dec 2024 19:12:01 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3O-0005Ww-Md; Fri, 13 Dec 2024 14:10:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2T-0003kh-G1 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:27 -0500 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2P-0006gM-QY for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:25 -0500 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-71e17ab806bso1118089a34.2 for ; Fri, 13 Dec 2024 11:09:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116960; x=1734721760; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3BjzBq3rSuTa5TGvVs8KXBIzlYp0tm0GRK6bqPTTYvs=; b=fW3wtppkQP5eT+s0jOpjQy7OKcacXlgH8x4jmvOcCN00mZQmAAD9M+ggxj3QOVhb/i oG+1kQ6TYqw/6pMzk1GVmSi7Ediv6Mf4DAw5MvkdHMX2AjRqspUFgCsgCFeT//Tz6mCc MQGezjuk3zMSoeY20yPiWaEl8YnuMf/pE4hsS2KHBLgWgayVNynCCXxJs7iPzbUr2zTM QVUgccNTlg9dPS7JBVkVAAi13695+Jj67DirowDSXTadeYsTa/S7X4fwoIaLmuUSO9cm oILpnCBOTywRAdxFuMs0B9Zlz8FrC6XwuoaSMFVqGsLS8hRDo1OgP52yGm8EVgUrhcNK axGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116960; x=1734721760; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3BjzBq3rSuTa5TGvVs8KXBIzlYp0tm0GRK6bqPTTYvs=; b=ReJxWFHf9hxlhJOtp7EIryzU1FWflEBTYgEP3ocCihqUD29G3GoylvQP9PSja6PxE9 8TqZq6PZKe9dqOiAvSp3znWLC2yM17QCWk++ZpyQegY8hhhn0CaCx2XeFR00NcxYRBzK ZUQ1ZIEtAeWSn3OcqGqO715HD6GIrOg+OdlQT3z1bynxbrWKykbsmGnPdOl3NWv2P+Sd E2L3gVi0FGowW5W81K+b0khfLkO2UB4pw3DQDSF9WfAhGguOLzyPy4Y8jrz3h78VssK+ SuR6jybVvvxPxkOj0DalVf3nFSsQ411n3a8Qu+9s/QUiEMz+6frcN2Tu9VJ2Ca2AbhkS Z36w== X-Gm-Message-State: AOJu0YwVJAwcVvSEZESNJ2fvQDnDkc3oa9EBdJzB4YvCEZN+HDu1FAI+ FpZlYJ/5OLf8wvxrjwVy5dodhSHsgtztM4Ub+wqOJwxgjj6ysJgFgScfgtlaADcZ+1x62PShofd ykU1LPD4V X-Gm-Gg: ASbGnct8PdMtASpfkVza2TWK4oD3o95Th3Y0fInh8OF/jM522U5fVR1bFUuVuM+AuP3 T2ephglyh+G2eFhVjL/C28k13cKSQjahD9PcpyY3yJxCbkwJ5F67JAmnEx/JB8Ru9MoV1bFc8Gg spxwaWf/AxnkRibjxLmlGqSc1eLsVKoDk7zROvWiRhVQDhpIe+q6IhRU7aZUmCRlzc5JXePfnEC nS1EI6+N8ULDNrQOAbk8YSQlInbLykjxP3+0C8IyfaAtivZxykHu2viayHBgKH/ X-Google-Smtp-Source: AGHT+IEWBEyklYcigMhK/f6hw0n6UothVUCUkkFH1OMi5c07uL/f7dtdr7A8MWWTcbYExt4bh5ST7w== X-Received: by 2002:a05:6830:4882:b0:71d:4ec6:8600 with SMTP id 46e09a7af769-71e3b8a3f7amr2716099a34.13.1734116960513; Fri, 13 Dec 2024 11:09:20 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:20 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Gerd Hoffmann , Mark Cave-Ayland , Igor Mitsyanko , =?utf-8?q?Herv=C3=A9_Poussineau?= , Aleksandar Rikalo , Laurent Vivier , BALATON Zoltan , "Michael S. Tsirkin" , Stefano Garzarella , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Dmitry Fleytman , Alistair Francis , "Edgar E. Iglesias" , qemu-arm@nongnu.org (open list:Raspberry Pi), qemu-ppc@nongnu.org (open list:sam460ex) Subject: [PATCH 24/71] hw/display: Constify all Property Date: Fri, 13 Dec 2024 13:06:58 -0600 Message-ID: <20241213190750.2513964-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32e; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/display/artist.c | 2 +- hw/display/ati.c | 2 +- hw/display/bcm2835_fb.c | 2 +- hw/display/bochs-display.c | 2 +- hw/display/cg3.c | 2 +- hw/display/cirrus_vga.c | 2 +- hw/display/cirrus_vga_isa.c | 2 +- hw/display/exynos4210_fimd.c | 2 +- hw/display/g364fb.c | 2 +- hw/display/i2c-ddc.c | 2 +- hw/display/macfb.c | 4 ++-- hw/display/pl110.c | 2 +- hw/display/qxl.c | 2 +- hw/display/ramfb-standalone.c | 2 +- hw/display/sm501.c | 4 ++-- hw/display/tcx.c | 2 +- hw/display/vga-isa.c | 2 +- hw/display/vga-mmio.c | 2 +- hw/display/vga-pci.c | 4 ++-- hw/display/vhost-user-gpu.c | 2 +- hw/display/virtio-gpu-gl.c | 2 +- hw/display/virtio-gpu-pci.c | 2 +- hw/display/virtio-gpu-rutabaga.c | 2 +- hw/display/virtio-gpu.c | 2 +- hw/display/virtio-vga.c | 2 +- hw/display/vmware_vga.c | 2 +- hw/display/xlnx_dp.c | 2 +- 27 files changed, 30 insertions(+), 30 deletions(-) diff --git a/hw/display/artist.c b/hw/display/artist.c index 5790b7a64e..49deed328d 100644 --- a/hw/display/artist.c +++ b/hw/display/artist.c @@ -1474,7 +1474,7 @@ static const VMStateDescription vmstate_artist = { } }; -static Property artist_properties[] = { +static const Property artist_properties[] = { DEFINE_PROP_UINT16("width", ARTISTState, width, 1280), DEFINE_PROP_UINT16("height", ARTISTState, height, 1024), DEFINE_PROP_UINT16("depth", ARTISTState, depth, 8), diff --git a/hw/display/ati.c b/hw/display/ati.c index 593a25328d..e24e092bbc 100644 --- a/hw/display/ati.c +++ b/hw/display/ati.c @@ -1039,7 +1039,7 @@ static void ati_vga_exit(PCIDevice *dev) graphic_console_close(s->vga.con); } -static Property ati_vga_properties[] = { +static const Property ati_vga_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", ATIVGAState, vga.vram_size_mb, 16), DEFINE_PROP_STRING("model", ATIVGAState, model), DEFINE_PROP_UINT16("x-device-id", ATIVGAState, dev_id, diff --git a/hw/display/bcm2835_fb.c b/hw/display/bcm2835_fb.c index 7005d5bfea..2539fcc8ab 100644 --- a/hw/display/bcm2835_fb.c +++ b/hw/display/bcm2835_fb.c @@ -429,7 +429,7 @@ static void bcm2835_fb_realize(DeviceState *dev, Error **errp) qemu_console_resize(s->con, s->config.xres, s->config.yres); } -static Property bcm2835_fb_props[] = { +static const Property bcm2835_fb_props[] = { DEFINE_PROP_UINT32("vcram-base", BCM2835FBState, vcram_base, 0),/*required*/ DEFINE_PROP_UINT32("vcram-size", BCM2835FBState, vcram_size, DEFAULT_VCRAM_SIZE), diff --git a/hw/display/bochs-display.c b/hw/display/bochs-display.c index 3b1d922b6e..9a3263aa01 100644 --- a/hw/display/bochs-display.c +++ b/hw/display/bochs-display.c @@ -345,7 +345,7 @@ static void bochs_display_exit(PCIDevice *dev) graphic_console_close(s->con); } -static Property bochs_display_properties[] = { +static const Property bochs_display_properties[] = { DEFINE_PROP_SIZE("vgamem", BochsDisplayState, vgamem, 16 * MiB), DEFINE_PROP_BOOL("edid", BochsDisplayState, enable_edid, true), DEFINE_EDID_PROPERTIES(BochsDisplayState, edid_info), diff --git a/hw/display/cg3.c b/hw/display/cg3.c index 95f8f98b99..75b3312c24 100644 --- a/hw/display/cg3.c +++ b/hw/display/cg3.c @@ -361,7 +361,7 @@ static void cg3_reset(DeviceState *d) qemu_irq_lower(s->irq); } -static Property cg3_properties[] = { +static const Property cg3_properties[] = { DEFINE_PROP_UINT32("vram-size", CG3State, vram_size, -1), DEFINE_PROP_UINT16("width", CG3State, width, -1), DEFINE_PROP_UINT16("height", CG3State, height, -1), diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c index 150883a971..198ed9ed9b 100644 --- a/hw/display/cirrus_vga.c +++ b/hw/display/cirrus_vga.c @@ -2982,7 +2982,7 @@ static void pci_cirrus_vga_realize(PCIDevice *dev, Error **errp) } } -static Property pci_vga_cirrus_properties[] = { +static const Property pci_vga_cirrus_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", struct PCICirrusVGAState, cirrus_vga.vga.vram_size_mb, 4), DEFINE_PROP_BOOL("blitter", struct PCICirrusVGAState, diff --git a/hw/display/cirrus_vga_isa.c b/hw/display/cirrus_vga_isa.c index 84be51670e..d0d134470f 100644 --- a/hw/display/cirrus_vga_isa.c +++ b/hw/display/cirrus_vga_isa.c @@ -69,7 +69,7 @@ static void isa_cirrus_vga_realizefn(DeviceState *dev, Error **errp) /* FIXME not qdev yet */ } -static Property isa_cirrus_vga_properties[] = { +static const Property isa_cirrus_vga_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", struct ISACirrusVGAState, cirrus_vga.vga.vram_size_mb, 4), DEFINE_PROP_BOOL("blitter", struct ISACirrusVGAState, diff --git a/hw/display/exynos4210_fimd.c b/hw/display/exynos4210_fimd.c index f3d82498bf..4f097a172c 100644 --- a/hw/display/exynos4210_fimd.c +++ b/hw/display/exynos4210_fimd.c @@ -1925,7 +1925,7 @@ static const GraphicHwOps exynos4210_fimd_ops = { .gfx_update = exynos4210_fimd_update, }; -static Property exynos4210_fimd_properties[] = { +static const Property exynos4210_fimd_properties[] = { DEFINE_PROP_LINK("framebuffer-memory", Exynos4210fimdState, fbmem, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/display/g364fb.c b/hw/display/g364fb.c index fa2f184908..a7533c6908 100644 --- a/hw/display/g364fb.c +++ b/hw/display/g364fb.c @@ -512,7 +512,7 @@ static void g364fb_sysbus_reset(DeviceState *d) g364fb_reset(&s->g364); } -static Property g364fb_sysbus_properties[] = { +static const Property g364fb_sysbus_properties[] = { DEFINE_PROP_UINT32("vram_size", G364SysBusState, g364.vram_size, 8 * MiB), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/i2c-ddc.c b/hw/display/i2c-ddc.c index 465b00355e..a2d1f2b044 100644 --- a/hw/display/i2c-ddc.c +++ b/hw/display/i2c-ddc.c @@ -95,7 +95,7 @@ static const VMStateDescription vmstate_i2c_ddc = { } }; -static Property i2c_ddc_properties[] = { +static const Property i2c_ddc_properties[] = { DEFINE_EDID_PROPERTIES(I2CDDCState, edid_info), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/macfb.c b/hw/display/macfb.c index a5b4a499f3..977901bfdd 100644 --- a/hw/display/macfb.c +++ b/hw/display/macfb.c @@ -758,7 +758,7 @@ static void macfb_nubus_reset(DeviceState *d) macfb_reset(&s->macfb); } -static Property macfb_sysbus_properties[] = { +static const Property macfb_sysbus_properties[] = { DEFINE_PROP_UINT32("width", MacfbSysBusState, macfb.width, 640), DEFINE_PROP_UINT32("height", MacfbSysBusState, macfb.height, 480), DEFINE_PROP_UINT8("depth", MacfbSysBusState, macfb.depth, 8), @@ -777,7 +777,7 @@ static const VMStateDescription vmstate_macfb_sysbus = { } }; -static Property macfb_nubus_properties[] = { +static const Property macfb_nubus_properties[] = { DEFINE_PROP_UINT32("width", MacfbNubusState, macfb.width, 640), DEFINE_PROP_UINT32("height", MacfbNubusState, macfb.height, 480), DEFINE_PROP_UINT8("depth", MacfbNubusState, macfb.depth, 8), diff --git a/hw/display/pl110.c b/hw/display/pl110.c index 7f145bbdba..eca00b4279 100644 --- a/hw/display/pl110.c +++ b/hw/display/pl110.c @@ -535,7 +535,7 @@ static const GraphicHwOps pl110_gfx_ops = { .gfx_update = pl110_update_display, }; -static Property pl110_properties[] = { +static const Property pl110_properties[] = { DEFINE_PROP_LINK("framebuffer-memory", PL110State, fbmem, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 0c4b1c9bf2..949949d374 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -2458,7 +2458,7 @@ static const VMStateDescription qxl_vmstate = { } }; -static Property qxl_properties[] = { +static const Property qxl_properties[] = { DEFINE_PROP_UINT32("ram_size", PCIQXLDevice, vga.vram_size, 64 * MiB), DEFINE_PROP_UINT64("vram_size", PCIQXLDevice, vram32_size, 64 * MiB), DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision, diff --git a/hw/display/ramfb-standalone.c b/hw/display/ramfb-standalone.c index 20eab34ff4..e677f44be6 100644 --- a/hw/display/ramfb-standalone.c +++ b/hw/display/ramfb-standalone.c @@ -60,7 +60,7 @@ static const VMStateDescription ramfb_dev_vmstate = { } }; -static Property ramfb_properties[] = { +static const Property ramfb_properties[] = { DEFINE_PROP_BOOL("x-migrate", RAMFBStandaloneState, migrate, true), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/sm501.c b/hw/display/sm501.c index 38d005c168..446b648f1a 100644 --- a/hw/display/sm501.c +++ b/hw/display/sm501.c @@ -2054,7 +2054,7 @@ static void sm501_realize_sysbus(DeviceState *dev, Error **errp) /* TODO : chain irq to IRL */ } -static Property sm501_sysbus_properties[] = { +static const Property sm501_sysbus_properties[] = { DEFINE_PROP_UINT32("vram-size", SM501SysBusState, vram_size, 0), /* this a debug option, prefer PROP_UINT over PROP_BIT for simplicity */ DEFINE_PROP_UINT8("x-pixman", SM501SysBusState, state.use_pixman, DEFAULT_X_PIXMAN), @@ -2143,7 +2143,7 @@ static void sm501_realize_pci(PCIDevice *dev, Error **errp) &s->state.mmio_region); } -static Property sm501_pci_properties[] = { +static const Property sm501_pci_properties[] = { DEFINE_PROP_UINT32("vram-size", SM501PCIState, vram_size, 64 * MiB), DEFINE_PROP_UINT8("x-pixman", SM501PCIState, state.use_pixman, DEFAULT_X_PIXMAN), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/display/tcx.c b/hw/display/tcx.c index f000288fcd..3eb0a91ff9 100644 --- a/hw/display/tcx.c +++ b/hw/display/tcx.c @@ -879,7 +879,7 @@ static void tcx_realizefn(DeviceState *dev, Error **errp) qemu_console_resize(s->con, s->width, s->height); } -static Property tcx_properties[] = { +static const Property tcx_properties[] = { DEFINE_PROP_UINT32("vram_size", TCXState, vram_size, -1), DEFINE_PROP_UINT16("width", TCXState, width, -1), DEFINE_PROP_UINT16("height", TCXState, height, -1), diff --git a/hw/display/vga-isa.c b/hw/display/vga-isa.c index c025632635..a6cbf77103 100644 --- a/hw/display/vga-isa.c +++ b/hw/display/vga-isa.c @@ -88,7 +88,7 @@ static void vga_isa_realizefn(DeviceState *dev, Error **errp) rom_add_vga(VGABIOS_FILENAME); } -static Property vga_isa_properties[] = { +static const Property vga_isa_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", ISAVGAState, state.vram_size_mb, 8), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/vga-mmio.c b/hw/display/vga-mmio.c index be33204517..b759efdde7 100644 --- a/hw/display/vga-mmio.c +++ b/hw/display/vga-mmio.c @@ -111,7 +111,7 @@ static void vga_mmio_realizefn(DeviceState *dev, Error **errp) s->vga.con = graphic_console_init(dev, 0, s->vga.hw_ops, &s->vga); } -static Property vga_mmio_properties[] = { +static const Property vga_mmio_properties[] = { DEFINE_PROP_UINT8("it_shift", VGAMmioState, it_shift, 0), DEFINE_PROP_UINT32("vgamem_mb", VGAMmioState, vga.vram_size_mb, 8), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c index 6b51019966..3145c448f5 100644 --- a/hw/display/vga-pci.c +++ b/hw/display/vga-pci.c @@ -330,7 +330,7 @@ static void pci_secondary_vga_reset(DeviceState *dev) vga_common_reset(&d->vga); } -static Property vga_pci_properties[] = { +static const Property vga_pci_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", PCIVGAState, vga.vram_size_mb, 16), DEFINE_PROP_BIT("mmio", PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_MMIO, true), DEFINE_PROP_BIT("qemu-extended-regs", @@ -342,7 +342,7 @@ static Property vga_pci_properties[] = { DEFINE_PROP_END_OF_LIST(), }; -static Property secondary_pci_properties[] = { +static const Property secondary_pci_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", PCIVGAState, vga.vram_size_mb, 16), DEFINE_PROP_BIT("qemu-extended-regs", PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_QEXT, true), diff --git a/hw/display/vhost-user-gpu.c b/hw/display/vhost-user-gpu.c index 14548f1a57..a36eddcb12 100644 --- a/hw/display/vhost-user-gpu.c +++ b/hw/display/vhost-user-gpu.c @@ -645,7 +645,7 @@ static struct vhost_dev *vhost_user_gpu_get_vhost(VirtIODevice *vdev) return g->vhost ? &g->vhost->dev : NULL; } -static Property vhost_user_gpu_properties[] = { +static const Property vhost_user_gpu_properties[] = { VIRTIO_GPU_BASE_PROPERTIES(VhostUserGPU, parent_obj.conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/virtio-gpu-gl.c b/hw/display/virtio-gpu-gl.c index 7c0e448b46..6f31149e1e 100644 --- a/hw/display/virtio-gpu-gl.c +++ b/hw/display/virtio-gpu-gl.c @@ -154,7 +154,7 @@ static void virtio_gpu_gl_device_realize(DeviceState *qdev, Error **errp) virtio_gpu_device_realize(qdev, errp); } -static Property virtio_gpu_gl_properties[] = { +static const Property virtio_gpu_gl_properties[] = { DEFINE_PROP_BIT("stats", VirtIOGPU, parent_obj.conf.flags, VIRTIO_GPU_FLAG_STATS_ENABLED, false), DEFINE_PROP_BIT("venus", VirtIOGPU, parent_obj.conf.flags, diff --git a/hw/display/virtio-gpu-pci.c b/hw/display/virtio-gpu-pci.c index da6a99f038..89d27c9d85 100644 --- a/hw/display/virtio-gpu-pci.c +++ b/hw/display/virtio-gpu-pci.c @@ -21,7 +21,7 @@ #include "hw/virtio/virtio-gpu-pci.h" #include "qom/object.h" -static Property virtio_gpu_pci_base_properties[] = { +static const Property virtio_gpu_pci_base_properties[] = { DEFINE_VIRTIO_GPU_PCI_PROPERTIES(VirtIOPCIProxy), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/virtio-gpu-rutabaga.c b/hw/display/virtio-gpu-rutabaga.c index 17bf701a21..f6486acdda 100644 --- a/hw/display/virtio-gpu-rutabaga.c +++ b/hw/display/virtio-gpu-rutabaga.c @@ -1096,7 +1096,7 @@ static void virtio_gpu_rutabaga_realize(DeviceState *qdev, Error **errp) virtio_gpu_device_realize(qdev, errp); } -static Property virtio_gpu_rutabaga_properties[] = { +static const Property virtio_gpu_rutabaga_properties[] = { DEFINE_PROP_BIT64("gfxstream-vulkan", VirtIOGPURutabaga, capset_mask, RUTABAGA_CAPSET_GFXSTREAM_VULKAN, false), DEFINE_PROP_BIT64("cross-domain", VirtIOGPURutabaga, capset_mask, diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 7d22d03bbf..82741d19e5 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -1674,7 +1674,7 @@ static const VMStateDescription vmstate_virtio_gpu = { .post_load = virtio_gpu_post_load, }; -static Property virtio_gpu_properties[] = { +static const Property virtio_gpu_properties[] = { VIRTIO_GPU_BASE_PROPERTIES(VirtIOGPU, parent_obj.conf), DEFINE_PROP_SIZE("max_hostmem", VirtIOGPU, conf_max_hostmem, 256 * MiB), diff --git a/hw/display/virtio-vga.c b/hw/display/virtio-vga.c index 276f315108..532e4c62d5 100644 --- a/hw/display/virtio-vga.c +++ b/hw/display/virtio-vga.c @@ -209,7 +209,7 @@ static void virtio_vga_set_big_endian_fb(Object *obj, bool value, Error **errp) d->vga.big_endian_fb = value; } -static Property virtio_vga_base_properties[] = { +static const Property virtio_vga_base_properties[] = { DEFINE_VIRTIO_GPU_PCI_PROPERTIES(VirtIOPCIProxy), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c index f2d72c3fc7..f49bbf393a 100644 --- a/hw/display/vmware_vga.c +++ b/hw/display/vmware_vga.c @@ -1332,7 +1332,7 @@ static void pci_vmsvga_realize(PCIDevice *dev, Error **errp) &s->chip.fifo_ram); } -static Property vga_vmware_properties[] = { +static const Property vga_vmware_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", struct pci_vmsvga_state_s, chip.vga.vram_size_mb, 16), DEFINE_PROP_BOOL("global-vmstate", struct pci_vmsvga_state_s, diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c index 6ab2335499..7838f28bca 100644 --- a/hw/display/xlnx_dp.c +++ b/hw/display/xlnx_dp.c @@ -1387,7 +1387,7 @@ static void xlnx_dp_reset(DeviceState *dev) xlnx_dp_update_irq(s); } -static Property xlnx_dp_device_properties[] = { +static const Property xlnx_dp_device_properties[] = { DEFINE_AUDIO_PROPERTIES(XlnxDPState, aud_card), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:06:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907701 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EDB1FE77183 for ; Fri, 13 Dec 2024 19:19:59 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3I-0005Lp-2N; Fri, 13 Dec 2024 14:10:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2W-0003mf-Vh for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:30 -0500 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2R-0006go-6e for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:25 -0500 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71e181fb288so940814a34.2 for ; Fri, 13 Dec 2024 11:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116962; x=1734721762; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2QX322DCnm5cE0pXBGmrME5GjV/mM7P7qq+mljbXHQc=; b=FYbPsRuLN27DAsU+h5Gq1SIxYwAgHil+XRVB7v44rSfzJWKMCBmU4llcF9VQqWs2LH u4ShZjGNFYwHEhbjj0b7y9+oJzH4jpsfzhVjFR9dS3RMv1Uhry0AaoyyNvz6Pw0GXEbD /AKY17CxHS0ALGDISIWTBqNTVsyZNI9z7DchhMlemCZp67s747PjABjwt2mNYtJrJ9ml 2TVXlBe02fc/OnQoFjq4J1hpds+4Gyhu1OxfDXLugDTGcef/flBdwFKqD/SOuAJ3Lt1w wTNVZrLEck+zoEpD066C7KTo32V48oUmrMJgFjq/sLC3nRUcALmp5K8/TC9U72lWXhSP 8fwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116962; x=1734721762; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2QX322DCnm5cE0pXBGmrME5GjV/mM7P7qq+mljbXHQc=; b=Sg+bX8g1GrvCjVTKnCxN/+mhlZ6+lNq15Ji191lWUQg7QiUqxfajigni20XBhKyMGK hnxmxUdz6mtYiYRxN5Z2JHzN3eInhilxVGM8HwTtc0x6XdgVScJSnXpY1hZEzpAYY0vl qkQDHJy3hL0Y9O940TZEPf8S4TlkZGYEnBQdC0WkBXIHWleEOt7n5gMqA7KNMZ6wvbrX i/OcO7AT9ZSpdv7qKxwGpcn5EnH3Z4J+/E6o8LTwPLJyEm+M4BZHNW6Qfc/H7Rk9logt 09zVneLQKwtaC5LMHZsTxSmBbmJobdxnmw7D6AmuWV13wH39PtxuHBayzaJJaTFMYrmW Pz9g== X-Gm-Message-State: AOJu0YwmIyWzsRoqoFRfBhkPw6Wns5oSi/S/D5M9W9SDuApmi2UcrVZR UKthjOowTU/MwXg554+ojuYIT/5RnwM26cHgkHf5Q5k9TZuhvOg8odkTjVP5tTEpEUZADzeOrGn ekzECw6ce X-Gm-Gg: ASbGncskEkQ3LSH1DuUlSfKxsAeG8oS+x5knfVu1np4WUq9eCjCJM9fr5d+ToHzmRiO +q7yVPVZKzKZem3Wm2gxHmyUZIttNDpR0nBhkZiTH9OWnpqYFRNfPiq9SfUy3JfApd6g8/fWiYP juvW/QMcxRikOCuZVDs7OW3qFYkn5y8gLbZ7/uUvFJlT2xJy2pNg7r6GF9dDByxC75w6MStHfd3 an7wEWztKbUiCHiYdWuTj70i+d1dWSkdhZKzCoEK0NSndjRaD8wWklOxUeg9clJ X-Google-Smtp-Source: AGHT+IFDPHpOX/QqcYPt+gU+gLigqJo/Sg/1M3YfPDWbyWLwbfc/o2zOYWTDMoHIzO5ifLqMAWyefg== X-Received: by 2002:a05:6830:2b2b:b0:71d:548d:6f76 with SMTP id 46e09a7af769-71e3ba4f66dmr1971252a34.26.1734116961994; Fri, 13 Dec 2024 11:09:21 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Herv=C3=A9_Poussineau?= , "Michael S. Tsirkin" , Paolo Bonzini , Peter Maydell , "Edgar E. Iglesias" , Alistair Francis , qemu-ppc@nongnu.org (open list:PReP), qemu-arm@nongnu.org (open list:ARM PrimeCell and...) Subject: [PATCH 25/71] hw/dma: Constify all Property Date: Fri, 13 Dec 2024 13:06:59 -0600 Message-ID: <20241213190750.2513964-30-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/dma/i82374.c | 2 +- hw/dma/i8257.c | 2 +- hw/dma/pl080.c | 2 +- hw/dma/pl330.c | 2 +- hw/dma/xilinx_axidma.c | 2 +- hw/dma/xlnx-zdma.c | 2 +- hw/dma/xlnx_csu_dma.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c index e72aa2e1ce..032afedde2 100644 --- a/hw/dma/i82374.c +++ b/hw/dma/i82374.c @@ -139,7 +139,7 @@ static void i82374_realize(DeviceState *dev, Error **errp) memset(s->commands, 0, sizeof(s->commands)); } -static Property i82374_properties[] = { +static const Property i82374_properties[] = { DEFINE_PROP_UINT32("iobase", I82374State, iobase, 0x400), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index 3e6700e53b..8b04177393 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/i8257.c @@ -585,7 +585,7 @@ static void i8257_realize(DeviceState *dev, Error **errp) d->dma_bh = qemu_bh_new(i8257_dma_run, d); } -static Property i8257_properties[] = { +static const Property i8257_properties[] = { DEFINE_PROP_INT32("base", I8257State, base, 0x00), DEFINE_PROP_INT32("page-base", I8257State, page_base, 0x80), DEFINE_PROP_INT32("pageh-base", I8257State, pageh_base, 0x480), diff --git a/hw/dma/pl080.c b/hw/dma/pl080.c index 8e76f88a69..3f392822ed 100644 --- a/hw/dma/pl080.c +++ b/hw/dma/pl080.c @@ -408,7 +408,7 @@ static void pl081_init(Object *obj) s->nchannels = 2; } -static Property pl080_properties[] = { +static const Property pl080_properties[] = { DEFINE_PROP_LINK("downstream", PL080State, downstream, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c index 0668caed7c..d5a0a1caa2 100644 --- a/hw/dma/pl330.c +++ b/hw/dma/pl330.c @@ -1646,7 +1646,7 @@ static void pl330_realize(DeviceState *dev, Error **errp) pl330_fifo_init(&s->fifo, s->data_width / 4 * s->data_buffer_dep); } -static Property pl330_properties[] = { +static const Property pl330_properties[] = { /* CR0 */ DEFINE_PROP_UINT32("num_chnls", PL330State, num_chnls, 8), DEFINE_PROP_UINT8("num_periph_req", PL330State, num_periph_req, 4), diff --git a/hw/dma/xilinx_axidma.c b/hw/dma/xilinx_axidma.c index 73a480bfbf..f09452d0b5 100644 --- a/hw/dma/xilinx_axidma.c +++ b/hw/dma/xilinx_axidma.c @@ -611,7 +611,7 @@ static void xilinx_axidma_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property axidma_properties[] = { +static const Property axidma_properties[] = { DEFINE_PROP_UINT32("freqhz", XilinxAXIDMA, freqhz, 50000000), DEFINE_PROP_LINK("axistream-connected", XilinxAXIDMA, tx_data_dev, TYPE_STREAM_SINK, StreamSink *), diff --git a/hw/dma/xlnx-zdma.c b/hw/dma/xlnx-zdma.c index 46f50631ff..1a63d5f3b2 100644 --- a/hw/dma/xlnx-zdma.c +++ b/hw/dma/xlnx-zdma.c @@ -810,7 +810,7 @@ static const VMStateDescription vmstate_zdma = { } }; -static Property zdma_props[] = { +static const Property zdma_props[] = { DEFINE_PROP_UINT32("bus-width", XlnxZDMA, cfg.bus_width, 64), DEFINE_PROP_LINK("dma", XlnxZDMA, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), diff --git a/hw/dma/xlnx_csu_dma.c b/hw/dma/xlnx_csu_dma.c index 43738c4350..d78dc6444b 100644 --- a/hw/dma/xlnx_csu_dma.c +++ b/hw/dma/xlnx_csu_dma.c @@ -691,7 +691,7 @@ static const VMStateDescription vmstate_xlnx_csu_dma = { } }; -static Property xlnx_csu_dma_properties[] = { +static const Property xlnx_csu_dma_properties[] = { /* * Ref PG021, Stream Data Width: * Data width in bits of the AXI S2MM AXI4-Stream Data bus. From patchwork Fri Dec 13 19:07:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907691 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E62FE7717F for ; Fri, 13 Dec 2024 19:15:06 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB4A-0006ce-1h; Fri, 13 Dec 2024 14:11:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB3S-0005ax-Ga for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:29 -0500 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3P-000710-Af for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:26 -0500 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-288fa5ce8f0so584940fac.3 for ; Fri, 13 Dec 2024 11:10:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117021; x=1734721821; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gdY3dpYi7vhtPasvRS2TH4CuRkN2+rNlovkFrA09YtY=; b=Drzv1QJJxtheV98fd/3HUJN0hDDDzCtRXGIPV/xbCGp3A2bt8aD+8FKV0DyVGsjvPb 5a0fjup0G7kp1IB1KdbLgwGyCuxZoUZ0GqwIvuUHDXArn2KqudBG8hlRZMyKLTdqYqqf IDGG/i+20deHJxt2SM8CAzwIcT611h/XAirGnOdy+XRRTWIcXvQigBPVmSg8BJyuIZKv oNk6z4ubABR3DaRo8IzR+yn3WcPsM0wXhVryNlNHI6byiBsRI7TYLqjL/pLulNLf2EdF f8ISD7iRXb2aiXnfTDXv6G43/SS/OIAH3Alsy87ckm1J/f5VjjMoejVriZ5lbqlIUv9c g/eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117021; x=1734721821; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gdY3dpYi7vhtPasvRS2TH4CuRkN2+rNlovkFrA09YtY=; b=RL+RdjOwlQxIVBuCPMlHTaC+SNfqPZsCOtcRtUd2d/Sobo2onM/pF8ps/2uxQ2lHtl eCn3lZUNUYOGG0z9QpdOBYwYUgVnwSFiHekne9XrxZEqS3EDFfvEbwhOf74ma9LKFDa8 KUL1LitXIi1gRarN7XdPqqrSTDuEAOm21cLEvNXeHNY9IpbnWmQS7gLRfvFsjxRtJwI0 SCaToJNXAsLk07PmOD0YejhlX1iUV30sJ9BB74PxeUhN+uxn8WblfrWNqk+Hbi7xlbEr //4ga1uQ0k/JSEX60Lh5+gipCRxs/MHJu72DSwDE1djBpGdRIpSDO+83xkoEMmOQy6LV 43sQ== X-Gm-Message-State: AOJu0YyAb1ExfS5/31jF6ENiULGq+K3GxjyWeDc1mQFo4vNomAjbJYdN e03/GmYYhSanJHiw8oePoX5ut0Xff/5oLgp8jtF1XERrCekcoW90wuyalUyR0249Gw1zEODzuH8 UcaiQ/JwI X-Gm-Gg: ASbGncuIhrII9QkSn5SwiSmuzUsnjDq/8iu8GJLYY5IMRLd4JZhZyTnIpAgFMFb2Av9 4dNCq8yTra3YtbjYlfKm495DwmZsB0FsYLzPONPuuM7kgIuM06YNkOTZIhp2sZWRTtQHwfyLJvd RG+uThx1U7wKMbVLd4ago4q74uqHWtqiTAYFea2KW+LU2WW6Yk5BbOo7B3gaIYanxdJ/o3ZW2yl psQBxoT3012LZraLpDPuKZOYZubualSV9Y3cBQ/PCBxRFSNIR2kXiC4fM4+C6vG X-Google-Smtp-Source: AGHT+IEBK9VVHbD+tMcR1PhVRRR/hATZTW94X31wfpiTyqoyvbzPK4bOeFlnV1nroIYqbLs+yji2tA== X-Received: by 2002:a05:6808:1b10:b0:3eb:4f4d:c298 with SMTP id 5614622812f47-3eba6872124mr1614521b6e.15.1734117021214; Fri, 13 Dec 2024 11:10:21 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:20 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Maydell , Tyrone Ting , Hao Wu , Glenn Miles , Alistair Francis , Bin Meng , Palmer Dabbelt , Samuel Tardieu , qemu-arm@nongnu.org (open list:i.MX31 (kzm)), qemu-ppc@nongnu.org (open list:pca955x), qemu-riscv@nongnu.org (open list:SiFive Machines) Subject: [PATCH 26/71] hw/gpio: Constify all Property Date: Fri, 13 Dec 2024 13:07:00 -0600 Message-ID: <20241213190750.2513964-31-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2b; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/gpio/imx_gpio.c | 2 +- hw/gpio/npcm7xx_gpio.c | 2 +- hw/gpio/omap_gpio.c | 2 +- hw/gpio/pca9552.c | 2 +- hw/gpio/pca9554.c | 2 +- hw/gpio/pl061.c | 2 +- hw/gpio/sifive_gpio.c | 2 +- hw/gpio/stm32l4x5_gpio.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/gpio/imx_gpio.c b/hw/gpio/imx_gpio.c index 27535a577f..919d53701f 100644 --- a/hw/gpio/imx_gpio.c +++ b/hw/gpio/imx_gpio.c @@ -290,7 +290,7 @@ static const VMStateDescription vmstate_imx_gpio = { } }; -static Property imx_gpio_properties[] = { +static const Property imx_gpio_properties[] = { DEFINE_PROP_BOOL("has-edge-sel", IMXGPIOState, has_edge_sel, true), DEFINE_PROP_BOOL("has-upper-pin-irq", IMXGPIOState, has_upper_pin_irq, false), diff --git a/hw/gpio/npcm7xx_gpio.c b/hw/gpio/npcm7xx_gpio.c index ba19b9ebad..db6792b2ad 100644 --- a/hw/gpio/npcm7xx_gpio.c +++ b/hw/gpio/npcm7xx_gpio.c @@ -386,7 +386,7 @@ static const VMStateDescription vmstate_npcm7xx_gpio = { }, }; -static Property npcm7xx_gpio_properties[] = { +static const Property npcm7xx_gpio_properties[] = { /* Bit n set => pin n has pullup enabled by default. */ DEFINE_PROP_UINT32("reset-pullup", NPCM7xxGPIOState, reset_pu, 0), /* Bit n set => pin n has pulldown enabled by default. */ diff --git a/hw/gpio/omap_gpio.c b/hw/gpio/omap_gpio.c index a47a2167a6..03ee9e47c6 100644 --- a/hw/gpio/omap_gpio.c +++ b/hw/gpio/omap_gpio.c @@ -225,7 +225,7 @@ void omap_gpio_set_clk(Omap1GpioState *gpio, omap_clk clk) gpio->clk = clk; } -static Property omap_gpio_properties[] = { +static const Property omap_gpio_properties[] = { DEFINE_PROP_INT32("mpu_model", Omap1GpioState, mpu_model, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/gpio/pca9552.c b/hw/gpio/pca9552.c index 59b233339a..427419d218 100644 --- a/hw/gpio/pca9552.c +++ b/hw/gpio/pca9552.c @@ -428,7 +428,7 @@ static void pca955x_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, pca955x_gpio_in_handler, k->pin_count); } -static Property pca955x_properties[] = { +static const Property pca955x_properties[] = { DEFINE_PROP_STRING("description", PCA955xState, description), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/gpio/pca9554.c b/hw/gpio/pca9554.c index 68cc9e1de4..e8b0458aac 100644 --- a/hw/gpio/pca9554.c +++ b/hw/gpio/pca9554.c @@ -291,7 +291,7 @@ static void pca9554_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, pca9554_gpio_in_handler, PCA9554_PIN_COUNT); } -static Property pca9554_properties[] = { +static const Property pca9554_properties[] = { DEFINE_PROP_STRING("description", PCA9554State, description), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/gpio/pl061.c b/hw/gpio/pl061.c index d5838b8e98..9b8ca6de32 100644 --- a/hw/gpio/pl061.c +++ b/hw/gpio/pl061.c @@ -562,7 +562,7 @@ static void pl061_realize(DeviceState *dev, Error **errp) } } -static Property pl061_props[] = { +static const Property pl061_props[] = { DEFINE_PROP_UINT32("pullups", PL061State, pullups, 0xff), DEFINE_PROP_UINT32("pulldowns", PL061State, pulldowns, 0x0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/gpio/sifive_gpio.c b/hw/gpio/sifive_gpio.c index e85c0406a2..5603f0c235 100644 --- a/hw/gpio/sifive_gpio.c +++ b/hw/gpio/sifive_gpio.c @@ -349,7 +349,7 @@ static const VMStateDescription vmstate_sifive_gpio = { } }; -static Property sifive_gpio_properties[] = { +static const Property sifive_gpio_properties[] = { DEFINE_PROP_UINT32("ngpio", SIFIVEGPIOState, ngpio, SIFIVE_GPIO_PINS), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/gpio/stm32l4x5_gpio.c b/hw/gpio/stm32l4x5_gpio.c index 30d8d6cba4..d1394f3f55 100644 --- a/hw/gpio/stm32l4x5_gpio.c +++ b/hw/gpio/stm32l4x5_gpio.c @@ -447,7 +447,7 @@ static const VMStateDescription vmstate_stm32l4x5_gpio = { } }; -static Property stm32l4x5_gpio_properties[] = { +static const Property stm32l4x5_gpio_properties[] = { DEFINE_PROP_STRING("name", Stm32l4x5GpioState, name), DEFINE_PROP_UINT32("mode-reset", Stm32l4x5GpioState, moder_reset, 0), DEFINE_PROP_UINT32("ospeed-reset", Stm32l4x5GpioState, ospeedr_reset, 0), From patchwork Fri Dec 13 19:07:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907703 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B25EFE77186 for ; Fri, 13 Dec 2024 19:20:01 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3n-00066D-8j; Fri, 13 Dec 2024 14:10:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB3S-0005an-C1 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:29 -0500 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3P-00071B-GR for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:26 -0500 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-71e15d9629bso528382a34.1 for ; Fri, 13 Dec 2024 11:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117022; x=1734721822; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YNM7GoGVjyi9pb6tl93/GE1pyMMqg1z6U/rJvq0HOPE=; b=Kio51QSThz88XZ7IqsIPF0CupWyYUBZT82tpVw4ixlr9pcnKvywGlVqfbQTykxdqg1 nhuUoRgLlW1Q2Sm7HLgxJb1ppp/9DxHUQ+IXpuiDC527lQUxaL9tGhRS1iBjli9lOTw3 xbg4WGkX0CAkQUbc6S5dZ8lFOV8uFjtU6n5RcZIxWoVBT/wfjNJLlZFm1kyO/evoP7O5 xAtgaxBxidYpmjunbJyY5UikNmD4mcr7FuDKj38/ObzaxoXbmhgeaq3fAtxcTtmJnBC/ EKQD6Fum5atlmXidGrrolpSQb3uNhxP9XmmtzECgq5mfSb3ljn7Vmgsj3pxTKUT/yz3V 2GtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117022; x=1734721822; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YNM7GoGVjyi9pb6tl93/GE1pyMMqg1z6U/rJvq0HOPE=; b=ccA9puFoMqWAS73QfEtXuQJIbEsccgoRzmJ4cewGFBo4jMEK2Cw1BCb8BS/RjM7RKD ehML1HALX0ZzOsz84CVPalJrOpc7oEKXOUZzO9wg31ENpLMXNTgPoCZ7TIW1+BXVGi5h XXs7Tr3CYSCfeYw9GC9MuQ3xZX3ImJREs7DAYagSjKL1mMoAINGqFIjO1Kh8DoN36+LT hfuDPklgxMqKgYcMWpgh5+FZfxREtdjQBbndrEksMswZJO8Kf5MgNJ+4I0RsNGepLvI9 aXmmM27wdbksq04SDypCcCxgqp5jRnLFsDub1nbWYS5QvDwQQN6WYXVqetGPVzjpISQb RJpQ== X-Gm-Message-State: AOJu0YwEXUlE34vD8IALybM5z8v7nmGJ7cVkS7IpNPpdxeUCBhs/X+f2 jc9VUFLJzpQlUXRQ+V+COXwi/uLEzeXQSPAjoU1GpkSMXma70FRiTVAFSmtJ1nDzaRDx9JL9xvF rhUWA5sJU X-Gm-Gg: ASbGncuupQnRhnpwL7KzfuwRT8eFoxuqU+ILlkx+qeSa0AUohJ3RUrxToVw/2mbSNrq l5gorcRSPYT+qo4UpHdoqw7O1Rq/R8g2qyVEKi37xKqsGgU5hvgvOgu9c+yyQ0AGctu32+/5iii 3JvstvZ0WhugXdlMU1WSdoWVHacKdArzbsXpzCmsne04iFn9BLpj9LbGEVA4jV9IXC2HudM/E+4 1eCuGEJI210pcw1R6eu3OJX7rPS4BVnjDQ7TX+4f20Dtg1iXcGeLw2+FhtY8N0P X-Google-Smtp-Source: AGHT+IHr0INjwVzgtiBXE9quaOGtoLF1XTz33VkEZb2w7XZaCpxw0pkK4Ss/q5sPUZy5df58fe/wsg== X-Received: by 2002:a05:6830:658a:b0:71d:e0b8:5f0f with SMTP id 46e09a7af769-71e3ba43471mr2152421a34.29.1734117022151; Fri, 13 Dec 2024 11:10:22 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Maciej S. Szmigiero" Subject: [PATCH 27/71] hw/hyperv: Constify all Property Date: Fri, 13 Dec 2024 13:07:01 -0600 Message-ID: <20241213190750.2513964-32-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::336; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Acked-by: Maciej S. Szmigiero --- hw/hyperv/hv-balloon.c | 2 +- hw/hyperv/syndbg.c | 2 +- hw/hyperv/vmbus.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/hyperv/hv-balloon.c b/hw/hyperv/hv-balloon.c index 3a9ef07691..74897b1604 100644 --- a/hw/hyperv/hv-balloon.c +++ b/hw/hyperv/hv-balloon.c @@ -1733,7 +1733,7 @@ static void hv_balloon_finalize(Object *obj) hv_balloon_unrealize_finalize_common(balloon); } -static Property hv_balloon_properties[] = { +static const Property hv_balloon_properties[] = { DEFINE_PROP_BOOL("status-report", HvBalloon, status_report.enabled, false), diff --git a/hw/hyperv/syndbg.c b/hw/hyperv/syndbg.c index 065e12fb1e..0193addd42 100644 --- a/hw/hyperv/syndbg.c +++ b/hw/hyperv/syndbg.c @@ -366,7 +366,7 @@ static const VMStateDescription vmstate_hv_syndbg = { .unmigratable = 1, }; -static Property hv_syndbg_properties[] = { +static const Property hv_syndbg_properties[] = { DEFINE_PROP_STRING("host_ip", HvSynDbg, host_ip), DEFINE_PROP_UINT16("host_port", HvSynDbg, host_port, 50000), DEFINE_PROP_BOOL("use_hcalls", HvSynDbg, use_hcalls, false), diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c index b36bd3d67d..3d1f4d14e8 100644 --- a/hw/hyperv/vmbus.c +++ b/hw/hyperv/vmbus.c @@ -2346,7 +2346,7 @@ static void vmbus_dev_unrealize(DeviceState *dev) free_channels(vdev); } -static Property vmbus_dev_props[] = { +static const Property vmbus_dev_props[] = { DEFINE_PROP_UUID("instanceid", VMBusDevice, instanceid), DEFINE_PROP_END_OF_LIST() }; @@ -2653,7 +2653,7 @@ static const VMStateDescription vmstate_vmbus_bridge = { }, }; -static Property vmbus_bridge_props[] = { +static const Property vmbus_bridge_props[] = { DEFINE_PROP_UINT8("irq", VMBusBridge, irq, 7), DEFINE_PROP_END_OF_LIST() }; From patchwork Fri Dec 13 19:07:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907780 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C991AE77180 for ; Fri, 13 Dec 2024 19:35:06 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB43-0006YU-Vm; Fri, 13 Dec 2024 14:11:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB3T-0005bY-UQ for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:31 -0500 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3Q-00071R-PY for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:27 -0500 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71e35be77b5so458107a34.1 for ; Fri, 13 Dec 2024 11:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117023; x=1734721823; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4K+Ow/kpxla1hHfSMb1r5BWBj60XilhZFUT+PuNLeCM=; b=rJ1zB70ld3fkZYYS0SLH3sC+Yp5bJPEKdCsDse0YW66Ci8Oa8wijrkO/QtCUvdUuKK BkTph2MufouxJuk1CoSXxN6ZG+GsTdGYCIqV4WSnaP9wSCyEVqrJMDR/zOlv7c6hPDGT HHRDKl8S8LsgAJeYUmj75S/3vXagjzZe9k/bn9XBoZn+hdiOaFejx89Y9O6voIQITUvv FaGTUiFC3KRuqyUQB1RypQY1FkdRti+5pkJktA9TGbYdVFqWC5/PFGX7HTcm0wqKcI4Q G0zRMu2A3LYBAclAmIsc9WjleMsQFfIrKfpJFsmnndU89iYyz9ZfbbYYTv0xTiOm6cW3 c/Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117023; x=1734721823; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4K+Ow/kpxla1hHfSMb1r5BWBj60XilhZFUT+PuNLeCM=; b=b9PNUvzlbi1/IjVjUSBHzxyY8Jh85zznaol8fiStpqAP0q3q9xnTNAZnsxoBQ2U8Ug WWlX9mD4i2sK1mNKJci0lOtnCS5k1vKwWwc0Yexu6HxhlNut6wDEeeJ3AKkZJtJe/0UP 2TBq4zkXAkFzC5DDOQ9ZMAzwSihTleun4ahvL49BQPf0eQCurDunQe6O0gs0hVM3faXT lI4yRyvCGwOWmnmyvtMJAeJ0mGWgORd5gjiVMLcs6wlDL3CM7liF35T97gCE5q5soL6c Ozs00Zsn3ClwT+qC+D9GZ76KzLcKCf+aPrVXnuGkVc6rGAjc8KGJSVGYefwpicc0YIWo pBog== X-Gm-Message-State: AOJu0YxCwxpvT9JUTQ52FHZHkD+QaPVmCuaum71kURKoFFoejg8PP6bH iV67mQboWTUtar3LQPljCYqiUGk68aYouoBPOhM8isiV7tHx3MbUffitLaHvids5RJZUw1coG0I 4EK0qJaiZ X-Gm-Gg: ASbGnct/Ntc+4k36BGxP97MR37UMqyIi3/zXojdhVSuoSsYeDwYUIcLUwiKAwVgdX52 5GfKw9SvRN607+X2GE9R7iQqrLxVHrEil86W2PF0LaNRYDXGsjc5vc6NagU50AMymo6IB5sHF/r yNq2C+vo/DcVWo/Pkd5WYH19dhrJQuSMeLaP+TVthX2MuozjaxlALysBaCmg92MkfHwyzt6NYk6 FWpMKs7j0Uy+emyLxgThggElKGk5JsE9+hp41nvsbX5Nc0nFjWa46L+Y/oAq9AT X-Google-Smtp-Source: AGHT+IFZH/Qbth4WBfUBFT9Z4/ZH2zjE99ESl/+3I1fhz0CO0ozfa3EVmFNd2aZBP2ZrZzKbflvUVg== X-Received: by 2002:a05:6830:258c:b0:710:fef4:3c92 with SMTP id 46e09a7af769-71e3ba26862mr2771330a34.21.1734117023633; Fri, 13 Dec 2024 11:10:23 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:23 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Corey Minyard , Patrick Leis , qemu-arm@nongnu.org (open list:ASPEED BMCs) Subject: [PATCH 28/71] hw/i2c: Constify all Property Date: Fri, 13 Dec 2024 13:07:02 -0600 Message-ID: <20241213190750.2513964-33-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Acked-by: Corey Minyard Reviewed-by: Cédric Le Goater --- hw/i2c/aspeed_i2c.c | 4 ++-- hw/i2c/core.c | 2 +- hw/i2c/i2c_mux_pca954x.c | 2 +- hw/i2c/omap_i2c.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c index 3ae22cb052..2ea68c3090 100644 --- a/hw/i2c/aspeed_i2c.c +++ b/hw/i2c/aspeed_i2c.c @@ -1258,7 +1258,7 @@ static void aspeed_i2c_realize(DeviceState *dev, Error **errp) } } -static Property aspeed_i2c_properties[] = { +static const Property aspeed_i2c_properties[] = { DEFINE_PROP_LINK("dram", AspeedI2CState, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), @@ -1446,7 +1446,7 @@ static void aspeed_i2c_bus_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->mr_pool); } -static Property aspeed_i2c_bus_properties[] = { +static const Property aspeed_i2c_bus_properties[] = { DEFINE_PROP_UINT8("bus-id", AspeedI2CBus, id, 0), DEFINE_PROP_LINK("controller", AspeedI2CBus, controller, TYPE_ASPEED_I2C, AspeedI2CState *), diff --git a/hw/i2c/core.c b/hw/i2c/core.c index 4cf30b2c86..4118d3db50 100644 --- a/hw/i2c/core.c +++ b/hw/i2c/core.c @@ -18,7 +18,7 @@ #define I2C_BROADCAST 0x00 -static Property i2c_props[] = { +static const Property i2c_props[] = { DEFINE_PROP_UINT8("address", struct I2CSlave, address, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/i2c/i2c_mux_pca954x.c b/hw/i2c/i2c_mux_pca954x.c index db5db956a6..80c570fd10 100644 --- a/hw/i2c/i2c_mux_pca954x.c +++ b/hw/i2c/i2c_mux_pca954x.c @@ -211,7 +211,7 @@ static void pca954x_init(Object *obj) } } -static Property pca954x_props[] = { +static const Property pca954x_props[] = { DEFINE_PROP_STRING("name", Pca954xState, name), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/i2c/omap_i2c.c b/hw/i2c/omap_i2c.c index e78505ebdd..172df135f5 100644 --- a/hw/i2c/omap_i2c.c +++ b/hw/i2c/omap_i2c.c @@ -511,7 +511,7 @@ void omap_i2c_set_fclk(OMAPI2CState *i2c, omap_clk clk) i2c->fclk = clk; } -static Property omap_i2c_properties[] = { +static const Property omap_i2c_properties[] = { DEFINE_PROP_UINT8("revision", OMAPI2CState, revision, 0), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907689 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96104E7717F for ; Fri, 13 Dec 2024 19:14:40 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3j-0005xV-KO; Fri, 13 Dec 2024 14:10:43 -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 1tMB3V-0005bt-Sh for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:31 -0500 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3S-00071x-8f for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:28 -0500 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-71e163493efso1027284a34.3 for ; Fri, 13 Dec 2024 11:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117025; x=1734721825; 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=t1hIg4oc5GY14Zd4SHmDtJmfPLkCBWu0upl9dxEz8/g=; b=wusnv8ahmN3PpSSBE/ov7vXZTh9qCvnnVvhIXXnxRWWatcXhO1pGqTGQ4f6wmkbU0c blRDpu3/m9aXMcTIwwh7rzfmDKo5esQBYcpHwhS0vSZSeqQuZvn8yoRQlc8+JkTyF8ho 2qrTCpNH6UrNGO8kpl+FrH9wNpQ/9yiAQM2C2QYZHZbDQUwPREMh+OIwCVURja6mXzmg GByoagGP63MN8QKTm3Fq6eWHe/uo3bSfvygWwYX9LOjC0LVHpy+bX689p5lCxrLms1Ol Dpt8jTCOsxAdNH510f9neEhElZF0HFzOTuFLaivaUqdyU/HMsw0MNWC1auSlI2ASP3py k1fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117025; x=1734721825; 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=t1hIg4oc5GY14Zd4SHmDtJmfPLkCBWu0upl9dxEz8/g=; b=IytUgGwv1t/AJWVodk9vvWC9YEQCLlRAjlKzAP4my6rXNG+ZkwbTRmZ8oEyiUz919a gmsa9mqv5HyRxZjGHeZ9q0MLRMyX9DKO2xgesa7NtKN2daSA//J9aa01uxs2BmxB+c6g 2a+jsHFCB/82z1ZVb7LUDlnTj7qlldc5ZFKkWKKZtDHD9I7EN4f55cAn9/HjJCaRWmVw 8a5cZq/L6E9GDiKOLc8ARv25LtTxn8Bcxa+gDfYzkPaa7dlrd7eKXZH9TjsTObwCGMQ4 n4JziS/B3JaNQVrBD13jFmWvttcPLq/8KCO5crw9rkIfOmWX2zLJDMYurzLIGj8yHyU8 L96g== X-Gm-Message-State: AOJu0Yw+dxkaOAlIw0GRjDsv/DBYiLUx/LDfDYrK/+0YBhri8LVlDOOk 5/8188PwrzTFjAV5LjDTs9XLvTGxIqLKR7TaDsTHtEVgfJlrXE9cGJFtLD5wpoln5hkyxJ/kUdw I2fEQVBfO X-Gm-Gg: ASbGncuszzqjU+KsIFcL0DdHTh4rOZsxxCHKtloSQ2L71pXXiV1cxIUYADe0d8VynOV LFhuKA0sZmJ4frVJ4sNiqybzbNrrvT9qdHiLwuVFWU7i/nzkqVVYVIfWePtQcxiT4AJwSRPg7vg eaNjwOdIVBwHW1VS8Qs0TnkNdJKe2T0h2bH6CAiOvDe+nX6bHvIQo+Ygf08OYj4Xcx9Le52k71C AyfUNe0lz7jFVVxshrPUKpA1WFzlUCzJ6LP6lJ44Do5FK1rO/bdmfJpfOGHdcp5 X-Google-Smtp-Source: AGHT+IHwfk+yWhygf0MTMKyExMm9RZrHBdGyaRiigL/H+X/LC3MhVRZSqRde0AcS403E+WEtKhsmHQ== X-Received: by 2002:a05:6830:700f:b0:71d:ffa2:d34d with SMTP id 46e09a7af769-71e3b879bbbmr2283286a34.16.1734117025113; Fri, 13 Dec 2024 11:10:25 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:24 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Marcel Apfelbaum , Paolo Bonzini , Eduardo Habkost , Jason Wang , Yi Liu , =?utf-8?q?Cl?= =?utf-8?q?=C3=A9ment_Mathieu--Drif?= , Stefano Stabellini , Anthony PERARD , Paul Durrant , "Edgar E. Iglesias" , xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 29/71] hw/i386: Constify all Property Date: Fri, 13 Dec 2024 13:07:03 -0600 Message-ID: <20241213190750.2513964-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org 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 Fri Dec 13 19:07:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907692 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B809E7717F for ; Fri, 13 Dec 2024 19:15:29 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3v-0006OX-Jz; Fri, 13 Dec 2024 14:10:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB3W-0005d2-Dg for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:31 -0500 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3T-00072O-7D for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:30 -0500 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-71e2bc5b90fso1010400a34.0 for ; Fri, 13 Dec 2024 11:10:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117026; x=1734721826; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z+mms+h6mMl8LvMiwooLKz6H/+GF1JGIljwNgmRuw7A=; b=jMAnYe53Pf8ZBN4kx+VQlfqfURiLI9kjQg/+KqHYDzFZs9WNVaNp4eE2rTJLU4z+qF h1JWz45jgKGL1o5dx3zLKu/37soEsPcobpyDCeV9pocOnc0I6iff4NITYs00Epy8w6zW 0Cw2+lgMU3WgDFu5HUppK7NMoBfEi/O8t60+142xBrY0cxeEPoIkeTp5MJZLKSbm8OEC r03hV9hKSHV4+Qpjk3fRLv7iD1oZ6HYnOzFOUXGZhlv2PQn3SceEWBkoEtP8EQanDp3r EBQXc6zhK/CkwRfZX61/g34gJ3424ha7QvjSZkl5VBAFq1Vti9r88W2e+aFy8lbY/f2+ yr7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117026; x=1734721826; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z+mms+h6mMl8LvMiwooLKz6H/+GF1JGIljwNgmRuw7A=; b=Ki6EllSW4hsGANyQUW1en1KkQmWrGg+xxmbAnsxcta2HFbhUGQnzEST794MaCwp85I 0QoBz5Wasll3SuGjYSKK0JJuiuiS5bQ6DJPx7uTfz98+2kYhVA7J3kq1YDGWOVXxUWag NaIsdF+eMtk7KDNdUsZGGGioYpb5JBf9j9E1JB08Pdnn/4hPgGJQwp9NVMrxfZg1MwnP 1dFPILa6rS2wx/zTV99blgTRtUaYQjpk9/PRY0X6zdj16qSBxc4uTBxH3+GujklciuE4 rsmWoIC4LI7nyS5K9wiZKwzoEwWvxfSLDM4MG4j8+/27j4a/EWfAR2twBLBMahZizjdF LYzg== X-Gm-Message-State: AOJu0YzaBCHAvlaBteJIYQLlqRF/to7wgUPShaAhFoPRv6IVfTIUkXXG x4qo0S4OvYPaHagNfqOvT62+VwoBulTSylav7QGgdpWjxOGTFDz/DdSvUljDvqVvc0rtBoK5X95 NKaey9lVk X-Gm-Gg: ASbGnctKazGjyqh1TMXZ5FIgIqma5YEaTOA326qyUm2FqDxladaaHEp0qj+Nbm+zkKS YzlOH2/mMxwgmBEMH525qdCsD3FuTeICWFCJVACoPzPUumpRL9TpIq7r89rO6VpYrQUtwGFByF+ dTdmb+7UU/Yd2BV8+ylnUD4PonX6vbqFmdJ2IDD0/topWnUOiMMzN4Mm0teoxfeaaV13NyhQMdL EmGYFlQ7yQldx0T32dtEyJ2XlsMj23w7zIJJ5uNX3UOkKgApju+IqVz82RzNCzP X-Google-Smtp-Source: AGHT+IH8LQupniG0lBrJVEJq+PlIFhkzxizjlqiAyqdx4iisAll7tItiH7jAkcSRHp0d6760YGUkXg== X-Received: by 2002:a05:6830:f95:b0:71e:5a:f4e7 with SMTP id 46e09a7af769-71e3b922adfmr2207514a34.19.1734117026028; Fri, 13 Dec 2024 11:10:26 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:25 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: John Snow , qemu-block@nongnu.org (open list:IDE) Subject: [PATCH 30/71] hw/ide: Constify all Property Date: Fri, 13 Dec 2024 13:07:04 -0600 Message-ID: <20241213190750.2513964-35-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Bernhard Beschow --- hw/ide/ahci.c | 2 +- hw/ide/cf.c | 2 +- hw/ide/cmd646.c | 2 +- hw/ide/ide-dev.c | 6 +++--- hw/ide/isa.c | 2 +- hw/ide/macio.c | 2 +- hw/ide/mmio.c | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 0eb24304ee..8ee015c1a4 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1867,7 +1867,7 @@ static void sysbus_ahci_realize(DeviceState *dev, Error **errp) ahci_realize(&s->ahci, dev, &address_space_memory); } -static Property sysbus_ahci_properties[] = { +static const Property sysbus_ahci_properties[] = { DEFINE_PROP_UINT32("num-ports", SysbusAHCIState, ahci.ports, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ide/cf.c b/hw/ide/cf.c index 2a425cb0f2..190914f513 100644 --- a/hw/ide/cf.c +++ b/hw/ide/cf.c @@ -24,7 +24,7 @@ static void ide_cf_realize(IDEDevice *dev, Error **errp) ide_dev_initfn(dev, IDE_CFATA, errp); } -static Property ide_cf_properties[] = { +static const Property ide_cf_properties[] = { DEFINE_IDE_DEV_PROPERTIES(), DEFINE_BLOCK_CHS_PROPERTIES(IDEDrive, dev.conf), DEFINE_PROP_BIOS_CHS_TRANS("bios-chs-trans", diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 6b02fc81ec..942f6c470c 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -313,7 +313,7 @@ static void pci_cmd646_ide_exitfn(PCIDevice *dev) } } -static Property cmd646_ide_properties[] = { +static const Property cmd646_ide_properties[] = { DEFINE_PROP_UINT32("secondary", PCIIDEState, secondary, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ide/ide-dev.c b/hw/ide/ide-dev.c index 03f7967798..cc92531f1c 100644 --- a/hw/ide/ide-dev.c +++ b/hw/ide/ide-dev.c @@ -29,7 +29,7 @@ #include "qapi/visitor.h" #include "ide-internal.h" -static Property ide_props[] = { +static const Property ide_props[] = { DEFINE_PROP_UINT32("unit", IDEDevice, unit, -1), DEFINE_PROP_BOOL("win2k-install-hack", IDEDevice, win2k_install_hack, false), DEFINE_PROP_END_OF_LIST(), @@ -191,7 +191,7 @@ static void ide_cd_realize(IDEDevice *dev, Error **errp) ide_dev_initfn(dev, IDE_CD, errp); } -static Property ide_hd_properties[] = { +static const Property ide_hd_properties[] = { DEFINE_IDE_DEV_PROPERTIES(), DEFINE_BLOCK_CHS_PROPERTIES(IDEDrive, dev.conf), DEFINE_PROP_BIOS_CHS_TRANS("bios-chs-trans", @@ -218,7 +218,7 @@ static const TypeInfo ide_hd_info = { .class_init = ide_hd_class_init, }; -static Property ide_cd_properties[] = { +static const Property ide_cd_properties[] = { DEFINE_IDE_DEV_PROPERTIES(), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ide/isa.c b/hw/ide/isa.c index 211ebc9ba7..a0a7e4837c 100644 --- a/hw/ide/isa.c +++ b/hw/ide/isa.c @@ -101,7 +101,7 @@ ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int irqnum, return isadev; } -static Property isa_ide_properties[] = { +static const Property isa_ide_properties[] = { DEFINE_PROP_UINT32("iobase", ISAIDEState, iobase, 0x1f0), DEFINE_PROP_UINT32("iobase2", ISAIDEState, iobase2, 0x3f6), DEFINE_PROP_UINT32("irq", ISAIDEState, irqnum, 14), diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 99477a3d13..25f8403e80 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -459,7 +459,7 @@ static void macio_ide_initfn(Object *obj) qdev_prop_allow_set_link_before_realize, 0); } -static Property macio_ide_properties[] = { +static const Property macio_ide_properties[] = { DEFINE_PROP_UINT32("channel", MACIOIDEState, channel, 0), DEFINE_PROP_UINT32("addr", MACIOIDEState, addr, -1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ide/mmio.c b/hw/ide/mmio.c index 53d22fb37f..43ab66f347 100644 --- a/hw/ide/mmio.c +++ b/hw/ide/mmio.c @@ -141,7 +141,7 @@ static void mmio_ide_initfn(Object *obj) sysbus_init_irq(d, &s->irq); } -static Property mmio_ide_properties[] = { +static const Property mmio_ide_properties[] = { DEFINE_PROP_UINT32("shift", MMIOIDEState, shift, 0), DEFINE_PROP_END_OF_LIST() }; From patchwork Fri Dec 13 19:07:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907677 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6593DE7717F for ; Fri, 13 Dec 2024 19:11:19 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB4C-0006i0-U5; Fri, 13 Dec 2024 14:11:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB3Y-0005fB-Al for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:33 -0500 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3V-00072i-K6 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:32 -0500 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71e1e051e50so556917a34.0 for ; Fri, 13 Dec 2024 11:10:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117028; x=1734721828; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AxHsxoCqVHXq4MPkg5fUEdQj30fdSGU3LBmK9dFYU78=; b=xWUFBqJ94WeVAGQydxd0PzWE7SxFfJ/QmHjXxK5Q2Oh5E1pgo0W7fI0KDzWFbyhK1U VpAfLOLzLl5ZiICXP7mZULWtHh2WIO5Eg/qsuDhyMlFh1cnL/npcuD52WtQw1j0h8/bf GOfFPP1Hkmp8DkZas9lEjpVdDHs3s2/cDxuy1TJJzEc+JcaRTsIEkzYPV/+a8wto4mwK fF0qqZvqe4VwsX5VbXx5Y+cxA9mORQ+C+askOVJlek+R8STK49K3bXRsj7O4WNqVpV30 BXDsZf96c3l/35gdKjirRh4T7m1uknivdwGw88zjtpB0Rwc2MrfKDPsRUk0gJSY8The/ 8ZKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117028; x=1734721828; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AxHsxoCqVHXq4MPkg5fUEdQj30fdSGU3LBmK9dFYU78=; b=W7W0eFerJjefLKflBOng3NMxjazo8wgil89KrAwFEHzouaGoNTSeWEuv2r9D1fkOGz O0n9fNlY+ivbMh5r+X3xhlPDOk2lDgtStNIwvMzEfbsT1s9kMlqqpReKYnUxijA9yNuY OQjcoCVI9OzS1jJKTxO3Erg4UEoyFyz/NeA+hJuyhEO2wn4bWfAxALbj4ENUpctFa7x4 x8rm1ckxqBk9FI4cnipJJhtyePLO2BIIhaPiY6Rwmf00Xf+u/5FTcvi1jwfA4tmIbrDE YVIAQIK0NuLq1qZ4wWh+MSgMWTPwktHkwzwbWvoexmJnD4FLCMbLA8FhQcRewU7tVSz1 hfAw== X-Gm-Message-State: AOJu0YzWomf0n0+Y+CJSCIxdtssE++BbOfnC2MCCDNSgclDevBSPzJH4 JD5QEY7XoDqY92FjW7JOKYj2HUimzaCV7FrAva9R4JrWZZT2eJkSfDKXzN+WaTz3tORUbWf4bZa dBeKGXHx+ X-Gm-Gg: ASbGncskVwtwEoyxMTIxzgKUffLw9uiWec4Gfcc/lGeNbLTjrS5SWc5OHznJOAYrA4i d60b/hLMCsNBozZe3i68yrzytyjnXnzUH7G+TDdXuBNs0yJ5ASYu7Y8CsdRiNxswFJKF35/DCeP iVSI38/vLJ0nHwZC4qVCY325rHQ+h7FUgqQ05lJ6zLlVnO3FAKiDcugIzgLGk8C1/7coBfSWSJh Dp7s9H3q7foBX86Qxt3jqeBPDcv6Jbx48M2/NhYpyzuWbWahdeUg7dRi1kM8jGr X-Google-Smtp-Source: AGHT+IEDvOS6pK5/yz9GOEXP1s5SJim9kaM84wcuqdxAR212IakyOU2NwMmdFgx2oYUgniQZuCS9/w== X-Received: by 2002:a05:6830:dc8:b0:718:186a:497d with SMTP id 46e09a7af769-71e3b8164f2mr2133808a34.5.1734117028407; Fri, 13 Dec 2024 11:10:28 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:28 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Paolo Bonzini , Peter Maydell , Gerd Hoffmann , qemu-arm@nongnu.org (open list:Stellaris) Subject: [PATCH 31/71] hw/input: Constify all Property Date: Fri, 13 Dec 2024 13:07:05 -0600 Message-ID: <20241213190750.2513964-36-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/input/pckbd.c | 4 ++-- hw/input/stellaris_gamepad.c | 2 +- hw/input/virtio-input-hid.c | 6 +++--- hw/input/virtio-input-host.c | 2 +- hw/input/virtio-input.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c index 04c1b3cbf9..24a133fd25 100644 --- a/hw/input/pckbd.c +++ b/hw/input/pckbd.c @@ -735,7 +735,7 @@ static void i8042_mmio_init(Object *obj) "ps2-mouse-input-irq", 1); } -static Property i8042_mmio_properties[] = { +static const Property i8042_mmio_properties[] = { DEFINE_PROP_UINT64("mask", MMIOKBDState, kbd.mask, UINT64_MAX), DEFINE_PROP_UINT32("size", MMIOKBDState, size, -1), DEFINE_PROP_END_OF_LIST(), @@ -933,7 +933,7 @@ static void i8042_build_aml(AcpiDevAmlIf *adev, Aml *scope) aml_append(scope, mou); } -static Property i8042_properties[] = { +static const Property i8042_properties[] = { DEFINE_PROP_BOOL("extended-state", ISAKBDState, kbd.extended_state, true), DEFINE_PROP_BOOL("kbd-throttle", ISAKBDState, kbd_throttle, false), DEFINE_PROP_UINT8("kbd-irq", ISAKBDState, kbd_irq, 1), diff --git a/hw/input/stellaris_gamepad.c b/hw/input/stellaris_gamepad.c index 17ee42b9fc..b1cc693189 100644 --- a/hw/input/stellaris_gamepad.c +++ b/hw/input/stellaris_gamepad.c @@ -77,7 +77,7 @@ static void stellaris_gamepad_reset_enter(Object *obj, ResetType type) memset(s->pressed, 0, s->num_buttons * sizeof(uint8_t)); } -static Property stellaris_gamepad_properties[] = { +static const Property stellaris_gamepad_properties[] = { DEFINE_PROP_ARRAY("keycodes", StellarisGamepad, num_buttons, keycodes, qdev_prop_uint32, uint32_t), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/input/virtio-input-hid.c b/hw/input/virtio-input-hid.c index 45e4d4c75d..7396385508 100644 --- a/hw/input/virtio-input-hid.c +++ b/hw/input/virtio-input-hid.c @@ -237,7 +237,7 @@ static void virtio_input_hid_handle_status(VirtIOInput *vinput, } } -static Property virtio_input_hid_properties[] = { +static const Property virtio_input_hid_properties[] = { DEFINE_PROP_STRING("display", VirtIOInputHID, display), DEFINE_PROP_UINT32("head", VirtIOInputHID, head, 0), DEFINE_PROP_END_OF_LIST(), @@ -380,7 +380,7 @@ static struct virtio_input_config virtio_mouse_config_v2[] = { { /* end of list */ }, }; -static Property virtio_mouse_properties[] = { +static const Property virtio_mouse_properties[] = { DEFINE_PROP_BOOL("wheel-axis", VirtIOInputHID, wheel_axis, true), DEFINE_PROP_END_OF_LIST(), }; @@ -505,7 +505,7 @@ static struct virtio_input_config virtio_tablet_config_v2[] = { { /* end of list */ }, }; -static Property virtio_tablet_properties[] = { +static const Property virtio_tablet_properties[] = { DEFINE_PROP_BOOL("wheel-axis", VirtIOInputHID, wheel_axis, true), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/input/virtio-input-host.c b/hw/input/virtio-input-host.c index fea7139382..2be2c633ab 100644 --- a/hw/input/virtio-input-host.c +++ b/hw/input/virtio-input-host.c @@ -221,7 +221,7 @@ static const VMStateDescription vmstate_virtio_input_host = { .unmigratable = 1, }; -static Property virtio_input_host_properties[] = { +static const Property virtio_input_host_properties[] = { DEFINE_PROP_STRING("evdev", VirtIOInputHost, evdev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/input/virtio-input.c b/hw/input/virtio-input.c index 3bcdae41b2..edcd94dedb 100644 --- a/hw/input/virtio-input.c +++ b/hw/input/virtio-input.c @@ -300,7 +300,7 @@ static const VMStateDescription vmstate_virtio_input = { .post_load = virtio_input_post_load, }; -static Property virtio_input_properties[] = { +static const Property virtio_input_properties[] = { DEFINE_PROP_STRING("serial", VirtIOInput, serial), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D5C2E7717F for ; Fri, 13 Dec 2024 19:12:18 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3n-00066l-Qr; Fri, 13 Dec 2024 14:10:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB3i-0005wW-Lh for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:42 -0500 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3c-00074c-C3 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:42 -0500 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-5f2c34ae517so849365eaf.1 for ; Fri, 13 Dec 2024 11:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117035; x=1734721835; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Sp+3GJP1lzXsMdSS4qJT06SIeuNyeMXonBECjOXGBXk=; b=pmt59n1kHdD9hznu9syGalHHXYu3Euyd00poT/hoe2OofeemOUA3C1zk3yoGRNq8V1 pwUM89Mgrr0GrBs5KYgHSJOzXHCCd5TMgLlqaVXfyT83tbKd6iqaQbhcB90RThDRO+9j RLI4IdrfhW9dkKOc+Q0x6QQEI4C/QbwQOt+vD0cygFVx9JSZ+Rbf1mA2s6h4qqdX7BRy dIzmjtYJgHHxIJpVzjrJMkKzQcs2N4wwJGOYO/TiTEEiZ5966MGQ198cUBwDm6ySuk3i U05YYqLU5UJxTpsd4kFt5NlL/dAemHt5qFb+2uhHuotFd2zAkXuB6Pd4Kck/GJishjl5 FAaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117035; x=1734721835; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Sp+3GJP1lzXsMdSS4qJT06SIeuNyeMXonBECjOXGBXk=; b=sH+rRdGQ7ch43Lk1tyB126vSORjXKfRQg2V0wTXIYsN/T9pBR0JnqqZV9F1D+fGgLy tjTs/nHrbQiNp/MMQ7x/bwKuD0IKzuAELF3HW4gYFfiPpGF/jNlKY0rvP//U+DpAfcNR EF1xbCeo1JuKnZDNiN5tHQZozb0AzQT+vLGQETkc/qjjLEZg6R92dO8ZqpjpodfjlAKw VLhEml8aLd/9jtVa2RW062pRcoKxhToNSKV3zyd3BP34v0yh6lPgqkqKmyLrLuLuZ2Po 03v/n/izu066JKApchlNxwOHnmWWgt24x7fvi9wFKjdcMp7o4FjY4wIgmjE99tjRGx9D GYOA== X-Gm-Message-State: AOJu0YwFAocHs/hbdT5mQ+K53sAZVqG/fQUjWW1NwwRSP+PYWpV+WiBl GA7H39LzaZ1SkmLacXClCE25JexJPZB7cvdAV+401aKpu1JvXys7mBPqyvXoAWstj/Dsq1PSjsq 3XaKUSONQ X-Gm-Gg: ASbGncta+PwqAJ96AjAe8/aeuYf013aXwqib4imdqmahWUU3ix36h0Z61YF3eVaPPoy zynfJLV7lzS9hc/wyruQTCUVtv97eqQfoutWXpS/qerv06pyCvK2Alza54Zb6EHJbLMW/mk213A xMQYxnGFM2bjL7MzZ7gschLqFi3pckoKyn5NkLTTVAcIG0Pb4CuSfBl1nQBdLluhhJZ0bL0OMep 0CVyDwFkWnUB3hSzBYlsrsfa/oTL9ZU+1ycF1ksyhnmrrGkVZjg9ID98NuI/YBF X-Google-Smtp-Source: AGHT+IHR0d98EpQCPmEywrdjD0XMxJDkjBPoB40wRYEW0SsYqP9+oZD4FNEXNl6yELD+SPPQgiiY9Q== X-Received: by 2002:a05:6830:7312:b0:71d:dda1:210a with SMTP id 46e09a7af769-71e3ba78c6bmr2149541a34.30.1734117034795; Fri, 13 Dec 2024 11:10:34 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:34 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Paolo Bonzini , Peter Maydell , Igor Mitsyanko , Laurent Vivier , =?utf-8?q?Cl=C3=A9ment_Chigot?= , Frederic Konrad , Song Gao , Bibo Mao , Jiaxun Yang , Huacai Chen , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Jia Liu , Mark Cave-Ayland , Bernhard Beschow , =?utf-8?b?RnLDqWTDqXJpYyBCYXJyYXQ=?= , Nicholas Piggin , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Yoshinori Sato , Thomas Huth , Halil Pasic , Christian Borntraeger , David Hildenbrand , Harsh Prateek Bora , "Edgar E. Iglesias" , qemu-arm@nongnu.org (open list:ARM cores), qemu-ppc@nongnu.org (open list:e500), qemu-riscv@nongnu.org (open list:RISC-V TCG CPUs), qemu-s390x@nongnu.org (open list:S390 general arch...) Subject: [PATCH 32/71] hw/intc: Constify all Property Date: Fri, 13 Dec 2024 13:07:06 -0600 Message-ID: <20241213190750.2513964-37-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c2d; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza --- hw/intc/apic_common.c | 2 +- hw/intc/arm_gic_common.c | 2 +- hw/intc/arm_gicv2m.c | 2 +- hw/intc/arm_gicv3_common.c | 2 +- hw/intc/arm_gicv3_its.c | 2 +- hw/intc/arm_gicv3_its_kvm.c | 2 +- hw/intc/armv7m_nvic.c | 2 +- hw/intc/exynos4210_combiner.c | 2 +- hw/intc/exynos4210_gic.c | 2 +- hw/intc/goldfish_pic.c | 2 +- hw/intc/grlib_irqmp.c | 2 +- hw/intc/i8259_common.c | 2 +- hw/intc/ioapic.c | 2 +- hw/intc/loongarch_extioi.c | 2 +- hw/intc/loongarch_pch_msi.c | 2 +- hw/intc/loongarch_pch_pic.c | 2 +- hw/intc/loongson_ipi_common.c | 2 +- hw/intc/m68k_irqc.c | 2 +- hw/intc/mips_gic.c | 2 +- hw/intc/omap_intc.c | 2 +- hw/intc/ompic.c | 2 +- hw/intc/openpic.c | 2 +- hw/intc/openpic_kvm.c | 2 +- hw/intc/pnv_xive.c | 2 +- hw/intc/pnv_xive2.c | 2 +- hw/intc/ppc-uic.c | 2 +- hw/intc/riscv_aclint.c | 4 ++-- hw/intc/riscv_aplic.c | 2 +- hw/intc/riscv_imsic.c | 2 +- hw/intc/rx_icu.c | 2 +- hw/intc/s390_flic.c | 4 ++-- hw/intc/sifive_plic.c | 2 +- hw/intc/spapr_xive.c | 2 +- hw/intc/xics.c | 4 ++-- hw/intc/xilinx_intc.c | 2 +- hw/intc/xive.c | 8 ++++---- hw/intc/xive2.c | 4 ++-- hw/intc/xlnx-pmu-iomod-intc.c | 2 +- 38 files changed, 45 insertions(+), 45 deletions(-) diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index 62f3bbf203..8be9f22de8 100644 --- a/hw/intc/apic_common.c +++ b/hw/intc/apic_common.c @@ -408,7 +408,7 @@ static const VMStateDescription vmstate_apic_common = { } }; -static Property apic_properties_common[] = { +static const Property apic_properties_common[] = { DEFINE_PROP_UINT8("version", APICCommonState, version, 0x14), DEFINE_PROP_BIT("vapic", APICCommonState, vapic_control, VAPIC_ENABLE_BIT, true), diff --git a/hw/intc/arm_gic_common.c b/hw/intc/arm_gic_common.c index 53fb2c4e2d..e961cd9156 100644 --- a/hw/intc/arm_gic_common.c +++ b/hw/intc/arm_gic_common.c @@ -348,7 +348,7 @@ static void arm_gic_common_linux_init(ARMLinuxBootIf *obj, } } -static Property arm_gic_common_properties[] = { +static const Property arm_gic_common_properties[] = { DEFINE_PROP_UINT32("num-cpu", GICState, num_cpu, 1), DEFINE_PROP_UINT32("num-irq", GICState, num_irq, 32), /* Revision can be 1 or 2 for GIC architecture specification diff --git a/hw/intc/arm_gicv2m.c b/hw/intc/arm_gicv2m.c index d564b857eb..ffa830b433 100644 --- a/hw/intc/arm_gicv2m.c +++ b/hw/intc/arm_gicv2m.c @@ -170,7 +170,7 @@ static void gicv2m_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property gicv2m_properties[] = { +static const Property gicv2m_properties[] = { DEFINE_PROP_UINT32("base-spi", ARMGICv2mState, base_spi, 0), DEFINE_PROP_UINT32("num-spi", ARMGICv2mState, num_spi, 64), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/arm_gicv3_common.c b/hw/intc/arm_gicv3_common.c index bd50a1b079..a8ec615a3f 100644 --- a/hw/intc/arm_gicv3_common.c +++ b/hw/intc/arm_gicv3_common.c @@ -605,7 +605,7 @@ static void arm_gic_common_linux_init(ARMLinuxBootIf *obj, } } -static Property arm_gicv3_common_properties[] = { +static const Property arm_gicv3_common_properties[] = { DEFINE_PROP_UINT32("num-cpu", GICv3State, num_cpu, 1), DEFINE_PROP_UINT32("num-irq", GICv3State, num_irq, 32), DEFINE_PROP_UINT32("revision", GICv3State, revision, 3), diff --git a/hw/intc/arm_gicv3_its.c b/hw/intc/arm_gicv3_its.c index bf31158470..f50b1814ea 100644 --- a/hw/intc/arm_gicv3_its.c +++ b/hw/intc/arm_gicv3_its.c @@ -2002,7 +2002,7 @@ static void gicv3_its_post_load(GICv3ITSState *s) } } -static Property gicv3_its_props[] = { +static const Property gicv3_its_props[] = { DEFINE_PROP_LINK("parent-gicv3", GICv3ITSState, gicv3, "arm-gicv3", GICv3State *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/arm_gicv3_its_kvm.c b/hw/intc/arm_gicv3_its_kvm.c index 35539c099f..68a6144add 100644 --- a/hw/intc/arm_gicv3_its_kvm.c +++ b/hw/intc/arm_gicv3_its_kvm.c @@ -234,7 +234,7 @@ static void kvm_arm_its_reset_hold(Object *obj, ResetType type) } } -static Property kvm_arm_its_props[] = { +static const Property kvm_arm_its_props[] = { DEFINE_PROP_LINK("parent-gicv3", GICv3ITSState, gicv3, "kvm-arm-gicv3", GICv3State *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/armv7m_nvic.c b/hw/intc/armv7m_nvic.c index 98f3cf59bc..6e2803b123 100644 --- a/hw/intc/armv7m_nvic.c +++ b/hw/intc/armv7m_nvic.c @@ -2569,7 +2569,7 @@ static const VMStateDescription vmstate_nvic = { } }; -static Property props_nvic[] = { +static const Property props_nvic[] = { /* Number of external IRQ lines (so excluding the 16 internal exceptions) */ DEFINE_PROP_UINT32("num-irq", NVICState, num_irq, 64), /* diff --git a/hw/intc/exynos4210_combiner.c b/hw/intc/exynos4210_combiner.c index afecef1e15..221dfa912a 100644 --- a/hw/intc/exynos4210_combiner.c +++ b/hw/intc/exynos4210_combiner.c @@ -325,7 +325,7 @@ static void exynos4210_combiner_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property exynos4210_combiner_properties[] = { +static const Property exynos4210_combiner_properties[] = { DEFINE_PROP_UINT32("external", Exynos4210CombinerState, external, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/exynos4210_gic.c b/hw/intc/exynos4210_gic.c index fcca85c6c6..e1b956d990 100644 --- a/hw/intc/exynos4210_gic.c +++ b/hw/intc/exynos4210_gic.c @@ -111,7 +111,7 @@ static void exynos4210_gic_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(sbd, &s->dist_container); } -static Property exynos4210_gic_properties[] = { +static const Property exynos4210_gic_properties[] = { DEFINE_PROP_UINT32("num-cpu", Exynos4210GicState, num_cpu, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/goldfish_pic.c b/hw/intc/goldfish_pic.c index 166a3cba1e..f5343c9d2f 100644 --- a/hw/intc/goldfish_pic.c +++ b/hw/intc/goldfish_pic.c @@ -181,7 +181,7 @@ static void goldfish_pic_instance_init(Object *obj) qdev_init_gpio_in(DEVICE(obj), goldfish_irq_request, GOLDFISH_PIC_IRQ_NB); } -static Property goldfish_pic_properties[] = { +static const Property goldfish_pic_properties[] = { DEFINE_PROP_UINT8("index", GoldfishPICState, idx, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/grlib_irqmp.c b/hw/intc/grlib_irqmp.c index 37ac63fd80..bf53251ea2 100644 --- a/hw/intc/grlib_irqmp.c +++ b/hw/intc/grlib_irqmp.c @@ -376,7 +376,7 @@ static void grlib_irqmp_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(dev), &irqmp->iomem); } -static Property grlib_irqmp_properties[] = { +static const Property grlib_irqmp_properties[] = { DEFINE_PROP_UINT32("ncpus", IRQMP, ncpus, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/i8259_common.c b/hw/intc/i8259_common.c index d9558e3940..c3174f4fdc 100644 --- a/hw/intc/i8259_common.c +++ b/hw/intc/i8259_common.c @@ -193,7 +193,7 @@ static const VMStateDescription vmstate_pic_common = { } }; -static Property pic_properties_common[] = { +static const Property pic_properties_common[] = { DEFINE_PROP_UINT32("iobase", PICCommonState, iobase, -1), DEFINE_PROP_UINT32("elcr_addr", PICCommonState, elcr_addr, -1), DEFINE_PROP_UINT8("elcr_mask", PICCommonState, elcr_mask, -1), diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c index e73c8d4f07..6d566165b0 100644 --- a/hw/intc/ioapic.c +++ b/hw/intc/ioapic.c @@ -476,7 +476,7 @@ static void ioapic_unrealize(DeviceState *dev) timer_free(s->delayed_ioapic_service_timer); } -static Property ioapic_properties[] = { +static const Property ioapic_properties[] = { DEFINE_PROP_UINT8("version", IOAPICCommonState, version, IOAPIC_VER_DEF), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/loongarch_extioi.c b/hw/intc/loongarch_extioi.c index 97d1af5ccc..dd91f89361 100644 --- a/hw/intc/loongarch_extioi.c +++ b/hw/intc/loongarch_extioi.c @@ -423,7 +423,7 @@ static const VMStateDescription vmstate_loongarch_extioi = { } }; -static Property extioi_properties[] = { +static const Property extioi_properties[] = { DEFINE_PROP_UINT32("num-cpu", LoongArchExtIOI, num_cpu, 1), DEFINE_PROP_BIT("has-virtualization-extension", LoongArchExtIOI, features, EXTIOI_HAS_VIRT_EXTENSION, 0), diff --git a/hw/intc/loongarch_pch_msi.c b/hw/intc/loongarch_pch_msi.c index ecf3ed0267..e2eca30660 100644 --- a/hw/intc/loongarch_pch_msi.c +++ b/hw/intc/loongarch_pch_msi.c @@ -83,7 +83,7 @@ static void loongarch_pch_msi_init(Object *obj) } -static Property loongarch_msi_properties[] = { +static const Property loongarch_msi_properties[] = { DEFINE_PROP_UINT32("msi_irq_base", LoongArchPCHMSI, irq_base, 0), DEFINE_PROP_UINT32("msi_irq_num", LoongArchPCHMSI, irq_num, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/loongarch_pch_pic.c b/hw/intc/loongarch_pch_pic.c index b958180591..6a87b1aab7 100644 --- a/hw/intc/loongarch_pch_pic.c +++ b/hw/intc/loongarch_pch_pic.c @@ -411,7 +411,7 @@ static void loongarch_pch_pic_init(Object *obj) } -static Property loongarch_pch_pic_properties[] = { +static const Property loongarch_pch_pic_properties[] = { DEFINE_PROP_UINT32("pch_pic_irq_num", LoongArchPCHPIC, irq_num, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/loongson_ipi_common.c b/hw/intc/loongson_ipi_common.c index a6ce0181f6..d3f894a5bd 100644 --- a/hw/intc/loongson_ipi_common.c +++ b/hw/intc/loongson_ipi_common.c @@ -315,7 +315,7 @@ static const VMStateDescription vmstate_loongson_ipi_common = { } }; -static Property ipi_common_properties[] = { +static const Property ipi_common_properties[] = { DEFINE_PROP_UINT32("num-cpu", LoongsonIPICommonState, num_cpu, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/m68k_irqc.c b/hw/intc/m68k_irqc.c index b4471e185a..b5d10ab1f6 100644 --- a/hw/intc/m68k_irqc.c +++ b/hw/intc/m68k_irqc.c @@ -85,7 +85,7 @@ static const VMStateDescription vmstate_m68k_irqc = { } }; -static Property m68k_irqc_properties[] = { +static const Property m68k_irqc_properties[] = { DEFINE_PROP_LINK("m68k-cpu", M68KIRQCState, cpu, TYPE_M68K_CPU, ArchCPU *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/mips_gic.c b/hw/intc/mips_gic.c index 77ba7348a3..996db095c3 100644 --- a/hw/intc/mips_gic.c +++ b/hw/intc/mips_gic.c @@ -438,7 +438,7 @@ static void mips_gic_realize(DeviceState *dev, Error **errp) } } -static Property mips_gic_properties[] = { +static const Property mips_gic_properties[] = { DEFINE_PROP_UINT32("num-vp", MIPSGICState, num_vps, 1), DEFINE_PROP_UINT32("num-irq", MIPSGICState, num_irq, 256), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/omap_intc.c b/hw/intc/omap_intc.c index a98358d92e..28606f102b 100644 --- a/hw/intc/omap_intc.c +++ b/hw/intc/omap_intc.c @@ -375,7 +375,7 @@ void omap_intc_set_fclk(OMAPIntcState *intc, omap_clk clk) intc->fclk = clk; } -static Property omap_intc_properties[] = { +static const Property omap_intc_properties[] = { DEFINE_PROP_UINT32("size", OMAPIntcState, size, 0x100), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/ompic.c b/hw/intc/ompic.c index 99032ea7f7..8ee1bd64bd 100644 --- a/hw/intc/ompic.c +++ b/hw/intc/ompic.c @@ -128,7 +128,7 @@ static void or1k_ompic_realize(DeviceState *dev, Error **errp) } } -static Property or1k_ompic_properties[] = { +static const Property or1k_ompic_properties[] = { DEFINE_PROP_UINT32("num-cpus", OR1KOMPICState, num_cpus, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/openpic.c b/hw/intc/openpic.c index 2ead4b9ba0..2257ae2ee7 100644 --- a/hw/intc/openpic.c +++ b/hw/intc/openpic.c @@ -1606,7 +1606,7 @@ static void openpic_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, openpic_set_irq, opp->max_irq); } -static Property openpic_properties[] = { +static const Property openpic_properties[] = { DEFINE_PROP_UINT32("model", OpenPICState, model, OPENPIC_MODEL_FSL_MPIC_20), DEFINE_PROP_UINT32("nb_cpus", OpenPICState, nb_cpus, 1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/openpic_kvm.c b/hw/intc/openpic_kvm.c index 838c6b9d99..135fe8301a 100644 --- a/hw/intc/openpic_kvm.c +++ b/hw/intc/openpic_kvm.c @@ -262,7 +262,7 @@ int kvm_openpic_connect_vcpu(DeviceState *d, CPUState *cs) kvm_arch_vcpu_id(cs)); } -static Property kvm_openpic_properties[] = { +static const Property kvm_openpic_properties[] = { DEFINE_PROP_UINT32("model", KVMOpenPICState, model, OPENPIC_MODEL_FSL_MPIC_20), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/intc/pnv_xive.c b/hw/intc/pnv_xive.c index 5bacbce6a4..581659839b 100644 --- a/hw/intc/pnv_xive.c +++ b/hw/intc/pnv_xive.c @@ -2059,7 +2059,7 @@ static int pnv_xive_dt_xscom(PnvXScomInterface *dev, void *fdt, return 0; } -static Property pnv_xive_properties[] = { +static const Property pnv_xive_properties[] = { DEFINE_PROP_UINT64("ic-bar", PnvXive, ic_base, 0), DEFINE_PROP_UINT64("vc-bar", PnvXive, vc_base, 0), DEFINE_PROP_UINT64("pc-bar", PnvXive, pc_base, 0), diff --git a/hw/intc/pnv_xive2.c b/hw/intc/pnv_xive2.c index 834d32287b..5dd305453a 100644 --- a/hw/intc/pnv_xive2.c +++ b/hw/intc/pnv_xive2.c @@ -2354,7 +2354,7 @@ static void pnv_xive2_realize(DeviceState *dev, Error **errp) qemu_register_reset(pnv_xive2_reset, dev); } -static Property pnv_xive2_properties[] = { +static const Property pnv_xive2_properties[] = { DEFINE_PROP_UINT64("ic-bar", PnvXive2, ic_base, 0), DEFINE_PROP_UINT64("esb-bar", PnvXive2, esb_base, 0), DEFINE_PROP_UINT64("end-bar", PnvXive2, end_base, 0), diff --git a/hw/intc/ppc-uic.c b/hw/intc/ppc-uic.c index f2a224f3aa..d683413a83 100644 --- a/hw/intc/ppc-uic.c +++ b/hw/intc/ppc-uic.c @@ -259,7 +259,7 @@ static void ppc_uic_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, ppcuic_set_irq, UIC_MAX_IRQ); } -static Property ppc_uic_properties[] = { +static const Property ppc_uic_properties[] = { DEFINE_PROP_UINT32("dcr-base", PPCUIC, dcr_base, 0xc0), DEFINE_PROP_BOOL("use-vectors", PPCUIC, use_vectors, true), DEFINE_PROP_END_OF_LIST() diff --git a/hw/intc/riscv_aclint.c b/hw/intc/riscv_aclint.c index e9f0536b1c..db195fb1ff 100644 --- a/hw/intc/riscv_aclint.c +++ b/hw/intc/riscv_aclint.c @@ -262,7 +262,7 @@ static const MemoryRegionOps riscv_aclint_mtimer_ops = { } }; -static Property riscv_aclint_mtimer_properties[] = { +static const Property riscv_aclint_mtimer_properties[] = { DEFINE_PROP_UINT32("hartid-base", RISCVAclintMTimerState, hartid_base, 0), DEFINE_PROP_UINT32("num-harts", RISCVAclintMTimerState, num_harts, 1), @@ -462,7 +462,7 @@ static const MemoryRegionOps riscv_aclint_swi_ops = { } }; -static Property riscv_aclint_swi_properties[] = { +static const Property riscv_aclint_swi_properties[] = { DEFINE_PROP_UINT32("hartid-base", RISCVAclintSwiState, hartid_base, 0), DEFINE_PROP_UINT32("num-harts", RISCVAclintSwiState, num_harts, 1), DEFINE_PROP_UINT32("sswi", RISCVAclintSwiState, sswi, false), diff --git a/hw/intc/riscv_aplic.c b/hw/intc/riscv_aplic.c index 4a262c82f0..353eec8136 100644 --- a/hw/intc/riscv_aplic.c +++ b/hw/intc/riscv_aplic.c @@ -904,7 +904,7 @@ static void riscv_aplic_realize(DeviceState *dev, Error **errp) msi_nonbroken = true; } -static Property riscv_aplic_properties[] = { +static const Property riscv_aplic_properties[] = { DEFINE_PROP_UINT32("aperture-size", RISCVAPLICState, aperture_size, 0), DEFINE_PROP_UINT32("hartid-base", RISCVAPLICState, hartid_base, 0), DEFINE_PROP_UINT32("num-harts", RISCVAPLICState, num_harts, 0), diff --git a/hw/intc/riscv_imsic.c b/hw/intc/riscv_imsic.c index 9ef65d4012..adc36151b4 100644 --- a/hw/intc/riscv_imsic.c +++ b/hw/intc/riscv_imsic.c @@ -388,7 +388,7 @@ static void riscv_imsic_realize(DeviceState *dev, Error **errp) msi_nonbroken = true; } -static Property riscv_imsic_properties[] = { +static const Property riscv_imsic_properties[] = { DEFINE_PROP_BOOL("mmode", RISCVIMSICState, mmode, 0), DEFINE_PROP_UINT32("hartid", RISCVIMSICState, hartid, 0), DEFINE_PROP_UINT32("num-pages", RISCVIMSICState, num_pages, 0), diff --git a/hw/intc/rx_icu.c b/hw/intc/rx_icu.c index b2d4338f61..dfe11ade20 100644 --- a/hw/intc/rx_icu.c +++ b/hw/intc/rx_icu.c @@ -361,7 +361,7 @@ static const VMStateDescription vmstate_rxicu = { } }; -static Property rxicu_properties[] = { +static const Property rxicu_properties[] = { DEFINE_PROP_ARRAY("ipr-map", RXICUState, nr_irqs, map, qdev_prop_uint8, uint8_t), DEFINE_PROP_ARRAY("trigger-level", RXICUState, nr_sense, init_sense, diff --git a/hw/intc/s390_flic.c b/hw/intc/s390_flic.c index c3d2b8d765..2963bd5bd6 100644 --- a/hw/intc/s390_flic.c +++ b/hw/intc/s390_flic.c @@ -445,7 +445,7 @@ static void qemu_s390_flic_instance_init(Object *obj) } } -static Property qemu_s390_flic_properties[] = { +static const Property qemu_s390_flic_properties[] = { DEFINE_PROP_BOOL("migrate-all-state", QEMUS390FLICState, migrate_all_state, true), DEFINE_PROP_END_OF_LIST(), @@ -471,7 +471,7 @@ static void qemu_s390_flic_class_init(ObjectClass *oc, void *data) fsc->inject_crw_mchk = qemu_s390_inject_crw_mchk; } -static Property s390_flic_common_properties[] = { +static const Property s390_flic_common_properties[] = { DEFINE_PROP_UINT32("adapter_routes_max_batch", S390FLICState, adapter_routes_max_batch, ADAPTER_ROUTES_MAX_GSI), DEFINE_PROP_BOOL("migration-enabled", S390FLICState, diff --git a/hw/intc/sifive_plic.c b/hw/intc/sifive_plic.c index ed74490dba..49895be803 100644 --- a/hw/intc/sifive_plic.c +++ b/hw/intc/sifive_plic.c @@ -430,7 +430,7 @@ static const VMStateDescription vmstate_sifive_plic = { } }; -static Property sifive_plic_properties[] = { +static const Property sifive_plic_properties[] = { DEFINE_PROP_STRING("hart-config", SiFivePLICState, hart_config), DEFINE_PROP_UINT32("hartid-base", SiFivePLICState, hartid_base, 0), /* number of interrupt sources including interrupt source 0 */ diff --git a/hw/intc/spapr_xive.c b/hw/intc/spapr_xive.c index 283a6b8fd2..09f643d633 100644 --- a/hw/intc/spapr_xive.c +++ b/hw/intc/spapr_xive.c @@ -627,7 +627,7 @@ static void spapr_xive_free_irq(SpaprInterruptController *intc, int lisn) xive->eat[lisn].w &= cpu_to_be64(~EAS_VALID); } -static Property spapr_xive_properties[] = { +static const Property spapr_xive_properties[] = { DEFINE_PROP_UINT32("nr-irqs", SpaprXive, nr_irqs, 0), DEFINE_PROP_UINT32("nr-ends", SpaprXive, nr_ends, 0), DEFINE_PROP_UINT64("vc-base", SpaprXive, vc_base, SPAPR_XIVE_VC_BASE), diff --git a/hw/intc/xics.c b/hw/intc/xics.c index e893363dc9..81bbfdd84b 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -344,7 +344,7 @@ static void icp_unrealize(DeviceState *dev) vmstate_unregister(NULL, &vmstate_icp_server, icp); } -static Property icp_properties[] = { +static const Property icp_properties[] = { DEFINE_PROP_LINK(ICP_PROP_XICS, ICPState, xics, TYPE_XICS_FABRIC, XICSFabric *), DEFINE_PROP_LINK(ICP_PROP_CPU, ICPState, cs, TYPE_CPU, CPUState *), @@ -676,7 +676,7 @@ static const VMStateDescription vmstate_ics = { }, }; -static Property ics_properties[] = { +static const Property ics_properties[] = { DEFINE_PROP_UINT32("nr-irqs", ICSState, nr_irqs, 0), DEFINE_PROP_LINK(ICS_PROP_XICS, ICSState, xics, TYPE_XICS_FABRIC, XICSFabric *), diff --git a/hw/intc/xilinx_intc.c b/hw/intc/xilinx_intc.c index 6e5012e66e..3e860ab582 100644 --- a/hw/intc/xilinx_intc.c +++ b/hw/intc/xilinx_intc.c @@ -176,7 +176,7 @@ static void xilinx_intc_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &p->mmio); } -static Property xilinx_intc_properties[] = { +static const Property xilinx_intc_properties[] = { DEFINE_PROP_UINT32("kind-of-intr", XpsIntc, c_kind_of_intr, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/intc/xive.c b/hw/intc/xive.c index 245e4d181a..308e5743bd 100644 --- a/hw/intc/xive.c +++ b/hw/intc/xive.c @@ -927,7 +927,7 @@ static const VMStateDescription vmstate_xive_tctx = { }, }; -static Property xive_tctx_properties[] = { +static const Property xive_tctx_properties[] = { DEFINE_PROP_LINK("cpu", XiveTCTX, cs, TYPE_CPU, CPUState *), DEFINE_PROP_LINK("presenter", XiveTCTX, xptr, TYPE_XIVE_PRESENTER, XivePresenter *), @@ -1403,7 +1403,7 @@ static const VMStateDescription vmstate_xive_source = { * The default XIVE interrupt source setting for the ESB MMIOs is two * 64k pages without Store EOI, to be in sync with KVM. */ -static Property xive_source_properties[] = { +static const Property xive_source_properties[] = { DEFINE_PROP_UINT64("flags", XiveSource, esb_flags, 0), DEFINE_PROP_UINT32("nr-irqs", XiveSource, nr_irqs, 0), DEFINE_PROP_UINT32("shift", XiveSource, esb_shift, XIVE_ESB_64K_2PAGE), @@ -2002,7 +2002,7 @@ void xive_router_notify(XiveNotifier *xn, uint32_t lisn, bool pq_checked) xive_router_end_notify_handler(xrtr, &eas); } -static Property xive_router_properties[] = { +static const Property xive_router_properties[] = { DEFINE_PROP_LINK("xive-fabric", XiveRouter, xfb, TYPE_XIVE_FABRIC, XiveFabric *), DEFINE_PROP_END_OF_LIST(), @@ -2170,7 +2170,7 @@ static void xive_end_source_realize(DeviceState *dev, Error **errp) (1ull << (xsrc->esb_shift + 1)) * xsrc->nr_ends); } -static Property xive_end_source_properties[] = { +static const Property xive_end_source_properties[] = { DEFINE_PROP_UINT32("nr-ends", XiveENDSource, nr_ends, 0), DEFINE_PROP_UINT32("shift", XiveENDSource, esb_shift, XIVE_ESB_64K), DEFINE_PROP_LINK("xive", XiveENDSource, xrtr, TYPE_XIVE_ROUTER, diff --git a/hw/intc/xive2.c b/hw/intc/xive2.c index d1df35e9b3..3233d3f14e 100644 --- a/hw/intc/xive2.c +++ b/hw/intc/xive2.c @@ -1028,7 +1028,7 @@ void xive2_router_notify(XiveNotifier *xn, uint32_t lisn, bool pq_checked) xive_get_field64(EAS2_END_DATA, eas.w)); } -static Property xive2_router_properties[] = { +static const Property xive2_router_properties[] = { DEFINE_PROP_LINK("xive-fabric", Xive2Router, xfb, TYPE_XIVE_FABRIC, XiveFabric *), DEFINE_PROP_END_OF_LIST(), @@ -1242,7 +1242,7 @@ static void xive2_end_source_realize(DeviceState *dev, Error **errp) (1ull << (xsrc->esb_shift + 1)) * xsrc->nr_ends); } -static Property xive2_end_source_properties[] = { +static const Property xive2_end_source_properties[] = { DEFINE_PROP_UINT32("nr-ends", Xive2EndSource, nr_ends, 0), DEFINE_PROP_UINT32("shift", Xive2EndSource, esb_shift, XIVE_ESB_64K), DEFINE_PROP_LINK("xive", Xive2EndSource, xrtr, TYPE_XIVE2_ROUTER, diff --git a/hw/intc/xlnx-pmu-iomod-intc.c b/hw/intc/xlnx-pmu-iomod-intc.c index 48cd3ae94b..21b9c83658 100644 --- a/hw/intc/xlnx-pmu-iomod-intc.c +++ b/hw/intc/xlnx-pmu-iomod-intc.c @@ -474,7 +474,7 @@ static const MemoryRegionOps xlnx_pmu_io_intc_ops = { }, }; -static Property xlnx_pmu_io_intc_properties[] = { +static const Property xlnx_pmu_io_intc_properties[] = { DEFINE_PROP_UINT32("intc-intr-size", XlnxPMUIOIntc, cfg.intr_size, 0), DEFINE_PROP_UINT32("intc-level-edge", XlnxPMUIOIntc, cfg.level_edge, 0), DEFINE_PROP_UINT32("intc-positive", XlnxPMUIOIntc, cfg.positive, 0), From patchwork Fri Dec 13 19:07:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907684 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 74E4CE77180 for ; Fri, 13 Dec 2024 19:13:55 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB4G-0006r5-10; Fri, 13 Dec 2024 14:11:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB3i-0005v9-18 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:42 -0500 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3c-00074m-Mk for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:41 -0500 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5f31e8c2bfaso459675eaf.0 for ; Fri, 13 Dec 2024 11:10:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117035; x=1734721835; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QrrJ4RvuuoGOGZrV9FD04T9DsliVJZ1San+rsea4fSw=; b=j79VYs2XZz+S9zc+GSIzSnErTkcQLxL7dPXRMPeQFCu49SVRcW49sU3J2Uwq4jR6T8 /Llj/Tatyz7KOK/oI1oCzy+CjKH68zcNCTRnUhrXWl+s3tGNRC3U7H4WVQndRmsFLPc7 xjgY67X/f+a9OLNifn/IIeJ5vjtaKlnJRsQXmFrnbfgiEgRuNw/PEPFJFwr1ssk2xP3p uPGIUsUSvNc/FUvpyYsewHOF0Oiqv3Jq0zplr3ypRM5kfSTVQ8442aI8gBcJuJT4e8Gg neJv8uHjww7QSmN/WoB5iloWN/sEB7Zklg4Hn1OujKeC5LFVo2+gWjNkQik71D7qZtmL ItjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117035; x=1734721835; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QrrJ4RvuuoGOGZrV9FD04T9DsliVJZ1San+rsea4fSw=; b=pOChcrGlJtzDefrpEZ26T1KbY5MXPovFiHPB82tUWcvqH3nizoUUc39a8ZYEikw7N2 wVDI+0EUd+s2eOeSWgJVG60Q+s/3oYGUCxz5h8U5zqTG80lEqIuHXn+PArSuLihjUM7U VZWNhQdKGs4CK3ES+Zod3lEiPkgiuVmVkM3TRD75Nw08ZuwC8U01zpYYiwx6o8dnQ1Gm QREUOKto23ls39gY5c1lCnbV0/4gCI1qIBUA6xBrWv0wGGfQawSzs6pDEmeAxuihKLEu HuJnJ9UNcBCCmigqXgsahLX3Dl5ShBm71s2wuJ43hNbf9VdHqWKZstQArnoluH2FtUsO 15jA== X-Gm-Message-State: AOJu0YyVQBfD/2t73dZUO9k0epG64+WvvEU+ru8fDWycWeRnwyhBHOxD ciDnux//ZXF+lHJY739lYKiYWc+Uw63RArN9wA1NyhzhwydbkX7g4fGV5on3hngyU2Vk2SIQroY VaINw0kUW X-Gm-Gg: ASbGncuPgY5JNKDUqHfZ4YBJehAelo2uR+KLNXhfPPDrcS/M0uZ8lCVVdWPHIspl3+d udoVehBJhBncr8jZxU9MG5gvnhCrEjl5oGiyk56WQe/bVKWZwbMMBEIiraCXn+DPumenJOrdaa1 HZ8C1VlmPWrQP9FWJqPKmCc5YMHmPnVsJVePLdLU04rKIF6Mtb0CztZkvA5em24KxPPdj3Ug0Fk XAja7RDt5PIqaSfaRQGWOIeAJnDJWXXDsGHOFkyGwhHT4Kg4D91G5GQ3wII3kyz X-Google-Smtp-Source: AGHT+IHJpabkeuL6yrDgrDN/ajkCZGzilCGU06O1k7F+CDZ952vsakF6CLuYiA6pmiHRNUhk0qnBWg== X-Received: by 2002:a05:6820:221d:b0:5f2:bb17:f072 with SMTP id 006d021491bc7-5f32948bd92mr2094280eaf.5.1734117035626; Fri, 13 Dec 2024 11:10:35 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:35 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alberto Garcia Subject: [PATCH 33/71] hw/ipack: Constify all Property Date: Fri, 13 Dec 2024 13:07:07 -0600 Message-ID: <20241213190750.2513964-38-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c31; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Acked-by: Alberto Garcia --- hw/ipack/ipack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ipack/ipack.c b/hw/ipack/ipack.c index c39dbb481f..7ffc4ffe6f 100644 --- a/hw/ipack/ipack.c +++ b/hw/ipack/ipack.c @@ -73,7 +73,7 @@ static void ipack_device_unrealize(DeviceState *dev) qemu_free_irqs(idev->irq, 2); } -static Property ipack_device_props[] = { +static const Property ipack_device_props[] = { DEFINE_PROP_INT32("slot", IPackDevice, slot, -1), DEFINE_PROP_END_OF_LIST() }; From patchwork Fri Dec 13 19:07:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907724 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59F74E7717F for ; Fri, 13 Dec 2024 19:26:03 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3r-0006IG-EZ; Fri, 13 Dec 2024 14:10:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB3k-0005z1-2S for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:44 -0500 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3f-000753-2h for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:43 -0500 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-71e3cbd0583so199472a34.1 for ; Fri, 13 Dec 2024 11:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117037; x=1734721837; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eBPUqFgXPqVkLv31et38XzRlVXlzY7DGcAmres7QK70=; b=ZcZ7zT4tdhk11j3515x4EThsO3rDbeU0jMFeUU2bb+/imCFBVZM4d9cjArcmWCQNLb AcdHv3KYq6L/i/+J5pw/oZdyGxN87Xrt11ojlFWjEOP6e1l9LZgzO1hUGuDVo/KIqnqO IxTGtFMzUfFmk6kuUHs3fDKZhllED7x9MiqRV4sWos5UPEyDVjce/PRzUu8L5agzvL/z nsQJp96X7tbZuc9ILIXaJe4HsfELkzkLVNvmyU9cFjKobUUrAT3ddgmHwWAWGw+mzcac LYaHoNmVXlXgaMT9N61SjZaQ1frNAQ89K6TcvKOC19vR+9bTnowsRftkfkMiIMD7JggR H0VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117037; x=1734721837; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eBPUqFgXPqVkLv31et38XzRlVXlzY7DGcAmres7QK70=; b=k9sxvulS6DpQ0RLrX9T7DlJKL8NilwzXsQnfnhx6LwZ7/pudhzu0/c3P/Vazt17gdy uIO7S2X0jqma/PLu7s2SHN4kIQzGH0c2llGzhpi+rWvWIChCRr+dc8eMt2Pt3pmNFCMr aG7c0KdRTUCG35LbaHdaQSCU0KQsZbQP6B/81Ki5cSJ+UKpt7LDl9zlnXpjFGGHavlVJ CRqDl86/v4pxBR5NCnYJcxCKQu0OSErWJUuijB/GqQL2/sPSH6rS+4ZIRK3OSSpjh6GU Pocmt28rv32rMOzkxV4sAQ9xECUy9M9U0/5ncZctnC/42/2ByXVlIXcO96bf8XUNW0et rWww== X-Gm-Message-State: AOJu0Yz9ECZy6Y9pZs/Mbiq5pqAxjo4l2HsRQiHZBwb5W+NOAs7NujlU Inn/fi0ZYLim1UXldtRWIKotzDCFZLuQuXY00g4rPdaopL18dv6hHB6hiQTcsWhwZCxNmd5irrd sCPL3OJzM X-Gm-Gg: ASbGnctqtpslTiqjxEiXign1OjN2xY8SlTHhBzLCkuBvQ0pFyQjfUqyh7fBnCqrjLeA 5lAXrdDWmZ6FEMTNqjWBDC3S2teRu5IgJighgtF+YbGfvLsxhwCayzbwi+p35F9MdNET0cXKyu8 Y9LXk/6a8jQp5If0G2CnwGbyAZBP47EMBQ8juUwFOufjK0OW6yyYP15LgfTQYr96XD47CWQjm53 yUxFaMlscEHFrSV/w1qif96jjJIzFcXlOR8+UrjktN+MDregCXc00+hLVg15/k5 X-Google-Smtp-Source: AGHT+IEQuKandpwHrwyubsQmwuH6hcgtmzp9kRDrIiuQDt4IVIV+JRd0UNYCqK2aEAMwjJYMdRBr1A== X-Received: by 2002:a05:6830:f95:b0:71e:1c5:4f77 with SMTP id 46e09a7af769-71e3ba2b104mr2132805a34.20.1734117036827; Fri, 13 Dec 2024 11:10:36 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Corey Minyard Subject: [PATCH 34/71] hw/ipmi: Constify all Property Date: Fri, 13 Dec 2024 13:07:08 -0600 Message-ID: <20241213190750.2513964-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32b; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Acked-by: Corey Minyard --- hw/ipmi/ipmi.c | 2 +- hw/ipmi/ipmi_bmc_extern.c | 2 +- hw/ipmi/ipmi_bmc_sim.c | 2 +- hw/ipmi/isa_ipmi_bt.c | 2 +- hw/ipmi/isa_ipmi_kcs.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/ipmi/ipmi.c b/hw/ipmi/ipmi.c index bbb07b151e..850b3bc463 100644 --- a/hw/ipmi/ipmi.c +++ b/hw/ipmi/ipmi.c @@ -108,7 +108,7 @@ void ipmi_bmc_find_and_link(Object *obj, Object **bmc) OBJ_PROP_LINK_STRONG); } -static Property ipmi_bmc_properties[] = { +static const Property ipmi_bmc_properties[] = { DEFINE_PROP_UINT8("slave_addr", IPMIBmc, slave_addr, 0x20), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ipmi/ipmi_bmc_extern.c b/hw/ipmi/ipmi_bmc_extern.c index 29c5af3cc3..cfec1da87c 100644 --- a/hw/ipmi/ipmi_bmc_extern.c +++ b/hw/ipmi/ipmi_bmc_extern.c @@ -515,7 +515,7 @@ static void ipmi_bmc_extern_finalize(Object *obj) timer_free(ibe->extern_timer); } -static Property ipmi_bmc_extern_properties[] = { +static const Property ipmi_bmc_extern_properties[] = { DEFINE_PROP_CHR("chardev", IPMIBmcExtern, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ipmi/ipmi_bmc_sim.c index 33c839c65a..8a55893e89 100644 --- a/hw/ipmi/ipmi_bmc_sim.c +++ b/hw/ipmi/ipmi_bmc_sim.c @@ -2191,7 +2191,7 @@ static void ipmi_sim_realize(DeviceState *dev, Error **errp) vmstate_register(NULL, 0, &vmstate_ipmi_sim, ibs); } -static Property ipmi_sim_properties[] = { +static const Property ipmi_sim_properties[] = { DEFINE_PROP_UINT16("fruareasize", IPMIBmcSim, fru.areasize, 1024), DEFINE_PROP_STRING("frudatafile", IPMIBmcSim, fru.filename), DEFINE_PROP_STRING("sdrfile", IPMIBmcSim, sdr_filename), diff --git a/hw/ipmi/isa_ipmi_bt.c b/hw/ipmi/isa_ipmi_bt.c index 7b36d51494..16062abb31 100644 --- a/hw/ipmi/isa_ipmi_bt.c +++ b/hw/ipmi/isa_ipmi_bt.c @@ -135,7 +135,7 @@ static void *isa_ipmi_bt_get_backend_data(IPMIInterface *ii) return &iib->bt; } -static Property ipmi_isa_properties[] = { +static const Property ipmi_isa_properties[] = { DEFINE_PROP_UINT32("ioport", ISAIPMIBTDevice, bt.io_base, 0xe4), DEFINE_PROP_INT32("irq", ISAIPMIBTDevice, isairq, 5), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ipmi/isa_ipmi_kcs.c b/hw/ipmi/isa_ipmi_kcs.c index f52b32e590..7e7a37659e 100644 --- a/hw/ipmi/isa_ipmi_kcs.c +++ b/hw/ipmi/isa_ipmi_kcs.c @@ -142,7 +142,7 @@ static void *isa_ipmi_kcs_get_backend_data(IPMIInterface *ii) return &iik->kcs; } -static Property ipmi_isa_properties[] = { +static const Property ipmi_isa_properties[] = { DEFINE_PROP_UINT32("ioport", ISAIPMIKCSDevice, kcs.io_base, 0xca2), DEFINE_PROP_INT32("irq", ISAIPMIKCSDevice, isairq, 5), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:07:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907687 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA5E9E7717F for ; Fri, 13 Dec 2024 19:14:09 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB4K-0007DZ-8l; Fri, 13 Dec 2024 14:11:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB3m-00065T-LA for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:47 -0500 Received: from mail-oa1-x33.google.com ([2001:4860:4864:20::33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3f-00075C-GX for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:46 -0500 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-29e70c9dc72so1004749fac.0 for ; Fri, 13 Dec 2024 11:10:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117038; x=1734721838; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1Z1t6swvy8upy2Om0CJmkfNPeZpdljfu+4C2dIJjYZg=; b=SVvyCLQzy8LfC2/DSkjt92EKLvHQu5cSpIcsulwgGj367bUsm029tJi0ub3P5wpNiZ Tji35/1NSwY4cX7d9l/5PQeE5Dnd75wE4kHdluNVDpGOnjcbXxRz4erreFlmucndRx4L jb+dxOj6FibBWsDCX2bHgwgHF94VOJGIt6GJtsRbCtXYBEzd4MYBRAS0kovRD6HONjUa vSlNslhGiW8tdRFbOFbS0xX9+5KLdf6B+PTWdMGPX2/Kz64iqqwvW63cK2jOk6L3hlPp +SXXg7VmE3jFe8zR59EXXvWrZA4nIPcfmscVIEy6AOWtwBvBYEGcoqFjfTTRQObOEMV2 FBYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117038; x=1734721838; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1Z1t6swvy8upy2Om0CJmkfNPeZpdljfu+4C2dIJjYZg=; b=pHpDYHa831hbCNf/jOZ9l0svYLWItnogMbeYs/s4+D0CxbwgjXtx8voSQc+9cKWy9+ ZIz1H0jhk2MKdDlWIvu4XKqPSuC8JbM3Jc2n4fTo5MMEk4f9o0K7n6G+tjMFpgurMA+6 omDGfVMF4K2YqQ9zjuHrzjUDtnL6xOX+aRlURTspK7UAVLHuc5EOS/6iPtXZ/PZUOjym nxyuLD0intUmR9m/06Afyy6Itn/AB6hbYSf0r5ks5kf6kecLGtD2hs1TLEsBDEixYY6L 7pmGPVCETPn6nH+0xksTw8sirtYKZEQarofpZZO4XrNBCz/jf4ZQqev7ylrXTFZEMlYt i5nA== X-Gm-Message-State: AOJu0Yw4jxUS6FypZ4nEU6exTyWJ9E91JUK7RZc/b6HneSPBh+5ghciX rzLIU1ZFmw3YKsj+ZOvku0hYCBOFV4Dw/bp5SAKiHZgQj4GOQiIK1f0+YcwX/wd0mLd6fZtrmaF M9l/WIzUh X-Gm-Gg: ASbGnctZaWNwXh2sP3UoZ+nSk+HR0t6RQrfKgvwsM3jDfaUNIjgdX6VolebU42+RDXo SRuupw/Kuvi93G7FAy0eiXtqQHURYfK1Xp/MXLdBm0AUY+A33OqStefkVAZz7BZrqfhx88vMXED SCISd6ak7SgSmcl1whXs/ubmGKVPZUzaC1nA2OQ6RkSCGvAwFXWqW8J5p7gXBy5Z5m1Hqh2vZ0D 4ennwabhM0Q9OOfANfws63qQ/xrSBYBxZL6bDkBoeFJvlS7ZYcibZuFXCyy30qZ X-Google-Smtp-Source: AGHT+IErEgP61IwTRTJFasMINfOwcin5JaD/wnc6zj1SxLqPM3lk1vUEGmZAClPD5bTMVFMju9FdEQ== X-Received: by 2002:a05:6808:189e:b0:3eb:5d3a:5b20 with SMTP id 5614622812f47-3eba67f5459mr2225644b6e.4.1734117038116; Fri, 13 Dec 2024 11:10:38 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:37 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Marcel Apfelbaum , =?utf-8?q?Herv=C3=A9_Poussin?= =?utf-8?q?eau?= , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Aurelien Jarno , qemu-ppc@nongnu.org (open list:PReP) Subject: [PATCH 35/71] hw/isa: Constify all Property Date: Fri, 13 Dec 2024 13:07:09 -0600 Message-ID: <20241213190750.2513964-40-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::33; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x33.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Bernhard Beschow --- hw/isa/lpc_ich9.c | 2 +- hw/isa/pc87312.c | 2 +- hw/isa/piix.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c index dabd1217dd..378244aa8f 100644 --- a/hw/isa/lpc_ich9.c +++ b/hw/isa/lpc_ich9.c @@ -826,7 +826,7 @@ static const VMStateDescription vmstate_ich9_lpc = { } }; -static Property ich9_lpc_properties[] = { +static const Property ich9_lpc_properties[] = { DEFINE_PROP_BOOL("noreboot", ICH9LPCState, pin_strap.spkr_hi, false), DEFINE_PROP_BOOL("smm-compat", ICH9LPCState, pm.smm_compat, false), DEFINE_PROP_BOOL("smm-enabled", ICH9LPCState, pm.smm_enabled, false), diff --git a/hw/isa/pc87312.c b/hw/isa/pc87312.c index f67155498d..7bb2af817d 100644 --- a/hw/isa/pc87312.c +++ b/hw/isa/pc87312.c @@ -327,7 +327,7 @@ static const VMStateDescription vmstate_pc87312 = { } }; -static Property pc87312_properties[] = { +static const Property pc87312_properties[] = { DEFINE_PROP_UINT16("iobase", PC87312State, iobase, 0x398), DEFINE_PROP_UINT8("config", PC87312State, config, 1), DEFINE_PROP_END_OF_LIST() diff --git a/hw/isa/piix.c b/hw/isa/piix.c index b4a402f61b..8ec9c63b8a 100644 --- a/hw/isa/piix.c +++ b/hw/isa/piix.c @@ -408,7 +408,7 @@ static void pci_piix_init(Object *obj) object_initialize_child(obj, "rtc", &d->rtc, TYPE_MC146818_RTC); } -static Property pci_piix_props[] = { +static const Property pci_piix_props[] = { DEFINE_PROP_UINT32("smb_io_base", PIIXState, smb_io_base, 0), DEFINE_PROP_BOOL("has-acpi", PIIXState, has_acpi, true), DEFINE_PROP_BOOL("has-pic", PIIXState, has_pic, true), From patchwork Fri Dec 13 19:07:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907742 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADFA1E7717F for ; Fri, 13 Dec 2024 19:33:35 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB6l-0005nL-Ih; Fri, 13 Dec 2024 14:13:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB6j-0005bM-B4 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:49 -0500 Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6c-0007SD-Of for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:49 -0500 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-2a383315d96so998183fac.3 for ; Fri, 13 Dec 2024 11:13:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117221; x=1734722021; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sYpzCIIWLR+bvPU5Npbd9jfQ0yZt4mKlJCxKK1JYabc=; b=ZaqTBO0FNtQVwgom9XtgEvI30PJTwyd/ilPv8Lql9H6wkUFnzUgKcIaqDv6SD2AJ/D ss7JMB8urm25g7dN7QS+ygXo3ZNB7BCFeuWLVUGvnUIUtYUGBuvigu8Z8KbmWf9mlzi9 M8D5p1qi2rp03NmFxBhVxLJX4V9Nmvbd0iezJY5/Hzge30QjO96O5Z8+zY2SPKfbTTvc VyweYR9ToQo7vBXvctOKhoQUjZjHMGs8RJVLpAQLsXpu0S1djSS1HPGmuvwKD/OUH+Cw nisDTEd06UCqAQ+kXCoz9gVMkr3+JEd23yORUPHG8TwIl380C6Y/D6oPsJIju21Y6q8d nnXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117221; x=1734722021; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sYpzCIIWLR+bvPU5Npbd9jfQ0yZt4mKlJCxKK1JYabc=; b=rCmaFL8amHwbNlyygJ2sbcA+7ZMzHcgvU03pChbVrLJSnRiEAaETAKUQ6kiq0YTi4O 7Ka1OagBS/ixj1UnPaqcrzkvJF38S4JNtXZfV6yZ65ssTDbxjWzhfYwsWz5UHPIH0N0L /yo7Dy1ZHHc2vnNzpNLY2YmMaYNVbHLzSEteKdLOLdi30M3TY3l3tqonyBZInVDb2nzj ibKKGSjQ/p+lfB2ToieXCNKwt5Wu6j54+rvaNESrg8UXYHdbfHsMUlNcZFMdMuYq38Fe fCMkl+YE9RAsv+xHVduF0bEBWPQoSVrAYITERnDDqKC1x90NLJLjaTzgAaCNG77hEpCr IQKw== X-Gm-Message-State: AOJu0YxYUO7JX8qZgI2Im0/toOzLU9UeFP+CB8VNbou2FxxoqxY1yaHr A5vI/w37LWR5cKZZtf9b2a0piMH9HZwURnU8Sf3MgEj/RAqBG5KCQEia9JzQoG7bOhgcfwq4IPE INjMPTL0T X-Gm-Gg: ASbGncs33RIDNfEwDY68U4BxiH0D+yk9SszZ3Esu6H1EvuX2VCXLXO1e1jKYa+MQGe3 viXKKLune8IeEGYBqlr/iji9w/o8/kvImrOmdOGBIeGLPiq/GRGH0yu7v6/D6l6gAxuK1S+OS9t f6ITHBf9ALM83mCWyfsvCi+P5gtzoAIi55nc/LQ/ImlPxLrCK/Ih+uDg2S4Ax9HTQPH+tV1eHUS f/saMFpqxbKwPclNhSwh5Xis+A3lUq3XcBc/VwaQlaJrzp12VMI0mAawFEt/Cbq X-Google-Smtp-Source: AGHT+IEwws67ez/3napcjb5XwQKoZikflC8B0cUpR3CDGDiQ1WzTE8Rnuik6XhVkYgTDS6LTrR/RcQ== X-Received: by 2002:a05:6808:f88:b0:3e8:1f5d:b804 with SMTP id 5614622812f47-3eba6871639mr1726929b6e.15.1734117221467; Fri, 13 Dec 2024 11:13:41 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:40 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Thomas Huth , Laurent Vivier Subject: [PATCH 36/71] hw/m68k: Constify all Property Date: Fri, 13 Dec 2024 13:07:10 -0600 Message-ID: <20241213190750.2513964-41-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::31; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Thomas Huth --- hw/m68k/mcf5206.c | 2 +- hw/m68k/mcf_intc.c | 2 +- hw/m68k/next-cube.c | 2 +- hw/m68k/q800-glue.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/m68k/mcf5206.c b/hw/m68k/mcf5206.c index 7247cdbe5e..45e5f74600 100644 --- a/hw/m68k/mcf5206.c +++ b/hw/m68k/mcf5206.c @@ -600,7 +600,7 @@ static void mcf5206_mbar_realize(DeviceState *dev, Error **errp) s->uart[1] = mcf_uart_create(s->pic[13], serial_hd(1)); } -static Property mcf5206_mbar_properties[] = { +static const Property mcf5206_mbar_properties[] = { DEFINE_PROP_LINK("m68k-cpu", m5206_mbar_state, cpu, TYPE_M68K_CPU, M68kCPU *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/m68k/mcf_intc.c b/hw/m68k/mcf_intc.c index 9fc30b03ba..c24b0b715d 100644 --- a/hw/m68k/mcf_intc.c +++ b/hw/m68k/mcf_intc.c @@ -177,7 +177,7 @@ static void mcf_intc_instance_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->iomem); } -static Property mcf_intc_properties[] = { +static const Property mcf_intc_properties[] = { DEFINE_PROP_LINK("m68k-cpu", mcf_intc_state, cpu, TYPE_M68K_CPU, M68kCPU *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/m68k/next-cube.c b/hw/m68k/next-cube.c index 08886d432c..a37ce00874 100644 --- a/hw/m68k/next-cube.c +++ b/hw/m68k/next-cube.c @@ -914,7 +914,7 @@ static void next_pc_realize(DeviceState *dev, Error **errp) * this cpu link property and could instead provide outbound IRQ lines * that the board could wire up to the CPU. */ -static Property next_pc_properties[] = { +static const Property next_pc_properties[] = { DEFINE_PROP_LINK("cpu", NeXTPC, cpu, TYPE_M68K_CPU, M68kCPU *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/m68k/q800-glue.c b/hw/m68k/q800-glue.c index e2ae7c3201..0d8cb8b1cb 100644 --- a/hw/m68k/q800-glue.c +++ b/hw/m68k/q800-glue.c @@ -203,7 +203,7 @@ static const VMStateDescription vmstate_glue = { * this cpu link property and could instead provide outbound IRQ lines * that the board could wire up to the CPU. */ -static Property glue_properties[] = { +static const Property glue_properties[] = { DEFINE_PROP_LINK("cpu", GLUEState, cpu, TYPE_M68K_CPU, M68kCPU *), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907736 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0181CE7717F for ; Fri, 13 Dec 2024 19:31:18 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB6n-0005uC-S8; Fri, 13 Dec 2024 14:13:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB6l-0005mQ-6O for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:51 -0500 Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6f-0007SU-9Q for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:49 -0500 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-294ec8e1d8aso1684567fac.1 for ; Fri, 13 Dec 2024 11:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117223; x=1734722023; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gHwJArgtR7CjMdMdWS4p4NXW2ugDhJf5dpnL9eQostM=; b=SXcrlsGG66rbccSDoUWD1lH8x2od0SxfJZHZxdxnKcKYGBBuVDiI7yShG4eukwvv2F Uvo8dNNeaPwwqGSluNxgV0NYolYt9WPx0vKScg2OIAsOgbu95RdJSgFmsDvk6MG0w5Ws OeFnboJIuRgUmGyR6ZAAEC/5I/Jn+Qcv7nHktXmn56r8cK/bELpLjSQs+jwr25GeUwEz YWC19wtI9jcOkjVJiHOsRT4yBdrF3+BgBLAsncLIqFJZLC1Dt3ZGm6CIt4A4Uaz8wQOF JXBAgnxT2tWCEpCk4Gum7exoagOmJscOwapKnQYlx4I8q8HQQzJGzu8ueJCxdf6TAqMQ XksA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117223; x=1734722023; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gHwJArgtR7CjMdMdWS4p4NXW2ugDhJf5dpnL9eQostM=; b=W0MEv4eNDea/DWfOo/W11maYrVFGnMwRM6zWH4rutMo9wxOw4XERYGtd4vwojuaxQf DA4SfbsvWMJ6pn1Iy6mqCHVB7VwyGv3SA9sHMfMupeBzRIThgWHkpULZKAEwkZF2SnDV BDC1KygG6+P34OvLKAkM7JxUN198cRFkKvMLSqbipDD/ukTtqA1RbKYrS7WjjkjTKlFr c3+WJ2dTeB8cnZz0O6L3TvZ+9UK/2dxKNOL/0RG7MQMVDAak6r32HOsG2RZuIkc0oWYY ih3/C3IUK+XjsUX2P8oXC297vB1qVLvx8WRisA44/RzWi9aJmspFoQ57/xQ7MnQZmCgy mbxg== X-Gm-Message-State: AOJu0Yz2+yFQhN2K4Rj19xF4HmZEg7gWTjT37Tuolxp11070YTDsxqyC j2LKOnyUVla53LoANynEWLY/T2UviDTB/nHiWg5hEUhHA7ZKj7IlHOMijqGxMyIZ4lRLRUw9MUZ lzDVVxxYM X-Gm-Gg: ASbGncs0Iw6Gc+uKorDfcAQ3hMStFS2Rc6UyRH5+Ix1/EpQV6na6hoGgoax5QSgc8KE tWn07tJQBkS38N6qeS7QSqNxHZmli2KKx90mDWgmVGQo6AZev5pMjLHYA4RM/onHR7Ckb4Giyws XYxviDyzKJXQ2AY3uzLUQvQf5FVe9lI9eFhFFY5h8pZW9WeB7MtgMMbCNqn20g8/gL3TKDkh4l+ vu6Z1pkdKMGcBd85m3VT6Ocw+3uPBdtlNOrhN8CQvcA+xKr/F0pdxpY9h51ts9R X-Google-Smtp-Source: AGHT+IHbX9L4Xx0OB5O23fcpRCWFzJyjyxEt1OLlDmWe4wASoffulqhcIKDCrBwWWRj+lo4Hi6zISg== X-Received: by 2002:a05:6808:f12:b0:3eb:5ab2:5db2 with SMTP id 5614622812f47-3eba69993acmr2562050b6e.37.1734117223453; Fri, 13 Dec 2024 11:13:43 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Jonathan Cameron , Fan Ni , David Hildenbrand , Igor Mammedov , Xiao Guangrong , Alexander Bulekov , Paolo Bonzini , Bandan Das , Stefan Hajnoczi , Fabiano Rosas , Darren Kenny , Qiuhao Li Subject: [PATCH 37/71] hw/mem: Constify all Property Date: Fri, 13 Dec 2024 13:07:11 -0600 Message-ID: <20241213190750.2513964-42-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2a; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2a.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/mem/cxl_type3.c | 2 +- hw/mem/nvdimm.c | 2 +- hw/mem/pc-dimm.c | 2 +- hw/mem/sparse-mem.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mem/cxl_type3.c b/hw/mem/cxl_type3.c index 5cf754b38f..12205c4d32 100644 --- a/hw/mem/cxl_type3.c +++ b/hw/mem/cxl_type3.c @@ -1216,7 +1216,7 @@ static void ct3d_reset(DeviceState *dev) } -static Property ct3_props[] = { +static const Property ct3_props[] = { DEFINE_PROP_LINK("memdev", CXLType3Dev, hostmem, TYPE_MEMORY_BACKEND, HostMemoryBackend *), /* for backward compatibility */ DEFINE_PROP_LINK("persistent-memdev", CXLType3Dev, hostpmem, diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c index 1631a7d13f..10506d52e4 100644 --- a/hw/mem/nvdimm.c +++ b/hw/mem/nvdimm.c @@ -246,7 +246,7 @@ static void nvdimm_write_label_data(NVDIMMDevice *nvdimm, const void *buf, memory_region_set_dirty(mr, backend_offset, size); } -static Property nvdimm_properties[] = { +static const Property nvdimm_properties[] = { DEFINE_PROP_BOOL(NVDIMM_UNARMED_PROP, NVDIMMDevice, unarmed, false), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c index 27919ca45d..49c5f9fd44 100644 --- a/hw/mem/pc-dimm.c +++ b/hw/mem/pc-dimm.c @@ -150,7 +150,7 @@ out: return slot; } -static Property pc_dimm_properties[] = { +static const Property pc_dimm_properties[] = { DEFINE_PROP_UINT64(PC_DIMM_ADDR_PROP, PCDIMMDevice, addr, 0), DEFINE_PROP_UINT32(PC_DIMM_NODE_PROP, PCDIMMDevice, node, 0), DEFINE_PROP_INT32(PC_DIMM_SLOT_PROP, PCDIMMDevice, slot, diff --git a/hw/mem/sparse-mem.c b/hw/mem/sparse-mem.c index 6e8f4f84fb..8d681adfc0 100644 --- a/hw/mem/sparse-mem.c +++ b/hw/mem/sparse-mem.c @@ -96,7 +96,7 @@ static const MemoryRegionOps sparse_mem_ops = { }, }; -static Property sparse_mem_properties[] = { +static const Property sparse_mem_properties[] = { /* The base address of the memory */ DEFINE_PROP_UINT64("baseaddr", SparseMemState, baseaddr, 0x0), /* The length of the sparse memory region */ From patchwork Fri Dec 13 19:07:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907709 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D503EE77180 for ; Fri, 13 Dec 2024 19:20:37 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB6k-0005gr-G5; Fri, 13 Dec 2024 14:13:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB6i-0005XN-PA for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:48 -0500 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6h-0007Sj-3z for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:48 -0500 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-2a01707db44so650420fac.2 for ; Fri, 13 Dec 2024 11:13:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117224; x=1734722024; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2mACfDBbl1zp2rBr4xmrT6K6hg/pPK23y61jj5zZUfg=; b=XynybG96KeT2sSBCym8ibYLPyLKT+Lf/l2IFNsS2ymEQPzRh3X0tZlVoOKbZ2iAGmR c6f8nEE1qhgjSoXY9o+aZsW0WuEhCtxER2soDx45+iJsDb0RhSU00LoO6oIHKuQD9stt Vkt6s0s20lwLM7Dh2RXIe2d819muw7k1rdtdqbOLc00GsyAoUnRPUxyxWiEmFvhrzrzZ n5k3zEBZ61H/w/EJfbSmzNqXhm2TFJzD/QgpBW3TpQgtT51wXVei5uH0WSfH71IaHU1S cD5wF24r/jE9tzxHwg012g3P02s82ONlgxTMzMU6W24NgWlocCIYqAQmaqF94QTno96R vX4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117224; x=1734722024; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2mACfDBbl1zp2rBr4xmrT6K6hg/pPK23y61jj5zZUfg=; b=BSOUqKYmZ4nfOyUHm6d/o9lM5GQWKD7Me5apr5o8MpUHziq/G7rh8O5VC0UxuR1JiC mLW4Ux8oBQ6Iea1dOLCEugt51KSRfNwqRVdmla8JDk7773JdgdVSe9nekesBU3Gu3QQv O6ZycIQjNXvhXOKzkMkjIT4QIAIX5PsCA6cV17ISvdN6Fp4xN/hZYn+HIo49PykaIf/m DkRDlJXWQwkW4aIBhtpm0RwfcYKzPJ+BNUORAE+WqHmK1cOaa1c28Y/KNB1LZDisWe1k LyYnW6ER029+m2xVQYy6OQWB31WcFbOGvozG8LDg++5cFhl21FjeKJScTkJ1otqntCCZ qAPQ== X-Gm-Message-State: AOJu0YzhBFp9fwHtf4H7TceSr8yRtqo18KFS2AUWPPOZnxqTpxxYDTSc 4ax8AgHQhkjL1hv62n7OkFo5bfnwgR1mdQikVzaZk2vG6TugUXDtUkzq11eHjneLzNnjq93mVpm NzNP3ZplM X-Gm-Gg: ASbGncsfDpDFVV57JJInKQWOxJ61kUP53ET0wK/A5uUlOtYbTVp+Ly03t233PJgNZBf FEakzi168w8Wzeo02KO6OROcTBPZDr7RGCpOxpv/9bd3rrwLR4rNCoxAvzlq/66epQCq2aHfdds EnyW+7P6GIFOtma3Wt32Q4HqfyND3siniKHOC94vT9SnLOdcinHq5eBDbd3O0uweBd9lE5VYrRM zj+PzPomyv12YWfCv+V2+WSb8UcvkOHBOnfsz8UU6VO/+0ayWzfPMVcFmR/juRi X-Google-Smtp-Source: AGHT+IEmuiFWl1I1MYWJAgAOZexB/d8jUengi7ZrtuwOBe3P5Elu+6t0mlPCwF3o1pnhMCYhX28Dng== X-Received: by 2002:a05:6808:f88:b0:3eb:5160:f859 with SMTP id 5614622812f47-3eba681d8f8mr2365306b6e.9.1734117224684; Fri, 13 Dec 2024 11:13:44 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:44 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Jiaxun Yang Subject: [PATCH 38/71] hw/mips: Constify all Property Date: Fri, 13 Dec 2024 13:07:12 -0600 Message-ID: <20241213190750.2513964-43-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::35; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/mips/cps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mips/cps.c b/hw/mips/cps.c index 13046628cd..1a2208666c 100644 --- a/hw/mips/cps.c +++ b/hw/mips/cps.c @@ -166,7 +166,7 @@ static void mips_cps_realize(DeviceState *dev, Error **errp) sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->gcr), 0)); } -static Property mips_cps_properties[] = { +static const Property mips_cps_properties[] = { DEFINE_PROP_UINT32("num-vp", MIPSCPSState, num_vp, 1), DEFINE_PROP_UINT32("num-irq", MIPSCPSState, num_irq, 256), DEFINE_PROP_STRING("cpu-type", MIPSCPSState, cpu_type), From patchwork Fri Dec 13 19:07:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907785 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4015EE7717F for ; Fri, 13 Dec 2024 19:37:53 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB6m-0005sh-QH; Fri, 13 Dec 2024 14:13:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB6k-0005fz-2F for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:50 -0500 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6h-0007Sy-IX for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:49 -0500 Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3eb7f3b1342so910410b6e.1 for ; Fri, 13 Dec 2024 11:13:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117226; x=1734722026; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6I71WCIZYeQ5yV8uCldLsOTnUpTDKGYy0sk8GaKQTI8=; b=Cp97yayDM4zb9c9kRp16YDDMfoZLMRp6QXyG0Z2dgm+1SREITx+uUauiHPi2rNoby6 lRSc5RncSifJ2Au8JiHt1d5zotJYrCrXFIaaCa3sWeYlmgMwOGdpXaiNjteFQUx/Zv9h j4GojxcE4lPPsWVQDzVAQ2dei5OPWTE/vFPQQiQfqN6epy4btllB5+08/BePd48Dmmu2 xWON4gq45nEqfA3f5T0B8RwqWg6q1g5DInmnWw2WuBCfBAu45gooS79mW96t0JYJ1w7S JO9EX2IHXHYGnh76ymPl44/TOi4ZmvD+WjXojl0+mQozACSwjmS+eqFEw15TZwMGFK+b mxPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117226; x=1734722026; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6I71WCIZYeQ5yV8uCldLsOTnUpTDKGYy0sk8GaKQTI8=; b=H7bm7jtoU48FqrZwCKw23bm87+RZEEBNC1HLxaEYpnU2gmjt8OWoXmlpMpmpxLH9Vm FunbFxK+y+1D7fl8Fia689YBihbuw2CXc5wN4LoX9LfdBe31Po50Fltw2IFVMbVkRaFW PKbdaAuz1efHIRaXzzh1+3l0q2nxB9Ea4UwGYYzkBfLdQ1hXcQ4CdafsmG7LJ4Snranr JlRyJg3byyhfgFJYe/3bLK6+k6lYpwJRScm/7O/fpC/U+UvumFRxv3a7k/ODG8SoXLye UIwHBJU+jKgTKeznJqSakkdCBU/2eZp21s+f2SP+yh0zFQxiebNbtstJnzy4Z+pXnOwA Sb2A== X-Gm-Message-State: AOJu0YyiaiCnT6xnIDwtG4P2XAzMgWT2uHsmhcrrJfn+7g+LjzFWBkYg fUUEb+Agrc5SeChwnfD8XknCw3mD+xpXk0sjoJUxxP0CX3equ/RGwPRyhnwMUmGIO9WjXZdp3pn P4oRfK8yt X-Gm-Gg: ASbGnctgPrXcBlHkQagXzzDqXzm+TJ2St2DKu6+dMm9u0xAXFaV8OLT+Z8SuZ0Wwl+Z 62BPxHbRP3kKo92ClGVVjizZ5yAha9d2f9y7M5eEWXnSiv82O5xDiE8DlnSWBNf1qHMKFyBh1hl mhHZezGks7W7c931D5JXV6CYwCuQfW5By1/+9C9lyD/9eZg2Y/H7jgFzgcwNoZDbPq4T3sKv2uf sIvo/R2tw2+R71Qs5CDwlRO2Sj8vhHVZ4np1A5YbwOq6rEGYI/CifFpm+esT7XW X-Google-Smtp-Source: AGHT+IG00GnozzUOWoDNKsIC8Bt4iAeF/clMgZ0ktCIKKzUbT5Lx2a2RqPw+0UW9rrSl7ySGbRisww== X-Received: by 2002:a05:6808:2208:b0:3eb:4b4c:80d8 with SMTP id 5614622812f47-3eba65ba0admr1866208b6e.0.1734117226116; Fri, 13 Dec 2024 11:13:46 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:45 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alistair Francis , "Edgar E. Iglesias" , Peter Maydell , qemu-arm@nongnu.org (open list:Xilinx ZynqMP and...) Subject: [PATCH 39/71] hw/misc/xlnx-versal-trng: Constify trng_props Date: Fri, 13 Dec 2024 13:07:13 -0600 Message-ID: <20241213190750.2513964-44-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22b; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Use DEFINE_PROP_UNSIGNED instead of DEFINE_PROP_UINT64 so that we can set the PropertyInfo during initialization, instead of updating within trng_class_init. Signed-off-by: Richard Henderson --- hw/misc/xlnx-versal-trng.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/misc/xlnx-versal-trng.c b/hw/misc/xlnx-versal-trng.c index 86905479b8..2f6af4f680 100644 --- a/hw/misc/xlnx-versal-trng.c +++ b/hw/misc/xlnx-versal-trng.c @@ -660,8 +660,9 @@ static const PropertyInfo trng_prop_fault_events = { static PropertyInfo trng_prop_uint64; /* to extend qdev_prop_uint64 */ -static Property trng_props[] = { - DEFINE_PROP_UINT64("forced-prng", XlnxVersalTRng, forced_prng_seed, 0), +static const Property trng_props[] = { + DEFINE_PROP_UNSIGNED("forced-prng", XlnxVersalTRng, forced_prng_seed, + 0, trng_prop_uint64, uint64_t), DEFINE_PROP_UINT32("hw-version", XlnxVersalTRng, hw_version, 0x0200), DEFINE_PROP("fips-fault-events", XlnxVersalTRng, forced_faults, trng_prop_fault_events, uint32_t), @@ -694,7 +695,6 @@ static void trng_class_init(ObjectClass *klass, void *data) /* Clone uint64 property with set allowed after realized */ trng_prop_uint64 = qdev_prop_uint64; trng_prop_uint64.realized_set_allowed = true; - trng_props[0].info = &trng_prop_uint64; device_class_set_props(dc, trng_props); } From patchwork Fri Dec 13 19:07:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907730 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52C5DE7717F for ; Fri, 13 Dec 2024 19:28:45 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB76-0006IC-Sm; Fri, 13 Dec 2024 14:14:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB6u-000666-BE for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:01 -0500 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6m-0007U1-7p for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:59 -0500 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-2a01bcd0143so1103899fac.2 for ; Fri, 13 Dec 2024 11:13:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117231; x=1734722031; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qhtLMeXH9xU4x0jis7KGD8/ZeE+4vnFmuGlGyWuIyIU=; b=IvAAJOG8oK0BDsDYAZx48SuAksg8Ido2v1FP4Ku15CURHjFSxyw/5xnwLYVgXPE9vN ndYajtz/LUjacoSxhGRr+rpQWhAU2ur6Z0lVae75xB0YpE9CmBleLLNQmQ0HUuOGqyGY WYFDvHcGlsQxQz1TBSBq4eRiLU302pAbEniqw0fzl2rrico3CIjYyNx7whvtSHYl3hLq N6UCJW5C8+8M3e3fLKc6Q+PkfkDOz6VZCBHU/x5jx0Ij51qzARPHA7U2H/AaA/Dfln1N oBI8VJN0gVoWHto4e+nDVXIg9xizjSzA/x4qGbuNSEDWoHHRizyvgmvir2mmtimqY1jD lQag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117231; x=1734722031; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qhtLMeXH9xU4x0jis7KGD8/ZeE+4vnFmuGlGyWuIyIU=; b=k4L8TjNwq0cOz3n4p3tlzROifSbd3LvEm8Dg2jcBn+kziePTD0AhYl64m8i21XWISC ZgllABlk7zlWsWrYPFJjf2RRwWL9RQVu9E9QvUm+3N4K2e0nJdu0Et6KYeOWMsl1ksRl Pg1Y3h2Ezrlf4I+wO/zrJ508ewTVCPDT9pESwEuriXrKEe2CvuSxA3dqIzAe9Fl2kb1h zVY198noEBGKSkX/A2k0kfGZxbYUzLBCMsA+H+LtfP4AwifVKsWex4bvHfgG0lrE+opl W0xYe6Zxh1mYg9BbrUF73s8ain+qTNw4D04RseZlbX3eM+prPv9MXAJujtvstKd3cDLX AquQ== X-Gm-Message-State: AOJu0Yw8asUtJWNq0kZ9t9Kp8APcp59rZBAdD9vfYa7HemHruTP0GXHq JO1HEfFG6YOSBV6p17IoaN1uiaX/D49JiizmfqYBdnoVJ6RMehlI1HUBvENLOIQPWC3gPhShqJ0 ze0iIv4ND X-Gm-Gg: ASbGnct2RMV/GVv1BftAMPc4+bqUHVU7QkPez4HkXchrEafV488VzweETdnzMVyiIKm nORPhYQuzSYIN50Ex86NA2bd/EXOg7/xa03NtCep/UjXRGivfpzs6LZhES7x5fUVduZSmjdzWzh 1d4wQPtfKREYphWWV2gPjIxh9d5ssd3IFPJO3ZqR0FFPz5rwPnVaFmyQY/AsYm5GHDgTUSuJJoc ingKHBOFFbiaM3PLvEG6NVXwggRGk848zp0jUujg8wEKqEUY+o4wYk0cMcaej9e X-Google-Smtp-Source: AGHT+IG1I4bbYZtaw7AHQZD2xYr99auqnf57cZK5KQnHHDladwiwqMbsg/eHO8KuNCxPM+kuiHwB7g== X-Received: by 2002:a05:6808:f08:b0:3eb:575d:5063 with SMTP id 5614622812f47-3eba6891dc0mr2146153b6e.23.1734117230661; Fri, 13 Dec 2024 11:13:50 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:50 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Maydell , Niek Linnenbank , Beniamino Galvani , Strahinja Jankovic , =?utf-8?q?C=C3=A9dric_?= =?utf-8?q?Le_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , "Michael S. Tsirkin" , Paolo Bonzini , Mark Cave-Ayland , Artyom Tarasenko , Ani Sinha , Laurent Vivier , Subbaraya Sundeep , Tyrone Ting , Hao Wu , Marcel Apfelbaum , Alistair Francis , Bin Meng , Palmer Dabbelt , Samuel Tardieu , Francisco Iglesias , "Edgar E. Iglesias" , qemu-arm@nongnu.org (open list:ARM cores), qemu-ppc@nongnu.org (open list:New World (mac99)), qemu-riscv@nongnu.org (open list:SiFive Machines) Subject: [PATCH 40/71] hw/misc: Constify all Property Date: Fri, 13 Dec 2024 13:07:14 -0600 Message-ID: <20241213190750.2513964-45-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::36; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x36.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater --- hw/misc/a9scu.c | 2 +- hw/misc/allwinner-h3-dramc.c | 2 +- hw/misc/allwinner-r40-dramc.c | 2 +- hw/misc/allwinner-sid.c | 2 +- hw/misc/applesmc.c | 2 +- hw/misc/arm11scu.c | 2 +- hw/misc/arm_l2x0.c | 2 +- hw/misc/arm_sysctl.c | 2 +- hw/misc/armsse-cpuid.c | 2 +- hw/misc/aspeed_hace.c | 2 +- hw/misc/aspeed_i3c.c | 2 +- hw/misc/aspeed_lpc.c | 2 +- hw/misc/aspeed_sbc.c | 2 +- hw/misc/aspeed_scu.c | 2 +- hw/misc/aspeed_sdmc.c | 2 +- hw/misc/bcm2835_cprman.c | 2 +- hw/misc/bcm2835_property.c | 2 +- hw/misc/debugexit.c | 2 +- hw/misc/eccmemctl.c | 2 +- hw/misc/empty_slot.c | 2 +- hw/misc/iotkit-secctl.c | 2 +- hw/misc/iotkit-sysctl.c | 2 +- hw/misc/iotkit-sysinfo.c | 2 +- hw/misc/ivshmem.c | 4 ++-- hw/misc/led.c | 2 +- hw/misc/mac_via.c | 2 +- hw/misc/macio/cuda.c | 2 +- hw/misc/macio/macio.c | 4 ++-- hw/misc/macio/pmu.c | 2 +- hw/misc/mips_cmgcr.c | 2 +- hw/misc/mips_cpc.c | 2 +- hw/misc/mips_itu.c | 2 +- hw/misc/mos6522.c | 2 +- hw/misc/mps2-fpgaio.c | 2 +- hw/misc/mps2-scc.c | 2 +- hw/misc/msf2-sysreg.c | 2 +- hw/misc/npcm7xx_gcr.c | 2 +- hw/misc/nrf51_rng.c | 2 +- hw/misc/pci-testdev.c | 2 +- hw/misc/pvpanic-isa.c | 2 +- hw/misc/pvpanic-pci.c | 2 +- hw/misc/sifive_e_aon.c | 2 +- hw/misc/sifive_u_otp.c | 2 +- hw/misc/stm32l4x5_rcc.c | 2 +- hw/misc/tz-mpc.c | 2 +- hw/misc/tz-msc.c | 2 +- hw/misc/tz-ppc.c | 2 +- hw/misc/unimp.c | 2 +- hw/misc/xlnx-versal-cframe-reg.c | 4 ++-- hw/misc/xlnx-versal-cfu.c | 4 ++-- hw/misc/xlnx-versal-xramc.c | 2 +- hw/misc/zynq_slcr.c | 2 +- 52 files changed, 56 insertions(+), 56 deletions(-) diff --git a/hw/misc/a9scu.c b/hw/misc/a9scu.c index a40d5072de..e2d73edde8 100644 --- a/hw/misc/a9scu.c +++ b/hw/misc/a9scu.c @@ -123,7 +123,7 @@ static const VMStateDescription vmstate_a9_scu = { } }; -static Property a9_scu_properties[] = { +static const Property a9_scu_properties[] = { DEFINE_PROP_UINT32("num-cpu", A9SCUState, num_cpu, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/allwinner-h3-dramc.c b/hw/misc/allwinner-h3-dramc.c index eeab0dc5d2..247bf62c43 100644 --- a/hw/misc/allwinner-h3-dramc.c +++ b/hw/misc/allwinner-h3-dramc.c @@ -314,7 +314,7 @@ static void allwinner_h3_dramc_init(Object *obj) sysbus_init_mmio(sbd, &s->dramphy_iomem); } -static Property allwinner_h3_dramc_properties[] = { +static const Property allwinner_h3_dramc_properties[] = { DEFINE_PROP_UINT64("ram-addr", AwH3DramCtlState, ram_addr, 0x0), DEFINE_PROP_UINT32("ram-size", AwH3DramCtlState, ram_size, 256 * MiB), DEFINE_PROP_END_OF_LIST() diff --git a/hw/misc/allwinner-r40-dramc.c b/hw/misc/allwinner-r40-dramc.c index 3ae4890037..a51284ff91 100644 --- a/hw/misc/allwinner-r40-dramc.c +++ b/hw/misc/allwinner-r40-dramc.c @@ -464,7 +464,7 @@ static void allwinner_r40_dramc_init(Object *obj) sysbus_init_mmio(sbd, &s->dramphy_iomem); } -static Property allwinner_r40_dramc_properties[] = { +static const Property allwinner_r40_dramc_properties[] = { DEFINE_PROP_UINT64("ram-addr", AwR40DramCtlState, ram_addr, 0x0), DEFINE_PROP_UINT32("ram-size", AwR40DramCtlState, ram_size, 256), /* MiB */ DEFINE_PROP_END_OF_LIST() diff --git a/hw/misc/allwinner-sid.c b/hw/misc/allwinner-sid.c index 19ff17d24a..3a09dca111 100644 --- a/hw/misc/allwinner-sid.c +++ b/hw/misc/allwinner-sid.c @@ -127,7 +127,7 @@ static void allwinner_sid_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property allwinner_sid_properties[] = { +static const Property allwinner_sid_properties[] = { DEFINE_PROP_UUID_NODEFAULT("identifier", AwSidState, identifier), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/applesmc.c b/hw/misc/applesmc.c index 5b766277d6..9d0e273e33 100644 --- a/hw/misc/applesmc.c +++ b/hw/misc/applesmc.c @@ -350,7 +350,7 @@ static void applesmc_unrealize(DeviceState *dev) } } -static Property applesmc_isa_properties[] = { +static const Property applesmc_isa_properties[] = { DEFINE_PROP_UINT32(APPLESMC_PROP_IO_BASE, AppleSMCState, iobase, APPLESMC_DEFAULT_IOBASE), DEFINE_PROP_STRING("osk", AppleSMCState, osk), diff --git a/hw/misc/arm11scu.c b/hw/misc/arm11scu.c index 17c36a0545..37feed9da7 100644 --- a/hw/misc/arm11scu.c +++ b/hw/misc/arm11scu.c @@ -75,7 +75,7 @@ static void arm11_scu_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property arm11_scu_properties[] = { +static const Property arm11_scu_properties[] = { DEFINE_PROP_UINT32("num-cpu", ARM11SCUState, num_cpu, 1), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/arm_l2x0.c b/hw/misc/arm_l2x0.c index 1902ebd3bc..9c209f13b0 100644 --- a/hw/misc/arm_l2x0.c +++ b/hw/misc/arm_l2x0.c @@ -173,7 +173,7 @@ static void l2x0_priv_init(Object *obj) sysbus_init_mmio(dev, &s->iomem); } -static Property l2x0_properties[] = { +static const Property l2x0_properties[] = { DEFINE_PROP_UINT32("cache-type", L2x0State, cache_type, 0x1c100100), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/arm_sysctl.c b/hw/misc/arm_sysctl.c index 9c4dce350a..69e379fa10 100644 --- a/hw/misc/arm_sysctl.c +++ b/hw/misc/arm_sysctl.c @@ -623,7 +623,7 @@ static void arm_sysctl_finalize(Object *obj) g_free(s->db_clock_reset); } -static Property arm_sysctl_properties[] = { +static const Property arm_sysctl_properties[] = { DEFINE_PROP_UINT32("sys_id", arm_sysctl_state, sys_id, 0), DEFINE_PROP_UINT32("proc_id", arm_sysctl_state, proc_id, 0), /* Daughterboard power supply voltages (as reported via SYS_CFG) */ diff --git a/hw/misc/armsse-cpuid.c b/hw/misc/armsse-cpuid.c index e785a09051..b05bcdcabc 100644 --- a/hw/misc/armsse-cpuid.c +++ b/hw/misc/armsse-cpuid.c @@ -92,7 +92,7 @@ static const MemoryRegionOps armsse_cpuid_ops = { .valid.max_access_size = 4, }; -static Property armsse_cpuid_props[] = { +static const Property armsse_cpuid_props[] = { DEFINE_PROP_UINT32("CPUID", ARMSSECPUID, cpuid, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/aspeed_hace.c b/hw/misc/aspeed_hace.c index bc1d66ad80..5cefbadf9a 100644 --- a/hw/misc/aspeed_hace.c +++ b/hw/misc/aspeed_hace.c @@ -436,7 +436,7 @@ static void aspeed_hace_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(sbd, &s->iomem); } -static Property aspeed_hace_properties[] = { +static const Property aspeed_hace_properties[] = { DEFINE_PROP_LINK("dram", AspeedHACEState, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/aspeed_i3c.c b/hw/misc/aspeed_i3c.c index 371ee7dba8..7f5a389864 100644 --- a/hw/misc/aspeed_i3c.c +++ b/hw/misc/aspeed_i3c.c @@ -323,7 +323,7 @@ static void aspeed_i3c_realize(DeviceState *dev, Error **errp) } -static Property aspeed_i3c_device_properties[] = { +static const Property aspeed_i3c_device_properties[] = { DEFINE_PROP_UINT8("device-id", AspeedI3CDevice, id, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/aspeed_lpc.c b/hw/misc/aspeed_lpc.c index f2d4ca6f43..bb9066b0f0 100644 --- a/hw/misc/aspeed_lpc.c +++ b/hw/misc/aspeed_lpc.c @@ -454,7 +454,7 @@ static const VMStateDescription vmstate_aspeed_lpc = { } }; -static Property aspeed_lpc_properties[] = { +static const Property aspeed_lpc_properties[] = { DEFINE_PROP_UINT32("hicr7", AspeedLPCState, hicr7, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/aspeed_sbc.c b/hw/misc/aspeed_sbc.c index f5eb2a0e37..b97cf51fa1 100644 --- a/hw/misc/aspeed_sbc.c +++ b/hw/misc/aspeed_sbc.c @@ -136,7 +136,7 @@ static const VMStateDescription vmstate_aspeed_sbc = { } }; -static Property aspeed_sbc_properties[] = { +static const Property aspeed_sbc_properties[] = { DEFINE_PROP_BOOL("emmc-abr", AspeedSBCState, emmc_abr, 0), DEFINE_PROP_UINT32("signing-settings", AspeedSBCState, signing_settings, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/aspeed_scu.c b/hw/misc/aspeed_scu.c index 2c919349cf..ac33b8d6cb 100644 --- a/hw/misc/aspeed_scu.c +++ b/hw/misc/aspeed_scu.c @@ -602,7 +602,7 @@ static const VMStateDescription vmstate_aspeed_scu = { } }; -static Property aspeed_scu_properties[] = { +static const Property aspeed_scu_properties[] = { DEFINE_PROP_UINT32("silicon-rev", AspeedSCUState, silicon_rev, 0), DEFINE_PROP_UINT32("hw-strap1", AspeedSCUState, hw_strap1, 0), DEFINE_PROP_UINT32("hw-strap2", AspeedSCUState, hw_strap2, 0), diff --git a/hw/misc/aspeed_sdmc.c b/hw/misc/aspeed_sdmc.c index 4bc9faf691..4980080f74 100644 --- a/hw/misc/aspeed_sdmc.c +++ b/hw/misc/aspeed_sdmc.c @@ -294,7 +294,7 @@ static const VMStateDescription vmstate_aspeed_sdmc = { } }; -static Property aspeed_sdmc_properties[] = { +static const Property aspeed_sdmc_properties[] = { DEFINE_PROP_UINT64("max-ram-size", AspeedSDMCState, max_ram_size, 0), DEFINE_PROP_BOOL("unlocked", AspeedSDMCState, unlocked, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/bcm2835_cprman.c b/hw/misc/bcm2835_cprman.c index 63e1045abf..1a20cd0bc8 100644 --- a/hw/misc/bcm2835_cprman.c +++ b/hw/misc/bcm2835_cprman.c @@ -778,7 +778,7 @@ static const VMStateDescription cprman_vmstate = { } }; -static Property cprman_properties[] = { +static const Property cprman_properties[] = { DEFINE_PROP_UINT32("xosc-freq-hz", BCM2835CprmanState, xosc_freq, 19200000), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/bcm2835_property.c b/hw/misc/bcm2835_property.c index 8ca3128f29..09a6f2c6e3 100644 --- a/hw/misc/bcm2835_property.c +++ b/hw/misc/bcm2835_property.c @@ -551,7 +551,7 @@ static void bcm2835_property_realize(DeviceState *dev, Error **errp) bcm2835_property_reset(dev); } -static Property bcm2835_property_props[] = { +static const Property bcm2835_property_props[] = { DEFINE_PROP_UINT32("board-rev", BCM2835PropertyState, board_rev, 0), DEFINE_PROP_STRING("command-line", BCM2835PropertyState, command_line), DEFINE_PROP_END_OF_LIST() diff --git a/hw/misc/debugexit.c b/hw/misc/debugexit.c index c5c562fd93..639a8cc3e3 100644 --- a/hw/misc/debugexit.c +++ b/hw/misc/debugexit.c @@ -56,7 +56,7 @@ static void debug_exit_realizefn(DeviceState *d, Error **errp) isa->iobase, &isa->io); } -static Property debug_exit_properties[] = { +static const Property debug_exit_properties[] = { DEFINE_PROP_UINT32("iobase", ISADebugExitState, iobase, 0x501), DEFINE_PROP_UINT32("iosize", ISADebugExitState, iosize, 0x02), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/eccmemctl.c b/hw/misc/eccmemctl.c index 0f68fbe1b6..4fc88bd4e5 100644 --- a/hw/misc/eccmemctl.c +++ b/hw/misc/eccmemctl.c @@ -325,7 +325,7 @@ static void ecc_realize(DeviceState *dev, Error **errp) } } -static Property ecc_properties[] = { +static const Property ecc_properties[] = { DEFINE_PROP_UINT32("version", ECCState, version, -1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/empty_slot.c b/hw/misc/empty_slot.c index 37b0ddfb02..79572c5be0 100644 --- a/hw/misc/empty_slot.c +++ b/hw/misc/empty_slot.c @@ -79,7 +79,7 @@ static void empty_slot_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->iomem); } -static Property empty_slot_properties[] = { +static const Property empty_slot_properties[] = { DEFINE_PROP_UINT64("size", EmptySlot, size, 0), DEFINE_PROP_STRING("name", EmptySlot, name), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/iotkit-secctl.c b/hw/misc/iotkit-secctl.c index 6e22f2aad6..abb6a963ca 100644 --- a/hw/misc/iotkit-secctl.c +++ b/hw/misc/iotkit-secctl.c @@ -814,7 +814,7 @@ static const VMStateDescription iotkit_secctl_vmstate = { }, }; -static Property iotkit_secctl_props[] = { +static const Property iotkit_secctl_props[] = { DEFINE_PROP_UINT32("sse-version", IoTKitSecCtl, sse_version, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/iotkit-sysctl.c b/hw/misc/iotkit-sysctl.c index c1b357e6b7..23b49d7dff 100644 --- a/hw/misc/iotkit-sysctl.c +++ b/hw/misc/iotkit-sysctl.c @@ -835,7 +835,7 @@ static const VMStateDescription iotkit_sysctl_vmstate = { } }; -static Property iotkit_sysctl_props[] = { +static const Property iotkit_sysctl_props[] = { DEFINE_PROP_UINT32("sse-version", IoTKitSysCtl, sse_version, 0), DEFINE_PROP_UINT32("CPUWAIT_RST", IoTKitSysCtl, cpuwait_rst, 0), DEFINE_PROP_UINT32("INITSVTOR0_RST", IoTKitSysCtl, initsvtor0_rst, diff --git a/hw/misc/iotkit-sysinfo.c b/hw/misc/iotkit-sysinfo.c index aaa9305b2e..7d4eea6bfb 100644 --- a/hw/misc/iotkit-sysinfo.c +++ b/hw/misc/iotkit-sysinfo.c @@ -131,7 +131,7 @@ static const MemoryRegionOps iotkit_sysinfo_ops = { .valid.max_access_size = 4, }; -static Property iotkit_sysinfo_props[] = { +static const Property iotkit_sysinfo_props[] = { DEFINE_PROP_UINT32("SYS_VERSION", IoTKitSysInfo, sys_version, 0), DEFINE_PROP_UINT32("SYS_CONFIG", IoTKitSysInfo, sys_config, 0), DEFINE_PROP_UINT32("sse-version", IoTKitSysInfo, sse_version, 0), diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 5ce3fc0949..6d735ec29f 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -1022,7 +1022,7 @@ static const VMStateDescription ivshmem_plain_vmsd = { }, }; -static Property ivshmem_plain_properties[] = { +static const Property ivshmem_plain_properties[] = { DEFINE_PROP_ON_OFF_AUTO("master", IVShmemState, master, ON_OFF_AUTO_OFF), DEFINE_PROP_LINK("memdev", IVShmemState, hostmem, TYPE_MEMORY_BACKEND, HostMemoryBackend *), @@ -1077,7 +1077,7 @@ static const VMStateDescription ivshmem_doorbell_vmsd = { }, }; -static Property ivshmem_doorbell_properties[] = { +static const Property ivshmem_doorbell_properties[] = { DEFINE_PROP_CHR("chardev", IVShmemState, server_chr), DEFINE_PROP_UINT32("vectors", IVShmemState, vectors, 1), DEFINE_PROP_BIT("ioeventfd", IVShmemState, features, IVSHMEM_IOEVENTFD, diff --git a/hw/misc/led.c b/hw/misc/led.c index 4bb6ce8d29..76efdbc3f1 100644 --- a/hw/misc/led.c +++ b/hw/misc/led.c @@ -101,7 +101,7 @@ static void led_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(DEVICE(s), led_set_state_gpio_handler, 1); } -static Property led_properties[] = { +static const Property led_properties[] = { DEFINE_PROP_STRING("color", LEDState, color), DEFINE_PROP_STRING("description", LEDState, description), DEFINE_PROP_BOOL("gpio-active-high", LEDState, gpio_active_high, true), diff --git a/hw/misc/mac_via.c b/hw/misc/mac_via.c index af2b2b1af3..a376a2b8a0 100644 --- a/hw/misc/mac_via.c +++ b/hw/misc/mac_via.c @@ -1322,7 +1322,7 @@ static const VMStateDescription vmstate_q800_via1 = { } }; -static Property mos6522_q800_via1_properties[] = { +static const Property mos6522_q800_via1_properties[] = { DEFINE_PROP_DRIVE("drive", MOS6522Q800VIA1State, blk), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c index 1db7ebf3e2..cfc8afd1dc 100644 --- a/hw/misc/macio/cuda.c +++ b/hw/misc/macio/cuda.c @@ -554,7 +554,7 @@ static void cuda_init(Object *obj) DEVICE(obj), "adb.0"); } -static Property cuda_properties[] = { +static const Property cuda_properties[] = { DEFINE_PROP_UINT64("timebase-frequency", CUDAState, tb_frequency, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c index 3f449f91c0..7e3d5aa977 100644 --- a/hw/misc/macio/macio.c +++ b/hw/misc/macio/macio.c @@ -405,7 +405,7 @@ static const VMStateDescription vmstate_macio_newworld = { } }; -static Property macio_newworld_properties[] = { +static const Property macio_newworld_properties[] = { DEFINE_PROP_BOOL("has-pmu", NewWorldMacIOState, has_pmu, false), DEFINE_PROP_BOOL("has-adb", NewWorldMacIOState, has_adb, false), DEFINE_PROP_END_OF_LIST() @@ -422,7 +422,7 @@ static void macio_newworld_class_init(ObjectClass *oc, void *data) device_class_set_props(dc, macio_newworld_properties); } -static Property macio_properties[] = { +static const Property macio_properties[] = { DEFINE_PROP_UINT64("frequency", MacIOState, frequency, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/macio/pmu.c b/hw/misc/macio/pmu.c index 4b451e0af3..64bf44f67f 100644 --- a/hw/misc/macio/pmu.c +++ b/hw/misc/macio/pmu.c @@ -760,7 +760,7 @@ static void pmu_init(Object *obj) sysbus_init_mmio(d, &s->mem); } -static Property pmu_properties[] = { +static const Property pmu_properties[] = { DEFINE_PROP_BOOL("has-adb", PMUState, has_adb, true), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/mips_cmgcr.c b/hw/misc/mips_cmgcr.c index 04256aacdc..80ca224f76 100644 --- a/hw/misc/mips_cmgcr.c +++ b/hw/misc/mips_cmgcr.c @@ -211,7 +211,7 @@ static const VMStateDescription vmstate_mips_gcr = { }, }; -static Property mips_gcr_properties[] = { +static const Property mips_gcr_properties[] = { DEFINE_PROP_UINT32("num-vp", MIPSGCRState, num_vps, 1), DEFINE_PROP_INT32("gcr-rev", MIPSGCRState, gcr_rev, 0x800), DEFINE_PROP_UINT64("gcr-base", MIPSGCRState, gcr_base, GCR_BASE_ADDR), diff --git a/hw/misc/mips_cpc.c b/hw/misc/mips_cpc.c index 2f7fb8167f..86ff0f7ad8 100644 --- a/hw/misc/mips_cpc.c +++ b/hw/misc/mips_cpc.c @@ -163,7 +163,7 @@ static const VMStateDescription vmstate_mips_cpc = { }, }; -static Property mips_cpc_properties[] = { +static const Property mips_cpc_properties[] = { DEFINE_PROP_UINT32("num-vp", MIPSCPCState, num_vp, 0x1), DEFINE_PROP_UINT64("vp-start-running", MIPSCPCState, vp_start_running, 0x1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/mips_itu.c b/hw/misc/mips_itu.c index c5214c8b30..d84a7dbf15 100644 --- a/hw/misc/mips_itu.c +++ b/hw/misc/mips_itu.c @@ -533,7 +533,7 @@ static void mips_itu_reset(DeviceState *dev) itc_reset_cells(s); } -static Property mips_itu_properties[] = { +static const Property mips_itu_properties[] = { DEFINE_PROP_UINT32("num-fifo", MIPSITUState, num_fifo, ITC_FIFO_NUM_MAX), DEFINE_PROP_UINT32("num-semaphores", MIPSITUState, num_semaphores, diff --git a/hw/misc/mos6522.c b/hw/misc/mos6522.c index 515f62e687..0225a5869b 100644 --- a/hw/misc/mos6522.c +++ b/hw/misc/mos6522.c @@ -696,7 +696,7 @@ static void mos6522_finalize(Object *obj) timer_free(s->timers[1].timer); } -static Property mos6522_properties[] = { +static const Property mos6522_properties[] = { DEFINE_PROP_UINT64("frequency", MOS6522State, frequency, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/misc/mps2-fpgaio.c b/hw/misc/mps2-fpgaio.c index 20359254ba..2e8d1c721c 100644 --- a/hw/misc/mps2-fpgaio.c +++ b/hw/misc/mps2-fpgaio.c @@ -319,7 +319,7 @@ static const VMStateDescription mps2_fpgaio_vmstate = { }, }; -static Property mps2_fpgaio_properties[] = { +static const Property mps2_fpgaio_properties[] = { /* Frequency of the prescale counter */ DEFINE_PROP_UINT32("prescale-clk", MPS2FPGAIO, prescale_clk, 20000000), /* Number of LEDs controlled by LED0 register */ diff --git a/hw/misc/mps2-scc.c b/hw/misc/mps2-scc.c index d45ff77bd6..f378b75571 100644 --- a/hw/misc/mps2-scc.c +++ b/hw/misc/mps2-scc.c @@ -456,7 +456,7 @@ static const VMStateDescription mps2_scc_vmstate = { } }; -static Property mps2_scc_properties[] = { +static const Property mps2_scc_properties[] = { /* Values for various read-only ID registers (which are specific * to the board model or FPGA image) */ diff --git a/hw/misc/msf2-sysreg.c b/hw/misc/msf2-sysreg.c index b8dde198c6..0d7a713c76 100644 --- a/hw/misc/msf2-sysreg.c +++ b/hw/misc/msf2-sysreg.c @@ -118,7 +118,7 @@ static const VMStateDescription vmstate_msf2_sysreg = { } }; -static Property msf2_sysreg_properties[] = { +static const Property msf2_sysreg_properties[] = { /* default divisors in Libero GUI */ DEFINE_PROP_UINT8("apb0divisor", MSF2SysregState, apb0div, 2), DEFINE_PROP_UINT8("apb1divisor", MSF2SysregState, apb1div, 2), diff --git a/hw/misc/npcm7xx_gcr.c b/hw/misc/npcm7xx_gcr.c index c4c4e246d7..17aeaf22cb 100644 --- a/hw/misc/npcm7xx_gcr.c +++ b/hw/misc/npcm7xx_gcr.c @@ -229,7 +229,7 @@ static const VMStateDescription vmstate_npcm7xx_gcr = { }, }; -static Property npcm7xx_gcr_properties[] = { +static const Property npcm7xx_gcr_properties[] = { DEFINE_PROP_UINT32("disabled-modules", NPCM7xxGCRState, reset_mdlr, 0), DEFINE_PROP_UINT32("power-on-straps", NPCM7xxGCRState, reset_pwron, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/nrf51_rng.c b/hw/misc/nrf51_rng.c index 2d67f3f766..2b550a6bca 100644 --- a/hw/misc/nrf51_rng.c +++ b/hw/misc/nrf51_rng.c @@ -219,7 +219,7 @@ static void nrf51_rng_reset(DeviceState *dev) } -static Property nrf51_rng_properties[] = { +static const Property nrf51_rng_properties[] = { DEFINE_PROP_UINT16("period_unfiltered_us", NRF51RNGState, period_unfiltered_us, 167), DEFINE_PROP_UINT16("period_filtered_us", NRF51RNGState, diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev.c index 0b5f236a20..7927397a23 100644 --- a/hw/misc/pci-testdev.c +++ b/hw/misc/pci-testdev.c @@ -319,7 +319,7 @@ static void qdev_pci_testdev_reset(DeviceState *dev) pci_testdev_reset(d); } -static Property pci_testdev_properties[] = { +static const Property pci_testdev_properties[] = { DEFINE_PROP_SIZE("membar", PCITestDevState, membar_size, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/pvpanic-isa.c b/hw/misc/pvpanic-isa.c index 9a923b7869..824a2e4528 100644 --- a/hw/misc/pvpanic-isa.c +++ b/hw/misc/pvpanic-isa.c @@ -98,7 +98,7 @@ static void build_pvpanic_isa_aml(AcpiDevAmlIf *adev, Aml *scope) aml_append(scope, dev); } -static Property pvpanic_isa_properties[] = { +static const Property pvpanic_isa_properties[] = { DEFINE_PROP_UINT16(PVPANIC_IOPORT_PROP, PVPanicISAState, ioport, 0x505), DEFINE_PROP_UINT8("events", PVPanicISAState, pvpanic.events, PVPANIC_EVENTS), diff --git a/hw/misc/pvpanic-pci.c b/hw/misc/pvpanic-pci.c index 106d03ccd6..1c3eafc137 100644 --- a/hw/misc/pvpanic-pci.c +++ b/hw/misc/pvpanic-pci.c @@ -53,7 +53,7 @@ static void pvpanic_pci_realizefn(PCIDevice *dev, Error **errp) pci_register_bar(dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &ps->mr); } -static Property pvpanic_pci_properties[] = { +static const Property pvpanic_pci_properties[] = { DEFINE_PROP_UINT8("events", PVPanicPCIState, pvpanic.events, PVPANIC_EVENTS), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/sifive_e_aon.c b/hw/misc/sifive_e_aon.c index f819fc10e6..c48429b131 100644 --- a/hw/misc/sifive_e_aon.c +++ b/hw/misc/sifive_e_aon.c @@ -289,7 +289,7 @@ static void sifive_e_aon_init(Object *obj) sysbus_init_irq(sbd, &r->wdog_irq); } -static Property sifive_e_aon_properties[] = { +static const Property sifive_e_aon_properties[] = { DEFINE_PROP_UINT64("wdogclk-frequency", SiFiveEAONState, wdogclk_freq, SIFIVE_E_LFCLK_DEFAULT_FREQ), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/sifive_u_otp.c b/hw/misc/sifive_u_otp.c index 8965f5c22a..32cd8e8dfb 100644 --- a/hw/misc/sifive_u_otp.c +++ b/hw/misc/sifive_u_otp.c @@ -194,7 +194,7 @@ static const MemoryRegionOps sifive_u_otp_ops = { } }; -static Property sifive_u_otp_properties[] = { +static const Property sifive_u_otp_properties[] = { DEFINE_PROP_UINT32("serial", SiFiveUOTPState, serial, 0), DEFINE_PROP_DRIVE("drive", SiFiveUOTPState, blk), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/stm32l4x5_rcc.c b/hw/misc/stm32l4x5_rcc.c index 59d428fa66..b61241d195 100644 --- a/hw/misc/stm32l4x5_rcc.c +++ b/hw/misc/stm32l4x5_rcc.c @@ -1426,7 +1426,7 @@ static void stm32l4x5_rcc_realize(DeviceState *dev, Error **errp) clock_update(s->gnd, 0); } -static Property stm32l4x5_rcc_properties[] = { +static const Property stm32l4x5_rcc_properties[] = { DEFINE_PROP_UINT64("hse_frequency", Stm32l4x5RccState, hse_frequency, HSE_DEFAULT_FRQ), DEFINE_PROP_UINT64("sai1_extclk_frequency", Stm32l4x5RccState, diff --git a/hw/misc/tz-mpc.c b/hw/misc/tz-mpc.c index 66a46a7b9f..b06eb9f119 100644 --- a/hw/misc/tz-mpc.c +++ b/hw/misc/tz-mpc.c @@ -587,7 +587,7 @@ static const VMStateDescription tz_mpc_vmstate = { } }; -static Property tz_mpc_properties[] = { +static const Property tz_mpc_properties[] = { DEFINE_PROP_LINK("downstream", TZMPC, downstream, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/tz-msc.c b/hw/misc/tz-msc.c index 82ccaa014a..96413a502d 100644 --- a/hw/misc/tz-msc.c +++ b/hw/misc/tz-msc.c @@ -278,7 +278,7 @@ static const VMStateDescription tz_msc_vmstate = { } }; -static Property tz_msc_properties[] = { +static const Property tz_msc_properties[] = { DEFINE_PROP_LINK("downstream", TZMSC, downstream, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_LINK("idau", TZMSC, idau, diff --git a/hw/misc/tz-ppc.c b/hw/misc/tz-ppc.c index 922dcf7f63..1943d8d165 100644 --- a/hw/misc/tz-ppc.c +++ b/hw/misc/tz-ppc.c @@ -305,7 +305,7 @@ static const VMStateDescription tz_ppc_vmstate = { DEFINE_PROP_LINK("port[" #N "]", TZPPC, port[N].downstream, \ TYPE_MEMORY_REGION, MemoryRegion *) -static Property tz_ppc_properties[] = { +static const Property tz_ppc_properties[] = { DEFINE_PROP_UINT32("NONSEC_MASK", TZPPC, nonsec_mask, 0), DEFINE_PORT(0), DEFINE_PORT(1), diff --git a/hw/misc/unimp.c b/hw/misc/unimp.c index 6cfc5727f0..62e1153627 100644 --- a/hw/misc/unimp.c +++ b/hw/misc/unimp.c @@ -70,7 +70,7 @@ static void unimp_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(s), &s->iomem); } -static Property unimp_properties[] = { +static const Property unimp_properties[] = { DEFINE_PROP_UINT64("size", UnimplementedDeviceState, size, 0), DEFINE_PROP_STRING("name", UnimplementedDeviceState, name), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/xlnx-versal-cframe-reg.c b/hw/misc/xlnx-versal-cframe-reg.c index 3fc838bd54..8281a9baff 100644 --- a/hw/misc/xlnx-versal-cframe-reg.c +++ b/hw/misc/xlnx-versal-cframe-reg.c @@ -720,7 +720,7 @@ static const VMStateDescription vmstate_cframe_reg = { } }; -static Property cframe_regs_props[] = { +static const Property cframe_regs_props[] = { DEFINE_PROP_LINK("cfu-fdro", XlnxVersalCFrameReg, cfg.cfu_fdro, TYPE_XLNX_CFI_IF, XlnxCfiIf *), DEFINE_PROP_UINT32("blktype0-frames", XlnxVersalCFrameReg, @@ -771,7 +771,7 @@ static const VMStateDescription vmstate_cframe_bcast_reg = { } }; -static Property cframe_bcast_regs_props[] = { +static const Property cframe_bcast_regs_props[] = { DEFINE_PROP_LINK("cframe0", XlnxVersalCFrameBcastReg, cfg.cframe[0], TYPE_XLNX_CFI_IF, XlnxCfiIf *), DEFINE_PROP_LINK("cframe1", XlnxVersalCFrameBcastReg, cfg.cframe[1], diff --git a/hw/misc/xlnx-versal-cfu.c b/hw/misc/xlnx-versal-cfu.c index 94f85814c8..7cfdabdb8e 100644 --- a/hw/misc/xlnx-versal-cfu.c +++ b/hw/misc/xlnx-versal-cfu.c @@ -426,7 +426,7 @@ static void cfu_fdro_cfi_transfer_packet(XlnxCfiIf *cfi_if, XlnxCfiPacket *pkt) } } -static Property cfu_props[] = { +static const Property cfu_props[] = { DEFINE_PROP_LINK("cframe0", XlnxVersalCFUAPB, cfg.cframe[0], TYPE_XLNX_CFI_IF, XlnxCfiIf *), DEFINE_PROP_LINK("cframe1", XlnxVersalCFUAPB, cfg.cframe[1], @@ -460,7 +460,7 @@ static Property cfu_props[] = { DEFINE_PROP_END_OF_LIST(), }; -static Property cfu_sfr_props[] = { +static const Property cfu_sfr_props[] = { DEFINE_PROP_LINK("cfu", XlnxVersalCFUSFR, cfg.cfu, TYPE_XLNX_VERSAL_CFU_APB, XlnxVersalCFUAPB *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/misc/xlnx-versal-xramc.c b/hw/misc/xlnx-versal-xramc.c index ad839ce7e9..a06b9fbc05 100644 --- a/hw/misc/xlnx-versal-xramc.c +++ b/hw/misc/xlnx-versal-xramc.c @@ -218,7 +218,7 @@ static const VMStateDescription vmstate_xram_ctrl = { } }; -static Property xram_ctrl_properties[] = { +static const Property xram_ctrl_properties[] = { DEFINE_PROP_UINT64("size", XlnxXramCtrl, cfg.size, 1 * MiB), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/misc/zynq_slcr.c b/hw/misc/zynq_slcr.c index ad814c3a79..ffa14ecb84 100644 --- a/hw/misc/zynq_slcr.c +++ b/hw/misc/zynq_slcr.c @@ -623,7 +623,7 @@ static const VMStateDescription vmstate_zynq_slcr = { } }; -static Property zynq_slcr_props[] = { +static const Property zynq_slcr_props[] = { DEFINE_PROP_UINT8("boot-mode", ZynqSLCRState, boot_mode, 1), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07: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: 13907695 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6F44BE7717F for ; Fri, 13 Dec 2024 19:16:31 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB7F-00070H-Sq; Fri, 13 Dec 2024 14:14:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB6u-000665-BB for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:01 -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 1tMB6p-0007Uq-Ul for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:13:59 -0500 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3eb939021bfso932462b6e.3 for ; Fri, 13 Dec 2024 11:13:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117234; x=1734722034; 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=wFKwAi47wfnLcU3Qx3I/C9LQF6ejU8QSvlDRphKjPrc=; b=z1I/2DUPGdq6MpUE7h/GivMymIWEyCsRzL4+YIRuSCONjHnb8q+gYTE62MdKNMPz4e LRNkJ8AZptWnjstlVob6P8lnYHVuUdOBz25Fn+yBBRA9gSAs/e/pF1Lwml/7jy6UWdIs YFeachpUqmokikp1qJ2kyJJJ7W+HPQinx7VTUTr0Jw+J0BIFiXf/p0I9MHH3QHvNhneG /GkeOwH9G2cBfKPpICPHI6QNEv2C4oeDkU2bj5roC1ER1TVDkMGpsJfqPNkjM2lzvb2w tP4WJ4kK5XGccU4Amf9mOQdsqaGYQj70QEQdIvXXvjMeA0sHx9fQhYELIeix+52jK/Lt Tomg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117234; x=1734722034; 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=wFKwAi47wfnLcU3Qx3I/C9LQF6ejU8QSvlDRphKjPrc=; b=ZlX7t03t0pr/6EiBDeHHzFBWOsDDwMbZQl0kAe7Lh9w4bPJYkJHxF0x5HZshzmcCSy j+ulOaMUhXUZamtgtazbeUU40dwqczJ9MrV28sv8RX+QVbfTgnyamQGspWHDxvleReRl Qz1feMYbKe1rrML/1r7L/R9e2M4M874jScX8WFngezTIQuZbzkR/GhHLBu84nt1tp5o8 dUV2ltNXDtfKG4TVMnPUEKCa694g1Q61xCD/vP3yImGGDwA+DceV2lCWj0WWrGUBKsoA 1T7V3u21rAQLAFelXf/6xDbP2dN7XJK1VObwZwwhre8J3EO9XaeIUoY6EJrAX/Iky4QW +yTQ== X-Gm-Message-State: AOJu0YwBln3kbAQF1uEZ1xYL0Yj4HU94Plv6gjhltCEDSyftD0OK5vio 3T1h5WQOnBHRC4pMvGj4xQN6A8tif/yTRVzuzrzgljb9Zsk2SXloYRW9u8sVL2fETGiuAu3abq4 I+Yr1UbCn X-Gm-Gg: ASbGnct2GxHSqb65UHwMLZHaw67Pq4agBw+3P/RDLNh/mwhCBXM4o6oJKMhoNdssd/K w1OGKvcPuL4MlZhCnEYJldxmzabGkfDj73TJBOqxwImMoRyUcBYgPnQgzBXlAvOvHvQSngc6wik TIUXbsuy7F77otGFeTVxjpE2PKOj10/uy8kG27qbaYA07NXwE4EK6fOH8GT2lYEQPt7WJ9/dEEP KM5RZGuT5HNsWE+txY81W0aO7HVPao6hqPZR+SxhsBkWmjQvD9TpCDtIg4tOWxN X-Google-Smtp-Source: AGHT+IFJrsAEbAzw8PHedKF8jNEE5A/ycBi7wNVu+WwdSwNIkAPFcMw1QPeZeNQ/IDou/sUxxHjwmA== X-Received: by 2002:a05:6808:d4e:b0:3ea:519e:cc92 with SMTP id 5614622812f47-3eba699ea30mr2505794b6e.37.1734117234416; Fri, 13 Dec 2024 11:13:54 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:54 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Beniamino Galvani , Peter Maydell , Strahinja Jankovic , Jason Wang , "Edgar E. Iglesias" , Alistair Francis , Pavel Pisa , Francisco Iglesias , Vikram Garhwal , Dmitry Fleytman , Akihiko Odaki , Stefan Weil , Bernhard Beschow , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Sriram Yagnaraman , Helge Deller , Thomas Huth , Aleksandar Rikalo , Subbaraya Sundeep , Jan Kiszka , Tyrone Ting , Hao Wu , Max Filippov , Jiri Pirko , Nicholas Piggin , Daniel Henrique Barboza , Harsh Prateek Bora , Sven Schnelle , "Michael S. Tsirkin" , Stefano Stabellini , Anthony PERARD , Paul Durrant , Rob Herring , qemu-arm@nongnu.org (open list:Allwinner-a10), qemu-ppc@nongnu.org (open list:e500), xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 41/71] hw/net: Constify all Property Date: Fri, 13 Dec 2024 13:07:15 -0600 Message-ID: <20241213190750.2513964-46-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater Reviewed-by: Akihiko Odaki --- 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 Fri Dec 13 19:07:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907694 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C043DE7717F for ; Fri, 13 Dec 2024 19:16:17 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB7R-0007Sk-CC; Fri, 13 Dec 2024 14:14:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB6v-0006CQ-LH for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:03 -0500 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6r-0007V0-2T for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:01 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-29fc424237bso905223fac.0 for ; Fri, 13 Dec 2024 11:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117235; x=1734722035; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nUKbNfLNV7tMpEPRQXiu5pUDo41X11Gr2PRR67Zp9bQ=; b=y6O9yECdk1IEQeyjfZ18sFJICDheGvB0V0h1RXGzfkwehBKJi+LJu7+XJAYBbtVUFx peX3WkhAT/KOil+FJ1yVYcTdXb0odBfLA8Sy5J4o/Lwgbmc+Vs2/Lt9z9I6wOeEi++Cc XqKD1GfQ2RnWI7L4EHoy/lB6rqOxpPqs16uBRnsANzaLu562viA6HqqAskhtC7D1PXyX Vmy8FSsYxSQXqKUq/eUlq98KOpxwG7QdzYYIgD9tfYVCDZnH9VKuLTz9CRu+nDRpM73v GDiFO/5MQOyklzr9yHHxmhZ9H1kKm3EApAjzWffzel7HUCjRXORlXbEY3ryeiKsGILmB wlNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117235; x=1734722035; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nUKbNfLNV7tMpEPRQXiu5pUDo41X11Gr2PRR67Zp9bQ=; b=pKOmD2gEMNJ0wFexDGdNGyqUoxigCScxV6Icy6VtFlhHvxtB0PHCZXptuTs3FC7fCR X7tDh6gr6Boe5pttaHK2zeouCLJGoCvNQfASsLsv+V95LKp0Nbd4HZC33rE66hVzY+Co oIvWDl53skrM3+mRubnnM1dPvkn4EqY2UiRb3NboK58y9+gadQFYu3Qhd/3igw3oW/9u VZ89RMQj0nImMcXHlEdfPHACFl4JKhUDBAQm3JQdaObs/7oNMk/AYyeu5AJw0s/ERw5M oS5+m/qrMbLjii8l5B97uNE3Tn74QOtFdiweJn+TcNSMTtkCYlpZ5iDuET2ZNLihZ+rs OvFA== X-Gm-Message-State: AOJu0Yxk5gW6Se+ytUf1ZJJh3pKxxAcUxy1w+DHFZ9XDkk5UevZ2KRRl OhZ+Ic3OxZaJyAjFopIh5bBgd9bLQ7SFUsgKOTB/snNkLj4MddvWDWjmVbxfXzkFpU8GhldkVD+ MoYtSKWPv X-Gm-Gg: ASbGncsJ4xwITSacAKtbo6wqsIwQupOeCaK8oyHi0RuOJ8quVceA+VlQhpjZgCcv+68 gFJB/Qyga0JS5ouZyvy0Q5cZ0G0nSP9vQKILXeegxeXiL6mbfeNphBHmI0n2pKPU/qrzQHShmO6 H4oWbBXaL6DWCZZlb7oGNS/VOBIANKLDcutQ3ftGnSQe+mHISsJucywkvx7Kdan/u03x4JG66MR +0iT3qqVHngYcsSvkwtrd4C/TNEqGksEcUbLAtmz9dC0IspMz+q7cdOQlyJUZ9l X-Google-Smtp-Source: AGHT+IHemLjXV9z1C+LJquCum9tw315+U2mAp7/7xU4Ss7HY96NJWP1dbriTWOGF/3Nqku9VDWMFNA== X-Received: by 2002:a05:6808:1482:b0:3eb:63c9:fe87 with SMTP id 5614622812f47-3eba6864579mr2334125b6e.16.1734117235695; Fri, 13 Dec 2024 11:13:55 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:55 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Laurent Vivier Subject: [PATCH 42/71] hw/nubus: Constify all Property Date: Fri, 13 Dec 2024 13:07:16 -0600 Message-ID: <20241213190750.2513964-47-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::30; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/nubus/nubus-bridge.c | 2 +- hw/nubus/nubus-device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/nubus/nubus-bridge.c b/hw/nubus/nubus-bridge.c index a42c86080f..83893e5a46 100644 --- a/hw/nubus/nubus-bridge.c +++ b/hw/nubus/nubus-bridge.c @@ -23,7 +23,7 @@ static void nubus_bridge_init(Object *obj) qdev_init_gpio_out(DEVICE(s), bus->irqs, NUBUS_IRQS); } -static Property nubus_bridge_properties[] = { +static const Property nubus_bridge_properties[] = { DEFINE_PROP_UINT16("slot-available-mask", NubusBridge, bus.slot_available_mask, 0xffff), DEFINE_PROP_END_OF_LIST() diff --git a/hw/nubus/nubus-device.c b/hw/nubus/nubus-device.c index 26fbcf29a2..7cafc13427 100644 --- a/hw/nubus/nubus-device.c +++ b/hw/nubus/nubus-device.c @@ -107,7 +107,7 @@ static void nubus_device_realize(DeviceState *dev, Error **errp) } } -static Property nubus_device_properties[] = { +static const Property nubus_device_properties[] = { DEFINE_PROP_INT32("slot", NubusDevice, slot, -1), DEFINE_PROP_STRING("romfile", NubusDevice, romfile), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:07:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907728 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D98ADE7717F for ; Fri, 13 Dec 2024 19:28:38 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB79-0006WH-At; Fri, 13 Dec 2024 14:14:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB6x-0006CT-2P for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:03 -0500 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6t-0007VL-1x for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:02 -0500 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-29e61fcc3d2so1616999fac.2 for ; Fri, 13 Dec 2024 11:13:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117237; x=1734722037; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FiW+nVfejzKaY0iptH499hOz00aUO6MutHuzR37Z/m0=; b=AwRwh+25T8+CXpngTjJBJP5G7E6kciV3InQg/fPVQhKgGajnxkLwtL5QbGklZiRefE px+348etybMUjdNN0OdaW7wC0DKlTar1bZUxGKGCN6SXEJmXBsreY3W7JWyld+/bTLnJ uv4lbc9GcxftPz34SuOKbDx7gFVzGYfWEl/T44kisGoxJrgOvod1PARCbxS+zkjuKlo8 srglzu/SyvOdZN0cqzfJECkwim7/ijvgSbABbab9nCTYvXEhhueeAewYlot0p7AaSGkf oqwiyQ7A4QuCQZxz/LsgU9jW0QR2RjXmNkLl4x9OwcOWdgdgK/RefUUkyJjkmDBklabe PMnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117237; x=1734722037; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FiW+nVfejzKaY0iptH499hOz00aUO6MutHuzR37Z/m0=; b=Px3lEy/dUVSxnHmrIcRMXaaS/1gleEelEEZXVUFlgF72CYJYigVCXV4kBhPxEjwgGY yVDHZRJoXsoWUP8y3QMbwi+cH97FvSCI8p9hOA8JS9s1dJF6GFKi1vLwQDmIsgWDusLN Efo/l+SUQl6ngms+ib//QIoZT5xDw0h88VKN/tw/89llBUo7G3POZkDtosk1zNnngaIK qbRW+kZpBueAZuLGPbCSLXhH7zKO5SUPDgF8OeVeB5nf2wflyfeTZMcsXRxU7ZCttUrm 66HRf/q2wxLV8xwV8KdelwdGUjByOZlv34qAOXPyZIv7Oyu+6cfV0+qrSH80pWj2xEGh I3zw== X-Gm-Message-State: AOJu0Yxi6cRAvB6bhrarhovpST/GlS6fwe/7phQxejgWr9teRP0JXGkS 7tRktiKXvJf5rQOoXncE+psLxKwtEqpKf1mA/hle2A1SQkzvqbp0NIzhkAyhaV92RR+XGPjPuG0 msOj30ywG X-Gm-Gg: ASbGncuH5Mqg0+mpk0X9tR7h8x7WhuLcx1THDzm0W5b1B6/xuG93ncxggAZ5fZnLCzZ dhnN6prbI5PEFa486IDTFv8uEQDsABitLMyDD/heXwShQnN0BTaXuq4YGYUPvDAyXRCPtMbAArp djyRrSNeB8iqY2rrnCKR5vhDfJqtguyzdYQCZj4HEsy0lypfYWMXJJic4OV8h75//j5F2Ve7Wqh kIcRrAG0EU9JcFsEUDERyj2+FY7uXSROKrJI4vM0JjH1ExyGxtEgyXyJxzswZxb X-Google-Smtp-Source: AGHT+IEG51rF8aMmGoMqatA1nitSyJifEw6DrRgS4x3z/9CxWQvMDzX6vDhwOr3mGaAX8nLThD54TA== X-Received: by 2002:a05:6808:158c:b0:3eb:6351:c265 with SMTP id 5614622812f47-3eba6864516mr2393535b6e.16.1734117237556; Fri, 13 Dec 2024 11:13:57 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:57 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Keith Busch , Klaus Jensen , Jesper Devantier , qemu-block@nongnu.org (open list:nvme) Subject: [PATCH 43/71] hw/nvme: Constify all Property Date: Fri, 13 Dec 2024 13:07:17 -0600 Message-ID: <20241213190750.2513964-48-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::29; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/nvme/ctrl.c | 2 +- hw/nvme/ns.c | 2 +- hw/nvme/subsys.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index ec75419566..33a3062466 100644 --- a/hw/nvme/ctrl.c +++ b/hw/nvme/ctrl.c @@ -8927,7 +8927,7 @@ static void nvme_exit(PCIDevice *pci_dev) memory_region_del_subregion(&n->bar0, &n->iomem); } -static Property nvme_props[] = { +static const Property nvme_props[] = { DEFINE_BLOCK_PROPERTIES(NvmeCtrl, namespace.blkconf), DEFINE_PROP_LINK("pmrdev", NvmeCtrl, pmr.dev, TYPE_MEMORY_BACKEND, HostMemoryBackend *), diff --git a/hw/nvme/ns.c b/hw/nvme/ns.c index 526e15aa80..192b80f18d 100644 --- a/hw/nvme/ns.c +++ b/hw/nvme/ns.c @@ -799,7 +799,7 @@ static void nvme_ns_realize(DeviceState *dev, Error **errp) nvme_attach_ns(n, ns); } -static Property nvme_ns_props[] = { +static const Property nvme_ns_props[] = { DEFINE_BLOCK_PROPERTIES(NvmeNamespace, blkconf), DEFINE_PROP_BOOL("detached", NvmeNamespace, params.detached, false), DEFINE_PROP_BOOL("shared", NvmeNamespace, params.shared, true), diff --git a/hw/nvme/subsys.c b/hw/nvme/subsys.c index 77deaf2c2c..3171c3888c 100644 --- a/hw/nvme/subsys.c +++ b/hw/nvme/subsys.c @@ -216,7 +216,7 @@ static void nvme_subsys_realize(DeviceState *dev, Error **errp) nvme_subsys_setup(subsys, errp); } -static Property nvme_subsystem_props[] = { +static const Property nvme_subsystem_props[] = { DEFINE_PROP_STRING("nqn", NvmeSubsystem, params.nqn), DEFINE_PROP_BOOL("fdp", NvmeSubsystem, params.fdp.enabled, false), DEFINE_PROP_SIZE("fdp.runs", NvmeSubsystem, params.fdp.runs, From patchwork Fri Dec 13 19:07:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907705 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CBFB2E7717F for ; Fri, 13 Dec 2024 19:20:06 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB7f-0007kb-1s; Fri, 13 Dec 2024 14:14:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB72-0006ID-Ek for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:08 -0500 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6v-0007W2-8S for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:07 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-29ff039dab2so1026455fac.3 for ; Fri, 13 Dec 2024 11:14:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117240; x=1734722040; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iFwnVaMVK9pfiO5zNGncf7wC5DNSQZHLJ7Ggx4d/5SQ=; b=sKnlxahX6wqEJSFG+WnvlZQUoJWj744b+1YJAqBpY08GBHLUHnB2YDrMTpNMT257/B Hohe6oxbUDraKwcrTFUWedkiDgN20miNn04AJ8SZ/yt3gZhrwPM+FgOKFWl9i2i0P7u/ 1Ypp5SXVMWjKNhmkzKQm0brP/ys1vY3yBVS9vqIN3Z7//r5SbfYOZkQiFe70+o0HxJ7K cGXcidnw5A2plafY6Slb6T1L8ddn1v0WWvqUjuG+mKfD68lgUZtYYc+UucLD0gT3SjJT vYWB4ETPL4KrxVqq6e/cLUthj8/wg/adKdG16hwQ+HnKzqnOBYJqn+oLe83Ts/TWSPqQ /Sgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117240; x=1734722040; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iFwnVaMVK9pfiO5zNGncf7wC5DNSQZHLJ7Ggx4d/5SQ=; b=OG6PI9YnJWwm5Vkkp7D1OkolZLzbePdrTbPWlB6f80AYaS20QPwWRxh2hpKWaMEP8I GIJ6fEFBhrr896D0tPF60nN/d6FmnNMqysHW6I/r7hYeIQkAgrVzI3KYxbvt6Mp1IGnY 7vf09VA7XbBH7bGAS3k5TYlkWNmFO04JrETL2oPfwGtZsUbAq6LfA3FBj9HPMk6EXxve pvehnZdt1D4X/ChQcP61yRIXDK74MoD3zZilssgmOvU2Fmks+RJJgG8eoyOKYwS/q8kJ aFIz9pSQqZoA3lGjCZvOHX+BiIs5oOUAo7Vs0RfOl7GofS7aLyeFZDADRgt+D2jRrUxt wZSQ== X-Gm-Message-State: AOJu0YwJAw6OuHAgey2FMyPFo4jdZsMvJCMZzj36Qa6aYJBBgro7PV4f QSimROsCRkrVXfsqWoe7+5gVKpGmNAVvaRaeDCzuCSKtWJxzwrTimh8mfrr9wFlpSYH8RJgn/BN dVvCPgtbC X-Gm-Gg: ASbGncuagcM7tXM0KVWArAOj8Wk5Y9jbFjpWGuOfhzA6wSk/GOVnQB4Mmw48p9HQ8pl FHMBlm+NItxhQjM1X3J7lPRN2tanotGU42nJ7iDTfVgVfOpvC0Ze1857yODxex8vFgi6RuzXx56 ia3tmo0EUHfIpRHYK7rwqSVMrEJ8vv/QnSDR/6ACS7l88OuS2Gv6MzR+OE9rlMT7tdhp1KZm00F fEwnTOjS0EFOgVAsGCh71gcT3eZbc4ito8YBDUEiTb9fqSeMGYNv8+MocDqtCib X-Google-Smtp-Source: AGHT+IGqbJHKwR3XfiX8fkYpkN766Cseq6zg4jbpalzyWy9fydQG4CS8AxMkLM3yrrvqR9RZLM/PMA== X-Received: by 2002:a05:6808:1596:b0:3ea:37a7:394 with SMTP id 5614622812f47-3eba6955bd8mr1970139b6e.34.1734117240023; Fri, 13 Dec 2024 11:14:00 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:13:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Herv=C3=A9_Poussineau?= , Aleksandar Rikalo , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Gerd Hoffmann , Mark Cave-Ayland , Joel Stanley , Peter Maydell , Nicholas Piggin , Daniel Henrique Barboza , Harsh Prateek Bora , Alistair Francis , "Edgar E. Iglesias" , qemu-ppc@nongnu.org (open list:New World (mac99)), qemu-arm@nongnu.org (open list:NRF51) Subject: [PATCH 44/71] hw/nvram: Constify all Property Date: Fri, 13 Dec 2024 13:07:18 -0600 Message-ID: <20241213190750.2513964-49-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::30; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/nvram/ds1225y.c | 2 +- hw/nvram/eeprom_at24c.c | 2 +- hw/nvram/fw_cfg.c | 6 +++--- hw/nvram/mac_nvram.c | 2 +- hw/nvram/nrf51_nvm.c | 2 +- hw/nvram/spapr_nvram.c | 2 +- hw/nvram/xlnx-bbram.c | 2 +- hw/nvram/xlnx-efuse.c | 2 +- hw/nvram/xlnx-versal-efuse-cache.c | 2 +- hw/nvram/xlnx-versal-efuse-ctrl.c | 2 +- hw/nvram/xlnx-zynqmp-efuse.c | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/hw/nvram/ds1225y.c b/hw/nvram/ds1225y.c index 6d510dcc68..19bf8d2091 100644 --- a/hw/nvram/ds1225y.c +++ b/hw/nvram/ds1225y.c @@ -142,7 +142,7 @@ static void nvram_sysbus_realize(DeviceState *dev, Error **errp) nvram_post_load(s, 0); } -static Property nvram_sysbus_properties[] = { +static const Property nvram_sysbus_properties[] = { DEFINE_PROP_UINT32("size", SysBusNvRamState, nvram.chip_size, 0x2000), DEFINE_PROP_STRING("filename", SysBusNvRamState, nvram.filename), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/nvram/eeprom_at24c.c b/hw/nvram/eeprom_at24c.c index ec748e58e7..669920b2b9 100644 --- a/hw/nvram/eeprom_at24c.c +++ b/hw/nvram/eeprom_at24c.c @@ -234,7 +234,7 @@ void at24c_eeprom_reset(DeviceState *state) ee->haveaddr = 0; } -static Property at24c_eeprom_props[] = { +static const Property at24c_eeprom_props[] = { DEFINE_PROP_UINT32("rom-size", EEPROMState, rsize, 0), DEFINE_PROP_UINT8("address-size", EEPROMState, asize, 0), DEFINE_PROP_BOOL("writable", EEPROMState, writable, true), diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c index b644577734..fe73a2c1ef 100644 --- a/hw/nvram/fw_cfg.c +++ b/hw/nvram/fw_cfg.c @@ -1103,7 +1103,7 @@ static void fw_cfg_machine_ready(struct Notifier *n, void *data) qemu_register_reset(fw_cfg_machine_reset, s); } -static Property fw_cfg_properties[] = { +static const Property fw_cfg_properties[] = { DEFINE_PROP_BOOL("acpi-mr-restore", FWCfgState, acpi_mr_restore, true), DEFINE_PROP_END_OF_LIST(), }; @@ -1294,7 +1294,7 @@ static void fw_cfg_file_slots_allocate(FWCfgState *s, Error **errp) s->entry_order = g_new0(int, fw_cfg_max_entry(s)); } -static Property fw_cfg_io_properties[] = { +static const Property fw_cfg_io_properties[] = { DEFINE_PROP_BOOL("dma_enabled", FWCfgIoState, parent_obj.dma_enabled, true), DEFINE_PROP_UINT16("x-file-slots", FWCfgIoState, parent_obj.file_slots, @@ -1343,7 +1343,7 @@ static const TypeInfo fw_cfg_io_info = { }; -static Property fw_cfg_mem_properties[] = { +static const Property fw_cfg_mem_properties[] = { DEFINE_PROP_UINT32("data_width", FWCfgMemState, data_width, -1), DEFINE_PROP_BOOL("dma_enabled", FWCfgMemState, parent_obj.dma_enabled, true), diff --git a/hw/nvram/mac_nvram.c b/hw/nvram/mac_nvram.c index e47e52a677..d62ad719c8 100644 --- a/hw/nvram/mac_nvram.c +++ b/hw/nvram/mac_nvram.c @@ -134,7 +134,7 @@ static void macio_nvram_unrealizefn(DeviceState *dev) g_free(s->data); } -static Property macio_nvram_properties[] = { +static const Property macio_nvram_properties[] = { DEFINE_PROP_UINT32("size", MacIONVRAMState, size, 0), DEFINE_PROP_UINT32("it_shift", MacIONVRAMState, it_shift, 0), DEFINE_PROP_DRIVE("drive", MacIONVRAMState, blk), diff --git a/hw/nvram/nrf51_nvm.c b/hw/nvram/nrf51_nvm.c index b1f81752a3..236049462b 100644 --- a/hw/nvram/nrf51_nvm.c +++ b/hw/nvram/nrf51_nvm.c @@ -354,7 +354,7 @@ static void nrf51_nvm_reset(DeviceState *dev) memset(s->uicr_content, 0xFF, sizeof(s->uicr_content)); } -static Property nrf51_nvm_properties[] = { +static const Property nrf51_nvm_properties[] = { DEFINE_PROP_UINT32("flash-size", NRF51NVMState, flash_size, 0x40000), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/nvram/spapr_nvram.c b/hw/nvram/spapr_nvram.c index bfd8aa367e..2251ff2f4c 100644 --- a/hw/nvram/spapr_nvram.c +++ b/hw/nvram/spapr_nvram.c @@ -252,7 +252,7 @@ static const VMStateDescription vmstate_spapr_nvram = { }, }; -static Property spapr_nvram_properties[] = { +static const Property spapr_nvram_properties[] = { DEFINE_SPAPR_PROPERTIES(SpaprNvram, sdev), DEFINE_PROP_DRIVE("drive", SpaprNvram, blk), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/nvram/xlnx-bbram.c b/hw/nvram/xlnx-bbram.c index 1bc58e90ad..4fa528f048 100644 --- a/hw/nvram/xlnx-bbram.c +++ b/hw/nvram/xlnx-bbram.c @@ -520,7 +520,7 @@ static const VMStateDescription vmstate_bbram_ctrl = { } }; -static Property bbram_ctrl_props[] = { +static const Property bbram_ctrl_props[] = { DEFINE_PROP("drive", XlnxBBRam, blk, bbram_prop_drive, BlockBackend *), DEFINE_PROP_UINT32("crc-zpads", XlnxBBRam, crc_zpads, 1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/nvram/xlnx-efuse.c b/hw/nvram/xlnx-efuse.c index f7b849f7de..5dae9e8e9a 100644 --- a/hw/nvram/xlnx-efuse.c +++ b/hw/nvram/xlnx-efuse.c @@ -265,7 +265,7 @@ static const PropertyInfo efuse_prop_drive = { .release = efuse_prop_release_drive, }; -static Property efuse_properties[] = { +static const Property efuse_properties[] = { DEFINE_PROP("drive", XlnxEFuse, blk, efuse_prop_drive, BlockBackend *), DEFINE_PROP_UINT8("efuse-nr", XlnxEFuse, efuse_nr, 3), DEFINE_PROP_UINT32("efuse-size", XlnxEFuse, efuse_size, 64 * 32), diff --git a/hw/nvram/xlnx-versal-efuse-cache.c b/hw/nvram/xlnx-versal-efuse-cache.c index eaec64d785..1aea27afd3 100644 --- a/hw/nvram/xlnx-versal-efuse-cache.c +++ b/hw/nvram/xlnx-versal-efuse-cache.c @@ -83,7 +83,7 @@ static void efuse_cache_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property efuse_cache_props[] = { +static const Property efuse_cache_props[] = { DEFINE_PROP_LINK("efuse", XlnxVersalEFuseCache, efuse, TYPE_XLNX_EFUSE, XlnxEFuse *), diff --git a/hw/nvram/xlnx-versal-efuse-ctrl.c b/hw/nvram/xlnx-versal-efuse-ctrl.c index 8252a5cabe..599aa126fb 100644 --- a/hw/nvram/xlnx-versal-efuse-ctrl.c +++ b/hw/nvram/xlnx-versal-efuse-ctrl.c @@ -743,7 +743,7 @@ static const VMStateDescription vmstate_efuse_ctrl = { } }; -static Property efuse_ctrl_props[] = { +static const Property efuse_ctrl_props[] = { DEFINE_PROP_LINK("efuse", XlnxVersalEFuseCtrl, efuse, TYPE_XLNX_EFUSE, XlnxEFuse *), diff --git a/hw/nvram/xlnx-zynqmp-efuse.c b/hw/nvram/xlnx-zynqmp-efuse.c index 4e2d1b9d1e..af53187905 100644 --- a/hw/nvram/xlnx-zynqmp-efuse.c +++ b/hw/nvram/xlnx-zynqmp-efuse.c @@ -833,7 +833,7 @@ static const VMStateDescription vmstate_efuse = { } }; -static Property zynqmp_efuse_props[] = { +static const Property zynqmp_efuse_props[] = { DEFINE_PROP_LINK("efuse", XlnxZynqMPEFuse, efuse, TYPE_XLNX_EFUSE, XlnxEFuse *), From patchwork Fri Dec 13 19:07:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907693 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D150E7717F for ; Fri, 13 Dec 2024 19:15:48 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB7F-00070J-TG; Fri, 13 Dec 2024 14:14:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB71-0006Hi-7P for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:08 -0500 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6y-0007WY-1g for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:06 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-2a3c075ddb6so324162fac.2 for ; Fri, 13 Dec 2024 11:14:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117241; x=1734722041; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MdpsJAhLYte2lIkZLag9WCSXb1FF/foqWHpt7GOwf7s=; b=bnHlpISBDSoPoBKNV7266WyYnn1Q63g1/bdLGaJmYHczIG2t6sdSpJZP3h+BzBRwZ3 F6qCAfheX4xeGkENvYO6V3K+hJDuyC7S49r4TCsh9OBR68eXnbeaccdYL5vCcqLw+5Wo XTCk19t03acNLQYMFss5R3UOPTqYtM6qOajDFUJcv5L/GBOFtxz57D/jjeYycixTLy6x AV+v4G3sCHW9wVZaxy/WdKIBZ7tM75nZRQ3c8+cWJw5xBS1ed3w/88KzRRvhAaqY3v6+ HuGkhfwWZ/dTb7XXqJ5XEKSovNuOjGw8XXOIc1DqsxxS2XgETcE8QIaXFX28jvo3zgnI elFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117241; x=1734722041; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MdpsJAhLYte2lIkZLag9WCSXb1FF/foqWHpt7GOwf7s=; b=ftFp0weP535HJ+ZSxb9zZi0N7kNERInQoME8mRBZbT5O9w3rMIuXXfK5J9pVIZTCWv GoU9rBhpdnmXASM9kJIsehVP7gJXR+JMzOXwYVi2gsJu/7GjOpFaeFKo9YulY0YHHWW9 d96vBiVYYocyHAb+pAMSq6hs0bAvdjUBdx4+oYABN+hKS0ci2heZAtwh1FiEAloX688q 6h4pVBImFZE58VLRhFytBDdXeIP6vvY/n6ATCZuQErPlSKUODpB+Ou8VIVEO3NMbuxUg qqmcYqwqEPzu0tcOSQxhyf81Yybh2ckjT0Ds1a6rzzEWarU1JIFWgqCJLi3BNF1dyFYJ npRA== X-Gm-Message-State: AOJu0YwsyuSVEhA77sTJjs5PEM7xUR+Z3Mw6bLocEte7MoCg7rwn2f2K 4xz4epJpz0uTQ7mSoC5fhpSv5lwS3YHpXhWsa2NiOcux6EYiyRaAi7KlTNNynbw3tqn1fSo9Ho9 n9cD3G1ye X-Gm-Gg: ASbGncuIetPm1Ut9/pG2ppcfVbjFuCmGLkemx07sNc5jBkXKL++ouhvtG0IqK6dJWsT GbizjHutuFqU8YDcVgJ+S2HYIXyB9kDzi22DU9a/qJjOhTYkZMng+yCcc3QKs7m3HmGD4m/GFiF 1nFtEFIKB4WYtHYw5s/nb3/z8B4Pfo0rR/5Yv99gfBQewu90tLK6ayn8cEbfHDJrznAKz6D5ON+ pKCos6+VpQM8Z5+i+JSu5LTuYas+xh+4svcZxC79Gmls9E8WBS6oizkcWj2D7zm X-Google-Smtp-Source: AGHT+IFsHptExUFZoIZGsWk4RbguT+pzFk1ZOSTmP02DvjFOwa0fsQPzBP1gF5rpWWL+m1cHt/goag== X-Received: by 2002:a05:6808:151f:b0:3eb:5f1a:d083 with SMTP id 5614622812f47-3eba6896469mr2487136b6e.20.1734117241423; Fri, 13 Dec 2024 11:14:01 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:00 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Marcel Apfelbaum Subject: [PATCH 45/71] hw/pci-bridge: Constify all Property Date: Fri, 13 Dec 2024 13:07:19 -0600 Message-ID: <20241213190750.2513964-50-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::30; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/pci-bridge/cxl_downstream.c | 2 +- hw/pci-bridge/cxl_root_port.c | 2 +- hw/pci-bridge/cxl_upstream.c | 2 +- hw/pci-bridge/gen_pcie_root_port.c | 2 +- hw/pci-bridge/pci_bridge_dev.c | 2 +- hw/pci-bridge/pci_expander_bridge.c | 4 ++-- hw/pci-bridge/pcie_pci_bridge.c | 2 +- hw/pci-bridge/pcie_root_port.c | 2 +- hw/pci-bridge/xio3130_downstream.c | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/pci-bridge/cxl_downstream.c b/hw/pci-bridge/cxl_downstream.c index c347ac06f3..cfe50e60e9 100644 --- a/hw/pci-bridge/cxl_downstream.c +++ b/hw/pci-bridge/cxl_downstream.c @@ -212,7 +212,7 @@ static void cxl_dsp_exitfn(PCIDevice *d) pci_bridge_exitfn(d); } -static Property cxl_dsp_props[] = { +static const Property cxl_dsp_props[] = { DEFINE_PROP_PCIE_LINK_SPEED("x-speed", PCIESlot, speed, PCIE_LINK_SPEED_64), DEFINE_PROP_PCIE_LINK_WIDTH("x-width", PCIESlot, diff --git a/hw/pci-bridge/cxl_root_port.c b/hw/pci-bridge/cxl_root_port.c index 5e2156d7ba..5824ba3c75 100644 --- a/hw/pci-bridge/cxl_root_port.c +++ b/hw/pci-bridge/cxl_root_port.c @@ -199,7 +199,7 @@ static void cxl_rp_reset_hold(Object *obj, ResetType type) latch_registers(crp); } -static Property gen_rp_props[] = { +static const Property gen_rp_props[] = { DEFINE_PROP_UINT32("bus-reserve", CXLRootPort, res_reserve.bus, -1), DEFINE_PROP_SIZE("io-reserve", CXLRootPort, res_reserve.io, -1), DEFINE_PROP_SIZE("mem-reserve", CXLRootPort, res_reserve.mem_non_pref, -1), diff --git a/hw/pci-bridge/cxl_upstream.c b/hw/pci-bridge/cxl_upstream.c index 55f8b0053f..ef94aa3654 100644 --- a/hw/pci-bridge/cxl_upstream.c +++ b/hw/pci-bridge/cxl_upstream.c @@ -362,7 +362,7 @@ static void cxl_usp_exitfn(PCIDevice *d) pci_bridge_exitfn(d); } -static Property cxl_upstream_props[] = { +static const Property cxl_upstream_props[] = { DEFINE_PROP_UINT64("sn", CXLUpstreamPort, sn, UI64_NULL), DEFINE_PROP_STRING("cdat", CXLUpstreamPort, cxl_cstate.cdat.filename), DEFINE_PROP_PCIE_LINK_SPEED("x-speed", CXLUpstreamPort, diff --git a/hw/pci-bridge/gen_pcie_root_port.c b/hw/pci-bridge/gen_pcie_root_port.c index 784507c826..c319ca8263 100644 --- a/hw/pci-bridge/gen_pcie_root_port.c +++ b/hw/pci-bridge/gen_pcie_root_port.c @@ -128,7 +128,7 @@ static const VMStateDescription vmstate_rp_dev = { } }; -static Property gen_rp_props[] = { +static const Property gen_rp_props[] = { DEFINE_PROP_BOOL("x-migrate-msix", GenPCIERootPort, migrate_msix, true), DEFINE_PROP_UINT32("bus-reserve", GenPCIERootPort, diff --git a/hw/pci-bridge/pci_bridge_dev.c b/hw/pci-bridge/pci_bridge_dev.c index 8e7f926621..35a37e056a 100644 --- a/hw/pci-bridge/pci_bridge_dev.c +++ b/hw/pci-bridge/pci_bridge_dev.c @@ -168,7 +168,7 @@ static void qdev_pci_bridge_dev_reset(DeviceState *qdev) } } -static Property pci_bridge_dev_properties[] = { +static const Property pci_bridge_dev_properties[] = { /* Note: 0 is not a legal chassis number. */ DEFINE_PROP_UINT8(PCI_BRIDGE_DEV_PROP_CHASSIS_NR, PCIBridgeDev, chassis_nr, 0), diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expander_bridge.c index 07d411cff5..01997c1ab3 100644 --- a/hw/pci-bridge/pci_expander_bridge.c +++ b/hw/pci-bridge/pci_expander_bridge.c @@ -420,7 +420,7 @@ static void pxb_dev_exitfn(PCIDevice *pci_dev) pxb_dev_list = g_list_remove(pxb_dev_list, pxb); } -static Property pxb_dev_properties[] = { +static const Property pxb_dev_properties[] = { /* Note: 0 is not a legal PXB bus number. */ DEFINE_PROP_UINT8("bus_nr", PXBDev, bus_nr, 0), DEFINE_PROP_UINT16("numa_node", PXBDev, numa_node, NUMA_NODE_UNASSIGNED), @@ -507,7 +507,7 @@ static void pxb_cxl_dev_realize(PCIDevice *dev, Error **errp) pxb_cxl_dev_reset(DEVICE(dev)); } -static Property pxb_cxl_dev_properties[] = { +static const Property pxb_cxl_dev_properties[] = { DEFINE_PROP_BOOL("hdm_for_passthrough", PXBCXLDev, hdm_for_passthrough, false), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/pci-bridge/pcie_pci_bridge.c b/hw/pci-bridge/pcie_pci_bridge.c index 6e8d7d9478..8834ff3dbf 100644 --- a/hw/pci-bridge/pcie_pci_bridge.c +++ b/hw/pci-bridge/pcie_pci_bridge.c @@ -124,7 +124,7 @@ static void pcie_pci_bridge_write_config(PCIDevice *d, shpc_cap_write_config(d, address, val, len); } -static Property pcie_pci_bridge_dev_properties[] = { +static const Property pcie_pci_bridge_dev_properties[] = { DEFINE_PROP_ON_OFF_AUTO("msi", PCIEPCIBridge, msi, ON_OFF_AUTO_AUTO), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/pci-bridge/pcie_root_port.c b/hw/pci-bridge/pcie_root_port.c index 09a34786bc..a7f87a1bc4 100644 --- a/hw/pci-bridge/pcie_root_port.c +++ b/hw/pci-bridge/pcie_root_port.c @@ -148,7 +148,7 @@ static void rp_exit(PCIDevice *d) pci_bridge_exitfn(d); } -static Property rp_props[] = { +static const Property rp_props[] = { DEFINE_PROP_BIT(COMPAT_PROP_PCP, PCIDevice, cap_present, QEMU_PCIE_SLTCAP_PCP_BITNR, true), DEFINE_PROP_BOOL("disable-acs", PCIESlot, disable_acs, false), diff --git a/hw/pci-bridge/xio3130_downstream.c b/hw/pci-bridge/xio3130_downstream.c index 473e2dd950..92e5fb72ec 100644 --- a/hw/pci-bridge/xio3130_downstream.c +++ b/hw/pci-bridge/xio3130_downstream.c @@ -134,7 +134,7 @@ static void xio3130_downstream_exitfn(PCIDevice *d) pci_bridge_exitfn(d); } -static Property xio3130_downstream_props[] = { +static const Property xio3130_downstream_props[] = { DEFINE_PROP_BIT(COMPAT_PROP_PCP, PCIDevice, cap_present, QEMU_PCIE_SLTCAP_PCP_BITNR, true), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:07:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907720 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8FEEE7717F for ; Fri, 13 Dec 2024 19:24:55 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB8C-0008IR-QX; Fri, 13 Dec 2024 14:15:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB71-0006HX-7J for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:08 -0500 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB6z-0007Ws-4N for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:06 -0500 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-29f88004a92so1252808fac.1 for ; Fri, 13 Dec 2024 11:14:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117242; x=1734722042; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ht4ZlthGspVYtEWG+5uRpgdlGJS5T3fuIdiO1kKsIqU=; b=mONUwRD2MXRaN0nY/A0cU+d3qyXomnOqz/2q06pw+bmo/FVow1VUfB8Ej/0m84lSWo xUUAcc9fnVRqPQNvekIhcbx00LHKZ3tAWkEiKhi//e9DNHShvRGh3EpFicVnGCJskTkc YOOoU4W/Qkf6sKzXkSUUjvwevZaECIpealOztPaAd2dqndazI9EVXb1V3F5BCUaUbB+/ 0CIdEqjTGjqrLh6zSK4sSBv+gIQxPZIneaLMz7rk0swuhjNJZriFEIgI7Q9t785v3oay pARksdA0e8nNzMFzYAWj7B0ujYQUfEGXCyHiVzIt9030Rcq9Rkduxh8VSkWkv7ogFjCt Krxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117242; x=1734722042; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ht4ZlthGspVYtEWG+5uRpgdlGJS5T3fuIdiO1kKsIqU=; b=v4hm5ApXTYQyunL3yWHMsyKC1d7D7/Sqjz3St0hmI58SRmPUfxCoPVKzUg2sht/2pd ZjX/lXG8Lw7TYr6us/6x/nboT8LIID3QVv4FlOc5fdPE77Ds+Jpn4mci8zIzVOVcZVoh kk1xWDSCKzNCyYa20W/Jncl/gJ5RdSMAqty5wJhyaldlG+YSV9uzlkfjKe6cX90S86v9 pTwi83IJyPQORAHrRBhZGo0hID+IM0rtadPtqhhehUONOrSdT93rmA5octnkoxmhdV2X +3WKhOk0yg5a7GKwRlUvQ9l+F7UxqZD7OFbD0f+S2uCBaRlJQUOrhpJz1uyTyN9woHsa idDQ== X-Gm-Message-State: AOJu0Yx1xFs0dCR6LsCMR9/fye9uqLpSFAEPhVXLL5tJpMe0ZptwNdZP Iz5zdK6MHw+MCPPFyHVvXaNRIVkyE3UkJKbi7HQaKKhCvDgpHqtR5HN+lpouTKtjing2liIvhxO s0msJlWnb X-Gm-Gg: ASbGncthzfxpt7cl9YiI/Hg4IIVf3He4VLszcr2yPtJL96d/tLwCcSMuaT5zJXI6wSK BkTVAYQyYHciSiTibXDb69hNP2fyktEXnEwXtDKFTQL7QEMvoGScWjKozly3R0c1At0ZWEnfai+ 4Or7MqU5hYaarIyzs6+8vXSk3QgALEnebduDuKK22S7n98HvOzmeEd5jTr3NWaM9yatS5iSgKFt 4h+2s7jmCgW3QBzp1gniRB7SgX1ep0DfVb6bR6xWvEXS/bEYFQHZr8b7agkKX1Z X-Google-Smtp-Source: AGHT+IGZ/PvUMGmqi5e8Bk1rGup3iswt9ghvsT2e9lIq++g1rY7eR5j8PsVNC0mxbnECi6p4/IfHmA== X-Received: by 2002:a05:6808:218d:b0:3eb:3619:6a90 with SMTP id 5614622812f47-3eba693ab5bmr1514702b6e.33.1734117242461; Fri, 13 Dec 2024 11:14:02 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:02 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller Subject: [PATCH 46/71] hw/pci-host/astro: Remove empty Property list Date: Fri, 13 Dec 2024 13:07:20 -0600 Message-ID: <20241213190750.2513964-51-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2d; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/pci-host/astro.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hw/pci-host/astro.c b/hw/pci-host/astro.c index 379095b356..62e9c8acbf 100644 --- a/hw/pci-host/astro.c +++ b/hw/pci-host/astro.c @@ -461,10 +461,6 @@ static void elroy_pcihost_init(Object *obj) qdev_init_gpio_in(DEVICE(obj), elroy_set_irq, ELROY_IRQS); } -static Property elroy_pcihost_properties[] = { - DEFINE_PROP_END_OF_LIST(), -}; - static const VMStateDescription vmstate_elroy = { .name = "Elroy", .version_id = 1, @@ -490,7 +486,6 @@ static void elroy_pcihost_class_init(ObjectClass *klass, void *data) DeviceClass *dc = DEVICE_CLASS(klass); device_class_set_legacy_reset(dc, elroy_reset); - device_class_set_props(dc, elroy_pcihost_properties); dc->vmsd = &vmstate_elroy; dc->user_creatable = false; } From patchwork Fri Dec 13 19:07:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907739 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5BF5BE77183 for ; Fri, 13 Dec 2024 19:32:43 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB7X-0007d9-O3; Fri, 13 Dec 2024 14:14:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB74-0006Oh-Hs for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:12 -0500 Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB71-0007XV-SE for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:09 -0500 Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-5f2da12248fso1551820eaf.1 for ; Fri, 13 Dec 2024 11:14:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117246; x=1734722046; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=87UWZos2QKdOl0brnZZzf+GGdw2+NZalufbZuF6TgSQ=; b=MQ3RBmVLu9FzGooJu6WgHnUPKi9Gwy0HivyBxGTU38ea850dNP28Fq8u8IiUu6962N e579h/k/ScYxP/ndGFRQSuaBkdOagCbo4JCL4cktOlGR5shrL3N/6RTuqBwFJGp7zDA9 vvib+tHvdshTnXE+mAoQyf9oQO9jhhpI0iWn1LVrcv0+HMK7eok+qYBStmJq27A2XD0p Xigaqg/t2XzutdPuX04D0YbVAY9q1iyD0hzaGHRObvOnDVTX7ouvStns1eO6AGvQ0G2e HRMK8ONE0c3kbftzASryeKHd1u6gTI1HmxZYiiYSmlmxI0ClLcU7jZ3x09qvnXG9l7iB TOLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117246; x=1734722046; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=87UWZos2QKdOl0brnZZzf+GGdw2+NZalufbZuF6TgSQ=; b=oWaAbilD5luf7LuMc8aAips7mj/tQyqQG8bLrULo85vjoezxzHU8IJrwAHZK2RL4LO ImD6t6j84gsy7ikJDF/2zSdd/0fTPU406rQbwtClZfRvSIWc9xIcM+BzK1NPb1ZkI86o xkDDuGsViSjB1YoIecO1l2A59fWlGrorTxCseFslgmCsc69n/E1BzAOSwCBA9CYAxdDs cRBg+ind50kAde3obWL+neofcaKZOMmyKrc7pafQPYwOWXFCkdT8V/UTcclKfDlEmgOv RW/QHqRxoFkQqT0eGDAuyKux/OuJg66ax8ELBW1LUG9UrcxDqVgcfUEKUMMfADM29dYK K1/w== X-Gm-Message-State: AOJu0YxRkxNrE7LNDB8FzmTjXTxzTsP6pTxkounDGeQNab4g9xDYpSCm 8eQjNncY/bliNbqc03tlf/50A+++ww2aMCXdHZXy6BIh3KKkHb1Vklo4VRi/FK6h0wZhojSHubQ Fmeof5EOS X-Gm-Gg: ASbGncskXb7qb/Yf/mtiOs2tr3mbKregvo+fziwW6wNI8EVpc1mSwQ2CelFJWZu7Adz 9qHbAhXHQSw3TLVuYiKH6R9kumFFKXfmrrNOdk5ulA4Zumq2qkb61sWgJ8T9VPCfyoOwHe562CY EHknBx+Jci2/7doiUEat56Sg3SOkQ3/OI5JZdyuYJr0tRIEIi6a36TxVJ0UKy21CBw0GNSD2DEk 5MxQuMBipZA7jiU/hheVwIu3EouvAouvbylYIAEBEW6HBbedm7vSM0P+oHXmV6R X-Google-Smtp-Source: AGHT+IHSqDxHwDg+BOhasnHGxFBsNzSMeZThXCs3ZRJYG4QeWWpWegMlvdpBTETqsUV4GawJ8eJmjQ== X-Received: by 2002:a05:6808:2191:b0:3eb:4783:df7e with SMTP id 5614622812f47-3eb94f9328bmr4978559b6e.17.1734117245676; Fri, 13 Dec 2024 11:14:05 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller , Mark Cave-Ayland , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Aurelien Jarno , "Michael S. Tsirkin" , Marcel Apfelbaum , BALATON Zoltan , Nicholas Piggin , =?utf-8?b?RnLDqWTDqXJpYyBCYXJyYXQ=?= , Bernhard Beschow , =?utf-8?q?Herv=C3=A9_Poussineau?= , Peter Maydell , Paul Burton , Aleksandar Rikalo , qemu-ppc@nongnu.org (open list:Old World (g3beige)), qemu-arm@nongnu.org (open list:Versatile PB) Subject: [PATCH 47/71] hw/pci-host: Constify all Property Date: Fri, 13 Dec 2024 13:07:21 -0600 Message-ID: <20241213190750.2513964-52-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c2b; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/pci-host/dino.c | 2 +- hw/pci-host/gpex.c | 2 +- hw/pci-host/grackle.c | 2 +- hw/pci-host/gt64120.c | 2 +- hw/pci-host/i440fx.c | 2 +- hw/pci-host/mv64361.c | 2 +- hw/pci-host/pnv_phb.c | 4 ++-- hw/pci-host/pnv_phb3.c | 2 +- hw/pci-host/pnv_phb4.c | 2 +- hw/pci-host/pnv_phb4_pec.c | 2 +- hw/pci-host/ppce500.c | 2 +- hw/pci-host/q35.c | 4 ++-- hw/pci-host/raven.c | 2 +- hw/pci-host/sabre.c | 2 +- hw/pci-host/uninorth.c | 2 +- hw/pci-host/versatile.c | 2 +- hw/pci-host/xilinx-pcie.c | 2 +- 17 files changed, 19 insertions(+), 19 deletions(-) diff --git a/hw/pci-host/dino.c b/hw/pci-host/dino.c index 283fc0dc57..ead9893f21 100644 --- a/hw/pci-host/dino.c +++ b/hw/pci-host/dino.c @@ -492,7 +492,7 @@ static void dino_pcihost_init(Object *obj) qdev_init_gpio_in(DEVICE(obj), dino_set_irq, DINO_IRQS); } -static Property dino_pcihost_properties[] = { +static const Property dino_pcihost_properties[] = { DEFINE_PROP_LINK("memory-as", DinoState, memory_as, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci-host/gpex.c b/hw/pci-host/gpex.c index e9cf455bf5..8a955ca130 100644 --- a/hw/pci-host/gpex.c +++ b/hw/pci-host/gpex.c @@ -147,7 +147,7 @@ static const char *gpex_host_root_bus_path(PCIHostState *host_bridge, return "0000:00"; } -static Property gpex_host_properties[] = { +static const Property gpex_host_properties[] = { /* * Permit CPU accesses to unmapped areas of the PIO and MMIO windows * (discarding writes and returning -1 for reads) rather than aborting. diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c index 8e589ff2c9..d64de73774 100644 --- a/hw/pci-host/grackle.c +++ b/hw/pci-host/grackle.c @@ -129,7 +129,7 @@ static char *grackle_ofw_unit_address(const SysBusDevice *dev) return g_strdup_printf("%x", s->ofw_addr); } -static Property grackle_properties[] = { +static const Property grackle_properties[] = { DEFINE_PROP_UINT32("ofw-addr", GrackleState, ofw_addr, -1), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/pci-host/gt64120.c b/hw/pci-host/gt64120.c index 14fc803d27..3c73ebe83f 100644 --- a/hw/pci-host/gt64120.c +++ b/hw/pci-host/gt64120.c @@ -1274,7 +1274,7 @@ static const TypeInfo gt64120_pci_info = { }, }; -static Property gt64120_properties[] = { +static const Property gt64120_properties[] = { DEFINE_PROP_BOOL("cpu-little-endian", GT64120State, cpu_little_endian, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci-host/i440fx.c b/hw/pci-host/i440fx.c index 4f0a0438d7..40780fbc52 100644 --- a/hw/pci-host/i440fx.c +++ b/hw/pci-host/i440fx.c @@ -353,7 +353,7 @@ static const char *i440fx_pcihost_root_bus_path(PCIHostState *host_bridge, return "0000:00"; } -static Property i440fx_props[] = { +static const Property i440fx_props[] = { DEFINE_PROP_SIZE(PCI_HOST_PROP_PCI_HOLE64_SIZE, I440FXState, pci_hole64_size, I440FX_PCI_HOST_HOLE64_SIZE_DEFAULT), DEFINE_PROP_SIZE(PCI_HOST_BELOW_4G_MEM_SIZE, I440FXState, diff --git a/hw/pci-host/mv64361.c b/hw/pci-host/mv64361.c index 421c287eb0..2518d5abe6 100644 --- a/hw/pci-host/mv64361.c +++ b/hw/pci-host/mv64361.c @@ -98,7 +98,7 @@ static void mv64361_pcihost_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out(dev, s->irq, ARRAY_SIZE(s->irq)); } -static Property mv64361_pcihost_props[] = { +static const Property mv64361_pcihost_props[] = { DEFINE_PROP_UINT8("index", MV64361PCIState, index, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/pci-host/pnv_phb.c b/hw/pci-host/pnv_phb.c index d4c118d443..888f0786a0 100644 --- a/hw/pci-host/pnv_phb.c +++ b/hw/pci-host/pnv_phb.c @@ -183,7 +183,7 @@ static const char *pnv_phb_root_bus_path(PCIHostState *host_bridge, return phb->bus_path; } -static Property pnv_phb_properties[] = { +static const Property pnv_phb_properties[] = { DEFINE_PROP_UINT32("index", PnvPHB, phb_id, 0), DEFINE_PROP_UINT32("chip-id", PnvPHB, chip_id, 0), DEFINE_PROP_UINT32("version", PnvPHB, version, 0), @@ -302,7 +302,7 @@ static void pnv_phb_root_port_realize(DeviceState *dev, Error **errp) pci_config_set_interrupt_pin(pci->config, 0); } -static Property pnv_phb_root_port_properties[] = { +static const Property pnv_phb_root_port_properties[] = { DEFINE_PROP_UINT32("version", PnvPHBRootPort, version, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci-host/pnv_phb3.c b/hw/pci-host/pnv_phb3.c index 2a74dbe45f..529b33b5a2 100644 --- a/hw/pci-host/pnv_phb3.c +++ b/hw/pci-host/pnv_phb3.c @@ -1090,7 +1090,7 @@ void pnv_phb3_update_regions(PnvPHB3 *phb) pnv_phb3_check_all_m64s(phb); } -static Property pnv_phb3_properties[] = { +static const Property pnv_phb3_properties[] = { DEFINE_PROP_UINT32("index", PnvPHB3, phb_id, 0), DEFINE_PROP_UINT32("chip-id", PnvPHB3, chip_id, 0), DEFINE_PROP_LINK("chip", PnvPHB3, chip, TYPE_PNV_CHIP, PnvChip *), diff --git a/hw/pci-host/pnv_phb4.c b/hw/pci-host/pnv_phb4.c index 99991008c1..482fe25803 100644 --- a/hw/pci-host/pnv_phb4.c +++ b/hw/pci-host/pnv_phb4.c @@ -1688,7 +1688,7 @@ static void pnv_phb4_xive_notify(XiveNotifier *xf, uint32_t srcno, } } -static Property pnv_phb4_properties[] = { +static const Property pnv_phb4_properties[] = { DEFINE_PROP_UINT32("index", PnvPHB4, phb_id, 0), DEFINE_PROP_UINT32("chip-id", PnvPHB4, chip_id, 0), DEFINE_PROP_LINK("pec", PnvPHB4, pec, TYPE_PNV_PHB4_PEC, diff --git a/hw/pci-host/pnv_phb4_pec.c b/hw/pci-host/pnv_phb4_pec.c index ce8e228f98..f8975403d3 100644 --- a/hw/pci-host/pnv_phb4_pec.c +++ b/hw/pci-host/pnv_phb4_pec.c @@ -283,7 +283,7 @@ static int pnv_pec_dt_xscom(PnvXScomInterface *dev, void *fdt, return 0; } -static Property pnv_pec_properties[] = { +static const Property pnv_pec_properties[] = { DEFINE_PROP_UINT32("index", PnvPhb4PecState, index, 0), DEFINE_PROP_UINT32("chip-id", PnvPhb4PecState, chip_id, 0), DEFINE_PROP_LINK("chip", PnvPhb4PecState, chip, TYPE_PNV_CHIP, diff --git a/hw/pci-host/ppce500.c b/hw/pci-host/ppce500.c index b70631045a..54071fc125 100644 --- a/hw/pci-host/ppce500.c +++ b/hw/pci-host/ppce500.c @@ -507,7 +507,7 @@ static void e500_host_bridge_class_init(ObjectClass *klass, void *data) dc->user_creatable = false; } -static Property pcihost_properties[] = { +static const Property pcihost_properties[] = { DEFINE_PROP_UINT32("first_slot", PPCE500PCIState, first_slot, 0x11), DEFINE_PROP_UINT32("first_pin_irq", PPCE500PCIState, first_pin_irq, 0x1), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index f3e713318e..af0b77ea1e 100644 --- a/hw/pci-host/q35.c +++ b/hw/pci-host/q35.c @@ -170,7 +170,7 @@ static void q35_host_get_pci_hole64_end(Object *obj, Visitor *v, * properties need to be initialized manually by * q35_host_initfn() after the object_initialize() call. */ -static Property q35_host_props[] = { +static const Property q35_host_props[] = { DEFINE_PROP_UINT64(PCIE_HOST_MCFG_BASE, Q35PCIHost, parent_obj.base_addr, MCH_HOST_BRIDGE_PCIEXBAR_DEFAULT), DEFINE_PROP_SIZE(PCI_HOST_PROP_PCI_HOLE64_SIZE, Q35PCIHost, @@ -662,7 +662,7 @@ static void mch_realize(PCIDevice *d, Error **errp) OBJECT(&mch->smram)); } -static Property mch_props[] = { +static const Property mch_props[] = { DEFINE_PROP_UINT16("extended-tseg-mbytes", MCHPCIState, ext_tseg_mbytes, 16), DEFINE_PROP_BOOL("smbase-smram", MCHPCIState, has_smram_at_smbase, true), diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index a7dfddd69e..b0a4a669f5 100644 --- a/hw/pci-host/raven.c +++ b/hw/pci-host/raven.c @@ -422,7 +422,7 @@ static const TypeInfo raven_info = { }, }; -static Property raven_pcihost_properties[] = { +static const Property raven_pcihost_properties[] = { DEFINE_PROP_UINT32("elf-machine", PREPPCIState, pci_dev.elf_machine, EM_NONE), DEFINE_PROP_STRING("bios-name", PREPPCIState, pci_dev.bios_name), diff --git a/hw/pci-host/sabre.c b/hw/pci-host/sabre.c index 1707feb951..623afed644 100644 --- a/hw/pci-host/sabre.c +++ b/hw/pci-host/sabre.c @@ -492,7 +492,7 @@ static char *sabre_ofw_unit_address(const SysBusDevice *dev) (uint32_t)(s->special_base & 0xffffffff)); } -static Property sabre_properties[] = { +static const Property sabre_properties[] = { DEFINE_PROP_UINT64("special-base", SabreState, special_base, 0), DEFINE_PROP_UINT64("mem-base", SabreState, mem_base, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci-host/uninorth.c b/hw/pci-host/uninorth.c index e4c1abd871..bd670cfa9d 100644 --- a/hw/pci-host/uninorth.c +++ b/hw/pci-host/uninorth.c @@ -423,7 +423,7 @@ static const TypeInfo unin_internal_pci_host_info = { }, }; -static Property pci_unin_main_pci_host_props[] = { +static const Property pci_unin_main_pci_host_props[] = { DEFINE_PROP_UINT32("ofw-addr", UNINHostState, ofw_addr, -1), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c index d257acee17..5d59640691 100644 --- a/hw/pci-host/versatile.c +++ b/hw/pci-host/versatile.c @@ -498,7 +498,7 @@ static const TypeInfo versatile_pci_host_info = { }, }; -static Property pci_vpb_properties[] = { +static const Property pci_vpb_properties[] = { DEFINE_PROP_UINT8("broken-irq-mapping", PCIVPBState, irq_mapping_prop, PCI_VPB_IRQMAP_ASSUME_OK), DEFINE_PROP_END_OF_LIST() diff --git a/hw/pci-host/xilinx-pcie.c b/hw/pci-host/xilinx-pcie.c index 24f691ea82..848403970b 100644 --- a/hw/pci-host/xilinx-pcie.c +++ b/hw/pci-host/xilinx-pcie.c @@ -156,7 +156,7 @@ static void xilinx_pcie_host_init(Object *obj) qdev_prop_set_bit(DEVICE(root), "multifunction", false); } -static Property xilinx_pcie_host_props[] = { +static const Property xilinx_pcie_host_props[] = { DEFINE_PROP_UINT32("bus_nr", XilinxPCIEHost, bus_nr, 0), DEFINE_PROP_SIZE("cfg_base", XilinxPCIEHost, cfg_base, 0), DEFINE_PROP_SIZE("cfg_size", XilinxPCIEHost, cfg_size, 32 * MiB), From patchwork Fri Dec 13 19:07:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907727 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 13809E77180 for ; Fri, 13 Dec 2024 19:28:06 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB8M-0008NY-F7; Fri, 13 Dec 2024 14:15:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB77-0006SR-4A for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:13 -0500 Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB73-0007Xv-E1 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:11 -0500 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-5f2e13cb356so1021794eaf.2 for ; Fri, 13 Dec 2024 11:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117247; x=1734722047; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HMNcGFi52Uwl+0HNftyeCD60t2xD+7lCeBeevmzpoWs=; b=iyWsTBuLKPHUdXwDzfi00LOYT0qzHPApxCPp99gSKCRWdMcxx1Ad0BSFv0Z5pHLvUC 37deW9rCH2botfJhwpDtTQwa73HH0afxY+Ffr7AL0w0pzsUlxM7SFPXZQ2QH/QV0VgLj uZF2oDei6/EAGTj6cZSSvF5jM9mO6mNFA+cAgscpNfq2U1vQ7ZuCSLJYfvoHRUqxwMlp AuvBHVOvxu1YLLEqnj43sq/UZJee29ePT+XbGVqLiE4NjOUpHai2PYZpkvvjRxjro8VT wD+q6cc6sciEoM5h1kKdr2OXEHDtJwAoXz3GhqEgMXTwHAQ+rueiSl9aFOSVT33RkQkb C/Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117247; x=1734722047; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HMNcGFi52Uwl+0HNftyeCD60t2xD+7lCeBeevmzpoWs=; b=qMM2rhfxCd5/rqkd/mKwIOEIOJpnJ2LQFz1VXjoW3kqlSYItYiCxlAT6JVvxR2+WBD S/q3CEIxu9zhdWD6WDIWmeqhjxCenP7rU3XgPCqnAB9t28iwO/Q1xYjtTZSgKab/9Nwf +kE0CqYCiMM1K4hXs+k/aABjTtsHO4luqZEotb6DUK5h5mGnQBOyKpZ55FinSXVPl/Om EdfbHPzQ2dDLk6yrS63JwYw7TPd2wxjiVWRUK5pdqzmBFQ7aHsda8ldROOhHaUQqr4n6 G5tzvCa5Okgmo1MDwkMdu1VkDu3zH1RhdJ3VbgBlia8GD/qEa22ECuGn0JpdAK8+vf5r IMQA== X-Gm-Message-State: AOJu0Yzf7RDI7ZehMgSZEYI4gC4h+6lWx/bYvG0E3DernQR7SEr3Naq1 vRjhMjg/pMMlTPGJUPQHlXspQXOBGceUN3dzmCMCh0lp936hs3ClvGSfpASClmYcootO2e8PCfc ocdMlNwQm X-Gm-Gg: ASbGncuLa7FYPkWC/a6ul1x4gFTCZZ/mgBnmha7Rzofn41tsKReftyw47ol1GPPHt5J tdfRhOSSXAroBbwEdzIhk1g8Fnu3YF+QUrdY1g6vxnIv5zomNL1Y3s3v+aHQaVUysUHwIiv5Xy9 yMvJ0X2yNF0UM5LhJpXeAyFM3l4b0y77iOZV0GSkW5sOYFCsHO26H619SI8YhWXDBzCyWwRGwB4 C/bMHaqyXhBye+4C3VNcAMevZ7aWx2q+b0yXFgWkP+t1CJnOLSjjmGa0fKmf/le X-Google-Smtp-Source: AGHT+IHhSE/5W3yMzeW4V02i7KSNJxp1aEhHFhHZaus8WJZptCnJKshYPKoKfZ5NdZD8PdE59yK1sA== X-Received: by 2002:a05:6808:3985:b0:3eb:a0ce:f3c2 with SMTP id 5614622812f47-3eba6987cadmr2320350b6e.40.1734117247616; Fri, 13 Dec 2024 11:14:07 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:07 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Marcel Apfelbaum Subject: [PATCH 48/71] hw/pci: Constify all Property Date: Fri, 13 Dec 2024 13:07:22 -0600 Message-ID: <20241213190750.2513964-53-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c36; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc36.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/pci/pci.c | 2 +- hw/pci/pci_bridge.c | 2 +- hw/pci/pci_host.c | 2 +- hw/pci/pcie_port.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 1416ae202c..c38b674211 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -80,7 +80,7 @@ static const PropertyInfo prop_pci_busnr = { .get = prop_pci_busnr_get, }; -static Property pci_props[] = { +static const Property pci_props[] = { DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1), DEFINE_PROP_STRING("romfile", PCIDevice, romfile), DEFINE_PROP_UINT32("romsize", PCIDevice, romsize, UINT32_MAX), diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c index 2c7bb1a525..dd4fd3674f 100644 --- a/hw/pci/pci_bridge.c +++ b/hw/pci/pci_bridge.c @@ -477,7 +477,7 @@ int pci_bridge_qemu_reserve_cap_init(PCIDevice *dev, int cap_offset, return 0; } -static Property pci_bridge_properties[] = { +static const Property pci_bridge_properties[] = { DEFINE_PROP_BOOL("x-pci-express-writeable-slt-bug", PCIBridge, pcie_writeable_slt_bug, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci/pci_host.c b/hw/pci/pci_host.c index dfe6fe6184..321e7be709 100644 --- a/hw/pci/pci_host.c +++ b/hw/pci/pci_host.c @@ -240,7 +240,7 @@ const VMStateDescription vmstate_pcihost = { } }; -static Property pci_host_properties_common[] = { +static const Property pci_host_properties_common[] = { DEFINE_PROP_BOOL("x-config-reg-migration-enabled", PCIHostState, mig_enabled, true), DEFINE_PROP_BOOL(PCI_HOST_BYPASS_IOMMU, PCIHostState, bypass_iommu, false), diff --git a/hw/pci/pcie_port.c b/hw/pci/pcie_port.c index 9f978ba164..bac2822e98 100644 --- a/hw/pci/pcie_port.c +++ b/hw/pci/pcie_port.c @@ -111,7 +111,7 @@ void pcie_chassis_del_slot(PCIESlot *s) QLIST_REMOVE(s, next); } -static Property pcie_port_props[] = { +static const Property pcie_port_props[] = { DEFINE_PROP_UINT8("port", PCIEPort, port, 0), DEFINE_PROP_UINT16("aer_log_max", PCIEPort, parent_obj.parent_obj.exp.aer_log.log_max, @@ -204,7 +204,7 @@ static const TypeInfo pcie_port_type_info = { .class_init = pcie_port_class_init, }; -static Property pcie_slot_props[] = { +static const Property pcie_slot_props[] = { DEFINE_PROP_UINT8("chassis", PCIESlot, chassis, 0), DEFINE_PROP_UINT16("slot", PCIESlot, slot, 0), DEFINE_PROP_BOOL("hotplug", PCIESlot, hotplug, true), From patchwork Fri Dec 13 19:07:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907698 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D63EE7717F for ; Fri, 13 Dec 2024 19:17:20 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB7q-0007v1-3m; Fri, 13 Dec 2024 14:15:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7A-0006hs-8h for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:18 -0500 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB76-0007Ye-Ub for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:15 -0500 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-29fae583cc8so1027139fac.1 for ; Fri, 13 Dec 2024 11:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117250; x=1734722050; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eHAtuv+A7LoEygNB1h/ibJtbhcSv1EMIHcEESN5V/a8=; b=ZkB/prHFsyqwcki96mM2wuBWQeHgqbnWiu334yJ79htSiklQW75M85xJIMAdbWTVl/ J2VvF6D2oRPC9V4mAhdjlPnC6ecgIPkIUlm/0J7Du/RNP5qJkWwF/9hRbU+gc7O4m7XI ppP038oka6oOy4Ag6fDqeWIa5bBU4ZxkVTd0Ei7E6amulexmG7DVhjJdJyXKM1sQZoEP h5pvq39BbNQlxva4ttsIC+vCfvg5M7gDv62nM2/ZRWhF01a7BYNf8e1B255a//6yICY+ YF64jJJwdfh3ItylHKySC0jIzq1TC4j4AzuuMWagus8lC+hoapTxoldKd0E4eKdqOP99 XUfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117250; x=1734722050; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eHAtuv+A7LoEygNB1h/ibJtbhcSv1EMIHcEESN5V/a8=; b=ACgp0xcN7kY/ezCY0rDt+ERTEq9WBu7XlaMfJD+FhwfXbOuw5Q0IHuBGn2Xa2mVRNW Bsto3SuC8j/s1MEkC2ehWLRaDupUehM35ep4cl1gYuaYrfDzv6Lw1QnijJz+sZTyNO+x rUjChRKhvhGPS0CN2bIt2cQbuhp9mE2MgZmT8Ah0RiERSBNLMonkJlF2Vv2TMJl0RBxS wPVYX2anYoByGUEx2+wlYGKCef5fbGtL61UxeY2tTWDmo2cmYNgYfu/3Buyi4xKJ3ZqF B2O7Hs5QkT/3HXOlFWg/2NfvfDOLn+bMMLfBvlJEHB4wCCa1H4c7zuydI4M9r+9H2hAX 4qpA== X-Gm-Message-State: AOJu0YyRvEAogOZDVqgvaT4KjcV0F3eNvX8XHgjlS+vB99DrIbLXlNH0 7LhjG2m2+usEXWJQq59O+pyOpQqKX4WiW+mwqFoRKXK1pcFp/ei4LhEbKMLDQfgu0JVqQdMFrGi qcD2g+H6U X-Gm-Gg: ASbGncuPgu/oqQplhJ8x4deC5SNHDy0dUsXmidjCjjh4XupnSMoL/N7K6gNT5UUrgiU 6bpbnZ9KueZKsLgablYOMMBpkowPcK4rxIDo1xOZb5Nj7339jo38rJrGZnc3nXE/tWdeOxDXTSR 1JhVS2mQNibUrkrcQ88zjojFRaYJ844tWxbgrUsjYXgo+rDgilFjGjhu5DThL5+txYOu54K7Ei2 w4/LriJomqNPffEeiVPJjGe99rcQsc/fWk7MYhg60n9xApCCQ1TQhF5USAjRWn6 X-Google-Smtp-Source: AGHT+IHKZDa2W8ubI6qavisMqiq253sPSn7Oi58sHuNQ5pX2dsluYchS87gqmIiaFECvFkDG7EtjgQ== X-Received: by 2002:a05:6808:384c:b0:3ea:9a5c:ac06 with SMTP id 5614622812f47-3eb94e4c57amr5398084b6e.1.1734117250386; Fri, 13 Dec 2024 11:14:10 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:09 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Nicholas Piggin , =?utf-8?b?RnLDqWTDqXJpYyBCYXJyYXQ=?= , BALATON Zoltan , =?utf-8?q?Herv=C3=A9_Poussineau?= , Daniel Henrique Barboza , Harsh Prateek Bora , qemu-ppc@nongnu.org (open list:PowerNV Non-Virt...) Subject: [PATCH 49/71] hw/ppc: Constify all Property Date: Fri, 13 Dec 2024 13:07:23 -0600 Message-ID: <20241213190750.2513964-54-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2e; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/ppc/pnv.c | 2 +- hw/ppc/pnv_adu.c | 2 +- hw/ppc/pnv_chiptod.c | 2 +- hw/ppc/pnv_core.c | 4 ++-- hw/ppc/pnv_homer.c | 2 +- hw/ppc/pnv_i2c.c | 2 +- hw/ppc/pnv_lpc.c | 2 +- hw/ppc/pnv_pnor.c | 2 +- hw/ppc/pnv_psi.c | 2 +- hw/ppc/ppc405_uc.c | 2 +- hw/ppc/ppc440_uc.c | 2 +- hw/ppc/ppc4xx_devs.c | 4 ++-- hw/ppc/ppc4xx_sdram.c | 4 ++-- hw/ppc/prep_systemio.c | 2 +- hw/ppc/rs6000_mc.c | 2 +- hw/ppc/spapr_cpu_core.c | 2 +- hw/ppc/spapr_nvdimm.c | 2 +- hw/ppc/spapr_pci.c | 2 +- hw/ppc/spapr_rng.c | 2 +- hw/ppc/spapr_tpm_proxy.c | 2 +- 20 files changed, 23 insertions(+), 23 deletions(-) diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index f0f0d7567d..b90a052ce0 100644 --- a/hw/ppc/pnv.c +++ b/hw/ppc/pnv.c @@ -2422,7 +2422,7 @@ static void pnv_chip_realize(DeviceState *dev, Error **errp) } } -static Property pnv_chip_properties[] = { +static const Property pnv_chip_properties[] = { DEFINE_PROP_UINT32("chip-id", PnvChip, chip_id, 0), DEFINE_PROP_UINT64("ram-start", PnvChip, ram_start, 0), DEFINE_PROP_UINT64("ram-size", PnvChip, ram_size, 0), diff --git a/hw/ppc/pnv_adu.c b/hw/ppc/pnv_adu.c index f636dedf79..646736f7e9 100644 --- a/hw/ppc/pnv_adu.c +++ b/hw/ppc/pnv_adu.c @@ -185,7 +185,7 @@ static void pnv_adu_realize(DeviceState *dev, Error **errp) PNV9_XSCOM_ADU_SIZE); } -static Property pnv_adu_properties[] = { +static const Property pnv_adu_properties[] = { DEFINE_PROP_LINK("lpc", PnvADU, lpc, TYPE_PNV_LPC, PnvLpcController *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ppc/pnv_chiptod.c b/hw/ppc/pnv_chiptod.c index 1e41fe557a..840ef23128 100644 --- a/hw/ppc/pnv_chiptod.c +++ b/hw/ppc/pnv_chiptod.c @@ -450,7 +450,7 @@ static int pnv_chiptod_power9_dt_xscom(PnvXScomInterface *dev, void *fdt, return pnv_chiptod_dt_xscom(dev, fdt, xscom_offset, compat, sizeof(compat)); } -static Property pnv_chiptod_properties[] = { +static const Property pnv_chiptod_properties[] = { DEFINE_PROP_BOOL("primary", PnvChipTOD, primary, false), DEFINE_PROP_BOOL("secondary", PnvChipTOD, secondary, false), DEFINE_PROP_LINK("chip", PnvChipTOD , chip, TYPE_PNV_CHIP, PnvChip *), diff --git a/hw/ppc/pnv_core.c b/hw/ppc/pnv_core.c index e6b02294b1..22864c92f3 100644 --- a/hw/ppc/pnv_core.c +++ b/hw/ppc/pnv_core.c @@ -435,7 +435,7 @@ static void pnv_core_unrealize(DeviceState *dev) g_free(pc->threads); } -static Property pnv_core_properties[] = { +static const Property pnv_core_properties[] = { DEFINE_PROP_UINT32("hwid", PnvCore, hwid, 0), DEFINE_PROP_UINT64("hrmor", PnvCore, hrmor, 0), DEFINE_PROP_BOOL("big-core", PnvCore, big_core, false), @@ -693,7 +693,7 @@ static void pnv_quad_power10_realize(DeviceState *dev, Error **errp) pqc->xscom_qme_size); } -static Property pnv_quad_properties[] = { +static const Property pnv_quad_properties[] = { DEFINE_PROP_UINT32("quad-id", PnvQuad, quad_id, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ppc/pnv_homer.c b/hw/ppc/pnv_homer.c index f9a203d11d..b1f83e2cf2 100644 --- a/hw/ppc/pnv_homer.c +++ b/hw/ppc/pnv_homer.c @@ -412,7 +412,7 @@ static void pnv_homer_realize(DeviceState *dev, Error **errp) hmrc->homer_size); } -static Property pnv_homer_properties[] = { +static const Property pnv_homer_properties[] = { DEFINE_PROP_LINK("chip", PnvHomer, chip, TYPE_PNV_CHIP, PnvChip *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ppc/pnv_i2c.c b/hw/ppc/pnv_i2c.c index eec5047ce8..4bd61abeed 100644 --- a/hw/ppc/pnv_i2c.c +++ b/hw/ppc/pnv_i2c.c @@ -543,7 +543,7 @@ static void pnv_i2c_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out(DEVICE(dev), &i2c->psi_irq, 1); } -static Property pnv_i2c_properties[] = { +static const Property pnv_i2c_properties[] = { DEFINE_PROP_LINK("chip", PnvI2C, chip, TYPE_PNV_CHIP, PnvChip *), DEFINE_PROP_UINT32("engine", PnvI2C, engine, 1), DEFINE_PROP_UINT32("num-busses", PnvI2C, num_busses, 1), diff --git a/hw/ppc/pnv_lpc.c b/hw/ppc/pnv_lpc.c index 8c203d2059..4d47167163 100644 --- a/hw/ppc/pnv_lpc.c +++ b/hw/ppc/pnv_lpc.c @@ -828,7 +828,7 @@ static void pnv_lpc_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out_named(dev, &lpc->psi_irq_lpchc, "LPCHC", 1); } -static Property pnv_lpc_properties[] = { +static const Property pnv_lpc_properties[] = { DEFINE_PROP_BOOL("psi-serirq", PnvLpcController, psi_has_serirq, false), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ppc/pnv_pnor.c b/hw/ppc/pnv_pnor.c index 6280408299..eed6d32650 100644 --- a/hw/ppc/pnv_pnor.c +++ b/hw/ppc/pnv_pnor.c @@ -112,7 +112,7 @@ static void pnv_pnor_realize(DeviceState *dev, Error **errp) TYPE_PNV_PNOR, s->size); } -static Property pnv_pnor_properties[] = { +static const Property pnv_pnor_properties[] = { DEFINE_PROP_INT64("size", PnvPnor, size, 128 * MiB), DEFINE_PROP_DRIVE("drive", PnvPnor, blk), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ppc/pnv_psi.c b/hw/ppc/pnv_psi.c index 37c56882b8..e7d6ceee99 100644 --- a/hw/ppc/pnv_psi.c +++ b/hw/ppc/pnv_psi.c @@ -552,7 +552,7 @@ static int pnv_psi_dt_xscom(PnvXScomInterface *dev, void *fdt, int xscom_offset) return 0; } -static Property pnv_psi_properties[] = { +static const Property pnv_psi_properties[] = { DEFINE_PROP_UINT64("bar", PnvPsi, bar, 0), DEFINE_PROP_UINT64("fsp-bar", PnvPsi, fsp_bar, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ppc/ppc405_uc.c b/hw/ppc/ppc405_uc.c index 58cbd0507a..801f97811f 100644 --- a/hw/ppc/ppc405_uc.c +++ b/hw/ppc/ppc405_uc.c @@ -965,7 +965,7 @@ static void ppc405_cpc_realize(DeviceState *dev, Error **errp) &dcr_read_epcpc, &dcr_write_epcpc); } -static Property ppc405_cpc_properties[] = { +static const Property ppc405_cpc_properties[] = { DEFINE_PROP_UINT32("sys-clk", Ppc405CpcState, sysclk, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ppc/ppc440_uc.c b/hw/ppc/ppc440_uc.c index 1312aa2080..05a5ef6f77 100644 --- a/hw/ppc/ppc440_uc.c +++ b/hw/ppc/ppc440_uc.c @@ -1020,7 +1020,7 @@ static void ppc460ex_pcie_realize(DeviceState *dev, Error **errp) ppc460ex_pcie_register_dcrs(s); } -static Property ppc460ex_pcie_props[] = { +static const Property ppc460ex_pcie_props[] = { DEFINE_PROP_INT32("busnum", PPC460EXPCIEState, num, -1), DEFINE_PROP_INT32("dcrn-base", PPC460EXPCIEState, dcrn_base, -1), DEFINE_PROP_LINK("cpu", PPC460EXPCIEState, cpu, TYPE_POWERPC_CPU, diff --git a/hw/ppc/ppc4xx_devs.c b/hw/ppc/ppc4xx_devs.c index db8f6b9497..530a392f2a 100644 --- a/hw/ppc/ppc4xx_devs.c +++ b/hw/ppc/ppc4xx_devs.c @@ -231,7 +231,7 @@ static void ppc4xx_mal_finalize(Object *obj) g_free(mal->txctpr); } -static Property ppc4xx_mal_properties[] = { +static const Property ppc4xx_mal_properties[] = { DEFINE_PROP_UINT8("txc-num", Ppc4xxMalState, txcnum, 0), DEFINE_PROP_UINT8("rxc-num", Ppc4xxMalState, rxcnum, 0), DEFINE_PROP_END_OF_LIST(), @@ -539,7 +539,7 @@ bool ppc4xx_dcr_realize(Ppc4xxDcrDeviceState *dev, PowerPCCPU *cpu, return sysbus_realize(SYS_BUS_DEVICE(dev), errp); } -static Property ppc4xx_dcr_properties[] = { +static const Property ppc4xx_dcr_properties[] = { DEFINE_PROP_LINK("cpu", Ppc4xxDcrDeviceState, cpu, TYPE_POWERPC_CPU, PowerPCCPU *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ppc/ppc4xx_sdram.c b/hw/ppc/ppc4xx_sdram.c index 2ee21f1ca7..6cfb07a11f 100644 --- a/hw/ppc/ppc4xx_sdram.c +++ b/hw/ppc/ppc4xx_sdram.c @@ -425,7 +425,7 @@ static void ppc4xx_sdram_ddr_realize(DeviceState *dev, Error **errp) s, &sdram_ddr_dcr_read, &sdram_ddr_dcr_write); } -static Property ppc4xx_sdram_ddr_props[] = { +static const Property ppc4xx_sdram_ddr_props[] = { DEFINE_PROP_LINK("dram", Ppc4xxSdramDdrState, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("nbanks", Ppc4xxSdramDdrState, nbanks, 4), @@ -710,7 +710,7 @@ static void ppc4xx_sdram_ddr2_realize(DeviceState *dev, Error **errp) s, &sdram_ddr2_dcr_read, &sdram_ddr2_dcr_write); } -static Property ppc4xx_sdram_ddr2_props[] = { +static const Property ppc4xx_sdram_ddr2_props[] = { DEFINE_PROP_LINK("dram", Ppc4xxSdramDdr2State, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_UINT32("nbanks", Ppc4xxSdramDdr2State, nbanks, 4), diff --git a/hw/ppc/prep_systemio.c b/hw/ppc/prep_systemio.c index 4d3a251ed8..ca475c69f4 100644 --- a/hw/ppc/prep_systemio.c +++ b/hw/ppc/prep_systemio.c @@ -285,7 +285,7 @@ static const VMStateDescription vmstate_prep_systemio = { }, }; -static Property prep_systemio_properties[] = { +static const Property prep_systemio_properties[] = { DEFINE_PROP_UINT8("ibm-planar-id", PrepSystemIoState, ibm_planar_id, 0), DEFINE_PROP_UINT8("equipment", PrepSystemIoState, equipment, 0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/ppc/rs6000_mc.c b/hw/ppc/rs6000_mc.c index 07b0b664d9..bee9bc62d4 100644 --- a/hw/ppc/rs6000_mc.c +++ b/hw/ppc/rs6000_mc.c @@ -207,7 +207,7 @@ static const VMStateDescription vmstate_rs6000mc = { }, }; -static Property rs6000mc_properties[] = { +static const Property rs6000mc_properties[] = { DEFINE_PROP_UINT32("ram-size", RS6000MCState, ram_size, 0), DEFINE_PROP_BOOL("auto-configure", RS6000MCState, autoconfigure, true), DEFINE_PROP_END_OF_LIST() diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index 135f86a622..88d743a3c3 100644 --- a/hw/ppc/spapr_cpu_core.c +++ b/hw/ppc/spapr_cpu_core.c @@ -361,7 +361,7 @@ static void spapr_cpu_core_realize(DeviceState *dev, Error **errp) } } -static Property spapr_cpu_core_properties[] = { +static const Property spapr_cpu_core_properties[] = { DEFINE_PROP_INT32("node-id", SpaprCpuCore, node_id, CPU_UNSET_NUMA_NODE_ID), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/ppc/spapr_nvdimm.c b/hw/ppc/spapr_nvdimm.c index 7d2dfe5e3d..2ef6f29f3d 100644 --- a/hw/ppc/spapr_nvdimm.c +++ b/hw/ppc/spapr_nvdimm.c @@ -884,7 +884,7 @@ static void spapr_nvdimm_unrealize(NVDIMMDevice *dimm) vmstate_unregister(NULL, &vmstate_spapr_nvdimm_states, dimm); } -static Property spapr_nvdimm_properties[] = { +static const Property spapr_nvdimm_properties[] = { #ifdef CONFIG_LIBPMEM DEFINE_PROP_BOOL("pmem-override", SpaprNVDIMMDevice, pmem_override, false), #endif diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index 7e24084673..3edff528ca 100644 --- a/hw/ppc/spapr_pci.c +++ b/hw/ppc/spapr_pci.c @@ -2033,7 +2033,7 @@ static void spapr_phb_reset(DeviceState *qdev) g_hash_table_remove_all(sphb->msi); } -static Property spapr_phb_properties[] = { +static const Property spapr_phb_properties[] = { DEFINE_PROP_UINT32("index", SpaprPhbState, index, -1), DEFINE_PROP_UINT64("mem_win_size", SpaprPhbState, mem_win_size, SPAPR_PCI_MEM32_WIN_SIZE), diff --git a/hw/ppc/spapr_rng.c b/hw/ppc/spapr_rng.c index c2fda7ad20..51c3a54d45 100644 --- a/hw/ppc/spapr_rng.c +++ b/hw/ppc/spapr_rng.c @@ -130,7 +130,7 @@ static void spapr_rng_realize(DeviceState *dev, Error **errp) } } -static Property spapr_rng_properties[] = { +static const Property spapr_rng_properties[] = { DEFINE_PROP_BOOL("use-kvm", SpaprRngState, use_kvm, false), DEFINE_PROP_LINK("rng", SpaprRngState, backend, TYPE_RNG_BACKEND, RngBackend *), diff --git a/hw/ppc/spapr_tpm_proxy.c b/hw/ppc/spapr_tpm_proxy.c index e10af35a18..37521b88cb 100644 --- a/hw/ppc/spapr_tpm_proxy.c +++ b/hw/ppc/spapr_tpm_proxy.c @@ -145,7 +145,7 @@ static void spapr_tpm_proxy_unrealize(DeviceState *d) qemu_unregister_reset(spapr_tpm_proxy_reset, tpm_proxy); } -static Property spapr_tpm_proxy_properties[] = { +static const Property spapr_tpm_proxy_properties[] = { DEFINE_PROP_STRING("host-path", SpaprTpmProxy, host_path), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907708 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35145E77180 for ; Fri, 13 Dec 2024 19:20:32 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB8x-0000ZG-J5; Fri, 13 Dec 2024 14:16:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7A-0006hr-8P for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:18 -0500 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB78-0007ZD-5W for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:15 -0500 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3eb880e5ac2so1019985b6e.2 for ; Fri, 13 Dec 2024 11:14:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117252; x=1734722052; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SrDfnd4nexJqpZXbjwhcsQhh4SvuMhCE9tA8eU5koCw=; b=t/GUh3GyEu893oPCsyUDxnf1WMNcHlDSoio00NRC6/i5DtXhgKSLz+skx7FEu4OI/N kJ2hynA4ifXnKkRdGG0LP6ibsyrA45BBqlNHGIjWDOoathZLTHOtw/zTewbrN6IfpT9C pSVRiyCQOkCnGhnXPRG2gfnqS7m0uYAI7ovhC61Sn3Xp45TDpth8Dniy5JmTkJ92lHbx u3wYHTa0aG5APkY5dlvBUWbhGCHJaeLP0E6dJxDKFAcIrvkGl/otC+KL7s8cJN62d9A7 1yIo3aDtoZgA43LQls6iHAuGcE4+wArWx9QY1NcyeJnZFwG1jd7eQ+5GE3r8dTi+Bkbt +WtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117252; x=1734722052; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SrDfnd4nexJqpZXbjwhcsQhh4SvuMhCE9tA8eU5koCw=; b=RZ0OpAy6Vwko9yITvTaKCzu3S52ez2UzkM1jsqCjI3a05vBXm52KiNdZuO63/mEMa/ 2OFguqwFiWkHegp3G29ENRzSRHHme6f/htaSsW7ejDQO30rgXHyC22WsZba4VNhqbf7J s0CXI9YLlcvJM9jqXMItmGq8E4m1XKlc5/t7lOSiHKMzEZQQ+bbzDJbuJjQ/3GkH70S5 OLameJcj3ECLKEmVsgu8wV0uMg4FcvZb6jb1ekpyYrEHjHgpAZYv+4e87zEOIGiyYdL7 LRIn/IEhtTomvlK6D/fOUyNaylgz7gFzg/+bRnxU60fNiPs4he/6HMbnmQEEY0Y6HQco Tvww== X-Gm-Message-State: AOJu0Yyb4FTTIftth+cWFh0kYU9ZDYociuFrlNytFarsGWZuAE22RF5a 2LQun76a+R5YALOC7q4X2etXfVygeCiGmjkNcROj7M/3igzOoMoqSGMPuiCI6PNhKi4wKzvBJh5 l7zE+n5gr X-Gm-Gg: ASbGncsuyJCZZjapx7D3rW//jjpaall5uZWkGYXhF9Tac0lTCmdKk3wztEQmEETRPcg P74D9UjR90kqCbKp+hCBmDy8RFhDAOaNyjXVgUIuVfMqOs4PV7Okx1znf3ebNlFIHo0ctVuGvJj g2LY8VHLaTbUXBfn8vt5mlko88YIdPJ81u8oLr6S5t8zAk+PBds0bimAq7NWO+1TIxEDYTwQlWT aExox1P5NluYhJ/3y+m8zgVLlIHjzeearz6GFcHvU6a+k5rOrT2vbSFW9xiJoar X-Google-Smtp-Source: AGHT+IHXhM6+cWhPJCruqCEoyGoWYGDjiwRiQ7pUS+Ae3QyN331kWuJNMOv7kOrfzyozCy5qxlE/UQ== X-Received: by 2002:a05:6808:3c47:b0:3eb:8eb0:8166 with SMTP id 5614622812f47-3eba6983205mr1891627b6e.36.1734117252628; Fri, 13 Dec 2024 11:14:12 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:12 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Elena Ufimtseva , Jagannathan Raman Subject: [PATCH 50/71] hw/remote: Constify all Property Date: Fri, 13 Dec 2024 13:07:24 -0600 Message-ID: <20241213190750.2513964-55-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::233; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x233.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Jagannathan Raman --- hw/remote/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/remote/proxy.c b/hw/remote/proxy.c index 302a0a4d4d..6f84fdd3fa 100644 --- a/hw/remote/proxy.c +++ b/hw/remote/proxy.c @@ -191,7 +191,7 @@ static void pci_proxy_write_config(PCIDevice *d, uint32_t addr, uint32_t val, config_op_send(PCI_PROXY_DEV(d), addr, &val, len, MPQEMU_CMD_PCI_CFGWRITE); } -static Property proxy_properties[] = { +static const Property proxy_properties[] = { DEFINE_PROP_STRING("fd", PCIProxyDev, fd), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907714 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BA642E77180 for ; Fri, 13 Dec 2024 19:22:23 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB92-0000zj-D1; Fri, 13 Dec 2024 14:16:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7G-00075u-8W for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:22 -0500 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7C-0007Zk-LA for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:21 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-2a01bcd0143so1103940fac.2 for ; Fri, 13 Dec 2024 11:14:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117255; x=1734722055; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=n5D+8o6Yro+Zz5cVKT8gicnF5oLBwjRb2DvBbHQ0DT4=; b=PpEGeeC9Tu1owfedzcwmhKASjwBf9BxEVafuSIxghO+02QHcu8uYMDCIM95K6BYWUM y6Ns7P+9SbD1dWib5XELepF2lYMIMulfR4bttuwqo6DWlRtW3BkY3zwHrxsOuRKfyA/A OBSVaMwer+XmfQyLFbB1PYS71x2+zJoyI7Zfj6iTJe16dVmvMcUAuozuLoZRtBlXCRhn JBTRXUUfrxgZOliiHMW/BStEVX80NDDXRsjF4Cs0k6UNMaBZ3kDo4uZLEB6l7VYPJ8Ao eTG5Zdf3pS2cqK8Vn15oO9yEY/NW3vyTqIcQ92lirMZjLDhTZew3uYvSzt77aCkLxzLr kFHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117255; x=1734722055; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n5D+8o6Yro+Zz5cVKT8gicnF5oLBwjRb2DvBbHQ0DT4=; b=e74+hGGvb6NHhIN4sxfrBMkPk3jEJxZXCQFFYO1COIUiHPEB+Xki/IQolRWRKSIEg0 y3Bkiwc4Xy3POAD2YY2xm5uPwXvL0VriYIHAdTQlZiJo9OgczSDDmlEkzv1Hq+1Z0yVp 1wtnn2i0sKzyDRSAhUA9pwz9dFVIxgPnvaBGIuTJwNUJIHxAhVrwCqe+6CGA/Nw+1gwy +2+fTaHV9I+OaFY+F/haTpqil9YQA9khkY1LWdTKsvjP0miU7X/1L3dcIiJCtpjC+Yeo ZxvAUHoTnc4yUpXjdr0sqTa0S22hxEHaUQUdSWxpP7xYXkvI9NWqp1y1ifhMSzgP7kDk fG2w== X-Gm-Message-State: AOJu0YxoPrDyY3YjqApxvBZB3Vp2VFyS2S6p3XP/41Vl3A9a9O1aXaUl eMx/8cDUicpesqEH026EPTbZGnqiMzLXneJr8RW8+gcoPCpBR9i3VYJxlgR8A7aemADUaA9/YQ5 4KiR/IDnZ X-Gm-Gg: ASbGncvRwHc9qEieWSKAKa/BpKDVq1xXMrGRqyCwVMKiTgYU6Io+I6O73Qoi43DUGuE v0ej2V2xA9uIw9OXM/iqzSRiHQq8L2fgEiLtX3/QehjWU7jX4U+UPAUvXAVCGahD3bEiXBTTFfN lvDiq3e0Ay7pPnoNth9Y3YPUgo6i+z2bNNmc90TfLNq23PAu+aH98sMB4zpE4o7uU9kKm7lMTTm WkDm72C9opjq3JP5JMpsm84zJMGdTx971RwnGzbXPWcQkuSPyPH3ZaLIX+hkNDr X-Google-Smtp-Source: AGHT+IFhcJeeQrJMN361yXRsu4JxFeL9dGBVLt0J+yFd3Tz9woaBSW+oEzuDMMNoGACH9/iM7xP1dQ== X-Received: by 2002:a05:6808:1887:b0:3eb:556e:dde6 with SMTP id 5614622812f47-3eba6867bb5mr1879165b6e.12.1734117255043; Fri, 13 Dec 2024 11:14:15 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:14 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alistair Francis , Palmer Dabbelt , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , qemu-riscv@nongnu.org (open list:OpenTitan) Subject: [PATCH 51/71] hw/riscv: Constify all Property Date: Fri, 13 Dec 2024 13:07:25 -0600 Message-ID: <20241213190750.2513964-56-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::30; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza --- hw/riscv/opentitan.c | 2 +- hw/riscv/riscv-iommu-pci.c | 2 +- hw/riscv/riscv-iommu.c | 2 +- hw/riscv/riscv_hart.c | 2 +- hw/riscv/sifive_u.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c index e2830e9dc2..8ce85ea9f7 100644 --- a/hw/riscv/opentitan.c +++ b/hw/riscv/opentitan.c @@ -306,7 +306,7 @@ static void lowrisc_ibex_soc_realize(DeviceState *dev_soc, Error **errp) memmap[IBEX_DEV_IBEX_CFG].base, memmap[IBEX_DEV_IBEX_CFG].size); } -static Property lowrisc_ibex_soc_props[] = { +static const Property lowrisc_ibex_soc_props[] = { DEFINE_PROP_UINT32("resetvec", LowRISCIbexSoCState, resetvec, 0x20000400), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/riscv/riscv-iommu-pci.c b/hw/riscv/riscv-iommu-pci.c index a42242532d..a695314bbe 100644 --- a/hw/riscv/riscv-iommu-pci.c +++ b/hw/riscv/riscv-iommu-pci.c @@ -157,7 +157,7 @@ static void riscv_iommu_pci_init(Object *obj) iommu->icvec_avail_vectors = RISCV_IOMMU_PCI_ICVEC_VECTORS; } -static Property riscv_iommu_pci_properties[] = { +static const Property riscv_iommu_pci_properties[] = { DEFINE_PROP_UINT16("vendor-id", RISCVIOMMUStatePci, vendor_id, PCI_VENDOR_ID_REDHAT), DEFINE_PROP_UINT16("device-id", RISCVIOMMUStatePci, device_id, diff --git a/hw/riscv/riscv-iommu.c b/hw/riscv/riscv-iommu.c index bbc95425b3..07fed36986 100644 --- a/hw/riscv/riscv-iommu.c +++ b/hw/riscv/riscv-iommu.c @@ -2235,7 +2235,7 @@ static void riscv_iommu_unrealize(DeviceState *dev) g_hash_table_unref(s->ctx_cache); } -static Property riscv_iommu_properties[] = { +static const Property riscv_iommu_properties[] = { DEFINE_PROP_UINT32("version", RISCVIOMMUState, version, RISCV_IOMMU_SPEC_DOT_VER), DEFINE_PROP_UINT32("bus", RISCVIOMMUState, bus, 0x0), diff --git a/hw/riscv/riscv_hart.c b/hw/riscv/riscv_hart.c index 613ea2aaa0..0df454772f 100644 --- a/hw/riscv/riscv_hart.c +++ b/hw/riscv/riscv_hart.c @@ -27,7 +27,7 @@ #include "hw/qdev-properties.h" #include "hw/riscv/riscv_hart.h" -static Property riscv_harts_props[] = { +static const Property riscv_harts_props[] = { DEFINE_PROP_UINT32("num-harts", RISCVHartArrayState, num_harts, 1), DEFINE_PROP_UINT32("hartid-base", RISCVHartArrayState, hartid_base, 0), DEFINE_PROP_STRING("cpu-type", RISCVHartArrayState, cpu_type), diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index c5e74126b1..124ffd4842 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -936,7 +936,7 @@ static void sifive_u_soc_realize(DeviceState *dev, Error **errp) qdev_get_gpio_in(DEVICE(s->plic), SIFIVE_U_QSPI2_IRQ)); } -static Property sifive_u_soc_props[] = { +static const Property sifive_u_soc_props[] = { DEFINE_PROP_UINT32("serial", SiFiveUSoCState, serial, OTP_SERIAL), DEFINE_PROP_STRING("cpu-type", SiFiveUSoCState, cpu_type), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:07:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907722 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52A8CE77183 for ; Fri, 13 Dec 2024 19:24:56 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB91-0000wa-Lv; Fri, 13 Dec 2024 14:16:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7I-0007Cb-0n for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:24 -0500 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7E-0007aH-IV for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:23 -0500 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3eb7edfa42dso1064065b6e.2 for ; Fri, 13 Dec 2024 11:14:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117257; x=1734722057; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fgBXSP9FXNsZoJNxDWIf4VlbcOnRZTVxU/IcB0k/jaw=; b=XCC4Vo/LtVl6m92Q+zGZPtC4vuRueL/Uct97xqSgnUeVNtX8KMQ9JtcETaSwhtVXCb Oca0UnsEFFcsZQ/x3Wphwqztxwj+F1ukAJxqG9LhdZuHt5wVcDLmejiH5FZ6ILUcKsws zpIr8P+n50PsMYiVt7sD/ZKRk37Fff2xnsQEiCH17EkeeRtrqD6/EJVKuMRPMT0f6rNV VxflSOv4irLjMRSmtvIBiFKGFsqqnye+Dcv6w0z9IuQNE4QpSgTOC97/yBFSYxf5GcBp R5wpNzw91R2hv7B/6LsMBm0B9g59V0bODjOpGhmFGllZQObzcj8ws2VO3KmrwrXH+Dyv Yt+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117257; x=1734722057; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fgBXSP9FXNsZoJNxDWIf4VlbcOnRZTVxU/IcB0k/jaw=; b=ATKOrOOSOVC0Njo5u8p0Oo7AWx7fKk7ZHYkFSa6of0xF+4M7ksUA645RWH9CRbiVSR uJlT7AjKNdIF9lCBqEsEZ1IDcnUB9nYK8TDPff8e02H+ZDJyiG98ITPHWsTlvnCyswvu aoNXz0QfFAruGo7m7ncE2YPsldWhgf91CNjDCTILkVPABjE0seW/hyr6Ev9r4c0lfTYS BVR6Q6gI2qT3EtCfAUaDoLkYibN+oHG3mac/5WKVGx8BnglUyzmlYYH5CU78qFa34mEJ bQ6TMJDsQyx8DHOyq6gUC7z1SRzEgvkDSzrv0sibKUfdBB3Wi8x5wUDO2AlaUzDXhaBG 4g/g== X-Gm-Message-State: AOJu0YyGR7L2R5VCPv1JRBpdzR25thjIKZ4/lZoZ3bOO1T21P0j7vwfr sacvtCBDzicS+CmVG2/0ITmNPV3uLdTKz9gusjMBbfp11fvFwNMdClZ/FSlhovlCjPPgEq+07vN Hv+MILb1s X-Gm-Gg: ASbGncsZefSbOXKoJyDwsL0mRQDKYbPhesxR1nIl3/NmZHH9Qw8dbzmXwwXWe5cfPHn cqobo+dpiTI1UoJ3o5w24ZlFtSj5ynDmPaJuXCu8rh8zcgtQXBq8Af04w+bZmdhviRGpouER7eA Dd9ODPIhkz0tzCjjtwETOmL4T538ooMdEa4rnwtIMhavH5XGUQ8jceWzKUTij+1dAHE41rk1KEy YxtIkemdJhFsCPMUY6IcOZ4yJuBQlETGlPbFdPDNkyrEI5ne+mmPvgsYHw5nWYJ X-Google-Smtp-Source: AGHT+IF6xJ9YwplBiPlVyQaE0cO10s3mBQ5ANS6Yqc4LzVYvpA/0q4/VsxFKqm/Sp4TR4Xh9JxZtSw== X-Received: by 2002:a54:4082:0:b0:3eb:695f:5382 with SMTP id 5614622812f47-3eba686467bmr2111806b6e.13.1734117257266; Fri, 13 Dec 2024 11:14:17 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Beniamino Galvani , Peter Maydell , Strahinja Jankovic , Anup Patel , Alistair Francis , =?utf-8?q?Herv=C3=A9_Poussineau?= , "Michael S. Tsirkin" , Paolo Bonzini , qemu-arm@nongnu.org (open list:Allwinner-a10), qemu-riscv@nongnu.org (open list:Goldfish RTC), qemu-ppc@nongnu.org (open list:PReP) Subject: [PATCH 52/71] hw/rtc: Constify all Property Date: Fri, 13 Dec 2024 13:07:26 -0600 Message-ID: <20241213190750.2513964-57-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22d; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/rtc/allwinner-rtc.c | 2 +- hw/rtc/goldfish_rtc.c | 2 +- hw/rtc/m48t59-isa.c | 2 +- hw/rtc/m48t59.c | 2 +- hw/rtc/mc146818rtc.c | 2 +- hw/rtc/pl031.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/rtc/allwinner-rtc.c b/hw/rtc/allwinner-rtc.c index 1057d6a57f..838db72136 100644 --- a/hw/rtc/allwinner-rtc.c +++ b/hw/rtc/allwinner-rtc.c @@ -311,7 +311,7 @@ static const VMStateDescription allwinner_rtc_vmstate = { } }; -static Property allwinner_rtc_properties[] = { +static const Property allwinner_rtc_properties[] = { DEFINE_PROP_INT32("base-year", AwRtcState, base_year, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/rtc/goldfish_rtc.c b/hw/rtc/goldfish_rtc.c index a6dfbf89f3..389f192efa 100644 --- a/hw/rtc/goldfish_rtc.c +++ b/hw/rtc/goldfish_rtc.c @@ -286,7 +286,7 @@ static void goldfish_rtc_realize(DeviceState *d, Error **errp) s->timer = timer_new_ns(rtc_clock, goldfish_rtc_interrupt, s); } -static Property goldfish_rtc_properties[] = { +static const Property goldfish_rtc_properties[] = { DEFINE_PROP_BOOL("big-endian", GoldfishRTCState, big_endian, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/rtc/m48t59-isa.c b/hw/rtc/m48t59-isa.c index b642b82680..51f80d27ef 100644 --- a/hw/rtc/m48t59-isa.c +++ b/hw/rtc/m48t59-isa.c @@ -77,7 +77,7 @@ static void m48txx_isa_toggle_lock(Nvram *obj, int lock) m48t59_toggle_lock(&d->state, lock); } -static Property m48t59_isa_properties[] = { +static const Property m48t59_isa_properties[] = { DEFINE_PROP_INT32("base-year", M48txxISAState, state.base_year, 0), DEFINE_PROP_UINT32("iobase", M48txxISAState, io_base, 0x74), DEFINE_PROP_UINT8("irq", M48txxISAState, isairq, 8), diff --git a/hw/rtc/m48t59.c b/hw/rtc/m48t59.c index 90299ea56f..5a2c7b4abd 100644 --- a/hw/rtc/m48t59.c +++ b/hw/rtc/m48t59.c @@ -618,7 +618,7 @@ static void m48txx_sysbus_toggle_lock(Nvram *obj, int lock) m48t59_toggle_lock(&d->state, lock); } -static Property m48t59_sysbus_properties[] = { +static const Property m48t59_sysbus_properties[] = { DEFINE_PROP_INT32("base-year", M48txxSysBusState, state.base_year, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/rtc/mc146818rtc.c b/hw/rtc/mc146818rtc.c index 8ccee9a385..973ed9914d 100644 --- a/hw/rtc/mc146818rtc.c +++ b/hw/rtc/mc146818rtc.c @@ -960,7 +960,7 @@ MC146818RtcState *mc146818_rtc_init(ISABus *bus, int base_year, return s; } -static Property mc146818rtc_properties[] = { +static const Property mc146818rtc_properties[] = { DEFINE_PROP_INT32("base_year", MC146818RtcState, base_year, 1980), DEFINE_PROP_UINT16("iobase", MC146818RtcState, io_base, RTC_ISA_BASE), DEFINE_PROP_UINT8("irq", MC146818RtcState, isairq, RTC_ISA_IRQ), diff --git a/hw/rtc/pl031.c b/hw/rtc/pl031.c index 563bb4b446..1dc8e6e00f 100644 --- a/hw/rtc/pl031.c +++ b/hw/rtc/pl031.c @@ -319,7 +319,7 @@ static const VMStateDescription vmstate_pl031 = { } }; -static Property pl031_properties[] = { +static const Property pl031_properties[] = { /* * True to correctly migrate the tick offset of the RTC. False to * obtain backward migration compatibility with older QEMU versions, From patchwork Fri Dec 13 19:07:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907707 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD633E77180 for ; Fri, 13 Dec 2024 19:20:29 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB9F-0001R8-BV; Fri, 13 Dec 2024 14:16:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7I-0007Ch-4w for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:25 -0500 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7F-0007aW-Gl for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:23 -0500 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3eb3c143727so1593571b6e.1 for ; Fri, 13 Dec 2024 11:14:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117259; x=1734722059; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jlJ8lLrTcNh+UZLr82oClr/Y1XecHyMEI7eMV+zr7zU=; b=YPyKohRcQb6yFCDymjolJRAY0t47UEBIjp18xo/aYqMfAKy9U33nEW4jmBjxFu6KKI suwlNJF8P19lUJQnkh+nwOT6nyK6vT9o3tgxvAbkRSIQf57RLvsmjyAdUGXad06tzWDF +psi24uoIloQUpz2AU3xBJSV2ZODwIVXuPYDm5p3+slnspkAzBncDAZRURJcIo+LjB4n Q7rojLDfWHVTmdT4YGXTvzZZSoukCDfRMTs7y6inP7m79t8DcQPURGI/PDZxzKYQ2OIs DLap8B2yNH7pzUUskZZzXOJATxJcvz4cVKcp9XnAb0ZTeC/HFcjexsx9QaiFaWhTcAWQ hYTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117259; x=1734722059; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jlJ8lLrTcNh+UZLr82oClr/Y1XecHyMEI7eMV+zr7zU=; b=S9l4+TwPzHT9f+6GlvwZVtA5ceO/vbjbH53/WII/IejxZ/Igh3N/3lVRQ9ZtefnD0U FdD0pMl0BAfcmz3ZXHsgLTYNb0V7nRAKP29YXOhObJbUfFgS4hQSStZ3x9HeFQm1Yy4D fnmb6CIkSS+SHkjBwL2jOkoDw7yNX2vwX5raBBT60UbWPR0x02GX8+GsXTErx7OTtg2K 1P/38Ul9+Ko7roLHENgeCuCZZmbePwjFQCFrQcapJurO60zscXRLZnQmId1BayAk/VLy GmdgN4U0JC7L8jTj5J3E/9UusIx4P90b2fAawdCMjs4tnTcq/0eH5TJAealXQi0rXvPD maYQ== X-Gm-Message-State: AOJu0Ywv9Do02tN0L41+1BtCZdfQq0xUEXlZoPnKeiBpyab/NKQRjHVP g22GirDw/xGQDZnq7yS5WrtdrQrhovpctdSsP1f3Keb6g+uhq/mp1MbdRimvARW8wn03p+QKpki MQ41AtBUE X-Gm-Gg: ASbGnctXQzKSECzXpOPGL1MA2r9wkTKJ7DFZe7j9qi8TPFvDnRaAs2mIHb2AXLTWNF/ CV1hw4VHNt8i7pEp2EM7PaCDhFa7DdVLBKqOQPfNcWtvlrGiRpw9eOS0RDiHOrdnXapLKbTmeRY Tk1WhPBza9Va9hQSNguBShg2tnrTxFYKac3ciB+MUX5RZq7rnHEsSqhcnDr9+o/xBi5X8XP1pjv 38XKMB6sdEAcXAJ7WYfBOhOObnVrTARK9zEs9zZ6eUKQYyHw6oqjRcv37Ix+xtT X-Google-Smtp-Source: AGHT+IGLg72yAFeqa6ZJCCz13GwcpmvYSp17uW58cxsfPdIjPeNpUKcvFQZoTvNf+oXd1Q7bN58e+Q== X-Received: by 2002:a05:6808:250b:b0:3eb:8236:d17 with SMTP id 5614622812f47-3eb94ef2aa5mr4271856b6e.11.1734117258843; Fri, 13 Dec 2024 11:14:18 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:18 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Yoshinori Sato Subject: [PATCH 53/71] hw/rx: Constify all Property Date: Fri, 13 Dec 2024 13:07:27 -0600 Message-ID: <20241213190750.2513964-58-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/rx/rx62n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/rx/rx62n.c b/hw/rx/rx62n.c index 560f53a58a..dfa27bc94e 100644 --- a/hw/rx/rx62n.c +++ b/hw/rx/rx62n.c @@ -257,7 +257,7 @@ static void rx62n_realize(DeviceState *dev, Error **errp) register_sci(s, 0); } -static Property rx62n_properties[] = { +static const Property rx62n_properties[] = { DEFINE_PROP_LINK("main-bus", RX62NState, sysmem, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_BOOL("load-kernel", RX62NState, kernel, false), From patchwork Fri Dec 13 19:07:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907715 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1EA00E7717F for ; Fri, 13 Dec 2024 19:23:01 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB9I-0001m2-FG; Fri, 13 Dec 2024 14:16:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7I-0007G8-Ux for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:25 -0500 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7G-0007b2-Hi for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:24 -0500 Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3eba5848ee4so361576b6e.3 for ; Fri, 13 Dec 2024 11:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117261; x=1734722061; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4KW4uvX6kcpOG+0vWrOl72mSjdGCdTxn0mYV6Vb8Zew=; b=x3IPk8Kk3h8vSS4PoJz3IS4Uqh/aFr7SzpQc6N7VYJIWh5+NQNWH2Xl+4+Z+mDw5YA hU0WMZpEzRX3rBfvvDw92dJx/7yfK8WAjLqJT7g0gWS65Dz2q0S3VmvID6vuDNRqxbFz KB84KokZXCEFCpWD114LEmHGbpNOZTdgIP9lHIIuPDG/BQJt+7Y14YHAjGQbqwRrTm10 0Gy/SIlweehVhmuOAG3TYa8E+bSqNlQEcbK7IIcn+NsulBUrNCR2xXu1+fZmcPKLqmno XdJjUGdteZtdlKeeYgY9xz7IgFh9FNmDPiKV6QCHWcXFBC9MAzoRCNL5whEUCfD0aGu4 CbTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117261; x=1734722061; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4KW4uvX6kcpOG+0vWrOl72mSjdGCdTxn0mYV6Vb8Zew=; b=TxK9HRJPzb4z2vwiXbZFTjjRmF8let91se7cX139TDgXQkDwW+Q5QUvep2UjUBZK3y MIxhjguD8NIvIuV3EujgwSyV8eb516N0q3rj098mfbEZwWxmFjiM6X3zX9RmZ6lwdtRM BKIygPO6JvA26A30p6aXi/qj34lzdLeP0lfpHNwtWqNtSSXSA6ww0CUFdHs0TC4im++6 LXfMln0xsYeg96yUs/+GOPOwDQr5g/p5wC0gcinMuYtFYVHOsb7Z+UkbJa9HFRqdLOml Ok/YbYI7jVb1ZmxNbfFVjQICBYP/N+OhZVUq1cNTUJbTEbnjbLtLh15J9/pfeTruwoF7 iXrA== X-Gm-Message-State: AOJu0YzDNn6CEXNqiZq20BGdm7LRKWiCWxb4oEWL2wHHucBh2WwPUi+P 2zlAtgQOc2qvLgKJqZbkOAsKNwYzHpa3SbP2kbg8zzT2eJDT+Ws2ul044fqjzKiWR3b8mCueBCx soNCjJUaK X-Gm-Gg: ASbGncsWXMh+mibFE57KKlNi6gpsbPTuRW4cdXjYR+BXNz2gTrdq93ZQg5VzHRHShSa yiVCNHwbGRLwk/dtiivWwxX8QUXFGT/SIt/QlWZ6FR+73Ac3XWbt6feMQh62D7w/ZIHQiH4rdqV ntn/hbBm1m6aJVQ6aNUrMxXJaCeNpSMn4g76cB46F9k51dOvaNbFJiqBzjyQzzG9uA4gvjpnJFp HDGS9T4JcgIoLvFqqDE/Iq7YSuoUblkj4wxNr2hqQ7EIpEx/G0x91x5kSsDow3N X-Google-Smtp-Source: AGHT+IGCIOfGpB/iF/deXHBGaEbXRJ5JTMEFdSRzqxoHGrhegchaBfH6TvuMWEC8/k/jFTHmx2rElQ== X-Received: by 2002:a05:6808:2022:b0:3eb:8442:9fb2 with SMTP id 5614622812f47-3eba693a9c3mr2211714b6e.29.1734117261204; Fri, 13 Dec 2024 11:14:21 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:20 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Halil Pasic , Christian Borntraeger , David Hildenbrand , Ilya Leoshkevich , Eric Farman , Thomas Huth , Matthew Rosato , Cornelia Huck , "Michael S. Tsirkin" , Stefano Garzarella , qemu-s390x@nongnu.org (open list:S390 3270 device) Subject: [PATCH 54/71] hw/s390x: Constify all Property Date: Fri, 13 Dec 2024 13:07:28 -0600 Message-ID: <20241213190750.2513964-59-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::230; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x230.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Eric Farman --- hw/s390x/3270-ccw.c | 2 +- hw/s390x/ccw-device.c | 2 +- hw/s390x/css-bridge.c | 2 +- hw/s390x/ipl.c | 2 +- hw/s390x/s390-pci-bus.c | 2 +- hw/s390x/s390-skeys.c | 2 +- hw/s390x/s390-stattrib.c | 2 +- hw/s390x/vhost-scsi-ccw.c | 2 +- hw/s390x/vhost-user-fs-ccw.c | 2 +- hw/s390x/vhost-vsock-ccw.c | 2 +- hw/s390x/virtio-ccw-9p.c | 2 +- hw/s390x/virtio-ccw-balloon.c | 2 +- hw/s390x/virtio-ccw-blk.c | 2 +- hw/s390x/virtio-ccw-crypto.c | 2 +- hw/s390x/virtio-ccw-gpu.c | 2 +- hw/s390x/virtio-ccw-input.c | 2 +- hw/s390x/virtio-ccw-net.c | 2 +- hw/s390x/virtio-ccw-rng.c | 2 +- hw/s390x/virtio-ccw-scsi.c | 2 +- hw/s390x/virtio-ccw-serial.c | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/hw/s390x/3270-ccw.c b/hw/s390x/3270-ccw.c index 69e6783ade..f48a14ca2c 100644 --- a/hw/s390x/3270-ccw.c +++ b/hw/s390x/3270-ccw.c @@ -150,7 +150,7 @@ out_err: g_free(sch); } -static Property emulated_ccw_3270_properties[] = { +static const Property emulated_ccw_3270_properties[] = { DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/s390x/ccw-device.c b/hw/s390x/ccw-device.c index 30f2fb486f..0d10c3ed55 100644 --- a/hw/s390x/ccw-device.c +++ b/hw/s390x/ccw-device.c @@ -81,7 +81,7 @@ const PropertyInfo ccw_loadparm = { .set = ccw_device_set_loadparm, }; -static Property ccw_device_properties[] = { +static const Property ccw_device_properties[] = { DEFINE_PROP_CSS_DEV_ID("devno", CcwDevice, devno), DEFINE_PROP_CSS_DEV_ID_RO("dev_id", CcwDevice, dev_id), DEFINE_PROP_CSS_DEV_ID_RO("subch_id", CcwDevice, subch_id), diff --git a/hw/s390x/css-bridge.c b/hw/s390x/css-bridge.c index 8657ff7bf4..860a04a7da 100644 --- a/hw/s390x/css-bridge.c +++ b/hw/s390x/css-bridge.c @@ -120,7 +120,7 @@ VirtualCssBus *virtual_css_bus_init(void) /***************** Virtual-css Bus Bridge Device ********************/ -static Property virtual_css_bridge_properties[] = { +static const Property virtual_css_bridge_properties[] = { DEFINE_PROP_BOOL("css_dev_path", VirtualCssBridge, css_dev_path, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c index 30734661ad..88a97f0085 100644 --- a/hw/s390x/ipl.c +++ b/hw/s390x/ipl.c @@ -291,7 +291,7 @@ static void s390_ipl_realize(DeviceState *dev, Error **errp) qemu_register_reset(resettable_cold_reset_fn, dev); } -static Property s390_ipl_properties[] = { +static const Property s390_ipl_properties[] = { DEFINE_PROP_STRING("kernel", S390IPLState, kernel), DEFINE_PROP_STRING("initrd", S390IPLState, initrd), DEFINE_PROP_STRING("cmdline", S390IPLState, cmdline), diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c index 40b2567aa7..22e6be67af 100644 --- a/hw/s390x/s390-pci-bus.c +++ b/hw/s390x/s390-pci-bus.c @@ -1481,7 +1481,7 @@ static const PropertyInfo s390_pci_fid_propinfo = { #define DEFINE_PROP_S390_PCI_FID(_n, _s, _f) \ DEFINE_PROP(_n, _s, _f, s390_pci_fid_propinfo, uint32_t) -static Property s390_pci_device_properties[] = { +static const Property s390_pci_device_properties[] = { DEFINE_PROP_UINT16("uid", S390PCIBusDevice, uid, UID_UNDEFINED), DEFINE_PROP_S390_PCI_FID("fid", S390PCIBusDevice, fid), DEFINE_PROP_STRING("target", S390PCIBusDevice, target), diff --git a/hw/s390x/s390-skeys.c b/hw/s390x/s390-skeys.c index bf22d6863e..6d0a47ed73 100644 --- a/hw/s390x/s390-skeys.c +++ b/hw/s390x/s390-skeys.c @@ -475,7 +475,7 @@ static void s390_skeys_realize(DeviceState *dev, Error **errp) } } -static Property s390_skeys_props[] = { +static const Property s390_skeys_props[] = { DEFINE_PROP_BOOL("migration-enabled", S390SKeysState, migration_enabled, true), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/s390x/s390-stattrib.c b/hw/s390x/s390-stattrib.c index c4259b5327..6c69c01e1f 100644 --- a/hw/s390x/s390-stattrib.c +++ b/hw/s390x/s390-stattrib.c @@ -360,7 +360,7 @@ static void s390_stattrib_realize(DeviceState *dev, Error **errp) &savevm_s390_stattrib_handlers, dev); } -static Property s390_stattrib_props[] = { +static const Property s390_stattrib_props[] = { DEFINE_PROP_BOOL("migration-enabled", S390StAttribState, migration_enabled, true), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/s390x/vhost-scsi-ccw.c b/hw/s390x/vhost-scsi-ccw.c index 40dc14bbc7..0be0f8a82c 100644 --- a/hw/s390x/vhost-scsi-ccw.c +++ b/hw/s390x/vhost-scsi-ccw.c @@ -41,7 +41,7 @@ static void vhost_ccw_scsi_instance_init(Object *obj) TYPE_VHOST_SCSI); } -static Property vhost_ccw_scsi_properties[] = { +static const Property vhost_ccw_scsi_properties[] = { DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, VIRTIO_CCW_MAX_REV), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/s390x/vhost-user-fs-ccw.c b/hw/s390x/vhost-user-fs-ccw.c index 6c6f269293..934378aaec 100644 --- a/hw/s390x/vhost-user-fs-ccw.c +++ b/hw/s390x/vhost-user-fs-ccw.c @@ -23,7 +23,7 @@ typedef struct VHostUserFSCcw { OBJECT_CHECK(VHostUserFSCcw, (obj), TYPE_VHOST_USER_FS_CCW) -static Property vhost_user_fs_ccw_properties[] = { +static const Property vhost_user_fs_ccw_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/vhost-vsock-ccw.c b/hw/s390x/vhost-vsock-ccw.c index 07845a9a00..3ba4008b4b 100644 --- a/hw/s390x/vhost-vsock-ccw.c +++ b/hw/s390x/vhost-vsock-ccw.c @@ -22,7 +22,7 @@ struct VHostVSockCCWState { VHostVSock vdev; }; -static Property vhost_vsock_ccw_properties[] = { +static const Property vhost_vsock_ccw_properties[] = { DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, VIRTIO_CCW_MAX_REV), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/s390x/virtio-ccw-9p.c b/hw/s390x/virtio-ccw-9p.c index 6f931f5994..c10b084d40 100644 --- a/hw/s390x/virtio-ccw-9p.c +++ b/hw/s390x/virtio-ccw-9p.c @@ -41,7 +41,7 @@ static void virtio_ccw_9p_instance_init(Object *obj) TYPE_VIRTIO_9P); } -static Property virtio_ccw_9p_properties[] = { +static const Property virtio_ccw_9p_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-balloon.c b/hw/s390x/virtio-ccw-balloon.c index 44287b9bbe..bbbed494b3 100644 --- a/hw/s390x/virtio-ccw-balloon.c +++ b/hw/s390x/virtio-ccw-balloon.c @@ -46,7 +46,7 @@ static void virtio_ccw_balloon_instance_init(Object *obj) "guest-stats-polling-interval"); } -static Property virtio_ccw_balloon_properties[] = { +static const Property virtio_ccw_balloon_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-blk.c b/hw/s390x/virtio-ccw-blk.c index 2364432c6e..3182851234 100644 --- a/hw/s390x/virtio-ccw-blk.c +++ b/hw/s390x/virtio-ccw-blk.c @@ -43,7 +43,7 @@ static void virtio_ccw_blk_instance_init(Object *obj) "bootindex"); } -static Property virtio_ccw_blk_properties[] = { +static const Property virtio_ccw_blk_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-crypto.c b/hw/s390x/virtio-ccw-crypto.c index 0fa2f89443..b4cd7605c9 100644 --- a/hw/s390x/virtio-ccw-crypto.c +++ b/hw/s390x/virtio-ccw-crypto.c @@ -44,7 +44,7 @@ static void virtio_ccw_crypto_instance_init(Object *obj) TYPE_VIRTIO_CRYPTO); } -static Property virtio_ccw_crypto_properties[] = { +static const Property virtio_ccw_crypto_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-gpu.c b/hw/s390x/virtio-ccw-gpu.c index 0642c5281d..c44dc2d355 100644 --- a/hw/s390x/virtio-ccw-gpu.c +++ b/hw/s390x/virtio-ccw-gpu.c @@ -42,7 +42,7 @@ static void virtio_ccw_gpu_instance_init(Object *obj) TYPE_VIRTIO_GPU); } -static Property virtio_ccw_gpu_properties[] = { +static const Property virtio_ccw_gpu_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-input.c b/hw/s390x/virtio-ccw-input.c index 61a07ba38d..040a9e04a9 100644 --- a/hw/s390x/virtio-ccw-input.c +++ b/hw/s390x/virtio-ccw-input.c @@ -43,7 +43,7 @@ static void virtio_ccw_input_realize(VirtioCcwDevice *ccw_dev, Error **errp) qdev_realize(vdev, BUS(&ccw_dev->bus), errp); } -static Property virtio_ccw_input_properties[] = { +static const Property virtio_ccw_input_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-net.c b/hw/s390x/virtio-ccw-net.c index a4a3f65c7e..c41d347034 100644 --- a/hw/s390x/virtio-ccw-net.c +++ b/hw/s390x/virtio-ccw-net.c @@ -46,7 +46,7 @@ static void virtio_ccw_net_instance_init(Object *obj) "bootindex"); } -static Property virtio_ccw_net_properties[] = { +static const Property virtio_ccw_net_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-rng.c b/hw/s390x/virtio-ccw-rng.c index a3fffb5138..c9a15c4eb6 100644 --- a/hw/s390x/virtio-ccw-rng.c +++ b/hw/s390x/virtio-ccw-rng.c @@ -43,7 +43,7 @@ static void virtio_ccw_rng_instance_init(Object *obj) TYPE_VIRTIO_RNG); } -static Property virtio_ccw_rng_properties[] = { +static const Property virtio_ccw_rng_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-scsi.c b/hw/s390x/virtio-ccw-scsi.c index d003f89f43..bec9a73518 100644 --- a/hw/s390x/virtio-ccw-scsi.c +++ b/hw/s390x/virtio-ccw-scsi.c @@ -53,7 +53,7 @@ static void virtio_ccw_scsi_instance_init(Object *obj) TYPE_VIRTIO_SCSI); } -static Property virtio_ccw_scsi_properties[] = { +static const Property virtio_ccw_scsi_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, diff --git a/hw/s390x/virtio-ccw-serial.c b/hw/s390x/virtio-ccw-serial.c index 8f8d2302f8..037d4f9db1 100644 --- a/hw/s390x/virtio-ccw-serial.c +++ b/hw/s390x/virtio-ccw-serial.c @@ -53,7 +53,7 @@ static void virtio_ccw_serial_instance_init(Object *obj) TYPE_VIRTIO_SERIAL); } -static Property virtio_ccw_serial_properties[] = { +static const Property virtio_ccw_serial_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtioCcwDevice, flags, VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev, From patchwork Fri Dec 13 19:07:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907713 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62377E7717F for ; Fri, 13 Dec 2024 19:22:21 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB97-00017B-L6; Fri, 13 Dec 2024 14:16:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7O-0007SV-0c for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:30 -0500 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7I-0007bh-WC for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:26 -0500 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-29ff039dab2so1026653fac.3 for ; Fri, 13 Dec 2024 11:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117264; x=1734722064; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DWJFCtfZ2w3RHGCdV+UIqP2KUY8RC4HX5Q5Yyp1FU9E=; b=g+eoQ4DnfqQ0kFfK+L/0/A1+hf9mr2ppp0fzdLhPlssE3yIsgDU0HN1OuM1vEerzsm c0pnYy1O5qkU1e4svLA8SLpCXOkqvfecrdRX6cR8rNKVT8QtaMU5cpkCRU4cd/G0WlIP 4ambk8SqVth0ug9lnymhELD192lAh7l0tA8eu1amx95HUvYs1TBt8lbZgovJKQYNA9u4 M24N7vycUvO26pftCcd9vR8JdeguonCgFsbv1PsJKb/gYThpShj+WXHCQMBEiJ/KeDxC q7bBBzUytNoHlvS++l+Tr6A//T++Ma3ljKI5VOqNvcz7GZ9saqfiT1pqQFbr1jqj8KEw X7ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117264; x=1734722064; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DWJFCtfZ2w3RHGCdV+UIqP2KUY8RC4HX5Q5Yyp1FU9E=; b=BeACEJGKBWOn0vAbiz30dcdM02OO/GoFCwCHV50uC8c8vj9sty4gUsaAmC1BoFlGk/ gORdnviSe1cymtAu9CaVENlIqbM9jsivkkweG7zBIAPkI542fkzXR+RJCnYaFxg2PC38 jfQnASjttihVSwqFphMawJ1oXbFU+4ip1TKa/e+XTd977b+HOOzThRXENPy0jw4Ri/EU usbYZzXgq0mzaIb1ewHBHTefwOEkgKQ2sMvwYrt20j3madkDWHdsMlIOQuGUShtDNYZ1 mWfTKLgzKNWtWJjlJYiYG4QsHJQLmD9X7o7Z8Be3eZfPTbo8RLeWLup0ZY4D++te8w45 7QDw== X-Gm-Message-State: AOJu0Yy1IjumYXQEY739RHJi4u1zCHmyCV18mD0RTpSzhZbICZaHLZus 01hbkSNRmSUse5GgoQIq03FIhIj8dKxdj+0jE1Tnms6w6Y/uLm/bo5rHfAqRc3/o6lN0EfWktnV za5CJdQkv X-Gm-Gg: ASbGncszxsvyDRESQglFSN34m4cQsZadnsVnPYdAIG9J9BS9hejSXnmPc95s17/LZF5 ifSWdbmzhCmZintazOxomB2C1x16D/9sqOApSo4+RIpw2oFJNrLXOJY193dXvjpz2eQ+4c/OrLQ bxeRzxZu/O7i06l8wIht4JDtO1BGgfH+un5xWxrVungEYhKiWX+EeSu0/BkYmGYyNRUTERkKhHt fDLcp8vZI4muXi3ykd0R4bE+Z3D8ioVdwzzdV4vZVGzXNyP6D1kUkmOuX4T0coP X-Google-Smtp-Source: AGHT+IGNXrCaGxsBPywxVZ4GCh/w4MPht+bRedsnh2I/OWNK0MSbIhWxY7wlKgBkz6ltwJdlJfdNZA== X-Received: by 2002:a05:6808:1596:b0:3ea:37a7:394 with SMTP id 5614622812f47-3eba6955bd8mr1970897b6e.34.1734117263825; Fri, 13 Dec 2024 11:14:23 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:23 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Fam Zheng , Hannes Reinecke , Nicholas Piggin , Daniel Henrique Barboza , Harsh Prateek Bora , "Michael S. Tsirkin" , Stefano Garzarella , Raphael Norwitz , Dmitry Fleytman , qemu-block@nongnu.org (open list:megasas), qemu-ppc@nongnu.org (open list:sPAPR (pseries)) Subject: [PATCH 55/71] hw/scsi: Constify all Property Date: Fri, 13 Dec 2024 13:07:29 -0600 Message-ID: <20241213190750.2513964-60-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2e; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/scsi/megasas.c | 6 +++--- hw/scsi/mptsas.c | 2 +- hw/scsi/scsi-bus.c | 2 +- hw/scsi/scsi-disk.c | 6 +++--- hw/scsi/scsi-generic.c | 2 +- hw/scsi/spapr_vscsi.c | 2 +- hw/scsi/vhost-scsi.c | 2 +- hw/scsi/vhost-user-scsi.c | 2 +- hw/scsi/virtio-scsi.c | 2 +- hw/scsi/vmw_pvscsi.c | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c index df58aeb995..8323cd18e3 100644 --- a/hw/scsi/megasas.c +++ b/hw/scsi/megasas.c @@ -2448,7 +2448,7 @@ static void megasas_scsi_realize(PCIDevice *dev, Error **errp) scsi_bus_init(&s->bus, sizeof(s->bus), DEVICE(dev), &megasas_scsi_info); } -static Property megasas_properties_gen1[] = { +static const Property megasas_properties_gen1[] = { DEFINE_PROP_UINT32("max_sge", MegasasState, fw_sge, MEGASAS_DEFAULT_SGE), DEFINE_PROP_UINT32("max_cmds", MegasasState, fw_cmds, @@ -2462,7 +2462,7 @@ static Property megasas_properties_gen1[] = { DEFINE_PROP_END_OF_LIST(), }; -static Property megasas_properties_gen2[] = { +static const Property megasas_properties_gen2[] = { DEFINE_PROP_UINT32("max_sge", MegasasState, fw_sge, MEGASAS_DEFAULT_SGE), DEFINE_PROP_UINT32("max_cmds", MegasasState, fw_cmds, @@ -2487,7 +2487,7 @@ typedef struct MegasasInfo { int mmio_bar; int osts; const VMStateDescription *vmsd; - Property *props; + const Property *props; InterfaceInfo *interfaces; } MegasasInfo; diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c index c6bc3479e9..a06113d908 100644 --- a/hw/scsi/mptsas.c +++ b/hw/scsi/mptsas.c @@ -1410,7 +1410,7 @@ static const VMStateDescription vmstate_mptsas = { } }; -static Property mptsas_properties[] = { +static const Property mptsas_properties[] = { DEFINE_PROP_UINT64("sas_address", MPTSASState, sas_addr, 0), /* TODO: test MSI support under Windows */ DEFINE_PROP_ON_OFF_AUTO("msi", MPTSASState, msi, ON_OFF_AUTO_AUTO), diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c index 53eff5dd3d..2f1678d51e 100644 --- a/hw/scsi/scsi-bus.c +++ b/hw/scsi/scsi-bus.c @@ -1943,7 +1943,7 @@ const VMStateDescription vmstate_scsi_device = { } }; -static Property scsi_props[] = { +static const Property scsi_props[] = { DEFINE_PROP_UINT32("channel", SCSIDevice, channel, 0), DEFINE_PROP_UINT32("scsi-id", SCSIDevice, id, -1), DEFINE_PROP_UINT32("lun", SCSIDevice, lun, -1), diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c index 7f13b0588f..a47b80907f 100644 --- a/hw/scsi/scsi-disk.c +++ b/hw/scsi/scsi-disk.c @@ -3207,7 +3207,7 @@ static const TypeInfo scsi_disk_base_info = { DEFINE_PROP_BOOL("migrate-emulated-scsi-request", SCSIDiskState, migrate_emulated_scsi_request, true) -static Property scsi_hd_properties[] = { +static const Property scsi_hd_properties[] = { DEFINE_SCSI_DISK_PROPERTIES(), DEFINE_PROP_BIT("removable", SCSIDiskState, features, SCSI_DISK_F_REMOVABLE, false), @@ -3267,7 +3267,7 @@ static const TypeInfo scsi_hd_info = { .class_init = scsi_hd_class_initfn, }; -static Property scsi_cd_properties[] = { +static const Property scsi_cd_properties[] = { DEFINE_SCSI_DISK_PROPERTIES(), DEFINE_PROP_UINT64("wwn", SCSIDiskState, qdev.wwn, 0), DEFINE_PROP_UINT64("port_wwn", SCSIDiskState, qdev.port_wwn, 0), @@ -3310,7 +3310,7 @@ static const TypeInfo scsi_cd_info = { }; #ifdef __linux__ -static Property scsi_block_properties[] = { +static const Property scsi_block_properties[] = { DEFINE_BLOCK_ERROR_PROPERTIES(SCSIDiskState, qdev.conf), DEFINE_PROP_DRIVE("drive", SCSIDiskState, qdev.conf.blk), DEFINE_PROP_BOOL("share-rw", SCSIDiskState, qdev.conf.share_rw, false), diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c index 76f04a5ee8..d7ae7549d0 100644 --- a/hw/scsi/scsi-generic.c +++ b/hw/scsi/scsi-generic.c @@ -772,7 +772,7 @@ static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun, return scsi_req_alloc(&scsi_generic_req_ops, d, tag, lun, hba_private); } -static Property scsi_generic_properties[] = { +static const Property scsi_generic_properties[] = { DEFINE_PROP_DRIVE("drive", SCSIDevice, conf.blk), DEFINE_PROP_BOOL("share-rw", SCSIDevice, conf.share_rw, false), DEFINE_PROP_UINT32("io_timeout", SCSIDevice, io_timeout, diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c index c75a6c8807..7c55e4d40f 100644 --- a/hw/scsi/spapr_vscsi.c +++ b/hw/scsi/spapr_vscsi.c @@ -1250,7 +1250,7 @@ static int spapr_vscsi_devnode(SpaprVioDevice *dev, void *fdt, int node_off) return 0; } -static Property spapr_vscsi_properties[] = { +static const Property spapr_vscsi_properties[] = { DEFINE_SPAPR_PROPERTIES(VSCSIState, vdev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/scsi/vhost-scsi.c b/hw/scsi/vhost-scsi.c index 22d16dc26b..effb8dab1f 100644 --- a/hw/scsi/vhost-scsi.c +++ b/hw/scsi/vhost-scsi.c @@ -343,7 +343,7 @@ static struct vhost_dev *vhost_scsi_get_vhost(VirtIODevice *vdev) return &vsc->dev; } -static Property vhost_scsi_properties[] = { +static const Property vhost_scsi_properties[] = { DEFINE_PROP_STRING("vhostfd", VirtIOSCSICommon, conf.vhostfd), DEFINE_PROP_STRING("wwpn", VirtIOSCSICommon, conf.wwpn), DEFINE_PROP_UINT32("boot_tpgt", VirtIOSCSICommon, conf.boot_tpgt, 0), diff --git a/hw/scsi/vhost-user-scsi.c b/hw/scsi/vhost-user-scsi.c index 55e4be5b34..d5265c57bc 100644 --- a/hw/scsi/vhost-user-scsi.c +++ b/hw/scsi/vhost-user-scsi.c @@ -341,7 +341,7 @@ static void vhost_user_scsi_unrealize(DeviceState *dev) virtio_scsi_common_unrealize(dev); } -static Property vhost_user_scsi_properties[] = { +static const Property vhost_user_scsi_properties[] = { DEFINE_PROP_CHR("chardev", VirtIOSCSICommon, conf.chardev), DEFINE_PROP_UINT32("boot_tpgt", VirtIOSCSICommon, conf.boot_tpgt, 0), DEFINE_PROP_UINT32("num_queues", VirtIOSCSICommon, conf.num_queues, diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index 6637cfeaf5..c0a4f1a620 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -1285,7 +1285,7 @@ static void virtio_scsi_device_unrealize(DeviceState *dev) qemu_mutex_destroy(&s->tmf_bh_lock); } -static Property virtio_scsi_properties[] = { +static const Property virtio_scsi_properties[] = { DEFINE_PROP_UINT32("num_queues", VirtIOSCSI, parent_obj.conf.num_queues, VIRTIO_SCSI_AUTO_NUM_QUEUES), DEFINE_PROP_UINT32("virtqueue_size", VirtIOSCSI, diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c index 57761b5594..46cec531cc 100644 --- a/hw/scsi/vmw_pvscsi.c +++ b/hw/scsi/vmw_pvscsi.c @@ -1296,7 +1296,7 @@ static const VMStateDescription vmstate_pvscsi = { } }; -static Property pvscsi_properties[] = { +static const Property pvscsi_properties[] = { DEFINE_PROP_UINT8("use_msg", PVSCSIState, use_msg, 1), DEFINE_PROP_BIT("x-old-pci-configuration", PVSCSIState, compat_flags, PVSCSI_COMPAT_OLD_PCI_CONFIGURATION_BIT, false), From patchwork Fri Dec 13 19:07:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907699 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B0D6E7717F for ; Fri, 13 Dec 2024 19:18:02 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB9I-0001lb-Fj; Fri, 13 Dec 2024 14:16:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7R-0007Xo-4D for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:33 -0500 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7M-0007cO-3q for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:31 -0500 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-2a0206590a7so935341fac.0 for ; Fri, 13 Dec 2024 11:14:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117266; x=1734722066; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pcaNS/gxnqi2fcS2Nr3KkJaxwBrXTBr+IuvckqUS1nY=; b=ik2eKMeE9ydojWDyHu41qTyvEkbA+sPhBIOG4YCHgph40TD4jQonZb9deJSDeTqo7t 1bYfhNS3wUnqZUL5hmsoSzQL6GhaGfQWAV1HaVJmF0q1DkG6oSSlyRZBs7j0WRj8Ltj8 E2ExWOs0kGjd8uFo75Y7rZhJWKg28YdHLn2sMLus//kCL7tZdo+GqYCxRafH+1CvixlD BgKhcehpCha2+KDN3kefZEjOse9ja5e2C3O/4rY4QUXDvTbd7D7eM9LXZVyA/MOfHMUU LPRrWoFbuOPkcCeQ0JvnTQmjGaUSTGVeXgfdPdQnbSXgOS+SpAuB/Gl4Z3z8rlx8R85u XJeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117266; x=1734722066; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pcaNS/gxnqi2fcS2Nr3KkJaxwBrXTBr+IuvckqUS1nY=; b=ePM/A8OqbEdMZhDETr41jgsrTolWcJ7B1nDBM6+isNf7D2enl6ZkbSbmxW3sE6jwKJ 1w28lHyMWRjz4oKbDbhT1zT5oD1mh6CpaDa+8jGFAviLx5tp/KKlSNhU7vp2xL5kqaJy 2/BvWCjePF+B0QrG6p0ZrEfSPMr6nx/TTPOKIJnRrJhSdD+Ldqih8DctTW7KraH1qi/d 99kvKs5Wk1VwsKSzTCoNDdlcT2jDqxlBLq8ljYTRF08WS8rw7Rt31oGXWq2yQS7ucnBT NWirgZsPHntWwqJ+P/XZN7tJ5S2hWK/50DwJ2J6Cwt6/+rtlUWGk4MgHxOzZ4k06XOM+ g8MA== X-Gm-Message-State: AOJu0YzMVY/2UNmW+aKu6XZlLa0yZ3pM2W3bU1SCsX50NmADluKH0SlO mhQddjm7eNbjlOP0bMGdn502jeIvcX2kz/EaC7uw7KPOM9l9XOewKUVMLzTfEURqHfmtYkA5Pi0 2fMTLrG7g X-Gm-Gg: ASbGncvTCEphAW8TkdaR9Pqgon0XpAjZbWBk+0Bfhp4PcwsAVF/6coDaG9tRTuGY9Td vDInDfDJrCJMh13rfbqPSs3OadnWWZAbpmEzHVU9QenOp8YDYF4d3amU9beo4On2uUvw16ya++m mxOC6YH3z6wnPlczinNJ0b/hzvZpQd9tGSs/BSAJ1s3Xx3BH1tAGCYQ5q3kwddd6aoQu5X16Zys elfNLH68wCN5cu01f95VtsC5ZjQCFWy3pw73CBLNnExB2u7KEH4QA3ox7Mlw/x/ X-Google-Smtp-Source: AGHT+IEZQOzM8KT/fK5jdnLzpoF2HQUPsIExdGbu7vSU3jXS/UJrRkvC/I406ZLiiB8rMccolcNhWA== X-Received: by 2002:a05:6808:14c5:b0:3e7:edd9:8eb1 with SMTP id 5614622812f47-3eba6815da8mr2506800b6e.1.1734117266034; Fri, 13 Dec 2024 11:14:26 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:25 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Beniamino Galvani , Peter Maydell , Strahinja Jankovic , =?utf-8?q?C=C3=A9dric_?= =?utf-8?q?Le_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Bin Meng , qemu-arm@nongnu.org (open list:Allwinner-a10), qemu-block@nongnu.org (open list:SD (Secure Card)) Subject: [PATCH 56/71] hw/sd: Constify all Property Date: Fri, 13 Dec 2024 13:07:30 -0600 Message-ID: <20241213190750.2513964-61-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2d; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater --- hw/sd/allwinner-sdhost.c | 2 +- hw/sd/aspeed_sdhci.c | 2 +- hw/sd/sd.c | 6 +++--- hw/sd/sdhci-pci.c | 2 +- hw/sd/sdhci.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/sd/allwinner-sdhost.c b/hw/sd/allwinner-sdhost.c index bcfb4c1322..be39ec2e71 100644 --- a/hw/sd/allwinner-sdhost.c +++ b/hw/sd/allwinner-sdhost.c @@ -808,7 +808,7 @@ static const VMStateDescription vmstate_allwinner_sdhost = { } }; -static Property allwinner_sdhost_properties[] = { +static const Property allwinner_sdhost_properties[] = { DEFINE_PROP_LINK("dma-memory", AwSdHostState, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/sd/aspeed_sdhci.c b/hw/sd/aspeed_sdhci.c index f82b05397e..99703f1842 100644 --- a/hw/sd/aspeed_sdhci.c +++ b/hw/sd/aspeed_sdhci.c @@ -204,7 +204,7 @@ static const VMStateDescription vmstate_aspeed_sdhci = { }, }; -static Property aspeed_sdhci_properties[] = { +static const Property aspeed_sdhci_properties[] = { DEFINE_PROP_UINT8("num-slots", AspeedSDHCIState, num_slots, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/sd/sd.c b/hw/sd/sd.c index f9bd03f3fd..b994ef581e 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -2798,18 +2798,18 @@ static void emmc_realize(DeviceState *dev, Error **errp) sd_realize(dev, errp); } -static Property sdmmc_common_properties[] = { +static const Property sdmmc_common_properties[] = { DEFINE_PROP_DRIVE("drive", SDState, blk), DEFINE_PROP_END_OF_LIST() }; -static Property sd_properties[] = { +static const Property sd_properties[] = { DEFINE_PROP_UINT8("spec_version", SDState, spec_version, SD_PHY_SPECv3_01_VERS), DEFINE_PROP_END_OF_LIST() }; -static Property emmc_properties[] = { +static const Property emmc_properties[] = { DEFINE_PROP_UINT64("boot-partition-size", SDState, boot_part_size, 0), DEFINE_PROP_UINT8("boot-config", SDState, boot_config, 0x0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/sd/sdhci-pci.c b/hw/sd/sdhci-pci.c index 9b7bee8b3f..83892a7a15 100644 --- a/hw/sd/sdhci-pci.c +++ b/hw/sd/sdhci-pci.c @@ -22,7 +22,7 @@ #include "hw/sd/sdhci.h" #include "sdhci-internal.h" -static Property sdhci_pci_properties[] = { +static const Property sdhci_pci_properties[] = { DEFINE_SDHCI_COMMON_PROPERTIES(SDHCIState), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 37875c02c3..e697ee05b3 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -1544,7 +1544,7 @@ void sdhci_common_class_init(ObjectClass *klass, void *data) /* --- qdev SysBus --- */ -static Property sdhci_sysbus_properties[] = { +static const Property sdhci_sysbus_properties[] = { DEFINE_SDHCI_COMMON_PROPERTIES(SDHCIState), DEFINE_PROP_BOOL("pending-insert-quirk", SDHCIState, pending_insert_quirk, false), From patchwork Fri Dec 13 19:07:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907783 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 83E7DE77180 for ; Fri, 13 Dec 2024 19:37:10 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB9H-0001YW-24; Fri, 13 Dec 2024 14:16:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7V-0007dV-6R for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:38 -0500 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7O-0007cg-Rm for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:34 -0500 Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3e63e5c0c50so1018045b6e.0 for ; Fri, 13 Dec 2024 11:14:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117267; x=1734722067; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rpq4UUf6dVqmk0jMJhoczKkqUStkLqI71UYDr3fDwHQ=; b=qhIA9E41vo+5jnrVNuMubUBYjGSCxvHJfWJPs2kQhS/BEd4Gd3lIKFMwi9OMRNrDxP bHUJPksLlQ5ZZjPwZue6ymaSzJsb/JVL713eVgxKwA+ufE9/5V7NQqn6xU5doiDLV0ze d+uItq5I1BpMaBWdHKhhr33ZtOw2CfFM7f51ftecjnZ5hHoxdxDKw1aGVxl9Z+Nsa3oG pZUSPUFyzb8K+9Kl8SqnRjeBmpOWoGVBCSTZYVSQu+OF7YRtwtxpklqd7s+BFmY4j31c rjbhCt6SzIcuyAyl9YehjexjsWcbqDcrpFyn65/UwvYegWRgEyQ6LIb8H1X9f+x1YnrQ vwOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117267; x=1734722067; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rpq4UUf6dVqmk0jMJhoczKkqUStkLqI71UYDr3fDwHQ=; b=azpVH0yq9mAuY0pdGYOc1a8ABRfpBS+1cDJRLMagwD32CRhLLGutVjVU4Nvy2pd+v4 UMzkNYtwYJRXIn/yhpV6pB3OIrNJcTsxFWJQHMN0AKeVmL6cr+7Jk27TLleA2cRyweuD Qiv/4nWnKdH3UzEH97gnf7oq3OhSwpy/haXcXuSKQ27IDtf0NFF/mDOFbvWV+nxo4Mg5 3zi7+LXrR0c+ZI7mKFrEFDWQ3EoEo6Tra8WoLKYXcuM97AzFBVuDoTlg0nHZXM0NAG59 tbTqjdDVkAfz2Hq0tJqkotYrHLQY5np8It9IrouKVL4IXoeScbNQd5SPQfhHp80scmXD kuDQ== X-Gm-Message-State: AOJu0YwvkOCQyFrhoQdnYwX2Oqn7Xd9bd02lvjZmwgVX9N8ORpzPf7cl Im0Rhk1hmVztrPC/8N0uGVE/SksX8TUly31JSO8zmBPY2eaWPSRCw+q0+Uk2cMrxlBlS+UO0NAy caxIwg1e9 X-Gm-Gg: ASbGncsNkUaZrVY8gc4f64J4kS53OOMbirYdFWos9b2JxWjx6EdgDL6y4W0XeBBo+9b SeB/evzLroAS8nZ3cSD9B87mO1S8UGPBVpHkYmqjOj/gC/LK5ry6DdO78i95WHzS/x82ZJ/sHE5 hz32KtEwKBD65i5ohN8BG3pw1yX9jS7WJ5PTxtL64n/uCmkJh30nlOB1jjboakJim79hbNDO3ux CTbAVQoXHv51v05y6ALvA1Hqv0lANowUWPxk2D+Y899+EVOh6RWN4auRM4449qH X-Google-Smtp-Source: AGHT+IFTiUpK4SMcy0MXtvg3evRUpzInwl8nGjaN1K8ysZSKq7+DZIM9wyIrf6kL1Wep0zWIUpPC2g== X-Received: by 2002:a05:6808:2008:b0:3e6:d7:9464 with SMTP id 5614622812f47-3eb94f629cdmr4108402b6e.14.1734117267233; Fri, 13 Dec 2024 11:14:27 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:26 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Artyom Tarasenko Subject: [PATCH 57/71] hw/sparc: Constify all Property Date: Fri, 13 Dec 2024 13:07:31 -0600 Message-ID: <20241213190750.2513964-62-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22f; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/sparc/sun4m.c | 2 +- hw/sparc/sun4m_iommu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c index d52e6a7213..b8cce271a7 100644 --- a/hw/sparc/sun4m.c +++ b/hw/sparc/sun4m.c @@ -732,7 +732,7 @@ static void prom_realize(DeviceState *ds, Error **errp) sysbus_init_mmio(dev, &s->prom); } -static Property prom_properties[] = { +static const Property prom_properties[] = { {/* end of property list */}, }; diff --git a/hw/sparc/sun4m_iommu.c b/hw/sparc/sun4m_iommu.c index 6f765e97e4..3d6fcdf576 100644 --- a/hw/sparc/sun4m_iommu.c +++ b/hw/sparc/sun4m_iommu.c @@ -368,7 +368,7 @@ static void iommu_init(Object *obj) sysbus_init_mmio(dev, &s->iomem); } -static Property iommu_properties[] = { +static const Property iommu_properties[] = { DEFINE_PROP_UINT32("version", IOMMUState, version, 0), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907717 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21CBAE7717F for ; Fri, 13 Dec 2024 19:23:59 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB9U-0002sq-5V; Fri, 13 Dec 2024 14:16:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7V-0007dZ-Io for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:39 -0500 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7R-0007cl-Rt for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:36 -0500 Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3eb9a0a2089so985252b6e.1 for ; Fri, 13 Dec 2024 11:14:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117268; x=1734722068; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZOHSZv4UJCEktEuRNTiGAa+gSN3tW2NIQ00CdmYCkmw=; b=Fmf3PZcI2xSvN83oYFjbvpmypyvoDmA2OIBy893GQLEeRXd2zTtQ+kOkPeW+gWNZaz wA79Yg2XvXxQ7iYKB+hWvwtv7Q/wkNcomgo7eAF8Mj261Cmhptip4MY8qpC0YtwYN101 Ibx4rm83yOQM9hms6l/PV2qxfVAN1tl/MXL81ddrRO1hjECtrCG6lC6fiBZJrP1pG9uk qdRb+JbUmVRH2ZH1kwXrDeSA+05hvgkVkxBLMGJUV61xGAGA+hp7kAF0CdFsxToLM0xB xyxQZyiccLmnFqY7dLOCqLOAElohkxbcEWTaeAMpiIKTT03ML9QO3KB+H8BIdJDUV063 qkOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117268; x=1734722068; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZOHSZv4UJCEktEuRNTiGAa+gSN3tW2NIQ00CdmYCkmw=; b=c42ZbwBxVX5fyvpWlAFLMIeMRHVwY4LUKDJXRoC8RaOmiKtr8AVPpXmzreMZZXNQ/D uP86fG74RTOsQ8ESTIUVbGr7HIaMv258NCe+z/E8ve8yrnYButrSnOErd4unhAk6TKzl N5sBVmSC6MFLbZFrAfVtDlxX9zxD4otyLsszOmv9BiOqgbEZp03rw8Gir/8gYKLhY6+o HEbMLJU9rMKlI71lzv+esYsVvA1BCETVNsewa7wAxVrOlQ/Rx0cjkzIlCCPoIQvev8wq N1351z+u+/KfuhyOqVJ5Okelgisp4EWBmbtsxMXi8fKMGo4QYyc2HZtR9Pu1O+8HCtNP wPTQ== X-Gm-Message-State: AOJu0Yxh5TaP9YxAh9ThJsWeehnvFqysrrO0ubXUYCNQ9I3GaILG85as pTCPc9ciK+1GlLjsnZdLQXvO5vdUsMKhMlGE5TnTe7n89zatIkdsBf3e7wUFY4JRmjCThkpz6FB CQw2PIV3T X-Gm-Gg: ASbGncuL7tlhFeqNSXkJTuo7MUM9SJFPh0NBYc2zcxjVSyWo0ejlWYZGJUQIjnv/7K2 gaNk6yJrzN3hmKuJfC06SM95F17H+Qy0G2ioyp+45gPnqUssq+gLew4Al/K+4/pbjrQD0atTWxc r37wgvDQ/iMN9Nx4i0KIAbiKHDSg2r/IvOwVPHvH00LqNGK2BzbtiZ7dT7XWh49aPlLcFdK2Uix +TXizlNhaoIDK9pW3PXR9pYTbQNyoYIGPaoDojdYHptghDzhJJYHnEtrS+Jdr4S X-Google-Smtp-Source: AGHT+IGDv+I2UhiFDy1K8kqQKhzztTTmffHYFJbe7CdHJpPZxObJ0/0BL74oQ8deflij1/ZIteAxpg== X-Received: by 2002:a05:6808:2191:b0:3e5:ef2d:f53b with SMTP id 5614622812f47-3eba6868153mr2325253b6e.11.1734117268658; Fri, 13 Dec 2024 11:14:28 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:28 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Artyom Tarasenko Subject: [PATCH 58/71] hw/sparc64: Constify all Property Date: Fri, 13 Dec 2024 13:07:32 -0600 Message-ID: <20241213190750.2513964-63-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22f; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/sparc64/sun4u.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c index 541c7f74fa..050cb1d1cd 100644 --- a/hw/sparc64/sun4u.c +++ b/hw/sparc64/sun4u.c @@ -374,7 +374,7 @@ static void ebus_realize(PCIDevice *pci_dev, Error **errp) pci_register_bar(pci_dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &s->bar1); } -static Property ebus_properties[] = { +static const Property ebus_properties[] = { DEFINE_PROP_UINT64("console-serial-base", EbusState, console_serial_base, 0), DEFINE_PROP_END_OF_LIST(), @@ -471,7 +471,7 @@ static void prom_realize(DeviceState *ds, Error **errp) sysbus_init_mmio(dev, &s->prom); } -static Property prom_properties[] = { +static const Property prom_properties[] = { {/* end of property list */}, }; @@ -532,7 +532,7 @@ static void ram_init(hwaddr addr, ram_addr_t RAM_size) sysbus_mmio_map(s, 0, addr); } -static Property ram_properties[] = { +static const Property ram_properties[] = { DEFINE_PROP_UINT64("size", RamDevice, size, 0), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:07:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907729 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C744AE77180 for ; Fri, 13 Dec 2024 19:28:39 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB9S-0002hn-7w; Fri, 13 Dec 2024 14:16:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7k-0007us-AK for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:53 -0500 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7f-0007f5-VJ for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:50 -0500 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-29f88004a92so1253057fac.1 for ; Fri, 13 Dec 2024 11:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117284; x=1734722084; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uZhfokFx932XV3g28Kk8wdRBOecdIQ4zxxBiyRlh0hk=; b=O3mEu/HeiKcFqvv+dXscl9KpBMZRxuVq7ADNX8/3BTD3MebuhLrCk4ThYNmGTddF7i X6J5KAC+dcc2I7+JBvYTUSyWHGPmKDlzdSN2KnAEov9AZJA9XTIhVopodigPytgKfWpH +g6t1NVdLRcM717dAc3YZaS1iqQqrUs9iTLkGJeeFx08eNO6Ruy6k36JyLTZfymveDP5 BzY8Tszc8zyxmjfgkQBVVMxyancnSkJr1qddQGlF4M0s0TRqchJZNqRsNl25Q9Vh9WtV CQlA8On1SOuITYQmIO2VIqyO77rsIe1vzxU3jhr0FG420eJyl7OCejlH+UztgMfGJsGW fUIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117284; x=1734722084; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uZhfokFx932XV3g28Kk8wdRBOecdIQ4zxxBiyRlh0hk=; b=H/DD0vxAV2unTQjzaDVyVKU10i06rI+KaOExPzoe0tdYm19syV2jq4Cu7xjct4sjzY wnU7fthgefmQiD/oDAonZwnpNV4N7Oumdq4n92QLsXFYEkLfdYKtPtt4hLymUaRjobzD RWqy6b6nGapCVREitzgznpbnLIB7Q4ADIAelBzGwrBEG6RjVScn9JbYP0nYFTZMJFuCo 5Z1VbtOnA9hEQ/4w2BN7l8i3RO+Od55DY8zf+qWjuTYz4byJEeRzUPZLHdpIA2dKo6ja KHUPn9VIeXQZTjx++R/FRPextpwMe1JZy4Ok6YqvYyyL0uiyPumevQKPjfdgM6ZfpwZ7 avLA== X-Gm-Message-State: AOJu0YzcwCB09DtX1sm3/ou/RAsPRDunqN40W5R7wxHjJ7hemHACxQYu zzcCGcaf2ySkUeh1WhMMlT4Cb5O3kCkBFQmvMOhD4i4pUST3AOvxQy3U4aW3Niquite+wH8a/y1 bXECwcXOe X-Gm-Gg: ASbGncvs0/DnnCkCtUGQ8tqZvvBibNEPVZmg0vbEmAJYYhKnkLrPioB/JLdlfOBpWga jg1YRyOgIBflOVjITM14edX1kvDZ6K8TwAU0gqD6sCWe3VHUmVt1TLKafqSnnp0HIi1pep7H4wG yXK8tHyDFtVil5aFBZ9ty9yOKNR2y2qO5uusZEMkqCsjonwsuFAtB79AUR5QVEDiBpnO2S7Zf+r aEWaJ/HXEp39OHjg/HlYDNIRQyF+sQRAvQJWC075iOIZwjMI6qbl9djYDf7y1dg X-Google-Smtp-Source: AGHT+IGxJDG97/RV+vobqLdaGC+OFpB1PV/YFhJbfs6+AMLABq7v6ZzHh7vq/98aBTpxFiwxKUuJeQ== X-Received: by 2002:a05:6808:159e:b0:3e5:f4fa:5984 with SMTP id 5614622812f47-3eba697e467mr1634948b6e.38.1734117282338; Fri, 13 Dec 2024 11:14:42 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Alistair Francis , Tyrone Ting , Hao Wu , Nicholas Piggin , =?utf-8?b?RnLDqWTDqXJpYyBCYXJyYXQ=?= , Bin Meng , Palmer Dabbelt , "Edgar E. Iglesias" , Francisco Iglesias , qemu-arm@nongnu.org (open list:ASPEED BMCs), qemu-riscv@nongnu.org (open list:OpenTitan), qemu-ppc@nongnu.org (open list:PowerNV Non-Virt...) Subject: [PATCH 59/71] hw/ssi: Constify all Property Date: Fri, 13 Dec 2024 13:07:33 -0600 Message-ID: <20241213190750.2513964-64-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::34; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater --- hw/ssi/aspeed_smc.c | 4 ++-- hw/ssi/ibex_spi_host.c | 2 +- hw/ssi/npcm7xx_fiu.c | 2 +- hw/ssi/pnv_spi.c | 2 +- hw/ssi/sifive_spi.c | 2 +- hw/ssi/ssi.c | 2 +- hw/ssi/xilinx_spi.c | 2 +- hw/ssi/xilinx_spips.c | 4 ++-- hw/ssi/xlnx-versal-ospi.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/ssi/aspeed_smc.c b/hw/ssi/aspeed_smc.c index 033cbbb59b..bbdd4e4786 100644 --- a/hw/ssi/aspeed_smc.c +++ b/hw/ssi/aspeed_smc.c @@ -1287,7 +1287,7 @@ static const VMStateDescription vmstate_aspeed_smc = { } }; -static Property aspeed_smc_properties[] = { +static const Property aspeed_smc_properties[] = { DEFINE_PROP_BOOL("inject-failure", AspeedSMCState, inject_failure, false), DEFINE_PROP_UINT64("dram-base", AspeedSMCState, dram_base, 0), DEFINE_PROP_LINK("dram", AspeedSMCState, dram_mr, @@ -1336,7 +1336,7 @@ static void aspeed_smc_flash_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->mmio); } -static Property aspeed_smc_flash_properties[] = { +static const Property aspeed_smc_flash_properties[] = { DEFINE_PROP_UINT8("cs", AspeedSMCFlash, cs, 0), DEFINE_PROP_LINK("controller", AspeedSMCFlash, controller, TYPE_ASPEED_SMC, AspeedSMCState *), diff --git a/hw/ssi/ibex_spi_host.c b/hw/ssi/ibex_spi_host.c index 9e07432f7c..60a0b17b62 100644 --- a/hw/ssi/ibex_spi_host.c +++ b/hw/ssi/ibex_spi_host.c @@ -561,7 +561,7 @@ static const MemoryRegionOps ibex_spi_ops = { .endianness = DEVICE_LITTLE_ENDIAN, }; -static Property ibex_spi_properties[] = { +static const Property ibex_spi_properties[] = { DEFINE_PROP_UINT32("num_cs", IbexSPIHostState, num_cs, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ssi/npcm7xx_fiu.c b/hw/ssi/npcm7xx_fiu.c index 119c38c415..fdd3ad2fdc 100644 --- a/hw/ssi/npcm7xx_fiu.c +++ b/hw/ssi/npcm7xx_fiu.c @@ -541,7 +541,7 @@ static const VMStateDescription vmstate_npcm7xx_fiu = { }, }; -static Property npcm7xx_fiu_properties[] = { +static const Property npcm7xx_fiu_properties[] = { DEFINE_PROP_INT32("cs-count", NPCM7xxFIUState, cs_count, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ssi/pnv_spi.c b/hw/ssi/pnv_spi.c index c21b2ebb3c..4ca9c469a4 100644 --- a/hw/ssi/pnv_spi.c +++ b/hw/ssi/pnv_spi.c @@ -1195,7 +1195,7 @@ static const MemoryRegionOps pnv_spi_xscom_ops = { .endianness = DEVICE_BIG_ENDIAN, }; -static Property pnv_spi_properties[] = { +static const Property pnv_spi_properties[] = { DEFINE_PROP_UINT32("spic_num", PnvSpi, spic_num, 0), DEFINE_PROP_UINT8("transfer_len", PnvSpi, transfer_len, 4), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ssi/sifive_spi.c b/hw/ssi/sifive_spi.c index 08a107792b..7458747779 100644 --- a/hw/ssi/sifive_spi.c +++ b/hw/ssi/sifive_spi.c @@ -328,7 +328,7 @@ static void sifive_spi_realize(DeviceState *dev, Error **errp) fifo8_create(&s->rx_fifo, FIFO_CAPACITY); } -static Property sifive_spi_properties[] = { +static const Property sifive_spi_properties[] = { DEFINE_PROP_UINT32("num-cs", SiFiveSPIState, num_cs, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ssi/ssi.c b/hw/ssi/ssi.c index 3f357e8f16..cab0014c3f 100644 --- a/hw/ssi/ssi.c +++ b/hw/ssi/ssi.c @@ -108,7 +108,7 @@ static void ssi_peripheral_realize(DeviceState *dev, Error **errp) ssc->realize(s, errp); } -static Property ssi_peripheral_properties[] = { +static const Property ssi_peripheral_properties[] = { DEFINE_PROP_UINT8("cs", SSIPeripheral, cs_index, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ssi/xilinx_spi.c b/hw/ssi/xilinx_spi.c index 7f1e1808c5..588c1ec071 100644 --- a/hw/ssi/xilinx_spi.c +++ b/hw/ssi/xilinx_spi.c @@ -361,7 +361,7 @@ static const VMStateDescription vmstate_xilinx_spi = { } }; -static Property xilinx_spi_properties[] = { +static const Property xilinx_spi_properties[] = { DEFINE_PROP_UINT8("num-ss-bits", XilinxSPI, num_cs, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c index aeb462c3ce..f72cb3cbc8 100644 --- a/hw/ssi/xilinx_spips.c +++ b/hw/ssi/xilinx_spips.c @@ -1420,12 +1420,12 @@ static const VMStateDescription vmstate_xlnx_zynqmp_qspips = { } }; -static Property xilinx_zynqmp_qspips_properties[] = { +static const Property xilinx_zynqmp_qspips_properties[] = { DEFINE_PROP_UINT32("dma-burst-size", XlnxZynqMPQSPIPS, dma_burst_size, 64), DEFINE_PROP_END_OF_LIST(), }; -static Property xilinx_spips_properties[] = { +static const Property xilinx_spips_properties[] = { DEFINE_PROP_UINT8("num-busses", XilinxSPIPS, num_busses, 1), DEFINE_PROP_UINT8("num-ss-bits", XilinxSPIPS, num_cs, 4), DEFINE_PROP_UINT8("num-txrx-bytes", XilinxSPIPS, num_txrx_bytes, 1), diff --git a/hw/ssi/xlnx-versal-ospi.c b/hw/ssi/xlnx-versal-ospi.c index ecc1903b8e..e51abe9de2 100644 --- a/hw/ssi/xlnx-versal-ospi.c +++ b/hw/ssi/xlnx-versal-ospi.c @@ -1825,7 +1825,7 @@ static const VMStateDescription vmstate_xlnx_versal_ospi = { } }; -static Property xlnx_versal_ospi_properties[] = { +static const Property xlnx_versal_ospi_properties[] = { DEFINE_PROP_BOOL("dac-with-indac", XlnxVersalOspi, dac_with_indac, false), DEFINE_PROP_BOOL("indac-write-disabled", XlnxVersalOspi, ind_write_disabled, false), From patchwork Fri Dec 13 19:07:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907718 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 523EDE77183 for ; Fri, 13 Dec 2024 19:23:59 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBA1-0003g3-QH; Fri, 13 Dec 2024 14:17:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7n-00080m-RJ for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:58 -0500 Received: from mail-oo1-xc34.google.com ([2607:f8b0:4864:20::c34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7i-0007ff-W2 for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:54 -0500 Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-5f32fab5de9so239842eaf.2 for ; Fri, 13 Dec 2024 11:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117288; x=1734722088; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xPd8v41eeOyrQJCDfbB2uHm4CbCifH9Wt1doq061h1k=; b=h7rn5YdK6uE1n5nj0invX66fNw1UgOLUGPgD5XgMDmNLN/RClYy/DoWmRcrUur02WM 7vJBgOJMhuDfMKFwFCo6F3qvlSqzuZ1EScSRV1bw9vQJLcbH0Kre7Gq+D0Si9XgOTNr1 A0YSOV0VxWbKYvNZwmJ4v99eouVZNXbUe9TvKHzxG7kasVNVM8huSUyQ/wy7SWLiowOE tGnRv4fS6rGkK13CF8EkcevcWfkaUsN532ttEF9jQAQQhUpZDlgRGhrT82OgCerGBrvI 3rpUL4NlstCxBFQa2U5Zzku4CgoHe+vKNj02eKuM0+phY5Jt/+GVhG2p92uwynn9XvgF yvxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117288; x=1734722088; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xPd8v41eeOyrQJCDfbB2uHm4CbCifH9Wt1doq061h1k=; b=BosSnl4RNws9A0HywOmOGux+gjwbcu6hZo+ElgFkjCITG6afDtqomnYy7tWFKr0Zqc dxlrbmhWMzM57wycUAlTBRAbzTRPyRO8KMBKApBH/3/jRSr91/xgbskhV8aHl1VXDfdd mNhdBhIaDt/ZkVpnbTdyFb/Wmkj81XJ68MSp+7smWlTACblKEiUTRDK04Jdc4WvPBrG1 6pBjUR1AZ14UizCTRp07NOk/iYln0MRGoY55xl58ZdH6f0n2egsBHriM70jJJq5roB1k wmRufnvh3zg4ICL2XdGsNwC7+dm7Qn8+yAK15EKt+ZAg+2AmAuOqxl03R7oi7TzQwYVo xzOw== X-Gm-Message-State: AOJu0YwRnVN0k2ms7dAaHYqa0jtjqReN3dJ0btIFXGSq3Kl+B6Vgjgzi ZcAGQmVC0/xq22pq9yQdNQZgSNYS5+CaF7yKY6sSZRoNgwvpco1g1wD+RplRUS/6yVy55YA9mgN /VS6MVfo6 X-Gm-Gg: ASbGncs/HH1RNd6VICZKHY6APZLwh6FqF1aRkGTM71J/DoJ3zOLfQ2PG/TGNLPj7P4Y MytOdAomnOdIi6braU69A6J8MTEYuiJxGKNkRDvBghdi1LhC3EOul8scCXCUY6wzHKgI5ouvk6w tq05HyVRsluUtCDYfGEviNXOh3D5UgA5SiEos71vJnPoaG44MjT6Cq8R7rrLKjM3koZVHT/t1y3 5zINEMUfzF3k7inL75I8lT4Iv6gqynuKfleKq738H4wI8OOejYcSfG7CrNPT5qp X-Google-Smtp-Source: AGHT+IHK4henUoHCX20TGQ7y/2wzNbbn5NldL0W9ORA9M7fAcn3uS/jfg6n2FqNYFoNZJI2qxr9P8A== X-Received: by 2002:a05:6808:158e:b0:3eb:53f2:17c3 with SMTP id 5614622812f47-3eba691e54bmr2492728b6e.26.1734117287684; Fri, 13 Dec 2024 11:14:47 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:47 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Maydell , Beniamino Galvani , Strahinja Jankovic , =?utf-8?q?C=C3=A9dric_?= =?utf-8?q?Le_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Michael Rolnik , =?utf-8?q?Cl=C3=A9ment_Chigot?= , Frederic Konrad , "Michael S. Tsirkin" , Paolo Bonzini , Alistair Francis , Subbaraya Sundeep , Yoshinori Sato , Magnus Damm , Bin Meng , Palmer Dabbelt , Mark Cave-Ayland , "Edgar E. Iglesias" , qemu-arm@nongnu.org (open list:ARM cores), qemu-riscv@nongnu.org (open list:OpenTitan) Subject: [PATCH 60/71] hw/timer: Constify all Property Date: Fri, 13 Dec 2024 13:07:34 -0600 Message-ID: <20241213190750.2513964-65-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c34; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater --- hw/timer/a9gtimer.c | 2 +- hw/timer/allwinner-a10-pit.c | 2 +- hw/timer/arm_mptimer.c | 2 +- hw/timer/arm_timer.c | 2 +- hw/timer/aspeed_timer.c | 2 +- hw/timer/avr_timer16.c | 2 +- hw/timer/grlib_gptimer.c | 2 +- hw/timer/hpet.c | 2 +- hw/timer/i8254_common.c | 2 +- hw/timer/ibex_timer.c | 2 +- hw/timer/mss-timer.c | 2 +- hw/timer/nrf51_timer.c | 2 +- hw/timer/pxa2xx_timer.c | 2 +- hw/timer/renesas_cmt.c | 2 +- hw/timer/renesas_tmr.c | 2 +- hw/timer/sifive_pwm.c | 2 +- hw/timer/slavio_timer.c | 2 +- hw/timer/sse-timer.c | 2 +- hw/timer/stm32f2xx_timer.c | 2 +- hw/timer/xilinx_timer.c | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/hw/timer/a9gtimer.c b/hw/timer/a9gtimer.c index 8091ec18c7..c0a91bab0c 100644 --- a/hw/timer/a9gtimer.c +++ b/hw/timer/a9gtimer.c @@ -373,7 +373,7 @@ static const VMStateDescription vmstate_a9_gtimer = { } }; -static Property a9_gtimer_properties[] = { +static const Property a9_gtimer_properties[] = { DEFINE_PROP_UINT32("num-cpu", A9GTimerState, num_cpu, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/timer/allwinner-a10-pit.c b/hw/timer/allwinner-a10-pit.c index d488e9782b..2904ccfb42 100644 --- a/hw/timer/allwinner-a10-pit.c +++ b/hw/timer/allwinner-a10-pit.c @@ -188,7 +188,7 @@ static const MemoryRegionOps a10_pit_ops = { .endianness = DEVICE_NATIVE_ENDIAN, }; -static Property a10_pit_properties[] = { +static const Property a10_pit_properties[] = { DEFINE_PROP_UINT32("clk0-freq", AwA10PITState, clk_freq[0], 0), DEFINE_PROP_UINT32("clk1-freq", AwA10PITState, clk_freq[1], 0), DEFINE_PROP_UINT32("clk2-freq", AwA10PITState, clk_freq[2], 0), diff --git a/hw/timer/arm_mptimer.c b/hw/timer/arm_mptimer.c index defa30b46d..6244a7a84f 100644 --- a/hw/timer/arm_mptimer.c +++ b/hw/timer/arm_mptimer.c @@ -300,7 +300,7 @@ static const VMStateDescription vmstate_arm_mptimer = { } }; -static Property arm_mptimer_properties[] = { +static const Property arm_mptimer_properties[] = { DEFINE_PROP_UINT32("num-cpu", ARMMPTimerState, num_cpu, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/timer/arm_timer.c b/hw/timer/arm_timer.c index 0940e03f1d..dfa034296c 100644 --- a/hw/timer/arm_timer.c +++ b/hw/timer/arm_timer.c @@ -387,7 +387,7 @@ static const TypeInfo icp_pit_info = { .instance_init = icp_pit_init, }; -static Property sp804_properties[] = { +static const Property sp804_properties[] = { DEFINE_PROP_UINT32("freq0", SP804State, freq0, 1000000), DEFINE_PROP_UINT32("freq1", SP804State, freq1, 1000000), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/timer/aspeed_timer.c b/hw/timer/aspeed_timer.c index 149f7cc5a6..4c16b5016e 100644 --- a/hw/timer/aspeed_timer.c +++ b/hw/timer/aspeed_timer.c @@ -674,7 +674,7 @@ static const VMStateDescription vmstate_aspeed_timer_state = { } }; -static Property aspeed_timer_properties[] = { +static const Property aspeed_timer_properties[] = { DEFINE_PROP_LINK("scu", AspeedTimerCtrlState, scu, TYPE_ASPEED_SCU, AspeedSCUState *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/timer/avr_timer16.c b/hw/timer/avr_timer16.c index 421920054f..2e3ce83c43 100644 --- a/hw/timer/avr_timer16.c +++ b/hw/timer/avr_timer16.c @@ -542,7 +542,7 @@ static const MemoryRegionOps avr_timer16_ifr_ops = { .impl = {.max_access_size = 1} }; -static Property avr_timer16_properties[] = { +static const Property avr_timer16_properties[] = { DEFINE_PROP_UINT8("id", struct AVRTimer16State, id, 0), DEFINE_PROP_UINT64("cpu-frequency-hz", struct AVRTimer16State, cpu_freq_hz, 0), diff --git a/hw/timer/grlib_gptimer.c b/hw/timer/grlib_gptimer.c index 6ef08f25fd..a7428ed938 100644 --- a/hw/timer/grlib_gptimer.c +++ b/hw/timer/grlib_gptimer.c @@ -403,7 +403,7 @@ static void grlib_gptimer_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(sbd, &unit->iomem); } -static Property grlib_gptimer_properties[] = { +static const Property grlib_gptimer_properties[] = { DEFINE_PROP_UINT32("frequency", GPTimerUnit, freq_hz, 40000000), DEFINE_PROP_UINT32("irq-line", GPTimerUnit, irq_line, 8), DEFINE_PROP_UINT32("nr-timers", GPTimerUnit, nr_timers, 2), diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index 5399f1b2a3..46886c379e 100644 --- a/hw/timer/hpet.c +++ b/hw/timer/hpet.c @@ -745,7 +745,7 @@ static void hpet_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out(dev, &s->pit_enabled, 1); } -static Property hpet_device_properties[] = { +static const Property hpet_device_properties[] = { DEFINE_PROP_UINT8("timers", HPETState, num_timers, HPET_MIN_TIMERS), DEFINE_PROP_BIT("msi", HPETState, flags, HPET_MSI_SUPPORT, false), DEFINE_PROP_UINT32(HPET_INTCAP, HPETState, intcap, 0), diff --git a/hw/timer/i8254_common.c b/hw/timer/i8254_common.c index 28fdabc321..953c1e11eb 100644 --- a/hw/timer/i8254_common.c +++ b/hw/timer/i8254_common.c @@ -238,7 +238,7 @@ static const VMStateDescription vmstate_pit_common = { } }; -static Property pit_common_properties[] = { +static const Property pit_common_properties[] = { DEFINE_PROP_UINT32("iobase", PITCommonState, iobase, -1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/ibex_timer.c b/hw/timer/ibex_timer.c index 2bdcff532d..fba4466a89 100644 --- a/hw/timer/ibex_timer.c +++ b/hw/timer/ibex_timer.c @@ -263,7 +263,7 @@ static const VMStateDescription vmstate_ibex_timer = { } }; -static Property ibex_timer_properties[] = { +static const Property ibex_timer_properties[] = { DEFINE_PROP_UINT32("timebase-freq", IbexTimerState, timebase_freq, 10000), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/mss-timer.c b/hw/timer/mss-timer.c index b66aed56ea..e5c5cd6a84 100644 --- a/hw/timer/mss-timer.c +++ b/hw/timer/mss-timer.c @@ -279,7 +279,7 @@ static const VMStateDescription vmstate_mss_timer = { } }; -static Property mss_timer_properties[] = { +static const Property mss_timer_properties[] = { /* Libero GUI shows 100Mhz as default for clocks */ DEFINE_PROP_UINT32("clock-frequency", MSSTimerState, freq_hz, 100 * 1000000), diff --git a/hw/timer/nrf51_timer.c b/hw/timer/nrf51_timer.c index 35b0e62d5b..48fccec1bf 100644 --- a/hw/timer/nrf51_timer.c +++ b/hw/timer/nrf51_timer.c @@ -379,7 +379,7 @@ static const VMStateDescription vmstate_nrf51_timer = { } }; -static Property nrf51_timer_properties[] = { +static const Property nrf51_timer_properties[] = { DEFINE_PROP_UINT8("id", NRF51TimerState, id, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/pxa2xx_timer.c b/hw/timer/pxa2xx_timer.c index 3234bbb1f4..345145bfa8 100644 --- a/hw/timer/pxa2xx_timer.c +++ b/hw/timer/pxa2xx_timer.c @@ -549,7 +549,7 @@ static const VMStateDescription vmstate_pxa2xx_timer_regs = { } }; -static Property pxa25x_timer_dev_properties[] = { +static const Property pxa25x_timer_dev_properties[] = { DEFINE_PROP_UINT32("freq", PXA2xxTimerInfo, freq, PXA25X_FREQ), DEFINE_PROP_BIT("tm4", PXA2xxTimerInfo, flags, PXA2XX_TIMER_HAVE_TM4, false), diff --git a/hw/timer/renesas_cmt.c b/hw/timer/renesas_cmt.c index cd59b08c87..6d451fa86b 100644 --- a/hw/timer/renesas_cmt.c +++ b/hw/timer/renesas_cmt.c @@ -253,7 +253,7 @@ static const VMStateDescription vmstate_rcmt = { } }; -static Property rcmt_properties[] = { +static const Property rcmt_properties[] = { DEFINE_PROP_UINT64("input-freq", RCMTState, input_freq, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/renesas_tmr.c b/hw/timer/renesas_tmr.c index a93e075fcd..890f803cf8 100644 --- a/hw/timer/renesas_tmr.c +++ b/hw/timer/renesas_tmr.c @@ -463,7 +463,7 @@ static const VMStateDescription vmstate_rtmr = { } }; -static Property rtmr_properties[] = { +static const Property rtmr_properties[] = { DEFINE_PROP_UINT64("input-freq", RTMRState, input_freq, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/sifive_pwm.c b/hw/timer/sifive_pwm.c index 4602fc1a61..042c89c67a 100644 --- a/hw/timer/sifive_pwm.c +++ b/hw/timer/sifive_pwm.c @@ -404,7 +404,7 @@ static const VMStateDescription vmstate_sifive_pwm = { } }; -static Property sifive_pwm_properties[] = { +static const Property sifive_pwm_properties[] = { /* 0.5Ghz per spec after FSBL */ DEFINE_PROP_UINT64("clock-frequency", struct SiFivePwmState, freq_hz, 500000000ULL), diff --git a/hw/timer/slavio_timer.c b/hw/timer/slavio_timer.c index 12cb3bac97..32991f4436 100644 --- a/hw/timer/slavio_timer.c +++ b/hw/timer/slavio_timer.c @@ -420,7 +420,7 @@ static void slavio_timer_init(Object *obj) } } -static Property slavio_timer_properties[] = { +static const Property slavio_timer_properties[] = { DEFINE_PROP_UINT32("num_cpus", SLAVIO_TIMERState, num_cpus, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/sse-timer.c b/hw/timer/sse-timer.c index 115b0138c8..6b7a67941c 100644 --- a/hw/timer/sse-timer.c +++ b/hw/timer/sse-timer.c @@ -440,7 +440,7 @@ static const VMStateDescription sse_timer_vmstate = { } }; -static Property sse_timer_properties[] = { +static const Property sse_timer_properties[] = { DEFINE_PROP_LINK("counter", SSETimer, counter, TYPE_SSE_COUNTER, SSECounter *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/timer/stm32f2xx_timer.c b/hw/timer/stm32f2xx_timer.c index 16b47887a5..d9d745cd76 100644 --- a/hw/timer/stm32f2xx_timer.c +++ b/hw/timer/stm32f2xx_timer.c @@ -298,7 +298,7 @@ static const VMStateDescription vmstate_stm32f2xx_timer = { } }; -static Property stm32f2xx_timer_properties[] = { +static const Property stm32f2xx_timer_properties[] = { DEFINE_PROP_UINT64("clock-frequency", struct STM32F2XXTimerState, freq_hz, 1000000000), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/timer/xilinx_timer.c b/hw/timer/xilinx_timer.c index 32a9df69e0..7fe3e83baa 100644 --- a/hw/timer/xilinx_timer.c +++ b/hw/timer/xilinx_timer.c @@ -242,7 +242,7 @@ static void xilinx_timer_init(Object *obj) sysbus_init_irq(SYS_BUS_DEVICE(obj), &t->irq); } -static Property xilinx_timer_properties[] = { +static const Property xilinx_timer_properties[] = { DEFINE_PROP_UINT32("clock-frequency", XpsTimerState, freq_hz, 62 * 1000000), DEFINE_PROP_UINT8("one-timer-only", XpsTimerState, one_timer_only, 0), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:07:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907726 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 238D1E77183 for ; Fri, 13 Dec 2024 19:27:58 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBA6-0003q6-8Z; Fri, 13 Dec 2024 14:17:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7n-00080k-Io for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:59 -0500 Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7j-0007ft-1C for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:53 -0500 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-29e149aff1dso667498fac.1 for ; Fri, 13 Dec 2024 11:14:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117289; x=1734722089; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6OnU15FeM5nm4zjB+qIgK7H2LoZzBt1ZnxMW14wBH+c=; b=L8HGTFSyUzRaAdW5uqGI4XDd8gckTAX+aCjlAetd7H3L+Y/KZfM7BdBaOfu15W9Tq6 BAiJXPzZdcWG1QgGyFjquGlhKOKfqSAo4IdNblfU5vvieJ7O3D1VfrnMQWM0NPayM+vw rSg3lQyIVbVIaMON979BRxAQIoYGzX4HuhVofoDfHVaGgnP+VhAC6H/5fYNajcH34WJ+ Gifeexa9Cpbsn23QBySlI8HWDnGovZVeEFHclWv3KzfA5kcfftgdVI5uqbfCGKwHMoL7 9u3nOIet3epH9BQ31Sa1b/mngt2lC4I8FSEMVZbZo9iO2LX41WSQS9aWNujM3+07goEL 0wMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117289; x=1734722089; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6OnU15FeM5nm4zjB+qIgK7H2LoZzBt1ZnxMW14wBH+c=; b=HQBkS4TihHPPv7eRp7BoJw2oEQCzVYwlZG+TeyFWVk4dI5UHCMxVnohp7nvYHnx1Km +nrU94aOHK3iZKw0Wg6Ay3w2r7gCpOIlcvwD8q5/6DYa5MBfv3mpY8H21fRE6jZUdMiT KAHsuZRLFtnqO2aKtg4g8PuV+2ctP1a1DsqdNv5ZE29MKiU27Ijp0X7L1VhD/NNlKDIO pfHv4jP214TbpNv0so2AfFO6QnQ97941NzjlqqF7gwIS6CUe13TGysx+mqhzpFjlwhkY fvFLPtScf3rTwouHv/Ipz9QHX6Wyi8wMZDa0XjidPT6Sy1AzuybbYJHt8xl5ql9ZnIp5 g7gQ== X-Gm-Message-State: AOJu0YzSrrhdESu98CTtQmSxtgY9Ylwi4dpU5caaVGRfsj3VKEudhwbb iI9kUReOEVlQcK93oRuhSSDMTmQoTQiZG1vPNNYQ0eopNmmxuvNoNhDLACo9bMmuJ51LLXVAvF4 a7MfgKj0q X-Gm-Gg: ASbGnct3pffhM/5qb6ffA7+r1CrCVszv39p3r/9i1cCOYGqnskhpi7VfeLOqTQlfRCj 6aH9bmxMVvj2nir4vDmheh/9pYa3m/iCbUZBEnAKLRRtM/lFx/eAShOw+HTmZeC1zGQLcqu0pEs wLrXUNFwj1a6AMe9NJUuElfrR24c4M0GZTezZFPnUfHh7/rPpo4dTmaGc8blXdQlzWvTfwkZNbc 9/nfALmlrB3yvbGCC38EGcJ5eIC6krSjZO1QzuzYlbPCrkf693WacnoaLlW22Vs X-Google-Smtp-Source: AGHT+IHBaL8kU6aH1nsbh/jV9sNueSj6IVgpCh5TYFJ+elqWaL/x8lEG+im3oCTlGW5uW2PWj4PG2A== X-Received: by 2002:a05:6808:f08:b0:3ea:aa8a:c121 with SMTP id 5614622812f47-3eba68957dfmr2183697b6e.22.1734117288969; Fri, 13 Dec 2024 11:14:48 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Stefan Berger Subject: [PATCH 61/71] hw/tpm: Constify all Property Date: Fri, 13 Dec 2024 13:07:35 -0600 Message-ID: <20241213190750.2513964-66-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2f; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Stefan Berger --- hw/tpm/tpm_crb.c | 2 +- hw/tpm/tpm_spapr.c | 2 +- hw/tpm/tpm_tis_i2c.c | 2 +- hw/tpm/tpm_tis_isa.c | 2 +- hw/tpm/tpm_tis_sysbus.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/tpm/tpm_crb.c b/hw/tpm/tpm_crb.c index 5cd5a2533b..2bf6e7ffe9 100644 --- a/hw/tpm/tpm_crb.c +++ b/hw/tpm/tpm_crb.c @@ -226,7 +226,7 @@ static const VMStateDescription vmstate_tpm_crb = { } }; -static Property tpm_crb_properties[] = { +static const Property tpm_crb_properties[] = { DEFINE_PROP_TPMBE("tpmdev", CRBState, tpmbe), DEFINE_PROP_BOOL("ppi", CRBState, ppi_enabled, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/tpm/tpm_spapr.c b/hw/tpm/tpm_spapr.c index 5f7a0dfc61..e15b67dd45 100644 --- a/hw/tpm/tpm_spapr.c +++ b/hw/tpm/tpm_spapr.c @@ -364,7 +364,7 @@ static const VMStateDescription vmstate_spapr_vtpm = { } }; -static Property tpm_spapr_properties[] = { +static const Property tpm_spapr_properties[] = { DEFINE_SPAPR_PROPERTIES(SpaprTpmState, vdev), DEFINE_PROP_TPMBE("tpmdev", SpaprTpmState, be_driver), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/tpm/tpm_tis_i2c.c b/hw/tpm/tpm_tis_i2c.c index c5548b0a45..b27af230cd 100644 --- a/hw/tpm/tpm_tis_i2c.c +++ b/hw/tpm/tpm_tis_i2c.c @@ -491,7 +491,7 @@ static int tpm_tis_i2c_send(I2CSlave *i2c, uint8_t data) return 1; } -static Property tpm_tis_i2c_properties[] = { +static const Property tpm_tis_i2c_properties[] = { DEFINE_PROP_TPMBE("tpmdev", TPMStateI2C, state.be_driver), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/tpm/tpm_tis_isa.c b/hw/tpm/tpm_tis_isa.c index 21109edcaa..9b2160972a 100644 --- a/hw/tpm/tpm_tis_isa.c +++ b/hw/tpm/tpm_tis_isa.c @@ -91,7 +91,7 @@ static void tpm_tis_isa_reset(DeviceState *dev) return tpm_tis_reset(s); } -static Property tpm_tis_isa_properties[] = { +static const Property tpm_tis_isa_properties[] = { DEFINE_PROP_UINT32("irq", TPMStateISA, state.irq_num, TPM_TIS_IRQ), DEFINE_PROP_TPMBE("tpmdev", TPMStateISA, state.be_driver), DEFINE_PROP_BOOL("ppi", TPMStateISA, state.ppi_enabled, true), diff --git a/hw/tpm/tpm_tis_sysbus.c b/hw/tpm/tpm_tis_sysbus.c index 967f264634..88c1f1e478 100644 --- a/hw/tpm/tpm_tis_sysbus.c +++ b/hw/tpm/tpm_tis_sysbus.c @@ -90,7 +90,7 @@ static void tpm_tis_sysbus_reset(DeviceState *dev) return tpm_tis_reset(s); } -static Property tpm_tis_sysbus_properties[] = { +static const Property tpm_tis_sysbus_properties[] = { DEFINE_PROP_UINT32("irq", TPMStateSysBus, state.irq_num, TPM_TIS_IRQ), DEFINE_PROP_TPMBE("tpmdev", TPMStateSysBus, state.be_driver), DEFINE_PROP_END_OF_LIST(), From patchwork Fri Dec 13 19:07:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907731 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F7A2E77183 for ; Fri, 13 Dec 2024 19:28:58 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBAV-00049I-2p; Fri, 13 Dec 2024 14:17:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7n-00080j-Im for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:59 -0500 Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7j-0007g6-9t for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:14:53 -0500 Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3eb8accbde3so1595513b6e.0 for ; Fri, 13 Dec 2024 11:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117290; x=1734722090; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QHvouIEJ47Vdy/hcGDRoqTZ/qz1P8ZCCWYCVL1nEzxk=; b=KKMJ5qXoajupy8CVMY7nGRv0mCT3/E8iSaSzAN+kDNJEIIrLvAn7+G505GO/rTcqBK WP3gBkmGNQ25t7wLnas+f31RiaEn0M/7pMOjG+3tsY0+DNi30sMGQcn/ZQjw/dbseShy 3aCVl1+NYdeJx17nFccqkP50/iR4h0pJ3I2g8i4U0ik3A8UEdv1xViUD8eJX/a9qw+5H qIq+CrSCxWp6RHvBPsqDNn/arpQJ0cAgnV+C5F3K3DNaFZfU5N8mX+GMjdnprHplK+mx RptH7sQ0jbK32srjpWDbEO/URTZ3QZnaCIlnXIsOUgUf54wgj6ICud1Jyc1p1XWn299r qGsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117290; x=1734722090; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QHvouIEJ47Vdy/hcGDRoqTZ/qz1P8ZCCWYCVL1nEzxk=; b=v8VKKhuEzWVItV2QQqqaQSDpKDDM9UpGuotjvdkQvm7vB8mZl/bC0hFRmiUtnF/2gF 1SPuaH1Z0bVyFQWrlC46dDywfgM6ynMDsRS9C6oBY3x48N5VkocDbBfgFFgDRm9jP/WU AmYea1TI96+PAMqlA6tUy+C8RjGO+PTVDX9AcnkEBvsxZBDwGgUnt2Qnp6OEgocdT3Xy ghjFT4AwFY53ZkvQ9DCkgBL663YyWuvQ4qxYi7vGKShJ7k7uq60e224V0uVIGzyVZqaP Pfz4OgvLAilGjIkL0LF8BCAXbHCEbFXasbydGPOS9wEjmu9Yet/QHeDhY4HX8ehfFKCD j6Uw== X-Gm-Message-State: AOJu0YyYjNucah4UzRMAWSRNkw9IAT6gpmH2vMXv3zDBufILMGExR/cH 0lgtGGIioJneJCK48JEjQHqYiE9yIrumjEYS50VNSy1zYk8kPNP76Ul3tXGipVAAjMRNOZ1G/Nm wLpJN86Ca X-Gm-Gg: ASbGnctHZN09bmbT/ZtaC4upDA7lYN3RHvHZMjySsxha9X2gg40ehIYyxDpxeFErwLp J+7NSftRNgNZ2E7Eez9FOI++AXowclBuzrrgVN654OSIPOExqDDZejSUmyusLSrlhJk39C+pXXX ypIWnicanVfaNsC2Nv7tqXqXBpwPZgmN/uAkrwsbKt4M64hEesWd1uFx49PiaYJer5AdIrNUHZF v2eDfi7hgkNSfErM66yDRD6kDORwY4VCnTL+JY4nMyeoyWyr6LDNHuxbvwKu5/7 X-Google-Smtp-Source: AGHT+IFjkDJt1gTcgumdap6JAylHQkV4ADKOzxNRVKRgQNfc4Dy+WvFPz8Dha7UY1S/WyMpS6eq0qA== X-Received: by 2002:a05:6808:250b:b0:3eb:8236:d17 with SMTP id 5614622812f47-3eb94ef2aa5mr4272725b6e.11.1734117290174; Fri, 13 Dec 2024 11:14:50 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:49 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Bastian Koppelmann Subject: [PATCH 62/71] hw/tricore: Constify all Property Date: Fri, 13 Dec 2024 13:07:36 -0600 Message-ID: <20241213190750.2513964-67-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::234; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x234.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Bastian Koppelmann --- hw/tricore/tc27x_soc.c | 2 +- hw/tricore/tricore_testdevice.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/tricore/tc27x_soc.c b/hw/tricore/tc27x_soc.c index ecd92717b5..6f50cb5116 100644 --- a/hw/tricore/tc27x_soc.c +++ b/hw/tricore/tc27x_soc.c @@ -201,7 +201,7 @@ static void tc27x_soc_init(Object *obj) object_initialize_child(obj, "tc27x", &s->cpu, sc->cpu_type); } -static Property tc27x_soc_properties[] = { +static const Property tc27x_soc_properties[] = { DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/tricore/tricore_testdevice.c b/hw/tricore/tricore_testdevice.c index ae95c49565..dbdcc9704e 100644 --- a/hw/tricore/tricore_testdevice.c +++ b/hw/tricore/tricore_testdevice.c @@ -58,7 +58,7 @@ static void tricore_testdevice_init(Object *obj) "tricore_testdevice", 0x4); } -static Property tricore_testdevice_properties[] = { +static const Property tricore_testdevice_properties[] = { DEFINE_PROP_END_OF_LIST() }; From patchwork Fri Dec 13 19:07:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907712 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6A9E6E7717F for ; Fri, 13 Dec 2024 19:21:58 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBAQ-00048P-RG; Fri, 13 Dec 2024 14:17:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB7y-0008F7-IK for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:15:10 -0500 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB7l-0007gT-4G for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:15:01 -0500 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-29f88004a92so1253117fac.1 for ; Fri, 13 Dec 2024 11:14:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117291; x=1734722091; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LUREKfOZFFX0Cik+qgjY7NL4liaNpXwK6Nn2DyaSOoI=; b=eC0FM3C2rRSq6bycK5ik+uEjkDHvH05QdhjOiG0CE/sNE81DH3mxhthguW506lOi/a FvWXsP3wdFB4E8vzI/KLTbrKaXUgFSqPqIKhnG8O598KNsSdyzZiT/w9TKINyPYlSwff oBHV8INGxivEJKwB9H9Y7j63xmTUXJea7oWNof7xbnBF4bKc7Gw1POtC7XfhbWTy+Hx/ gZC9kGuQJnXs5iI+Q3kbcYRKGNFROhOvvyOvCjXMUtWsKt+fE0ohRvd+nZpYBXHSjbb2 y993cCI0f3fTEslcCfGpPbzxs8SdmqyRdhjVBJ/WQNHarfarIk0kiPBzh6yW0E93P9le 7q2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117291; x=1734722091; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LUREKfOZFFX0Cik+qgjY7NL4liaNpXwK6Nn2DyaSOoI=; b=rvzUax0TI5G7taX/3yrIj9+a9IsGbPQIoZ2AJkLqS6Keu2nv8v7CokYdZgOwGGUtmr L0E7lVcEwoltH5O/1Hm3kYX+FFqBtANp/5utRUY4r3aEvj5qwNK+mJ+nxOEiqyNFrmYG A/z6wCaHbW9EKzUAWLC1JlpdfbxyUDPOw0UKNwLOVtro3jjrQctfoAqCvUqZduinVil5 kOZdbWRWxyGldOHMT/ukibw4MgepufKuV0VaQ7Lh4fX5pMMnVVCkzMdCKTJPP8eXnNBT /4ZFFLyjfj+CKfZOr6FQsMN96QUZ4S0W5k91ljhGPKCKIj7YUUFbPMeFM0spwgrksknJ hIgQ== X-Gm-Message-State: AOJu0YwVjCSSu2ZmLUcOKTgyR7+utGrA5bPnTThod3Rs/9uLXjK04Mxb Ko/kB2cFxQY+OsQ/aO6IfvTdXcRaKSvH2S9UerkLATI1125lsn44jnu/HjyKdWqVNy9n76veDCf 6ajtD/0OU X-Gm-Gg: ASbGncu5+XjzbvtBrN/Lqzdm7+KWqezi33r07aQooh5JahdPcACIIloAaACuTLmBoM7 H3BazT0vrOBDP4IpEl17pMxIw7Jo1am0puODtc07MVfCjrYIGOuZnvLQBeuvDCHP9+AJ+mPmIlQ 6H9vqfGkVeltCZ9jD2sCfYS//oqpY2Uw4Au4zrM9W8AfmU8H2PS/j/oA5Vj/GB0wOPCfEeJK45Z 1bGBpbLhCI1t1u3B6NhbGWKkfCs4c1BW/wMO6gO/BIDBjFEihMp91QjMVTZ+uZW X-Google-Smtp-Source: AGHT+IGwNMXVxQK/RMcx05Wwv2S9qKBEzz5sbg2HZcZw37JIyPwDDZWjAwkRQZEl4rnqZYnVu/XSSg== X-Received: by 2002:a05:6808:2519:b0:3e9:2090:c030 with SMTP id 5614622812f47-3eba689dcb4mr1750600b6e.25.1734117291191; Fri, 13 Dec 2024 11:14:51 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a497sm3545b6e.10.2024.12.13.11.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:14:50 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Jeuk Kim Subject: [PATCH 63/71] hw/ufs: Constify all Property Date: Fri, 13 Dec 2024 13:07:37 -0600 Message-ID: <20241213190750.2513964-68-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2d; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/ufs/lu.c | 2 +- hw/ufs/ufs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ufs/lu.c b/hw/ufs/lu.c index 81bfff9b4e..74ff52ad09 100644 --- a/hw/ufs/lu.c +++ b/hw/ufs/lu.c @@ -274,7 +274,7 @@ static UfsReqResult ufs_process_scsi_cmd(UfsLu *lu, UfsRequest *req) return UFS_REQUEST_NO_COMPLETE; } -static Property ufs_lu_props[] = { +static const Property ufs_lu_props[] = { DEFINE_PROP_DRIVE("drive", UfsLu, conf.blk), DEFINE_PROP_UINT8("lun", UfsLu, lun, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c index 79f786ed4e..fe77158439 100644 --- a/hw/ufs/ufs.c +++ b/hw/ufs/ufs.c @@ -1752,7 +1752,7 @@ static void ufs_exit(PCIDevice *pci_dev) } } -static Property ufs_props[] = { +static const Property ufs_props[] = { DEFINE_PROP_STRING("serial", UfsHc, params.serial), DEFINE_PROP_UINT8("nutrs", UfsHc, params.nutrs, 32), DEFINE_PROP_UINT8("nutmrs", UfsHc, params.nutmrs, 8), From patchwork Fri Dec 13 19:29:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907777 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F2B37E7717F for ; Fri, 13 Dec 2024 19:34:18 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBNE-0006po-EW; Fri, 13 Dec 2024 14:30:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMBMj-0006ew-KH for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:25 -0500 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBMf-0004Da-Rm for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:20 -0500 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-54026562221so2212632e87.1 for ; Fri, 13 Dec 2024 11:30:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118215; x=1734723015; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Wvpp+XTPkfNZBJJN/m6P3L0ojg7FXee//cH/b/ZFxYQ=; b=RlexabGbq/QXOCQXAfsJEfE3KmTWac+ECBKhoo/N3jJevocjMXpAyEGEUDKK75xNyJ xIJ64cEq6CoULW7uRCy9esYSoka0+Q2foibpxmm3glfcOOexT88CRXat3eKBRnU82EPK Pke0xcBM2cQowFci9sOyJ7D/wGNqVHYpamPQYvGKpmkVsRgI/1zIL/o5QvPAAWFGIJyZ iPiHvkU0mdExYWswBLT0U6wkTRwNTLPPY8NatKAMgAeRVa4XZONNVMwpDIk50rP2IFOb iiA1/UevWLzQSlZKIQDJ2cjABXmCDsfYVLemR7/jPVps4XMWFcRwLvRmbtie7KrFon/X WyLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118215; x=1734723015; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wvpp+XTPkfNZBJJN/m6P3L0ojg7FXee//cH/b/ZFxYQ=; b=WauIXkroDvW4zPe6B2f1E2BH0LnV3mbR0A/odbCuLK6Uyf/LE7u/LHOxt7JJ8Srlgt TrmdNDEnbk6v+tUxbw/m9dlBoEzFJ0pNwiK4rKKej+HrMedq3EvUCr88bZzeSGHHLaUf zWwh8H/Fu8d+HAECojXXEr34ybUVVf0Tvgy5kMMinE2I7vcK7inyrhKUqiuc8owXlfP3 8gyo03cTbb7FFzY6M/UQQ49PFOaTa2MAmBGWI8jEvTVaVwGvZuJhXPLZa+PzweK9ib5S ZuG1meKm0YH1V+Iu0Y05ksWU3pZVmDjKhQY4dKz8O/lhZUH5fITBViOvkC6xo3jwWf2H c8jw== X-Gm-Message-State: AOJu0YzeEiSizPHoFxEaIdW31inX930UmXPUAGxTxd9epHqZZOs0Diyw sJgG9GrSoM+bOxqzllEN4wpfzCKgy1DPPYQ6MWKLayYBu1RcZdE9fgYp8R40UYPtA+milY0k0hj 8QLTbJoTO X-Gm-Gg: ASbGncswPCoigZB64HUGR+B1roet+Ksg6nS+tBtP8mrnu96cYTtzJnqTwBV4mGolW0m 6D8QcRNsdkBmFvNE6Qn78RS7UEFU/BcvqJGFChVOUE+Bi8gEAOep3GmCBaxR0LlGeA3mkCpSmLu q03gQcTegkXy31weCu2wf27Gq3RCauAGcoYlNzoF3BDvv3rBDuHdSqOIB9XPBIECZykyUOiV3Ma CHI8+FSPxv9lV7kD+jfwEeXPhilXuwUrFx3cvkaMXIrdFuvo1puBG1TehoYcA== X-Google-Smtp-Source: AGHT+IFE2SJpQugxNkGgECLYYSoCyLsruKa3fYpNFJ+XSNXzHNSHQBHe0KTRZXBtzB6+aU1DU4R4QQ== X-Received: by 2002:a05:6512:1105:b0:53d:ed4e:e5af with SMTP id 2adb3069b0e04-5409056405dmr1263441e87.33.1734118215228; Fri, 13 Dec 2024 11:30:15 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:13 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Hongren (Zenithal) Zheng" , "Canokeys.org" , Samuel Thibault Subject: [PATCH 64/71] hw/usb: Constify all Property Date: Fri, 13 Dec 2024 13:29:58 -0600 Message-ID: <20241213193004.2515684-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213193004.2515684-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> <20241213193004.2515684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x12d.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/usb/bus.c | 2 +- hw/usb/canokey.c | 2 +- hw/usb/ccid-card-emulated.c | 2 +- hw/usb/ccid-card-passthru.c | 2 +- hw/usb/dev-audio.c | 2 +- hw/usb/dev-hid.c | 6 +++--- hw/usb/dev-hub.c | 2 +- hw/usb/dev-mtp.c | 2 +- hw/usb/dev-network.c | 2 +- hw/usb/dev-serial.c | 4 ++-- hw/usb/dev-smartcard-reader.c | 4 ++-- hw/usb/dev-storage-classic.c | 2 +- hw/usb/dev-uas.c | 2 +- hw/usb/hcd-dwc2.c | 2 +- hw/usb/hcd-dwc3.c | 2 +- hw/usb/hcd-ehci-pci.c | 2 +- hw/usb/hcd-ehci-sysbus.c | 2 +- hw/usb/hcd-ohci-pci.c | 2 +- hw/usb/hcd-ohci-sysbus.c | 2 +- hw/usb/hcd-uhci.c | 4 ++-- hw/usb/hcd-xhci-nec.c | 2 +- hw/usb/hcd-xhci-sysbus.c | 2 +- hw/usb/hcd-xhci.c | 2 +- hw/usb/host-libusb.c | 2 +- hw/usb/redirect.c | 2 +- hw/usb/u2f-emulated.c | 2 +- hw/usb/u2f-passthru.c | 2 +- 27 files changed, 32 insertions(+), 32 deletions(-) diff --git a/hw/usb/bus.c b/hw/usb/bus.c index bfab2807d7..80e6a92820 100644 --- a/hw/usb/bus.c +++ b/hw/usb/bus.c @@ -18,7 +18,7 @@ static char *usb_get_dev_path(DeviceState *dev); static char *usb_get_fw_dev_path(DeviceState *qdev); static void usb_qdev_unrealize(DeviceState *qdev); -static Property usb_props[] = { +static const Property usb_props[] = { DEFINE_PROP_STRING("port", USBDevice, port_path), DEFINE_PROP_STRING("serial", USBDevice, serial), DEFINE_PROP_BIT("msos-desc", USBDevice, flags, diff --git a/hw/usb/canokey.c b/hw/usb/canokey.c index b306eeb20e..7cb600e3c8 100644 --- a/hw/usb/canokey.c +++ b/hw/usb/canokey.c @@ -296,7 +296,7 @@ static void canokey_unrealize(USBDevice *base) trace_canokey_unrealize(); } -static Property canokey_properties[] = { +static const Property canokey_properties[] = { DEFINE_PROP_STRING("file", CanoKeyState, file), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/ccid-card-emulated.c b/hw/usb/ccid-card-emulated.c index 3ee9c73b87..dd58333943 100644 --- a/hw/usb/ccid-card-emulated.c +++ b/hw/usb/ccid-card-emulated.c @@ -582,7 +582,7 @@ static void emulated_unrealize(CCIDCardState *base) qemu_mutex_destroy(&card->event_list_mutex); } -static Property emulated_card_properties[] = { +static const Property emulated_card_properties[] = { DEFINE_PROP_STRING("backend", EmulatedState, backend_str), DEFINE_PROP_STRING("cert1", EmulatedState, cert1), DEFINE_PROP_STRING("cert2", EmulatedState, cert2), diff --git a/hw/usb/ccid-card-passthru.c b/hw/usb/ccid-card-passthru.c index a515703904..f97dcf767f 100644 --- a/hw/usb/ccid-card-passthru.c +++ b/hw/usb/ccid-card-passthru.c @@ -388,7 +388,7 @@ static const VMStateDescription passthru_vmstate = { } }; -static Property passthru_card_properties[] = { +static const Property passthru_card_properties[] = { DEFINE_PROP_CHR("chardev", PassthruState, cs), DEFINE_PROP_UINT8("debug", PassthruState, debug, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c index 1897fff9e6..6007f16d30 100644 --- a/hw/usb/dev-audio.c +++ b/hw/usb/dev-audio.c @@ -990,7 +990,7 @@ static const VMStateDescription vmstate_usb_audio = { .unmigratable = 1, }; -static Property usb_audio_properties[] = { +static const Property usb_audio_properties[] = { DEFINE_AUDIO_PROPERTIES(USBAudioState, card), DEFINE_PROP_UINT32("debug", USBAudioState, debug, 0), DEFINE_PROP_UINT32("buffer", USBAudioState, buffer_user, 0), diff --git a/hw/usb/dev-hid.c b/hw/usb/dev-hid.c index 9e358c934e..d83f67b984 100644 --- a/hw/usb/dev-hid.c +++ b/hw/usb/dev-hid.c @@ -793,7 +793,7 @@ static const TypeInfo usb_hid_type_info = { .class_init = usb_hid_class_initfn, }; -static Property usb_tablet_properties[] = { +static const Property usb_tablet_properties[] = { DEFINE_PROP_UINT32("usb_version", USBHIDState, usb_version, 2), DEFINE_PROP_STRING("display", USBHIDState, display), DEFINE_PROP_UINT32("head", USBHIDState, head, 0), @@ -818,7 +818,7 @@ static const TypeInfo usb_tablet_info = { .class_init = usb_tablet_class_initfn, }; -static Property usb_mouse_properties[] = { +static const Property usb_mouse_properties[] = { DEFINE_PROP_UINT32("usb_version", USBHIDState, usb_version, 2), DEFINE_PROP_END_OF_LIST(), }; @@ -841,7 +841,7 @@ static const TypeInfo usb_mouse_info = { .class_init = usb_mouse_class_initfn, }; -static Property usb_keyboard_properties[] = { +static const Property usb_keyboard_properties[] = { DEFINE_PROP_UINT32("usb_version", USBHIDState, usb_version, 2), DEFINE_PROP_STRING("display", USBHIDState, display), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/dev-hub.c b/hw/usb/dev-hub.c index 2c3640c705..317ca0b081 100644 --- a/hw/usb/dev-hub.c +++ b/hw/usb/dev-hub.c @@ -665,7 +665,7 @@ static const VMStateDescription vmstate_usb_hub = { } }; -static Property usb_hub_properties[] = { +static const Property usb_hub_properties[] = { DEFINE_PROP_UINT32("ports", USBHubState, num_ports, 8), DEFINE_PROP_BOOL("port-power", USBHubState, port_power, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index 554b397e88..7994727e5e 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -2078,7 +2078,7 @@ static const VMStateDescription vmstate_usb_mtp = { } }; -static Property mtp_properties[] = { +static const Property mtp_properties[] = { DEFINE_PROP_STRING("rootdir", MTPState, root), DEFINE_PROP_STRING("desc", MTPState, desc), DEFINE_PROP_BOOL("readonly", MTPState, readonly, true), diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c index d00d68b21d..6c4f5776d4 100644 --- a/hw/usb/dev-network.c +++ b/hw/usb/dev-network.c @@ -1407,7 +1407,7 @@ static const VMStateDescription vmstate_usb_net = { .unmigratable = 1, }; -static Property net_properties[] = { +static const Property net_properties[] = { DEFINE_NIC_PROPERTIES(USBNetState, conf), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/dev-serial.c b/hw/usb/dev-serial.c index 63047d79cf..0c3e9160ec 100644 --- a/hw/usb/dev-serial.c +++ b/hw/usb/dev-serial.c @@ -634,7 +634,7 @@ static const VMStateDescription vmstate_usb_serial = { .unmigratable = 1, }; -static Property serial_properties[] = { +static const Property serial_properties[] = { DEFINE_PROP_CHR("chardev", USBSerialState, cs), DEFINE_PROP_BOOL("always-plugged", USBSerialState, always_plugged, false), DEFINE_PROP_END_OF_LIST(), @@ -677,7 +677,7 @@ static const TypeInfo serial_info = { .class_init = usb_serial_class_initfn, }; -static Property braille_properties[] = { +static const Property braille_properties[] = { DEFINE_PROP_CHR("chardev", USBSerialState, cs), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index c0d63e0425..c3c02f0aad 100644 --- a/hw/usb/dev-smartcard-reader.c +++ b/hw/usb/dev-smartcard-reader.c @@ -1171,7 +1171,7 @@ static Answer *ccid_peek_next_answer(USBCCIDState *s) : &s->pending_answers[s->pending_answers_start % PENDING_ANSWERS_NUM]; } -static Property ccid_props[] = { +static const Property ccid_props[] = { DEFINE_PROP_UINT32("slot", struct CCIDCardState, slot, 0), DEFINE_PROP_END_OF_LIST(), }; @@ -1431,7 +1431,7 @@ static const VMStateDescription ccid_vmstate = { } }; -static Property ccid_properties[] = { +static const Property ccid_properties[] = { DEFINE_PROP_UINT8("debug", USBCCIDState, debug, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/dev-storage-classic.c b/hw/usb/dev-storage-classic.c index 6147387dc6..ca037ba96f 100644 --- a/hw/usb/dev-storage-classic.c +++ b/hw/usb/dev-storage-classic.c @@ -67,7 +67,7 @@ static void usb_msd_storage_realize(USBDevice *dev, Error **errp) s->scsi_dev = scsi_dev; } -static Property msd_properties[] = { +static const Property msd_properties[] = { DEFINE_BLOCK_PROPERTIES(MSDState, conf), DEFINE_BLOCK_ERROR_PROPERTIES(MSDState, conf), DEFINE_PROP_BOOL("removable", MSDState, removable, false), diff --git a/hw/usb/dev-uas.c b/hw/usb/dev-uas.c index 1804cb6799..57e8d20051 100644 --- a/hw/usb/dev-uas.c +++ b/hw/usb/dev-uas.c @@ -953,7 +953,7 @@ static const VMStateDescription vmstate_usb_uas = { } }; -static Property uas_properties[] = { +static const Property uas_properties[] = { DEFINE_PROP_UINT32("log-scsi-req", UASDevice, requestlog, 0), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/hcd-dwc2.c b/hw/usb/hcd-dwc2.c index b4f0652c7d..6a10f3e9cd 100644 --- a/hw/usb/hcd-dwc2.c +++ b/hw/usb/hcd-dwc2.c @@ -1448,7 +1448,7 @@ const VMStateDescription vmstate_dwc2_state = { } }; -static Property dwc2_usb_properties[] = { +static const Property dwc2_usb_properties[] = { DEFINE_PROP_UINT32("usb_version", DWC2State, usb_version, 2), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/hcd-dwc3.c b/hw/usb/hcd-dwc3.c index e7d8c7924b..ff970bd989 100644 --- a/hw/usb/hcd-dwc3.c +++ b/hw/usb/hcd-dwc3.c @@ -656,7 +656,7 @@ static const VMStateDescription vmstate_usb_dwc3 = { } }; -static Property usb_dwc3_properties[] = { +static const Property usb_dwc3_properties[] = { DEFINE_PROP_UINT32("DWC_USB3_USERID", USBDWC3, cfg.dwc_usb3_user, 0x12345678), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c index dd06451e23..374f25c5ed 100644 --- a/hw/usb/hcd-ehci-pci.c +++ b/hw/usb/hcd-ehci-pci.c @@ -135,7 +135,7 @@ static void usb_ehci_pci_write_config(PCIDevice *dev, uint32_t addr, i->ehci.as = busmaster ? pci_get_address_space(dev) : &address_space_memory; } -static Property ehci_pci_properties[] = { +static const Property ehci_pci_properties[] = { DEFINE_PROP_UINT32("maxframes", EHCIPCIState, ehci.maxframes, 128), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/usb/hcd-ehci-sysbus.c b/hw/usb/hcd-ehci-sysbus.c index eb7df93ac2..f4e08aab89 100644 --- a/hw/usb/hcd-ehci-sysbus.c +++ b/hw/usb/hcd-ehci-sysbus.c @@ -30,7 +30,7 @@ static const VMStateDescription vmstate_ehci_sysbus = { } }; -static Property ehci_sysbus_properties[] = { +static const Property ehci_sysbus_properties[] = { DEFINE_PROP_UINT32("maxframes", EHCISysBusState, ehci.maxframes, 128), DEFINE_PROP_BOOL("companion-enable", EHCISysBusState, ehci.companion_enable, false), diff --git a/hw/usb/hcd-ohci-pci.c b/hw/usb/hcd-ohci-pci.c index 47fb659806..459644cc1b 100644 --- a/hw/usb/hcd-ohci-pci.c +++ b/hw/usb/hcd-ohci-pci.c @@ -109,7 +109,7 @@ static void usb_ohci_reset_pci(DeviceState *d) ohci_hard_reset(s); } -static Property ohci_pci_properties[] = { +static const Property ohci_pci_properties[] = { DEFINE_PROP_STRING("masterbus", OHCIPCIState, masterbus), DEFINE_PROP_UINT32("num-ports", OHCIPCIState, num_ports, 3), DEFINE_PROP_UINT32("firstport", OHCIPCIState, firstport, 0), diff --git a/hw/usb/hcd-ohci-sysbus.c b/hw/usb/hcd-ohci-sysbus.c index 313e1e71bb..81cf2e558d 100644 --- a/hw/usb/hcd-ohci-sysbus.c +++ b/hw/usb/hcd-ohci-sysbus.c @@ -57,7 +57,7 @@ static void ohci_sysbus_reset(DeviceState *dev) ohci_hard_reset(ohci); } -static Property ohci_sysbus_properties[] = { +static const Property ohci_sysbus_properties[] = { DEFINE_PROP_STRING("masterbus", OHCISysBusState, masterbus), DEFINE_PROP_UINT32("num-ports", OHCISysBusState, num_ports, 3), DEFINE_PROP_UINT32("firstport", OHCISysBusState, firstport, 0), diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index 65c1f93cc9..245352c231 100644 --- a/hw/usb/hcd-uhci.c +++ b/hw/usb/hcd-uhci.c @@ -1227,14 +1227,14 @@ static void usb_uhci_exit(PCIDevice *dev) } } -static Property uhci_properties_companion[] = { +static const Property uhci_properties_companion[] = { DEFINE_PROP_STRING("masterbus", UHCIState, masterbus), DEFINE_PROP_UINT32("firstport", UHCIState, firstport, 0), DEFINE_PROP_UINT32("bandwidth", UHCIState, frame_bandwidth, 1280), DEFINE_PROP_UINT32("maxframes", UHCIState, maxframes, 128), DEFINE_PROP_END_OF_LIST(), }; -static Property uhci_properties_standalone[] = { +static const Property uhci_properties_standalone[] = { DEFINE_PROP_UINT32("bandwidth", UHCIState, frame_bandwidth, 1280), DEFINE_PROP_UINT32("maxframes", UHCIState, maxframes, 128), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/hcd-xhci-nec.c b/hw/usb/hcd-xhci-nec.c index 0c063b3697..b582cf8f8d 100644 --- a/hw/usb/hcd-xhci-nec.c +++ b/hw/usb/hcd-xhci-nec.c @@ -38,7 +38,7 @@ struct XHCINecState { uint32_t slots; }; -static Property nec_xhci_properties[] = { +static const Property nec_xhci_properties[] = { DEFINE_PROP_ON_OFF_AUTO("msi", XHCIPciState, msi, ON_OFF_AUTO_AUTO), DEFINE_PROP_ON_OFF_AUTO("msix", XHCIPciState, msix, ON_OFF_AUTO_AUTO), DEFINE_PROP_UINT32("intrs", XHCINecState, intrs, XHCI_MAXINTRS), diff --git a/hw/usb/hcd-xhci-sysbus.c b/hw/usb/hcd-xhci-sysbus.c index 59cf7fd4ab..f4dbad7cc6 100644 --- a/hw/usb/hcd-xhci-sysbus.c +++ b/hw/usb/hcd-xhci-sysbus.c @@ -82,7 +82,7 @@ void xhci_sysbus_build_aml(Aml *scope, uint32_t mmio, unsigned int irq) aml_append(scope, dev); } -static Property xhci_sysbus_props[] = { +static const Property xhci_sysbus_props[] = { DEFINE_PROP_UINT32("intrs", XHCISysbusState, xhci.numintrs, XHCI_MAXINTRS), DEFINE_PROP_UINT32("slots", XHCISysbusState, xhci.numslots, XHCI_MAXSLOTS), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index d85adaca0d..3c5006f425 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -3605,7 +3605,7 @@ const VMStateDescription vmstate_xhci = { } }; -static Property xhci_properties[] = { +static const Property xhci_properties[] = { DEFINE_PROP_BIT("streams", XHCIState, flags, XHCI_FLAG_ENABLE_STREAMS, true), DEFINE_PROP_UINT32("p2", XHCIState, numports_2, 4), diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c index 691bc881fb..85d33b51ba 100644 --- a/hw/usb/host-libusb.c +++ b/hw/usb/host-libusb.c @@ -1758,7 +1758,7 @@ static const VMStateDescription vmstate_usb_host = { } }; -static Property usb_host_dev_properties[] = { +static const Property usb_host_dev_properties[] = { DEFINE_PROP_UINT32("hostbus", USBHostDevice, match.bus_num, 0), DEFINE_PROP_UINT32("hostaddr", USBHostDevice, match.addr, 0), DEFINE_PROP_STRING("hostport", USBHostDevice, match.port), diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index 0f2dd2e504..f72a612d5a 100644 --- a/hw/usb/redirect.c +++ b/hw/usb/redirect.c @@ -2573,7 +2573,7 @@ static const VMStateDescription usbredir_vmstate = { } }; -static Property usbredir_properties[] = { +static const Property usbredir_properties[] = { DEFINE_PROP_CHR("chardev", USBRedirDevice, cs), DEFINE_PROP_UINT8("debug", USBRedirDevice, debug, usbredirparser_warning), DEFINE_PROP_STRING("filter", USBRedirDevice, filter_str), diff --git a/hw/usb/u2f-emulated.c b/hw/usb/u2f-emulated.c index 63cceaa5fc..df86ce97fc 100644 --- a/hw/usb/u2f-emulated.c +++ b/hw/usb/u2f-emulated.c @@ -369,7 +369,7 @@ static void u2f_emulated_unrealize(U2FKeyState *base) } } -static Property u2f_emulated_properties[] = { +static const Property u2f_emulated_properties[] = { DEFINE_PROP_STRING("dir", U2FEmulatedState, dir), DEFINE_PROP_STRING("cert", U2FEmulatedState, cert), DEFINE_PROP_STRING("privkey", U2FEmulatedState, privkey), diff --git a/hw/usb/u2f-passthru.c b/hw/usb/u2f-passthru.c index c4a783d128..ec4f6165d8 100644 --- a/hw/usb/u2f-passthru.c +++ b/hw/usb/u2f-passthru.c @@ -516,7 +516,7 @@ static const VMStateDescription u2f_passthru_vmstate = { } }; -static Property u2f_passthru_properties[] = { +static const Property u2f_passthru_properties[] = { DEFINE_PROP_STRING("hidraw", U2FPassthruState, hidraw), DEFINE_PROP_END_OF_LIST(), }; From patchwork Fri Dec 13 19:29:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907738 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 53AADE7717F for ; Fri, 13 Dec 2024 19:32:42 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBNW-0007JM-9p; Fri, 13 Dec 2024 14:31:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMBMr-0006ft-Ai for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:31 -0500 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBMl-0004ER-3F for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:26 -0500 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-5401e6efffcso2355401e87.3 for ; Fri, 13 Dec 2024 11:30:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118221; x=1734723021; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=af94ntL1aP0LTF1ynUhyZnJWEdtzaUCk8WuF/T+fV+g=; b=DhsJOCgN0GNkUIdOv/ra6++4YgPagwNnsBLurVvSbANTwZ/R20i5xU5JA4qdx6jJ9E PTosc/f4znHAiwEld/R363P4Xh/v7ojla/GI7C/aDQDFkEfdmiSSppwd8LEFy35+FGIF LMKBTUMb8p2LEJvJ6iXlAmKbFaUqjJ5c6UbaAufHCDYi0ZV8Qr98KvPHthzD0Ml6dhZm 5WK34jYe+YJVs3Hxojpkvd538btTX3nFYp7dRpcEFlDU25BieMVzL1WHICKq2cqmCymN ql0tZWSzhdXt9X4yHXW2OSxSmROWCUPDlGUOSzJtpG2/bELoVfjf7DEJeoxO4MhtkgUl cvPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118221; x=1734723021; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=af94ntL1aP0LTF1ynUhyZnJWEdtzaUCk8WuF/T+fV+g=; b=fcXOGauDxQXW47bXjLK/mHCOI8XBm21azgwag3rMxuNtUnWPgjzB8d5wg9be37PzRs h41y5HzxSiPST7BtmARAQhvR4osq+jpsuj+ClUq+y8VkuoKhbG3vLRJpHjjgDgGE6hWG i/pHvPe36lGgw+j9Z9G3EhE/LDGEILZXNljnP/8vVrEA+70zs2JDL0cdrWivChmTGKiX 7DSvh0QVr4EllGg+PKgywoRb/5SvSJDWjG/pSXaKcnRe26ppCWUuGBpHv70FU3PkyHl3 gLVTzcxDQb5XGf09alVmH5VuFluwBnOwsEiaBzfW4ayzdtaBfdJxKtNsfu/ltt71f497 GUCg== X-Gm-Message-State: AOJu0YwuDtMyPDV97vbHRilkBb7WGfigGPnCOMQgSJR+/CqDqDeRgTld LYAbGlB0ylBzR4dZJ51ST27MTFx9r+aQl4QVp8wuocm5FCb9/YT+OVRV6YfEVTJwQV8ucjuLf6U 8CSO6X93b X-Gm-Gg: ASbGnctUc1Dpc1uJufAXL3bbfonbvHrzk7ZCMRklmbWR9ZS3qPbIGzRh/8tpWzhNDPp boRFwKQGxgkQLagtDUdW4FmxGc5y8scjA+9Mz5exOB8LAi24asKJsh33ZVYyG9uDmIlzLtMkuKK sMy9p0IdmJcqmEU/oW9HcbPZra9JRSoZuPVNQlGST8f+1zR7DVJwWqBvUybvA6JHUvHTV7yzQEa wcH5AVtvcHWkZ5CZtjZl+j7v9j3+HODaZsjhn44SXG6+31inZtKXPGnWeti0g== X-Google-Smtp-Source: AGHT+IFZJahtbpIO34rwarliyJq479V6b+7SCuRWEO589fskOqPBLdkr5T5JDUlJwmlOZKzSAaL27g== X-Received: by 2002:a05:6512:3d27:b0:53e:1c3e:34 with SMTP id 2adb3069b0e04-540905974b1mr1348410e87.38.1734118221148; Fri, 13 Dec 2024 11:30:21 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:19 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Tony Krowiak , Halil Pasic , Jason Herne , Thomas Huth , Alex Williamson , =?utf-8?q?C=C3=A9dric_Le_Goat?= =?utf-8?q?er?= , Eric Farman , Matthew Rosato , qemu-s390x@nongnu.org (open list:vfio-ap) Subject: [PATCH 65/71] hw/vfio: Constify all Property Date: Fri, 13 Dec 2024 13:29:59 -0600 Message-ID: <20241213193004.2515684-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213193004.2515684-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> <20241213193004.2515684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x12b.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater Reviewed-by: Eric Farman --- hw/vfio/ap.c | 2 +- hw/vfio/ccw.c | 2 +- hw/vfio/pci.c | 4 ++-- hw/vfio/platform.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c index 4013e7b436..2e6ea2dd93 100644 --- a/hw/vfio/ap.c +++ b/hw/vfio/ap.c @@ -191,7 +191,7 @@ static void vfio_ap_unrealize(DeviceState *dev) g_free(vapdev->vdev.name); } -static Property vfio_ap_properties[] = { +static const Property vfio_ap_properties[] = { DEFINE_PROP_STRING("sysfsdev", VFIOAPDevice, vdev.sysfsdev), #ifdef CONFIG_IOMMUFD DEFINE_PROP_LINK("iommufd", VFIOAPDevice, vdev.iommufd, diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c index c1cd7736cd..b96ab27e12 100644 --- a/hw/vfio/ccw.c +++ b/hw/vfio/ccw.c @@ -655,7 +655,7 @@ static void vfio_ccw_unrealize(DeviceState *dev) } } -static Property vfio_ccw_properties[] = { +static const Property vfio_ccw_properties[] = { DEFINE_PROP_STRING("sysfsdev", VFIOCCWDevice, vdev.sysfsdev), DEFINE_PROP_BOOL("force-orb-pfch", VFIOCCWDevice, force_orb_pfch, false), #ifdef CONFIG_IOMMUFD diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 14bcc725c3..93aca850e3 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -3354,7 +3354,7 @@ static void vfio_instance_init(Object *obj) pci_dev->cap_present |= QEMU_PCI_CAP_EXPRESS; } -static Property vfio_pci_dev_properties[] = { +static const Property vfio_pci_dev_properties[] = { DEFINE_PROP_PCI_HOST_DEVADDR("host", VFIOPCIDevice, host), DEFINE_PROP_UUID_NODEFAULT("vf-token", VFIOPCIDevice, vf_token), DEFINE_PROP_STRING("sysfsdev", VFIOPCIDevice, vbasedev.sysfsdev), @@ -3451,7 +3451,7 @@ static const TypeInfo vfio_pci_dev_info = { }, }; -static Property vfio_pci_dev_nohotplug_properties[] = { +static const Property vfio_pci_dev_nohotplug_properties[] = { DEFINE_PROP_BOOL("ramfb", VFIOPCIDevice, enable_ramfb, false), DEFINE_PROP_ON_OFF_AUTO("x-ramfb-migrate", VFIOPCIDevice, ramfb_migrate, ON_OFF_AUTO_AUTO), diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c index a85c199c76..766e8a86ef 100644 --- a/hw/vfio/platform.c +++ b/hw/vfio/platform.c @@ -629,7 +629,7 @@ static const VMStateDescription vfio_platform_vmstate = { .unmigratable = 1, }; -static Property vfio_platform_dev_properties[] = { +static const Property vfio_platform_dev_properties[] = { DEFINE_PROP_STRING("host", VFIOPlatformDevice, vbasedev.name), DEFINE_PROP_STRING("sysfsdev", VFIOPlatformDevice, vbasedev.sysfsdev), DEFINE_PROP_BOOL("x-no-mmap", VFIOPlatformDevice, vbasedev.no_mmap, false), From patchwork Fri Dec 13 19:30:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907741 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A2A2EE7717F for ; Fri, 13 Dec 2024 19:33:29 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBNI-0006sr-Pd; Fri, 13 Dec 2024 14:30:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMBN4-0006hl-6K for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:45 -0500 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBMw-0004G1-IU for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:39 -0500 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2ffa49f623cso23679831fa.1 for ; Fri, 13 Dec 2024 11:30:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118232; x=1734723032; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4NulB13XWjt/WlDjxXREVViEirAoAtzzDMPxFRCnz5s=; b=tDDcfHHzUq5ntD8rXjy6uWqpZVSQUHhKg0P2sPBBBrOgIdep/9JPk5QP/cpkLBlCSI //lQjgOOJVOn63ZJOoTBh8nAjC3hLO7P5m6blBJb9f1zf1Jj2FnzsS7D1xui6l6pcW6s vqXfYeseJbbBlvpXfZc+uwRqNAEvusIMVNwLcI/Dd2ZpDY/kLVKF4LxYDzA5qYmB8jTU ldHBg26pQAAzvoSP2Cipc/LfBgfDy6M0f3oqi20babYhW8ObYCDmymHVfQt8t8HsPk3u v52Qn2UjXe7nYP31fDcBevjmfAybGwzzk/ty7kfUwcF5J0lcDjOMumb6L9CWIrk5SoDg hSLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118232; x=1734723032; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4NulB13XWjt/WlDjxXREVViEirAoAtzzDMPxFRCnz5s=; b=D2sUpSeoqcHuLoNFg5IemnXpJO9o2JgZR0kidYAbr30SxoZr1xENTIp0vkEaZWQmH1 ub+B+WM+KCXKZOD/WlRsAucti1Z6XnrgENZvxn/Z00hYLqmtL/ou6mBIeanDaZCqbrvG NN1TMOZPZfiLjSvDDXsK8ot+wCWPPllc97yruiAIAhv7J8eKbuOHJpTXcDbnDqQ+WqA4 uDfnRCGHjAHwKd+nrth1r4qr2G3XWIcw0QVQ3tEHRy/+ZJYGnHUt1FDuE77EnM/Ua+PP nBZVUPa2JUU67/YT4w4P5+rTMxJoBZKTfhSg3Qy+Di902iqkHMQg03iE6Y29VQc4IXcY XSXg== X-Gm-Message-State: AOJu0YxIkr+WeZ0Obie/hqBNohsJSVETwsvej2P2dNLJNZwCUvRDxqZ4 93vrZ4CzZWupcHR2TqChWRnDRkXZRkXQrP5BEhJ4RYohPwUGlAC3a3PfKfJ92rsR4E/H+H0JUwN XjESoTw1E X-Gm-Gg: ASbGnct2lsDYzYRbkCPrGi/bKDl5+V8rhY+jEY9q7iXAoGqfYcByGTmeaEhy0zZLW7U JkWLkENn7SzHGPUICLTxscVnTHGLz3PzEbkl+7ZECch1FZVT+liJMatfI9QytV5IQ6+tNqWokPq Kpq1EIEhqxElvHYGa/mcYrtTVIvO1LkPGQE99EhRDZeGesnMK+1UjldtEdq1cOZ66CszPE868Ta gMhG1NbCHfdv61RFpZwsZdPcpHCWp1pkHLimnDgpCBMIDeG6uBiGWEYr+EkMQ== X-Google-Smtp-Source: AGHT+IGDB7QyFSQEXLvPA+kQz8xMBE8pu7+0bruT87ZLMJ3m/DdoiwuDeXZclipgmtWmH25SpKGl4g== X-Received: by 2002:a05:6512:a8c:b0:53e:391c:e96c with SMTP id 2adb3069b0e04-5408ad80ba1mr1205721e87.8.1734118232425; Fri, 13 Dec 2024 11:30:32 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:31 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Stefano Garzarella , Raphael Norwitz , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Viresh Kumar , Gerd Hoffmann , Mathieu Poirier , mzamazal@redhat.com (reviewer:vhost-user-scmi), Manos Pitsidianakis , David Hildenbrand , "Gonglei (Arei)" , Eric Auger , Alexander Graf , Dorjoy Chowdhury , Laurent Vivier , Amit Shah , virtio-fs@lists.linux.dev (open list:virtiofs) Subject: [PATCH 66/71] hw/virtio: Constify all Property Date: Fri, 13 Dec 2024 13:30:00 -0600 Message-ID: <20241213193004.2515684-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213193004.2515684-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> <20241213193004.2515684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=richard.henderson@linaro.org; helo=mail-lj1-x234.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- hw/virtio/vdpa-dev-pci.c | 2 +- hw/virtio/vdpa-dev.c | 2 +- hw/virtio/vhost-scsi-pci.c | 2 +- hw/virtio/vhost-user-blk-pci.c | 2 +- hw/virtio/vhost-user-device.c | 2 +- hw/virtio/vhost-user-fs-pci.c | 2 +- hw/virtio/vhost-user-fs.c | 2 +- hw/virtio/vhost-user-gpio.c | 2 +- hw/virtio/vhost-user-i2c.c | 2 +- hw/virtio/vhost-user-input.c | 2 +- hw/virtio/vhost-user-rng-pci.c | 2 +- hw/virtio/vhost-user-rng.c | 2 +- hw/virtio/vhost-user-scmi.c | 2 +- hw/virtio/vhost-user-scsi-pci.c | 2 +- hw/virtio/vhost-user-snd-pci.c | 2 +- hw/virtio/vhost-user-snd.c | 2 +- hw/virtio/vhost-user-vsock-pci.c | 2 +- hw/virtio/vhost-user-vsock.c | 2 +- hw/virtio/vhost-vsock-common.c | 2 +- hw/virtio/vhost-vsock-pci.c | 2 +- hw/virtio/vhost-vsock.c | 2 +- hw/virtio/virtio-9p-pci.c | 2 +- hw/virtio/virtio-balloon.c | 2 +- hw/virtio/virtio-blk-pci.c | 2 +- hw/virtio/virtio-crypto-pci.c | 2 +- hw/virtio/virtio-crypto.c | 2 +- hw/virtio/virtio-input-pci.c | 2 +- hw/virtio/virtio-iommu-pci.c | 2 +- hw/virtio/virtio-iommu.c | 2 +- hw/virtio/virtio-mem.c | 2 +- hw/virtio/virtio-mmio.c | 2 +- hw/virtio/virtio-net-pci.c | 2 +- hw/virtio/virtio-nsm.c | 2 +- hw/virtio/virtio-pci.c | 4 ++-- hw/virtio/virtio-pmem.c | 2 +- hw/virtio/virtio-rng-pci.c | 2 +- hw/virtio/virtio-rng.c | 2 +- hw/virtio/virtio-scsi-pci.c | 2 +- hw/virtio/virtio-serial-pci.c | 2 +- hw/virtio/virtio.c | 2 +- 40 files changed, 41 insertions(+), 41 deletions(-) diff --git a/hw/virtio/vdpa-dev-pci.c b/hw/virtio/vdpa-dev-pci.c index 5446e6b393..d0ee240e9d 100644 --- a/hw/virtio/vdpa-dev-pci.c +++ b/hw/virtio/vdpa-dev-pci.c @@ -48,7 +48,7 @@ static void vhost_vdpa_device_pci_instance_init(Object *obj) "bootindex"); } -static Property vhost_vdpa_device_pci_properties[] = { +static const Property vhost_vdpa_device_pci_properties[] = { DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vdpa-dev.c b/hw/virtio/vdpa-dev.c index 64b96b226c..61849b3b0e 100644 --- a/hw/virtio/vdpa-dev.c +++ b/hw/virtio/vdpa-dev.c @@ -337,7 +337,7 @@ static void vhost_vdpa_device_set_status(VirtIODevice *vdev, uint8_t status) } } -static Property vhost_vdpa_device_properties[] = { +static const Property vhost_vdpa_device_properties[] = { DEFINE_PROP_STRING("vhostdev", VhostVdpaDevice, vhostdev), DEFINE_PROP_UINT16("queue-size", VhostVdpaDevice, queue_size, 0), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-scsi-pci.c b/hw/virtio/vhost-scsi-pci.c index 08980bc23b..7536b37f18 100644 --- a/hw/virtio/vhost-scsi-pci.c +++ b/hw/virtio/vhost-scsi-pci.c @@ -38,7 +38,7 @@ struct VHostSCSIPCI { VHostSCSI vdev; }; -static Property vhost_scsi_pci_properties[] = { +static const Property vhost_scsi_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, DEV_NVECTORS_UNSPECIFIED), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-user-blk-pci.c b/hw/virtio/vhost-user-blk-pci.c index eef8641a98..99f1472023 100644 --- a/hw/virtio/vhost-user-blk-pci.c +++ b/hw/virtio/vhost-user-blk-pci.c @@ -43,7 +43,7 @@ struct VHostUserBlkPCI { VHostUserBlk vdev; }; -static Property vhost_user_blk_pci_properties[] = { +static const Property vhost_user_blk_pci_properties[] = { DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, DEV_NVECTORS_UNSPECIFIED), diff --git a/hw/virtio/vhost-user-device.c b/hw/virtio/vhost-user-device.c index 67aa934710..3222b67bd9 100644 --- a/hw/virtio/vhost-user-device.c +++ b/hw/virtio/vhost-user-device.c @@ -29,7 +29,7 @@ static const VMStateDescription vud_vmstate = { .unmigratable = 1, }; -static Property vud_properties[] = { +static const Property vud_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_UINT16("virtio-id", VHostUserBase, virtio_id, 0), DEFINE_PROP_UINT32("vq_size", VHostUserBase, vq_size, 64), diff --git a/hw/virtio/vhost-user-fs-pci.c b/hw/virtio/vhost-user-fs-pci.c index 6829b8b743..9ba6c40655 100644 --- a/hw/virtio/vhost-user-fs-pci.c +++ b/hw/virtio/vhost-user-fs-pci.c @@ -29,7 +29,7 @@ typedef struct VHostUserFSPCI VHostUserFSPCI; DECLARE_INSTANCE_CHECKER(VHostUserFSPCI, VHOST_USER_FS_PCI, TYPE_VHOST_USER_FS_PCI) -static Property vhost_user_fs_pci_properties[] = { +static const Property vhost_user_fs_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, DEV_NVECTORS_UNSPECIFIED), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-user-fs.c b/hw/virtio/vhost-user-fs.c index 32ee7f496d..c0462329a5 100644 --- a/hw/virtio/vhost-user-fs.c +++ b/hw/virtio/vhost-user-fs.c @@ -403,7 +403,7 @@ static const VMStateDescription vuf_backend_vmstate = { }, }; -static Property vuf_properties[] = { +static const Property vuf_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserFS, conf.chardev), DEFINE_PROP_STRING("tag", VHostUserFS, conf.tag), DEFINE_PROP_UINT16("num-request-queues", VHostUserFS, diff --git a/hw/virtio/vhost-user-gpio.c b/hw/virtio/vhost-user-gpio.c index 9f37c25415..c997c66d80 100644 --- a/hw/virtio/vhost-user-gpio.c +++ b/hw/virtio/vhost-user-gpio.c @@ -14,7 +14,7 @@ #include "standard-headers/linux/virtio_ids.h" #include "standard-headers/linux/virtio_gpio.h" -static Property vgpio_properties[] = { +static const Property vgpio_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-i2c.c b/hw/virtio/vhost-user-i2c.c index a464f5e039..b0a5cbf3ea 100644 --- a/hw/virtio/vhost-user-i2c.c +++ b/hw/virtio/vhost-user-i2c.c @@ -14,7 +14,7 @@ #include "qemu/error-report.h" #include "standard-headers/linux/virtio_ids.h" -static Property vi2c_properties[] = { +static const Property vi2c_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-input.c b/hw/virtio/vhost-user-input.c index bedec0468c..c57cc461bb 100644 --- a/hw/virtio/vhost-user-input.c +++ b/hw/virtio/vhost-user-input.c @@ -7,7 +7,7 @@ #include "qemu/osdep.h" #include "hw/virtio/virtio-input.h" -static Property vinput_properties[] = { +static const Property vinput_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-rng-pci.c b/hw/virtio/vhost-user-rng-pci.c index f64935453b..0016ee74ce 100644 --- a/hw/virtio/vhost-user-rng-pci.c +++ b/hw/virtio/vhost-user-rng-pci.c @@ -23,7 +23,7 @@ typedef struct VHostUserRNGPCI VHostUserRNGPCI; DECLARE_INSTANCE_CHECKER(VHostUserRNGPCI, VHOST_USER_RNG_PCI, TYPE_VHOST_USER_RNG_PCI) -static Property vhost_user_rng_pci_properties[] = { +static const Property vhost_user_rng_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, DEV_NVECTORS_UNSPECIFIED), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-user-rng.c b/hw/virtio/vhost-user-rng.c index 01879c863d..c9985b5fad 100644 --- a/hw/virtio/vhost-user-rng.c +++ b/hw/virtio/vhost-user-rng.c @@ -20,7 +20,7 @@ static const VMStateDescription vu_rng_vmstate = { .unmigratable = 1, }; -static Property vrng_properties[] = { +static const Property vrng_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-scmi.c b/hw/virtio/vhost-user-scmi.c index 300847e672..a15e6916ef 100644 --- a/hw/virtio/vhost-user-scmi.c +++ b/hw/virtio/vhost-user-scmi.c @@ -277,7 +277,7 @@ static const VMStateDescription vu_scmi_vmstate = { .unmigratable = 1, }; -static Property vu_scmi_properties[] = { +static const Property vu_scmi_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserSCMI, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-scsi-pci.c b/hw/virtio/vhost-user-scsi-pci.c index 75882e3cf9..b2f6451f48 100644 --- a/hw/virtio/vhost-user-scsi-pci.c +++ b/hw/virtio/vhost-user-scsi-pci.c @@ -44,7 +44,7 @@ struct VHostUserSCSIPCI { VHostUserSCSI vdev; }; -static Property vhost_user_scsi_pci_properties[] = { +static const Property vhost_user_scsi_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, DEV_NVECTORS_UNSPECIFIED), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-user-snd-pci.c b/hw/virtio/vhost-user-snd-pci.c index d61cfdae63..5cf3557b7e 100644 --- a/hw/virtio/vhost-user-snd-pci.c +++ b/hw/virtio/vhost-user-snd-pci.c @@ -23,7 +23,7 @@ typedef struct VHostUserSoundPCI VHostUserSoundPCI; DECLARE_INSTANCE_CHECKER(VHostUserSoundPCI, VHOST_USER_SND_PCI, TYPE_VHOST_USER_SND_PCI) -static Property vhost_user_snd_pci_properties[] = { +static const Property vhost_user_snd_pci_properties[] = { DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-snd.c b/hw/virtio/vhost-user-snd.c index 9a217543f8..8810a9f699 100644 --- a/hw/virtio/vhost-user-snd.c +++ b/hw/virtio/vhost-user-snd.c @@ -21,7 +21,7 @@ static const VMStateDescription vu_snd_vmstate = { .unmigratable = 1, }; -static Property vsnd_properties[] = { +static const Property vsnd_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserBase, chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-vsock-pci.c b/hw/virtio/vhost-user-vsock-pci.c index e5a86e8013..529d967059 100644 --- a/hw/virtio/vhost-user-vsock-pci.c +++ b/hw/virtio/vhost-user-vsock-pci.c @@ -31,7 +31,7 @@ struct VHostUserVSockPCI { /* vhost-user-vsock-pci */ -static Property vhost_user_vsock_pci_properties[] = { +static const Property vhost_user_vsock_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 3), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-user-vsock.c b/hw/virtio/vhost-user-vsock.c index da3b0e0229..97885bfeab 100644 --- a/hw/virtio/vhost-user-vsock.c +++ b/hw/virtio/vhost-user-vsock.c @@ -148,7 +148,7 @@ static void vuv_device_unrealize(DeviceState *dev) } -static Property vuv_properties[] = { +static const Property vuv_properties[] = { DEFINE_PROP_CHR("chardev", VHostUserVSock, conf.chardev), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-vsock-common.c b/hw/virtio/vhost-vsock-common.c index fd88df2560..cb2253c39f 100644 --- a/hw/virtio/vhost-vsock-common.c +++ b/hw/virtio/vhost-vsock-common.c @@ -285,7 +285,7 @@ static struct vhost_dev *vhost_vsock_common_get_vhost(VirtIODevice *vdev) return &vvc->vhost_dev; } -static Property vhost_vsock_common_properties[] = { +static const Property vhost_vsock_common_properties[] = { DEFINE_PROP_ON_OFF_AUTO("seqpacket", VHostVSockCommon, seqpacket, ON_OFF_AUTO_AUTO), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/vhost-vsock-pci.c b/hw/virtio/vhost-vsock-pci.c index 9f34414d38..1d9abd02bd 100644 --- a/hw/virtio/vhost-vsock-pci.c +++ b/hw/virtio/vhost-vsock-pci.c @@ -35,7 +35,7 @@ struct VHostVSockPCI { /* vhost-vsock-pci */ -static Property vhost_vsock_pci_properties[] = { +static const Property vhost_vsock_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 3), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/vhost-vsock.c b/hw/virtio/vhost-vsock.c index 3d4a5a97f4..ce80e84494 100644 --- a/hw/virtio/vhost-vsock.c +++ b/hw/virtio/vhost-vsock.c @@ -205,7 +205,7 @@ static void vhost_vsock_device_unrealize(DeviceState *dev) vhost_vsock_common_unrealize(vdev); } -static Property vhost_vsock_properties[] = { +static const Property vhost_vsock_properties[] = { DEFINE_PROP_UINT64("guest-cid", VHostVSock, conf.guest_cid, 0), DEFINE_PROP_STRING("vhostfd", VHostVSock, conf.vhostfd), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/virtio-9p-pci.c b/hw/virtio/virtio-9p-pci.c index 94c14f0b98..b33faf2fbb 100644 --- a/hw/virtio/virtio-9p-pci.c +++ b/hw/virtio/virtio-9p-pci.c @@ -43,7 +43,7 @@ static void virtio_9p_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp) qdev_realize(vdev, BUS(&vpci_dev->bus), errp); } -static Property virtio_9p_pci_properties[] = { +static const Property virtio_9p_pci_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index afd2ad6dd6..ab2ee30475 100644 --- a/hw/virtio/virtio-balloon.c +++ b/hw/virtio/virtio-balloon.c @@ -1015,7 +1015,7 @@ static const VMStateDescription vmstate_virtio_balloon = { }, }; -static Property virtio_balloon_properties[] = { +static const Property virtio_balloon_properties[] = { DEFINE_PROP_BIT("deflate-on-oom", VirtIOBalloon, host_features, VIRTIO_BALLOON_F_DEFLATE_ON_OOM, false), DEFINE_PROP_BIT("free-page-hint", VirtIOBalloon, host_features, diff --git a/hw/virtio/virtio-blk-pci.c b/hw/virtio/virtio-blk-pci.c index 9743bee965..abdcc11b2e 100644 --- a/hw/virtio/virtio-blk-pci.c +++ b/hw/virtio/virtio-blk-pci.c @@ -38,7 +38,7 @@ struct VirtIOBlkPCI { VirtIOBlock vdev; }; -static Property virtio_blk_pci_properties[] = { +static const Property virtio_blk_pci_properties[] = { DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0), DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), diff --git a/hw/virtio/virtio-crypto-pci.c b/hw/virtio/virtio-crypto-pci.c index 0783dc2f7e..23c85fe586 100644 --- a/hw/virtio/virtio-crypto-pci.c +++ b/hw/virtio/virtio-crypto-pci.c @@ -37,7 +37,7 @@ struct VirtIOCryptoPCI { VirtIOCrypto vdev; }; -static Property virtio_crypto_pci_properties[] = { +static const Property virtio_crypto_pci_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), diff --git a/hw/virtio/virtio-crypto.c b/hw/virtio/virtio-crypto.c index c3ffd8328d..9ae0b02598 100644 --- a/hw/virtio/virtio-crypto.c +++ b/hw/virtio/virtio-crypto.c @@ -1128,7 +1128,7 @@ static const VMStateDescription vmstate_virtio_crypto = { }, }; -static Property virtio_crypto_properties[] = { +static const Property virtio_crypto_properties[] = { DEFINE_PROP_LINK("cryptodev", VirtIOCrypto, conf.cryptodev, TYPE_CRYPTODEV_BACKEND, CryptoDevBackend *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/virtio/virtio-input-pci.c b/hw/virtio/virtio-input-pci.c index a53edf46c4..55c0b0555b 100644 --- a/hw/virtio/virtio-input-pci.c +++ b/hw/virtio/virtio-input-pci.c @@ -37,7 +37,7 @@ struct VirtIOInputHIDPCI { VirtIOInputHID vdev; }; -static Property virtio_input_pci_properties[] = { +static const Property virtio_input_pci_properties[] = { DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/virtio-iommu-pci.c b/hw/virtio/virtio-iommu-pci.c index cbdfe4c591..92adf63684 100644 --- a/hw/virtio/virtio-iommu-pci.c +++ b/hw/virtio/virtio-iommu-pci.c @@ -34,7 +34,7 @@ struct VirtIOIOMMUPCI { VirtIOIOMMU vdev; }; -static Property virtio_iommu_pci_properties[] = { +static const Property virtio_iommu_pci_properties[] = { DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0), DEFINE_PROP_ARRAY("reserved-regions", VirtIOIOMMUPCI, vdev.nr_prop_resv_regions, vdev.prop_resv_regions, diff --git a/hw/virtio/virtio-iommu.c b/hw/virtio/virtio-iommu.c index 59ef4fb217..576ad8383f 100644 --- a/hw/virtio/virtio-iommu.c +++ b/hw/virtio/virtio-iommu.c @@ -1655,7 +1655,7 @@ static const VMStateDescription vmstate_virtio_iommu = { }, }; -static Property virtio_iommu_properties[] = { +static const Property virtio_iommu_properties[] = { DEFINE_PROP_LINK("primary-bus", VirtIOIOMMU, primary_bus, TYPE_PCI_BUS, PCIBus *), DEFINE_PROP_BOOL("boot-bypass", VirtIOIOMMU, boot_bypass, true), diff --git a/hw/virtio/virtio-mem.c b/hw/virtio/virtio-mem.c index 80ada89551..3f6f46fad7 100644 --- a/hw/virtio/virtio-mem.c +++ b/hw/virtio/virtio-mem.c @@ -1680,7 +1680,7 @@ static void virtio_mem_instance_finalize(Object *obj) vmem->mr = NULL; } -static Property virtio_mem_properties[] = { +static const Property virtio_mem_properties[] = { DEFINE_PROP_UINT64(VIRTIO_MEM_ADDR_PROP, VirtIOMEM, addr, 0), DEFINE_PROP_UINT32(VIRTIO_MEM_NODE_PROP, VirtIOMEM, node, 0), DEFINE_PROP_BOOL(VIRTIO_MEM_PREALLOC_PROP, VirtIOMEM, prealloc, false), diff --git a/hw/virtio/virtio-mmio.c b/hw/virtio/virtio-mmio.c index e3366fe54c..49d9fe8f30 100644 --- a/hw/virtio/virtio-mmio.c +++ b/hw/virtio/virtio-mmio.c @@ -751,7 +751,7 @@ static void virtio_mmio_pre_plugged(DeviceState *d, Error **errp) /* virtio-mmio device */ -static Property virtio_mmio_properties[] = { +static const Property virtio_mmio_properties[] = { DEFINE_PROP_BOOL("format_transport_address", VirtIOMMIOProxy, format_transport_address, true), DEFINE_PROP_BOOL("force-legacy", VirtIOMMIOProxy, legacy, true), diff --git a/hw/virtio/virtio-net-pci.c b/hw/virtio/virtio-net-pci.c index e03543a70a..e86094ae22 100644 --- a/hw/virtio/virtio-net-pci.c +++ b/hw/virtio/virtio-net-pci.c @@ -38,7 +38,7 @@ struct VirtIONetPCI { VirtIONet vdev; }; -static Property virtio_net_properties[] = { +static const Property virtio_net_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, diff --git a/hw/virtio/virtio-nsm.c b/hw/virtio/virtio-nsm.c index a3db8eef3e..7b85a3f4f7 100644 --- a/hw/virtio/virtio-nsm.c +++ b/hw/virtio/virtio-nsm.c @@ -1698,7 +1698,7 @@ static const VMStateDescription vmstate_virtio_nsm = { }, }; -static Property virtio_nsm_properties[] = { +static const Property virtio_nsm_properties[] = { DEFINE_PROP_STRING("module-id", VirtIONSM, module_id), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 5c6c2019ce..de41cb5ef2 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -2349,7 +2349,7 @@ static void virtio_pci_bus_reset_hold(Object *obj, ResetType type) } } -static Property virtio_pci_properties[] = { +static const Property virtio_pci_properties[] = { DEFINE_PROP_BIT("virtio-pci-bus-master-bug-migration", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_BUS_MASTER_BUG_MIGRATION_BIT, false), DEFINE_PROP_BIT("migrate-extra", VirtIOPCIProxy, flags, @@ -2431,7 +2431,7 @@ static const TypeInfo virtio_pci_info = { .abstract = true, }; -static Property virtio_pci_generic_properties[] = { +static const Property virtio_pci_generic_properties[] = { DEFINE_PROP_ON_OFF_AUTO("disable-legacy", VirtIOPCIProxy, disable_legacy, ON_OFF_AUTO_AUTO), DEFINE_PROP_BOOL("disable-modern", VirtIOPCIProxy, disable_modern, false), diff --git a/hw/virtio/virtio-pmem.c b/hw/virtio/virtio-pmem.c index c3512c2dae..f6f3b5ddaf 100644 --- a/hw/virtio/virtio-pmem.c +++ b/hw/virtio/virtio-pmem.c @@ -155,7 +155,7 @@ static MemoryRegion *virtio_pmem_get_memory_region(VirtIOPMEM *pmem, return &pmem->memdev->mr; } -static Property virtio_pmem_properties[] = { +static const Property virtio_pmem_properties[] = { DEFINE_PROP_UINT64(VIRTIO_PMEM_ADDR_PROP, VirtIOPMEM, start, 0), DEFINE_PROP_LINK(VIRTIO_PMEM_MEMDEV_PROP, VirtIOPMEM, memdev, TYPE_MEMORY_BACKEND, HostMemoryBackend *), diff --git a/hw/virtio/virtio-rng-pci.c b/hw/virtio/virtio-rng-pci.c index 6e76f8b57b..398f432237 100644 --- a/hw/virtio/virtio-rng-pci.c +++ b/hw/virtio/virtio-rng-pci.c @@ -32,7 +32,7 @@ struct VirtIORngPCI { VirtIORNG vdev; }; -static Property virtio_rng_properties[] = { +static const Property virtio_rng_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c index 7cf31da071..13a1a0b236 100644 --- a/hw/virtio/virtio-rng.c +++ b/hw/virtio/virtio-rng.c @@ -249,7 +249,7 @@ static const VMStateDescription vmstate_virtio_rng = { }, }; -static Property virtio_rng_properties[] = { +static const Property virtio_rng_properties[] = { /* Set a default rate limit of 2^47 bytes per minute or roughly 2TB/s. If * you have an entropy source capable of generating more entropy than this * and you can pass it through via virtio-rng, then hats off to you. Until diff --git a/hw/virtio/virtio-scsi-pci.c b/hw/virtio/virtio-scsi-pci.c index e8e3442f38..733b5756db 100644 --- a/hw/virtio/virtio-scsi-pci.c +++ b/hw/virtio/virtio-scsi-pci.c @@ -35,7 +35,7 @@ struct VirtIOSCSIPCI { VirtIOSCSI vdev; }; -static Property virtio_scsi_pci_properties[] = { +static const Property virtio_scsi_pci_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, diff --git a/hw/virtio/virtio-serial-pci.c b/hw/virtio/virtio-serial-pci.c index cea31adcc4..bda643ec54 100644 --- a/hw/virtio/virtio-serial-pci.c +++ b/hw/virtio/virtio-serial-pci.c @@ -69,7 +69,7 @@ static void virtio_serial_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp) qdev_realize(vdev, BUS(&vpci_dev->bus), errp); } -static Property virtio_serial_pci_properties[] = { +static const Property virtio_serial_pci_properties[] = { DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index f12c4aa81e..7fcdb55ba4 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -4012,7 +4012,7 @@ static void virtio_device_instance_finalize(Object *obj) g_free(vdev->vector_queues); } -static Property virtio_properties[] = { +static const Property virtio_properties[] = { DEFINE_VIRTIO_COMMON_FEATURES(VirtIODevice, host_features), DEFINE_PROP_BOOL("use-started", VirtIODevice, use_started, true), DEFINE_PROP_BOOL("use-disabled-flag", VirtIODevice, use_disabled_flag, true), From patchwork Fri Dec 13 19:30:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907740 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 263FAE77180 for ; Fri, 13 Dec 2024 19:33:26 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBNa-0007hU-9X; Fri, 13 Dec 2024 14:31:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMBNA-0006pn-5k for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:49 -0500 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBN3-0004GU-VW for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:47 -0500 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-5401bd6cdb7so2088960e87.2 for ; Fri, 13 Dec 2024 11:30:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118240; x=1734723040; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EPj8YUZTlub03UJXQ+2sMdrVTlxqao7LM7USxZNwFlw=; b=T99Y4z9VnyAE44PGM1AduITMpPsCFm0ogYnqBVrmdeWxCIDNBAhgylbngQpyhF9f6N kVTE10OObygH4LIDkF0LnKbghZwTJPw4HDqzC1em1YTMOcIPZVE6tepYLafXHhwUhjeC usShMEx21U/7Y68o2Gg3qd0LbR45wzcuZH7231nwgb/zWDzZOUZl2eP+HjHVgrVDFX4h mHd81exFKc8vRQVBHLae2KQXU4myWdG9+oD1y7mERe57cx2xDFc5bMlN0bHOlD7OnLp3 FhbcbpraBF91f7yoKy4qP1ty9Tde5887CeB51aIXzirm73Gm3nP5GJwHgMDFXl0gj9av Cafw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118240; x=1734723040; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EPj8YUZTlub03UJXQ+2sMdrVTlxqao7LM7USxZNwFlw=; b=BITwDHuMogDjyrYz9WS2V2Jp5RV+b2MT2UcfJzToSgqMKJAL+OtvgdooI08GSOSRt4 kYheYXRX3n0mxtOlN3aj4YvMn5Ixe90Kikm19weei761kRqXLuNfaQ394bh7LZE4gznO IPHj/SAT23xn54QeW5+U0XNZb+OD7b+vqUGI1OLjF+3APOH7tthDo/yD8blUufL1SMKC 9vGCxOxqxFK/eu3+OlGA0KtdSI3sQ+vavN7WBwFG5aGPa2XyVavbm0WTuOSXDmNzN2b2 wpH9j7g8+ysjqD/imWb08vBwGMvzPHS3CVuqXggd2BuILZmGhhmJ6XOkQ1xhesiWfOO5 gZqw== X-Gm-Message-State: AOJu0Yw7tBpcgb/xZ2LuvGHdItHNvg7+OyyQOT37LCGPq+hsi30wIlvO E3PA2pGdeiuboXU+MVg30uE6q6Koq3RjzdXSKNHzar8wfhjJJG6aRE9WuYbNQokaxQTt0Ru1EGs kaoWxJ+P+ X-Gm-Gg: ASbGnctcYm8ed4L9NubvfSZoXq6mi7D4002Zfz4rcftz52BTq31PS0Ru3Aq7VGP1yji yGy7vKmsbu4TL+li4hhCYJ2vFG6W/Zbchjd3gISRifFCvPpCamMNWjp55ZNYowkDYuXzGFlb5B9 xjnqND91eJR6Qn6xKyUwEqAHwvJDbQIbqy1B4qDLzDLHWq1aXUjb/AjDJXT2VTqbs+HGDt3qy1/ qRGRojbht7ovBQQnSe5GS4M0AJPiFsIgHDTxJ62N1V5oQschf49Lz2JJG+BxQ== X-Google-Smtp-Source: AGHT+IHb0blAbWg3B1NWm+nS1yJZRxXg8GCv1dyegKmvbvJOfpn+4qUWvzmiE0FhJVmsthORYRvPNA== X-Received: by 2002:a05:6512:3b2b:b0:540:1d6c:f1c1 with SMTP id 2adb3069b0e04-5408ad81cc1mr1062721e87.2.1734118239821; Fri, 13 Dec 2024 11:30:39 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:38 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Radoslaw Biernacki , Peter Maydell , Leif Lindholm , Marcin Juszkiewicz , =?utf-8?q?C=C3=A9dric_L?= =?utf-8?q?e_Goater?= , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Jean-Christophe Dubois , qemu-arm@nongnu.org (open list:SBSA-REF) Subject: [PATCH 67/71] hw/watchdog: Constify all Property Date: Fri, 13 Dec 2024 13:30:01 -0600 Message-ID: <20241213193004.2515684-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213193004.2515684-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> <20241213193004.2515684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x131.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater Reviewed-by: Leif Lindholm --- hw/watchdog/sbsa_gwdt.c | 2 +- hw/watchdog/wdt_aspeed.c | 2 +- hw/watchdog/wdt_imx2.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/watchdog/sbsa_gwdt.c b/hw/watchdog/sbsa_gwdt.c index 80f9b36e79..2e25d4b4e9 100644 --- a/hw/watchdog/sbsa_gwdt.c +++ b/hw/watchdog/sbsa_gwdt.c @@ -262,7 +262,7 @@ static void wdt_sbsa_gwdt_realize(DeviceState *dev, Error **errp) dev); } -static Property wdt_sbsa_gwdt_props[] = { +static const Property wdt_sbsa_gwdt_props[] = { /* * Timer frequency in Hz. This must match the frequency used by * the CPU's generic timer. Default 62.5Hz matches QEMU's legacy diff --git a/hw/watchdog/wdt_aspeed.c b/hw/watchdog/wdt_aspeed.c index 39c3f362a8..c95877e5c7 100644 --- a/hw/watchdog/wdt_aspeed.c +++ b/hw/watchdog/wdt_aspeed.c @@ -288,7 +288,7 @@ static void aspeed_wdt_realize(DeviceState *dev, Error **errp) sysbus_init_mmio(sbd, &s->iomem); } -static Property aspeed_wdt_properties[] = { +static const Property aspeed_wdt_properties[] = { DEFINE_PROP_LINK("scu", AspeedWDTState, scu, TYPE_ASPEED_SCU, AspeedSCUState *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c index 8162d58afa..61fbd91ee4 100644 --- a/hw/watchdog/wdt_imx2.c +++ b/hw/watchdog/wdt_imx2.c @@ -281,7 +281,7 @@ static void imx2_wdt_realize(DeviceState *dev, Error **errp) } } -static Property imx2_wdt_properties[] = { +static const Property imx2_wdt_properties[] = { DEFINE_PROP_BOOL("pretimeout-support", IMX2WdtState, pretimeout_support, false), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:30:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907778 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2827DE77180 for ; Fri, 13 Dec 2024 19:34:24 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBNn-0008WM-BF; Fri, 13 Dec 2024 14:31: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 1tMBNF-0006t3-Te for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:54 -0500 Received: from mail-lj1-x235.google.com ([2a00:1450: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 1tMBNE-0004I2-Bz for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:53 -0500 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-30037784fceso19590961fa.2 for ; Fri, 13 Dec 2024 11:30:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118249; x=1734723049; 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=G5t5Kfg88Idn9A8sdeK/3C+aA4Q4/f69T01+9FYpo+k=; b=pulcQxxvmsaMNFbCgeKdO0MxoTeoxjO4cqGY2XeFUAZAjlUHZsfNI9pm0NxmAVhDea RZA7GqlGA7r2bZJkKlxA0d9NImYjSVwqsoIwvvltH/BvKNWsdYKRNKnYDHbj/KoyI5Bh wcuam9pOertvrPjh/wUZtWab1QkrDkFVXGdw4PBcbTZGfvVUxUZVbIp0aWj21slCLz+a O1sdxMuJ1p3aXbhwrUOZzOUe9H9fZnTv4s0uJaE2/IpiwPeRG41Wn3m4G6AHgIkAse/5 p21Acwz0Nj9rvmVBawuEb56Y/E5wkYErUPBKwracWfkPLd6FR9otClfbljWnTcRSgEeS kwkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118249; x=1734723049; 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=G5t5Kfg88Idn9A8sdeK/3C+aA4Q4/f69T01+9FYpo+k=; b=pfs+MrRSXsZbfC1tlOXsIaansDdKUBfsoW9va02S1x5a8fXrQc/oIKbZKX6dFfyg9S o0+uAAkaAbEL0zbFoCPhJ6ujJJskTcP2g/gCPBboYMycR+adK4rvTBpJ1oO1IKUjydIA FXmq1xhygPBIYqs69Adr+GCVRQao4g0t0SHhUzVwckZ+l5LEyifMTtzwt5r2c62nLPof r251amQ1PJ1qD3RsXgch2nfjXq8jf5ZYgnsc9LyIA2OEwuGxjC8bN5x5gVVScWmj+EVJ vumvP/dt34Asjm9AW6qrD5TvWlz5hfCqXsvrLSeW8bJsPtmO1VozMH1te4hCDaufgpZG eiyg== X-Gm-Message-State: AOJu0YxzDd5UiXQVMLi5NBfDuOo4Xs7pTXatXdpvuxg0HJTdDxvm6amf D0PXyHdJh0gbubsl6SoQ2nWYzUu3wOy20jemRabuzpI/WTlYNXvVPxNt6OiVj/FOeY/XcxgPIEX hb8o6cCcI X-Gm-Gg: ASbGnct4nI9qCsCzUZqXOuGmPy7t0QvR9EqEGN1tQTFMr+/v41zJHggTtEiBtfYDIvT sl3fFH+dSHeFdzoOACLcKVpjQWs+LEmTpDBgOBhe4cBvHiTx/y6IKD8tVtDZcXb8vG4VbkOpK3z b19HWs81px/KQm9WdkNYO89V6qDFkRBVBuOoxXh5SNX6PEmySRGihNZHv5nxzM9JBkUc4/FI3Jd PbfHgsoUfKpfqIc5b2fzok0/2t4HpLCz8a3BNpCjOpaLzkRBPSBlX9z1quEig== X-Google-Smtp-Source: AGHT+IEVWn8s5zP1MGFumvUQTEQ3ffwofWS3mvrYSU47wD3xL4Ll8IZLZ5/xOoizBV+DtpEb6Tf3yA== X-Received: by 2002:a05:6512:104d:b0:540:206b:c358 with SMTP id 2adb3069b0e04-5409055826bmr965522e87.20.1734118248733; Fri, 13 Dec 2024 11:30:48 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Stefano Stabellini , Anthony PERARD , Paul Durrant , "Edgar E. Iglesias" , xen-devel@lists.xenproject.org (open list:X86 Xen CPUs) Subject: [PATCH 69/71] hw/xen: Use DEFINE_PROP_END_OF_LIST in xen_sysdev_properties Date: Fri, 13 Dec 2024 13:30:03 -0600 Message-ID: <20241213193004.2515684-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213193004.2515684-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> <20241213193004.2515684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=richard.henderson@linaro.org; helo=mail-lj1-x235.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Jason Andryuk --- hw/xen/xen-legacy-backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xen/xen-legacy-backend.c b/hw/xen/xen-legacy-backend.c index b15393e934..f6ad58fe13 100644 --- a/hw/xen/xen-legacy-backend.c +++ b/hw/xen/xen-legacy-backend.c @@ -675,7 +675,7 @@ static const TypeInfo xensysbus_info = { }; static const Property xen_sysdev_properties[] = { - {/* end of property list */}, + DEFINE_PROP_END_OF_LIST(), }; static void xen_sysdev_class_init(ObjectClass *klass, void *data) From patchwork Fri Dec 13 19:31:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907781 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E445E77180 for ; Fri, 13 Dec 2024 19:35:15 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBNi-0008Qv-Mf; Fri, 13 Dec 2024 14:31:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMBNd-0007ya-5H for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:31:17 -0500 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBNa-0004K0-TM for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:31:16 -0500 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-53df19bf6a9so2911095e87.1 for ; Fri, 13 Dec 2024 11:31:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118273; x=1734723073; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+4rdkJduZkbXz6JmK4QEKv1jKAaYDuIzC71PHld//xk=; b=B63d/NmfNI69OdSEksZuyj/v8mDEINqLsjO3PNjCLPaDgq6VOF/s8RPa85Itad30Id xL1cnN2gzlyum0zR17UczJrciVNyckVTLJqYjqEJhC0n8HhtPLSlo1HSDgg/yl6Awl9F HIMGtFBxJwVcogpAdDonUpVJQcl5AZvDeoyWBp2lzfrLan5Bp/Wg9Iy2R7ZWQaAX7smr SD7UVtZ1TXyDeVa5kXRQBGyKVT/IV1t2ezsjOJtzGzhLIzaH2E2YlwfP0pKoYHZ9+JRW qxTyNgpD/kVSG/sKsTMfxPNDYDTh2Lc/y1l6wI/zlkXqv1AXNuQvFmd3FXPQPwcP9l4q aCkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118273; x=1734723073; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+4rdkJduZkbXz6JmK4QEKv1jKAaYDuIzC71PHld//xk=; b=PwLEgCHKMRjYDw/ioRqWZQwUqdEKafc1GLsg5ieCOh6rQmsNf6eMTBu2cTWKD97eV/ t4D4rd41t4S6TtEkZhWRyijOg7THxqXbnY7P5QgibcEt0CKYV6pG1qVlMUN5N1Py9mLx /1ackE9b8c2BQ00dPSFnlevqNi5WnP1yUhNrAq14tlM+7d4VPsrlzYSQBqBX9934Y3bJ 2unQYz8zvMQJU0Ol0PSUR6HmehylAv8L93xQa9umlxd9QvPa19sQjskv7Z7FI40IMkUW Y2eAmmbB1ST3VrpTlJikyYqSDL7Dw/nwHKHpmr6QuWX0zcL8thUu9Gs/KEAjBYbYDj1+ lfNg== X-Gm-Message-State: AOJu0YwjhaG0xFXWbyCJeLJ/9Ocr/mNSpUFTc3r3NcMJQ4iP+ik19IRX FtrsvyJBsu0TRvct5VfuRo+AaEZ4rkKgpAfTzftb1TMkj0SBHd6e38jjbWC22Rx5nt+Uf0mRkym nuxHSWqiy X-Gm-Gg: ASbGncvuXkjtft6JpERa/h8L0BddCRRvrOR7PrSky86/zrMbUhDn+hC9u1nbzAsZ61D s/tE6dF03czQY0A3tYTo4AtSUYJhcUK2gpJkyynq2RckDNMncyBzgVrFCpvnSg9IpR3tZWcQRVY Ak80bdGla+WAaC2nNJ/wqIwELw7+2L6PMKck8zSpyXz9gJyYtAfs8h7WwyO4jQYiCP6LIt4nKsr xzIndfcndrrBkyl3WNmqge5khxOsrs1yRiR7ZtCXDU294DHLOE5e9+5NpafqQ== X-Google-Smtp-Source: AGHT+IGZaw7fo6ASbUtjikNIXECL567eaI66j1GW7LxGSht1RWaflHkAodf93EpmqmK03VfVVYaaWw== X-Received: by 2002:a05:6512:1288:b0:540:3572:bb6 with SMTP id 2adb3069b0e04-54090557f0emr1423299e87.15.1734118272736; Fri, 13 Dec 2024 11:31:12 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c204ebsm6723e87.250.2024.12.13.11.31.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:31:12 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Eduardo Habkost Subject: [PATCH 70/71] tests/unit: Constify all Property Date: Fri, 13 Dec 2024 13:31:03 -0600 Message-ID: <20241213193104.2515757-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x12f.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- tests/unit/test-qdev-global-props.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test-qdev-global-props.c b/tests/unit/test-qdev-global-props.c index c8862cac5f..1eb95d2429 100644 --- a/tests/unit/test-qdev-global-props.c +++ b/tests/unit/test-qdev-global-props.c @@ -46,7 +46,7 @@ struct MyType { uint32_t prop2; }; -static Property static_props[] = { +static const Property static_props[] = { DEFINE_PROP_UINT32("prop1", MyType, prop1, PROP_DEFAULT), DEFINE_PROP_UINT32("prop2", MyType, prop2, PROP_DEFAULT), DEFINE_PROP_END_OF_LIST() From patchwork Fri Dec 13 19:31:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13907784 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 28CE3E77180 for ; Fri, 13 Dec 2024 19:37:53 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMBO0-0000AE-GR; Fri, 13 Dec 2024 14:31:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMBNj-0008WN-8b for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:31:26 -0500 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBNh-0004Ke-7T for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:31:22 -0500 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-3003d7ca01cso19830361fa.0 for ; Fri, 13 Dec 2024 11:31:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118278; x=1734723078; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=D9NZJMUMihYF2f/RMgHkdbty8GjEbXThSHvmpYC5Oh8=; b=tREhw7sqW9nyi7zhpSA1DDgbgdWxy0FYnor4UnB9kghH3+JUMN66XYDvSlrplcvsze PUZJTfsGS3DfaJfruj8k1m4dgVB/qxuuBZIb/EOVVxCVvs98gry09jHJ6plofKTmLHmw T5cJP5hpTKHyF6UDDcBwV/zB3l4C8uE1CQhV1nmqu2oqq/NxijpWaTWOxsSbgrQof/8L r+/jdjMqn29dqE/qfuV+OLzMTjbWcInmWoqeevy3dVSAw9swaZ29kI7bPvLf4gUiOyCa Izgxus521KlhugtfbIY81BwoXVEWtVzH+hEPLt/5G5xWgZhnPzPWT3i5Dkt0/fSt9+d7 7a6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118278; x=1734723078; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D9NZJMUMihYF2f/RMgHkdbty8GjEbXThSHvmpYC5Oh8=; b=J8iYRhwnXkV/yzB5B3kLkBDNGMPD5mCemCK9LONuEEm1OxyNXZKLD4W01kH1aBo2vi kjmpP5yBEiB9zpmQxtJX/uWs/92CWCn5a5xTcXzVVjFwewFbJu9YuY21NPOxdwOu5k5F vTMDalc7LFS3AuGt1gfhzzTGD4GwuJ0fg71yAFJl3rVBwiMdzYLcluLHL7b/y7sOiTok azW3Uf49jUt5031hDvQzgO02nZAI31L7/kDOaw06uN09oh+AqasAtFlYy7ijZloZ5VBo do4I5greqQz9csp/RvLtDbBIC4tEQHwj2KLpMvE90MPigFg1a4AzzbCd/YiPPMkgMKyd vk7w== X-Gm-Message-State: AOJu0YzC56+CriHv7r6BJaX5S99XcM6baoTpAqlw0PFieME7hQBOpF3Z Qn+Y++sIS7HTkHDG1rwHJCGGaP3I12PWxd4GLu8e8NV7GniEkgUQc4f/IWrDr65ayE1O6offK9F TFITpTcSJ X-Gm-Gg: ASbGncuBQ5i21V5itmyj9HpaEDmefxmdIS5Mtv7rrH5kkvPujpObgpy/E/o0Ies2S3y +swlCCZHXwnAwKuFAY4iJxql7NOc2pcioBBCMEXdD2cfDdmyew1KJrEU2u5q5LC2KXVxD8JTcjL ROZgDQx2n0qCg0NauybrFSfVyDvD+IX9RTsL9Lg3TY3CuTw6Y5HN4SOQKfeY6qIG3AAa3Szm0BZ uPQzJRpV7CitspIfPAsv8ZkX7PAt2rkutr9CGFNmbgxI8t9dIlF8D1Rs4X0Zg== X-Google-Smtp-Source: AGHT+IEMNKkQnrRflo+yxGeX4qGXLN4U0wyX2tu5dVCJqJyfEoB7JGYnONT272yxGUDy9/0Yk6qcCQ== X-Received: by 2002:a05:6512:3a91:b0:53e:37a5:4cb5 with SMTP id 2adb3069b0e04-5408bcc53f3mr1536668e87.4.1734118278231; Fri, 13 Dec 2024 11:31:18 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c204ebsm6723e87.250.2024.12.13.11.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:31:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Peter Xu , Fabiano Rosas , "Michael S. Tsirkin" Subject: [PATCH 71/71] docs: Constify all Property in examples Date: Fri, 13 Dec 2024 13:31:04 -0600 Message-ID: <20241213193104.2515757-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213193104.2515757-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> <20241213193104.2515757-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=richard.henderson@linaro.org; helo=mail-lj1-x22b.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson Acked-by: Peter Xu --- 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),