From patchwork Fri Dec 13 19:06:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850264 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1691364wry; Fri, 13 Dec 2024 11:25:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWLYG75v52m1onZDo4MI2mWqdQBtx7WcfZfj+VRE5tQWgI06PZDiUE26+2OLVdyKiS51EswLg==@linaro.org X-Google-Smtp-Source: AGHT+IF8RvsS7Or/AKxbLmULYgCg5MwyQSbSeF1QFwvYwgdKoGlreKnG7a8b6gYPuUJQ+yrxwkmM X-Received: by 2002:a05:6214:4115:b0:6d8:9215:f462 with SMTP id 6a1803df08f44-6dc8ca8e871mr64959606d6.22.1734117947885; Fri, 13 Dec 2024 11:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117947; cv=none; d=google.com; s=arc-20240605; b=lfVzva202tQ7wF4gAAvkVtbEKgUrfELwg//sPWC2nbnAU8ZS6EZMIxd16gxapEt8E2 PK9aHUkvY3UPVVkJbxTyclPmv61GVzp6lyQTYEi6PdlFs7S1QfAPnUJtcjSfLCLDCzNp SWhL7ppgQyRXouI393QNanIN5qLFHQywz88Fuj9yIVJQXtEPum46wRPzNBZZORy2G99n v9Rta7gNxwv25oPH99q9uT4bboDGKJrC+mRvf/B2Q7QtrcHMpH92qK/aUUhE+cHD/Lj8 J9wdZIjpJJERuBs02kCyTFYaH7CisJkMR8rVQypj7e3b1ltwda9E3i3YuiM1h82CeNss hXMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1VHlG8PfMsBdkVBprTDqyuBAqBPyNMa5du4T9t6Csx4=; fh=1QND5hWvkA3Ghi1pBqFmK2ngH4+7IqfdkG6MX3oHDvQ=; b=R7RyYMC908oKXEzBpkeI+nig0EAedQv2xZVuhIEQdDTqVINJa+Yf17K4K7+aY557Xw yWZpx59UqY9sdJo9+tRF6KnMaimARPtq1PZNJZMyWjLeZxsdxQowdVHoY0BuORgZ3NIn J0ceXOj+9fMZSS4AEbNvQ+mQcyXvPxe0bogTJ3powGKGbruAWoKgDQsRKjQ31hKGmQHL NeeHFYK+sPASJRC1SRAwjWRyAwRNeu4Kaxe6ozpN3b4x2mmQ7UgfKRAMCQNOiRwiOznP cVNPUWnTcwTvqT5ixTSJyJapompTqnnJBTxFHRFF4J51MH0JgDjFxwVpF7yTtrYyBfaT VeGw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uVELerz4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6dccd39abc0si466986d6.450.2024.12.13.11.25.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:25:47 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uVELerz4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3K-0005QZ-ET; Fri, 13 Dec 2024 14:10:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2P-0003ds-Ns for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:23 -0500 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2H-0006eF-KE for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:20 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e36b27b53so892077a34.1 for ; Fri, 13 Dec 2024 11:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116952; x=1734721752; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1VHlG8PfMsBdkVBprTDqyuBAqBPyNMa5du4T9t6Csx4=; b=uVELerz4HCplIJgdKTciJl3bWgtAjNOHPbJRMX/iVEJkIkW1hMNs0cJ5RFGrR8PnO7 xgawOaqH1W6Zrpbqs5Tf0JRkt6AYXlv4IJY6OjbPK0KNBuyrv5qPzufAvRlUOJhlV0Ff lWB+EpF11SMd0PPkMaJT4LHUGXL6DOG439UJgLrpgjYqPvmV6BMA165rq+r93W035KLH i5PQWxhO1bzmtnHFqNLzGTQmHisJN/nbm8udGYlCCSUVeWBbTrcvpruyjMHRgz77rGaU g1anh3IGQmnlT5KvZ3dCzuB1blixGCRS4IVwyH8ptcqczoocpjcViffuq+661PNbprKy ARPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116952; x=1734721752; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1VHlG8PfMsBdkVBprTDqyuBAqBPyNMa5du4T9t6Csx4=; b=dXBKA5z/F5ky0jDjieuBEJ5IgNJ9EOnmxWv23NaPUbA5XTpFy1ayVPgTNTG9uSQktX Y/xVpAp7KVioX/LafujoYtiDGFJ3QSSbFgNOebkvVolksROPanLc+XYuP1jwS9VKrLHt 7PlJQ0HlbiIprPz91tH5U5juZWUEZ2B+c1NkbMUrVUx2inMCrrRMJITygIgcC4nb/0VZ dNP1A1vsBEbITBUyzoP0aaV6B2xOMYHZ3DR3DU2+KP1Fyzdhbi+v+waX2LmuiGraqfOs /9Fj6DDClQnDAt9CLKrpqf/Eslvr+1raHjsdBBnZrKXV4y1g9m0Y3INOTnOtNGwpRITc HEVA== X-Gm-Message-State: AOJu0Yyv9TKonpMtO1mDiUQJlNVW+Xa18C/MRgXrvcd2Z4NC9oXFRLsO tsyVUFkJS35jIwhvv3nJPB7hWNo338ZfF9Sa77EqYWSwL/AtbEh5Pe1XNT3VBQ/BXMNuQhep9VB ji3oVetg+ X-Gm-Gg: ASbGncvgvXdetvRSgjh8lbtnPWBJWUIZA67pbOPVxDUZgLrmbUcTL1jBrZ08mEOyfJb rqF6a/Xj17BTyynuOKDDu6B9hoE7Bmj2H8nRKb2CiyHbbGAROtoVp7lpd3INI2XSwotWIUfjjGI Hzo9cMUzjcXpVybuChb8JVh8+Z9x/Y+ZuxGn5Yz/s6aIjKibQZzCeDSRzOYrw2ts1PII57Eo6CK byXA7wHjAKdmdMBylDoyHHeAdV6JpvFFkUx5CFUCdLPfxS837FJhafQeZHAHgXt X-Received: by 2002:a05:6830:6c14:b0:71d:f429:7f95 with SMTP id 46e09a7af769-71e3ba779d5mr2253520a34.29.1734116952105; Fri, 13 Dec 2024 11:09:12 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:11 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alistair Francis , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH 21/71] hw/core: Constify all Property Date: Fri, 13 Dec 2024 13:06:55 -0600 Message-ID: <20241213190750.2513964-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- hw/core/generic-loader.c | 2 +- hw/core/guest-loader.c | 2 +- hw/core/or-irq.c | 2 +- hw/core/platform-bus.c | 2 +- hw/core/split-irq.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c index ea8628b892..c1cddecf60 100644 --- a/hw/core/generic-loader.c +++ b/hw/core/generic-loader.c @@ -179,7 +179,7 @@ static void generic_loader_unrealize(DeviceState *dev) qemu_unregister_reset(generic_loader_reset, dev); } -static Property generic_loader_props[] = { +static const Property generic_loader_props[] = { DEFINE_PROP_UINT64("addr", GenericLoaderState, addr, 0), DEFINE_PROP_UINT64("data", GenericLoaderState, data, 0), DEFINE_PROP_UINT8("data-len", GenericLoaderState, data_len, 0), diff --git a/hw/core/guest-loader.c b/hw/core/guest-loader.c index 391c875a29..74af00cee7 100644 --- a/hw/core/guest-loader.c +++ b/hw/core/guest-loader.c @@ -111,7 +111,7 @@ static void guest_loader_realize(DeviceState *dev, Error **errp) loader_insert_platform_data(s, size, errp); } -static Property guest_loader_props[] = { +static const Property guest_loader_props[] = { DEFINE_PROP_UINT64("addr", GuestLoaderState, addr, 0), DEFINE_PROP_STRING("kernel", GuestLoaderState, kernel), DEFINE_PROP_STRING("bootargs", GuestLoaderState, args), diff --git a/hw/core/or-irq.c b/hw/core/or-irq.c index b25468e38a..fc52796f54 100644 --- a/hw/core/or-irq.c +++ b/hw/core/or-irq.c @@ -115,7 +115,7 @@ static const VMStateDescription vmstate_or_irq = { }, }; -static Property or_irq_properties[] = { +static const Property or_irq_properties[] = { DEFINE_PROP_UINT16("num-lines", OrIRQState, num_lines, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/core/platform-bus.c b/hw/core/platform-bus.c index dc58bf505a..a29c9c6e59 100644 --- a/hw/core/platform-bus.c +++ b/hw/core/platform-bus.c @@ -204,7 +204,7 @@ static void platform_bus_realize(DeviceState *dev, Error **errp) plaform_bus_refresh_irqs(pbus); } -static Property platform_bus_properties[] = { +static const Property platform_bus_properties[] = { DEFINE_PROP_UINT32("num_irqs", PlatformBusDevice, num_irqs, 0), DEFINE_PROP_UINT32("mmio_size", PlatformBusDevice, mmio_size, 0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/core/split-irq.c b/hw/core/split-irq.c index 3b90af2e8f..40fc7e2e77 100644 --- a/hw/core/split-irq.c +++ b/hw/core/split-irq.c @@ -59,7 +59,7 @@ static void split_irq_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out(dev, s->out_irq, s->num_lines); } -static Property split_irq_properties[] = { +static const Property split_irq_properties[] = { DEFINE_PROP_UINT16("num-lines", SplitIRQ, num_lines, 1), DEFINE_PROP_END_OF_LIST(), };