From patchwork Fri Dec 13 19:07:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850265 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1691453wry; Fri, 13 Dec 2024 11:26:03 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUAF1PcpTp9ZEm9Lc0bpd2nL1TShjPOe9j8wdXm/KfsBFFiBQ5YDwzrzF9T1MUQCLZM0ZWVsA==@linaro.org X-Google-Smtp-Source: AGHT+IGz4C8BRj6W55KrCX13TgKgUlp2hpbm3wPNTlu+2y34tRmnHLDB5uXGszE4tBWvGp+5y83p X-Received: by 2002:a05:620a:29ca:b0:7b6:d383:3cca with SMTP id af79cd13be357-7b6fbf16063mr542831685a.35.1734117963062; Fri, 13 Dec 2024 11:26:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734117963; cv=none; d=google.com; s=arc-20240605; b=IrXzwT8/xi1X2qCVexEtPDm64E4B1lCar1UrfSKvP+Xx63rVDSJTxMbzW9HwZZ01pP 0hDCfKCrmdKPIYgB72G1Ci4hKktGpRW5x/tZGtYY7pRcWt5918AY1NkJpdZZYmRK8fCi J+Wj4qzJJeRdy3wktE147DIty0EM5bXL79R/p6dgkaDmSY8qA4pCBOU4MZKAsbWahSq4 DpBJmJFYVCFvX2tlq2tHeaN/CyYBKoO0NZrkoe5ZZnZorYmZ21eOT6KUq0Ps9jNa+Cn1 dtVk38jzODEbx20VeATsATwY4GFpjJmPKH5gBXLbFesJRSJvnIxvHgG2sphfA1q8Uxhh XOzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eBPUqFgXPqVkLv31et38XzRlVXlzY7DGcAmres7QK70=; fh=S4XMjC4d3gpQcbNZdWt29G+qH+ozcOvyvWx1qEXvV3c=; b=BNi4p4HOP8am8AyqVleJOrhtRetP9MXpdvxlKBZpHdQIr+BT6jksacu6MOXV8D5Q8V FhLQPp3FyVD8ccB7qNSQurQ2OJE6k+E+MDc4sFv8tU9GIoAz0g7jdACfyPTTAKGZQFIC T6eCo0BTSXKcieRm989fnNPSYve2OCg0BBI5j9XDSnsIZanymSW2bWZpHvNns3smcvZm u4WtjDi3sG/k9hKAjxJf1wdBxFMEpOa+cJ7JN5nsSUletoncWl3+Ve/Mvod9/qhsStB9 Ee0WDxUg4PUHZQEuQU+Ag0fzKJZ9+HHMzyQUwrfNrNCn56o+dDdFl0zbQj3meh480E6K IXKQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZcZ7zT4t; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2f4adecsi1180461cf.722.2024.12.13.11.26.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:26:03 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZcZ7zT4t; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMB3r-0006IG-EZ; Fri, 13 Dec 2024 14:10:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMB3k-0005z1-2S for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:44 -0500 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMB3f-000753-2h for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:10:43 -0500 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-71e3cbd0583so199472a34.1 for ; Fri, 13 Dec 2024 11:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734117037; x=1734721837; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eBPUqFgXPqVkLv31et38XzRlVXlzY7DGcAmres7QK70=; b=ZcZ7zT4tdhk11j3515x4EThsO3rDbeU0jMFeUU2bb+/imCFBVZM4d9cjArcmWCQNLb AcdHv3KYq6L/i/+J5pw/oZdyGxN87Xrt11ojlFWjEOP6e1l9LZgzO1hUGuDVo/KIqnqO IxTGtFMzUfFmk6kuUHs3fDKZhllED7x9MiqRV4sWos5UPEyDVjce/PRzUu8L5agzvL/z nsQJp96X7tbZuc9ILIXaJe4HsfELkzkLVNvmyU9cFjKobUUrAT3ddgmHwWAWGw+mzcac LYaHoNmVXlXgaMT9N61SjZaQ1frNAQ89K6TcvKOC19vR+9bTnowsRftkfkMiIMD7JggR H0VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734117037; x=1734721837; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eBPUqFgXPqVkLv31et38XzRlVXlzY7DGcAmres7QK70=; b=k9sxvulS6DpQ0RLrX9T7DlJKL8NilwzXsQnfnhx6LwZ7/pudhzu0/c3P/Vazt17gdy uIO7S2X0jqma/PLu7s2SHN4kIQzGH0c2llGzhpi+rWvWIChCRr+dc8eMt2Pt3pmNFCMr aG7c0KdRTUCG35LbaHdaQSCU0KQsZbQP6B/81Ki5cSJ+UKpt7LDl9zlnXpjFGGHavlVJ CRqDl86/v4pxBR5NCnYJcxCKQu0OSErWJUuijB/GqQL2/sPSH6rS+4ZIRK3OSSpjh6GU Pocmt28rv32rMOzkxV4sAQ9xECUy9M9U0/5ncZctnC/42/2ByXVlIXcO96bf8XUNW0et rWww== X-Gm-Message-State: AOJu0Yz9ECZy6Y9pZs/Mbiq5pqAxjo4l2HsRQiHZBwb5W+NOAs7NujlU Inn/fi0ZYLim1UXldtRWIKotzDCFZLuQuXY00g4rPdaopL18dv6hHB6hiQTcsWhwZCxNmd5irrd sCPL3OJzM X-Gm-Gg: ASbGnctqtpslTiqjxEiXign1OjN2xY8SlTHhBzLCkuBvQ0pFyQjfUqyh7fBnCqrjLeA 5lAXrdDWmZ6FEMTNqjWBDC3S2teRu5IgJighgtF+YbGfvLsxhwCayzbwi+p35F9MdNET0cXKyu8 Y9LXk/6a8jQp5If0G2CnwGbyAZBP47EMBQ8juUwFOufjK0OW6yyYP15LgfTQYr96XD47CWQjm53 yUxFaMlscEHFrSV/w1qif96jjJIzFcXlOR8+UrjktN+MDregCXc00+hLVg15/k5 X-Received: by 2002:a05:6830:f95:b0:71e:1c5:4f77 with SMTP id 46e09a7af769-71e3ba2b104mr2132805a34.20.1734117036827; Fri, 13 Dec 2024 11:10:36 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4834da91sm29697a34.18.2024.12.13.11.10.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:10:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Corey Minyard Subject: [PATCH 34/71] hw/ipmi: Constify all Property Date: Fri, 13 Dec 2024 13:07:08 -0600 Message-ID: <20241213190750.2513964-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213190750.2513964-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32b; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Acked-by: Corey Minyard --- hw/ipmi/ipmi.c | 2 +- hw/ipmi/ipmi_bmc_extern.c | 2 +- hw/ipmi/ipmi_bmc_sim.c | 2 +- hw/ipmi/isa_ipmi_bt.c | 2 +- hw/ipmi/isa_ipmi_kcs.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/ipmi/ipmi.c b/hw/ipmi/ipmi.c index bbb07b151e..850b3bc463 100644 --- a/hw/ipmi/ipmi.c +++ b/hw/ipmi/ipmi.c @@ -108,7 +108,7 @@ void ipmi_bmc_find_and_link(Object *obj, Object **bmc) OBJ_PROP_LINK_STRONG); } -static Property ipmi_bmc_properties[] = { +static const Property ipmi_bmc_properties[] = { DEFINE_PROP_UINT8("slave_addr", IPMIBmc, slave_addr, 0x20), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ipmi/ipmi_bmc_extern.c b/hw/ipmi/ipmi_bmc_extern.c index 29c5af3cc3..cfec1da87c 100644 --- a/hw/ipmi/ipmi_bmc_extern.c +++ b/hw/ipmi/ipmi_bmc_extern.c @@ -515,7 +515,7 @@ static void ipmi_bmc_extern_finalize(Object *obj) timer_free(ibe->extern_timer); } -static Property ipmi_bmc_extern_properties[] = { +static const Property ipmi_bmc_extern_properties[] = { DEFINE_PROP_CHR("chardev", IPMIBmcExtern, chr), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ipmi/ipmi_bmc_sim.c index 33c839c65a..8a55893e89 100644 --- a/hw/ipmi/ipmi_bmc_sim.c +++ b/hw/ipmi/ipmi_bmc_sim.c @@ -2191,7 +2191,7 @@ static void ipmi_sim_realize(DeviceState *dev, Error **errp) vmstate_register(NULL, 0, &vmstate_ipmi_sim, ibs); } -static Property ipmi_sim_properties[] = { +static const Property ipmi_sim_properties[] = { DEFINE_PROP_UINT16("fruareasize", IPMIBmcSim, fru.areasize, 1024), DEFINE_PROP_STRING("frudatafile", IPMIBmcSim, fru.filename), DEFINE_PROP_STRING("sdrfile", IPMIBmcSim, sdr_filename), diff --git a/hw/ipmi/isa_ipmi_bt.c b/hw/ipmi/isa_ipmi_bt.c index 7b36d51494..16062abb31 100644 --- a/hw/ipmi/isa_ipmi_bt.c +++ b/hw/ipmi/isa_ipmi_bt.c @@ -135,7 +135,7 @@ static void *isa_ipmi_bt_get_backend_data(IPMIInterface *ii) return &iib->bt; } -static Property ipmi_isa_properties[] = { +static const Property ipmi_isa_properties[] = { DEFINE_PROP_UINT32("ioport", ISAIPMIBTDevice, bt.io_base, 0xe4), DEFINE_PROP_INT32("irq", ISAIPMIBTDevice, isairq, 5), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/ipmi/isa_ipmi_kcs.c b/hw/ipmi/isa_ipmi_kcs.c index f52b32e590..7e7a37659e 100644 --- a/hw/ipmi/isa_ipmi_kcs.c +++ b/hw/ipmi/isa_ipmi_kcs.c @@ -142,7 +142,7 @@ static void *isa_ipmi_kcs_get_backend_data(IPMIInterface *ii) return &iik->kcs; } -static Property ipmi_isa_properties[] = { +static const Property ipmi_isa_properties[] = { DEFINE_PROP_UINT32("ioport", ISAIPMIKCSDevice, kcs.io_base, 0xca2), DEFINE_PROP_INT32("irq", ISAIPMIKCSDevice, isairq, 5), DEFINE_PROP_END_OF_LIST(),