From patchwork Fri Dec 13 19:06:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850244 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1689084wry; Fri, 13 Dec 2024 11:19:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVI+Hd45Rnt+RLZWTxBTpLt49xN7ZmcsGTxyjouT6juJXnzPjLRgPf1LZ7WJPH/WdZSFXJw2g==@linaro.org X-Google-Smtp-Source: AGHT+IEa4/q5dXIbpcpS9EBB7T+ZE8Xv36vJgEi8NMW8F44qWFLFomkaxBKKpPAWqrhtgZ1EmmP6 X-Received: by 2002:a05:6214:27c2:b0:6d3:b936:60d1 with SMTP id 6a1803df08f44-6dc96838c6bmr64146986d6.33.1734117599754; Fri, 13 Dec 2024 11:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117599; cv=none; d=google.com; s=arc-20240605; b=U3dgKPobZtL09wLY4LYXtT0dQkGtRmOJOq/NqrlK/SNpWCDhFpGQbMKzxvE9tV6awL bE7HL87t1tCkjFG7ala++eJd1fT+iIJ3N5JPyIoI0O9RIb64LOUBmU/m63f6SAxgjZF8 mOzrkjxFDlXJBKyv0qBQwicX9A9Fv0gIJTu/wMf69OPauI/vueTSKLpiaPwW6u+yBY+n ddAM3CYDAo64/iHEUS7UfypyHQgmPidc42UM2O4umRrdAlwEk9buxVISKlGi84Lyy5B7 1BKiCc0V8ZuHzitDHjScCRHSZyAVs8yhm0HJ3NUv7kry71s6dVyeivKsVgUszcyuBwse T0Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2QX322DCnm5cE0pXBGmrME5GjV/mM7P7qq+mljbXHQc=; fh=2/NVRShMjGGOPnVgu/0Bdj6u2Zjjp6qmQeSswPCwwCg=; b=K0B+ILiGk8hlap1KcCqUUGv2x4aFClGRc8esseOZcLxAHxHhFQOcqlumvtNoUFQGJE ksT3Tf2t0HaX71r2KLrAbDLIGKxEEsfMgT1y3EajlAagg/k8FxTDeY36H3/xLJn32Ha3 9IvIRb4AS/oZ0YIe8450Vh6O+jLFsOy38zYPT68JGpbThK5m4/fYDABJqZvqtFLz+aSd 1dzLXaQgimOuVDAzJKAFWQ49K7vV4SM+tG0KrEFkj2XQI83CZC20XIo82hvgtQTKAr8e K0dMxQwSXfPDaEcFGznJ7knTuqKd8ehsylMh1AtmjOv/9UrxDhI8xDf19S5lwh9K+f2r Q6qg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FYbPsRuL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6dccd34d191si492356d6.223.2024.12.13.11.19.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:19:59 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FYbPsRuL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3I-0005Lp-2N; Fri, 13 Dec 2024 14:10:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB2W-0003mf-Vh for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:30 -0500 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB2R-0006go-6e for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:09:25 -0500 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71e181fb288so940814a34.2 for ; Fri, 13 Dec 2024 11:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734116962; x=1734721762; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2QX322DCnm5cE0pXBGmrME5GjV/mM7P7qq+mljbXHQc=; b=FYbPsRuLN27DAsU+h5Gq1SIxYwAgHil+XRVB7v44rSfzJWKMCBmU4llcF9VQqWs2LH u4ShZjGNFYwHEhbjj0b7y9+oJzH4jpsfzhVjFR9dS3RMv1Uhry0AaoyyNvz6Pw0GXEbD /AKY17CxHS0ALGDISIWTBqNTVsyZNI9z7DchhMlemCZp67s747PjABjwt2mNYtJrJ9ml 2TVXlBe02fc/OnQoFjq4J1hpds+4Gyhu1OxfDXLugDTGcef/flBdwFKqD/SOuAJ3Lt1w wTNVZrLEck+zoEpD066C7KTo32V48oUmrMJgFjq/sLC3nRUcALmp5K8/TC9U72lWXhSP 8fwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734116962; x=1734721762; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2QX322DCnm5cE0pXBGmrME5GjV/mM7P7qq+mljbXHQc=; b=Sg+bX8g1GrvCjVTKnCxN/+mhlZ6+lNq15Ji191lWUQg7QiUqxfajigni20XBhKyMGK hnxmxUdz6mtYiYRxN5Z2JHzN3eInhilxVGM8HwTtc0x6XdgVScJSnXpY1hZEzpAYY0vl qkQDHJy3hL0Y9O940TZEPf8S4TlkZGYEnBQdC0WkBXIHWleEOt7n5gMqA7KNMZ6wvbrX i/OcO7AT9ZSpdv7qKxwGpcn5EnH3Z4J+/E6o8LTwPLJyEm+M4BZHNW6Qfc/H7Rk9logt 09zVneLQKwtaC5LMHZsTxSmBbmJobdxnmw7D6AmuWV13wH39PtxuHBayzaJJaTFMYrmW Pz9g== X-Gm-Message-State: AOJu0YwmIyWzsRoqoFRfBhkPw6Wns5oSi/S/D5M9W9SDuApmi2UcrVZR UKthjOowTU/MwXg554+ojuYIT/5RnwM26cHgkHf5Q5k9TZuhvOg8odkTjVP5tTEpEUZADzeOrGn ekzECw6ce X-Gm-Gg: ASbGncskEkQ3LSH1DuUlSfKxsAeG8oS+x5knfVu1np4WUq9eCjCJM9fr5d+ToHzmRiO +q7yVPVZKzKZem3Wm2gxHmyUZIttNDpR0nBhkZiTH9OWnpqYFRNfPiq9SfUy3JfApd6g8/fWiYP juvW/QMcxRikOCuZVDs7OW3qFYkn5y8gLbZ7/uUvFJlT2xJy2pNg7r6GF9dDByxC75w6MStHfd3 an7wEWztKbUiCHiYdWuTj70i+d1dWSkdhZKzCoEK0NSndjRaD8wWklOxUeg9clJ X-Received: by 2002:a05:6830:2b2b:b0:71d:548d:6f76 with SMTP id 46e09a7af769-71e3ba4f66dmr1971252a34.26.1734116961994; Fri, 13 Dec 2024 11:09:21 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:09:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Herv=C3=A9_Poussineau?= , "Michael S. Tsirkin" , Paolo Bonzini , Peter Maydell , "Edgar E. Iglesias" , Alistair Francis , qemu-ppc@nongnu.org (open list:PReP), qemu-arm@nongnu.org (open list:ARM PrimeCell and...) Subject: [PATCH 25/71] hw/dma: Constify all Property Date: Fri, 13 Dec 2024 13:06:59 -0600 Message-ID: <20241213190750.2513964-30-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- hw/dma/i82374.c | 2 +- hw/dma/i8257.c | 2 +- hw/dma/pl080.c | 2 +- hw/dma/pl330.c | 2 +- hw/dma/xilinx_axidma.c | 2 +- hw/dma/xlnx-zdma.c | 2 +- hw/dma/xlnx_csu_dma.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c index e72aa2e1ce..032afedde2 100644 --- a/hw/dma/i82374.c +++ b/hw/dma/i82374.c @@ -139,7 +139,7 @@ static void i82374_realize(DeviceState *dev, Error **errp) memset(s->commands, 0, sizeof(s->commands)); } -static Property i82374_properties[] = { +static const Property i82374_properties[] = { DEFINE_PROP_UINT32("iobase", I82374State, iobase, 0x400), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index 3e6700e53b..8b04177393 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/i8257.c @@ -585,7 +585,7 @@ static void i8257_realize(DeviceState *dev, Error **errp) d->dma_bh = qemu_bh_new(i8257_dma_run, d); } -static Property i8257_properties[] = { +static const Property i8257_properties[] = { DEFINE_PROP_INT32("base", I8257State, base, 0x00), DEFINE_PROP_INT32("page-base", I8257State, page_base, 0x80), DEFINE_PROP_INT32("pageh-base", I8257State, pageh_base, 0x480), diff --git a/hw/dma/pl080.c b/hw/dma/pl080.c index 8e76f88a69..3f392822ed 100644 --- a/hw/dma/pl080.c +++ b/hw/dma/pl080.c @@ -408,7 +408,7 @@ static void pl081_init(Object *obj) s->nchannels = 2; } -static Property pl080_properties[] = { +static const Property pl080_properties[] = { DEFINE_PROP_LINK("downstream", PL080State, downstream, TYPE_MEMORY_REGION, MemoryRegion *), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c index 0668caed7c..d5a0a1caa2 100644 --- a/hw/dma/pl330.c +++ b/hw/dma/pl330.c @@ -1646,7 +1646,7 @@ static void pl330_realize(DeviceState *dev, Error **errp) pl330_fifo_init(&s->fifo, s->data_width / 4 * s->data_buffer_dep); } -static Property pl330_properties[] = { +static const Property pl330_properties[] = { /* CR0 */ DEFINE_PROP_UINT32("num_chnls", PL330State, num_chnls, 8), DEFINE_PROP_UINT8("num_periph_req", PL330State, num_periph_req, 4), diff --git a/hw/dma/xilinx_axidma.c b/hw/dma/xilinx_axidma.c index 73a480bfbf..f09452d0b5 100644 --- a/hw/dma/xilinx_axidma.c +++ b/hw/dma/xilinx_axidma.c @@ -611,7 +611,7 @@ static void xilinx_axidma_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); } -static Property axidma_properties[] = { +static const Property axidma_properties[] = { DEFINE_PROP_UINT32("freqhz", XilinxAXIDMA, freqhz, 50000000), DEFINE_PROP_LINK("axistream-connected", XilinxAXIDMA, tx_data_dev, TYPE_STREAM_SINK, StreamSink *), diff --git a/hw/dma/xlnx-zdma.c b/hw/dma/xlnx-zdma.c index 46f50631ff..1a63d5f3b2 100644 --- a/hw/dma/xlnx-zdma.c +++ b/hw/dma/xlnx-zdma.c @@ -810,7 +810,7 @@ static const VMStateDescription vmstate_zdma = { } }; -static Property zdma_props[] = { +static const Property zdma_props[] = { DEFINE_PROP_UINT32("bus-width", XlnxZDMA, cfg.bus_width, 64), DEFINE_PROP_LINK("dma", XlnxZDMA, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *), diff --git a/hw/dma/xlnx_csu_dma.c b/hw/dma/xlnx_csu_dma.c index 43738c4350..d78dc6444b 100644 --- a/hw/dma/xlnx_csu_dma.c +++ b/hw/dma/xlnx_csu_dma.c @@ -691,7 +691,7 @@ static const VMStateDescription vmstate_xlnx_csu_dma = { } }; -static Property xlnx_csu_dma_properties[] = { +static const Property xlnx_csu_dma_properties[] = { /* * Ref PG021, Stream Data Width: * Data width in bits of the AXI S2MM AXI4-Stream Data bus.