diff mbox series

[23/71] hw/cxl: Constify all Property

Message ID 20241213190750.2513964-28-richard.henderson@linaro.org
State Superseded
Headers show
Series whole-tree: Constify Property structures | expand

Commit Message

Richard Henderson Dec. 13, 2024, 7:06 p.m. UTC
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 hw/cxl/switch-mailbox-cci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jonathan Cameron Dec. 16, 2024, 10:04 a.m. UTC | #1
On Fri, 13 Dec 2024 13:06:57 -0600
Richard Henderson <richard.henderson@linaro.org> wrote:

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>  hw/cxl/switch-mailbox-cci.c | 2 +-
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

>  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(),
diff mbox series

Patch

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(),