From patchwork Sun Dec 15 19:05:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851003 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2522878wry; Sun, 15 Dec 2024 11:14:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVArtATJLZsGY9U9UFgMRI/o6vMd+C9DS/zPCF/6KgzeA061EJ/cBxzd8LnVgTIo+RF/lsPLw==@linaro.org X-Google-Smtp-Source: AGHT+IExeTboJc/zyWyAPt2c2xsPyQyGmiM8Tat+hHMBV8GFtj6YWp8SFodieR4sHk+2tSl+TozR X-Received: by 2002:a05:620a:2989:b0:7b1:45be:2e87 with SMTP id af79cd13be357-7b6fbee7f0dmr1358997085a.18.1734290088326; Sun, 15 Dec 2024 11:14:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290088; cv=none; d=google.com; s=arc-20240605; b=AN60oAlW3VVaXM9QOAttmft+vHWFqnzOWYVbk/KIn9fHAqdJKjKXSPuTE9KQRp9YY2 4ixxWFxnsrTXPs0m27Ah9XiUjClDpRltPP35jixn4uPJi1X63wEl35YmTYccZdyTThGH JHFFP1HZWhaKv/qm2xgondakm3ewyLJ7Oo7zH2qMfpq60xAvKZpaTVoAr0Wv1EVOGUaS kPra4/eNqzgIwgWEDKqViJN1vxo6DR01S2LH1TBFldDuOFe/YXkuztGuDmq+XFwJyvmo aJ3qI3mCz/hM/bkhYaTo+eYiVV4DHCGoUyTY8GwRkyup5d94rka2d5s6RXo0PjtcQ6Mr 8QDg== 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=0pjAe5uWC/rd99tnYHP992w/Wxqt6VB986qUybTKyd0=; fh=qdQ7xnm0kQ1NI0orjLSaboHP1q78Iv8bmv347KM4OD4=; b=Ij39qqzavB16sIhgtEp+hBvs0A9JXy98p2lIeQylc1HREjOwf813rW+B6OGmPWiFp/ kuwEhyel1EUVMzYOFDJoDJ0a2WdcykjV536iJe0SQKTs842NcoWfJYzTXEZV9MreZIBH ra2spoKUThCTgreupOaPtj15y3mt0ckYEmZzCnMM3uQgnkcHmja569krPbiCJbYeNnUQ EomLbaMaRFda2Fdiyj0RuwcOfGvH0wtPpdJsTX0z+fKtRBWoJkgm9EmAhKy8JDuYxSKY mxRUhYi+HGkZS5qf4HuVwu5SutXVX2m4XdeJkvbRfYud3axY3PcOTkJe/Zv0RUXtUbqA b18g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mp3Gyraq; 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 af79cd13be357-7b7048be766si513069785a.235.2024.12.15.11.14.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:14:48 -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=Mp3Gyraq; 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 1tMu0F-0004i4-QP; Sun, 15 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 1tMu05-0003hj-98 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:57 -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 1tMu03-0001Xg-7R for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:56 -0500 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-71e3cbd0583so369471a34.1 for ; Sun, 15 Dec 2024 11:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289794; x=1734894594; 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=0pjAe5uWC/rd99tnYHP992w/Wxqt6VB986qUybTKyd0=; b=Mp3Gyraq34R++fsBpAqc4m4DmlLSOocHVAVZ9msc5jtYUAQG+ZRzQ7qAnoo910Gple 6wLxgUb+KiZOdwHVcj/3IccxYnG9DLEaOwaBo/ubyl9XVADUAR0aysL8pqWSTb2Y+evZ 5LULBKqSxNXc0gpc4b2nOHp2CMM/33xE48xEyTUDdDoa+Jb7MtTeCTqH6RYRkALLoPIL /W4vKxDUsn+yKhONI1Ij+2XPD1in52hLhMfU354/zpQ8GDmaDMxye+RmNdhMoGJql5i0 sBdaqW1JAtCau50UulcK71sXU3KOUVoOENSGaFt6eWewr9B/gZZE5+n6aPYIrXUMOIPd FXgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289794; x=1734894594; 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=0pjAe5uWC/rd99tnYHP992w/Wxqt6VB986qUybTKyd0=; b=HeHiefEFLnOgPtzV6i2eOL3L5IlOuaCY80/tVjDulDKEd5Ly94piWgyY45guisAv7G JURiJyCYRKvDBtTHpXROqawH0G0+gPtRTRS4HlvE0HpSkjqYeTP5OSUan3ghN/xJHl0M 41rvE1w6xW2BUTAoV2AFkFCdJ98uvKukxrGvFxDvnxTtMBdbHCw6E0t4BCz8z1ca+7cX ln9sudnj9wZ+ytUNtCR0Fisx7EZ4lV/5rSssThq26DQGV3lesQqvLVbZs8XRewpf/ugX Wm6rQvTODoPhjUoZqreM15Jy9nNALhRng+wQsmbxUFp3y+bKs4Ee4fzHV1f7CjgiRxU/ +jNA== X-Gm-Message-State: AOJu0Yz4ThotIHKCOKIFsLv+Aw6JZTFXVhWztWEBdvvIE27katy8jCDa nmh+rT3SYZiVuB4R3IU9Lpq7H2SX+okQtz0+ER28c5oyjLgm5eiPifV0RRnjxmgZXJIXg+yo/Je auKqFOnS3 X-Gm-Gg: ASbGnctifKcwwaWQe+RSWtv04zMQUGfcEJ8QWMEjJru+lt/txL1DPit6R95fNhfvdHP sgGU6pLErofceqr353hHWLsNs4g0pulDfzkcoaQr+H8N9l9qtNVGdC4e2pRCWFGECFFea1h8kmi s2GCVWUHLHpM/9d6ayi1i4n4EW2PbQqXTMOkxwYeY3QQz/b/UlySBQ/OATN9E1ZwU35yaVr5TxV HYw6Lf2VlT1YZjTJBDtrR2UkDT0OhkyK+o9k6tJbZRgdZPrDTD17Q2Sl/px4sCM576z5l+/n+CL sp0/SOBfvwTAxgNhnLcYPjMWRl3kkxVnb08bTrF3hEQ= X-Received: by 2002:a05:6830:3695:b0:718:1cb6:e593 with SMTP id 46e09a7af769-71e3ba4a008mr5528128a34.27.1734289793947; Sun, 15 Dec 2024 11:09:53 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Stefan Berger , =?utf-8?q?Ph?= =?utf-8?q?ilippe_Mathieu-Daud=C3=A9?= Subject: [PULL 59/67] hw/tpm: Constify all Property Date: Sun, 15 Dec 2024 13:05:25 -0600 Message-ID: <20241215190533.3222854-60-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-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 Reviewed-by: Stefan Berger Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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(),