From patchwork Sun Dec 15 19:05:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851015 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523695wry; Sun, 15 Dec 2024 11:17:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXLc5gTok1t8XsJR3Ju+aK6fhpyAApre9ZkkiXFgUG83oMaD1tYEfKgtBwee6WORIuPVpwAWQ==@linaro.org X-Google-Smtp-Source: AGHT+IE7BpXMkYou4VulNWUlabPeYOLwGfu3GOiSqoL1FGpdAv7eqvHeD7xqYT+ntlILkrmKEjWf X-Received: by 2002:a05:6214:2a8e:b0:6d4:c6d:17fe with SMTP id 6a1803df08f44-6dc8ca94308mr180871526d6.25.1734290232724; Sun, 15 Dec 2024 11:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290232; cv=none; d=google.com; s=arc-20240605; b=g7udkeIWofs7wkuSwfWDaOLyPCf1oa3mgHwhCFJAj9Cdwa8nhHK3o5xWH5ckv26Qh0 5hVs3kCRRwr5++kRVeFz2H80wsKAiznmyy3AOwaODzCDquavYY4QuLambVkCNCJjkJLi AJ5mEpb4idTYDswumVtBk5NY179PROTw0H4EYxp4WOhkzFqr11DtCB22tAKEaZvH9th8 bq5CxHNWh5aq0Wz4x57LgL7XGQ5/e3YCmHjTxi8uhhMdSzqPan8GEDVXdGcKc1BwEyYA CN7GLU+cZNqqX/+U09H48OcoZ2C1IUEJkXZYTXaXOjF0AwXftJ71+yE83R5P3nhfrYSy 9yQw== 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=dufLCBl9eHHxrnVCe/umUFhwRr7vI1lAGb7uckjuB5g=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=fmuXSyYjxwCiJSzKQwKwG9R00rEDz6LNpJV8SNBOQ6EsYgkxe8opXa+QKAR/tRHTos MW5riAZAblrTGcZYXXfKnyK5xuGKy5w9Iqc4nORw3KoSxkHdeCQvkiP/EttLj1raJ2rn MfqQnuxH0z4M6Op+FtqaCjrKobCRAI22KqccaC1RFaHsnGtcpOtxf+3QHzYBGPYd4EFK rAOUd1kXVy2hMkCMxMMAgiJVWXVp/TM9dYMJKLczWI+Pa5bN6iC7UA9qvWAXRBWYKKnU Yij9MjIveYIlHqHlX4UMF8uJ1NwAyix1+4O4QRf86iR0aIWd7jwFp1mQWgtzLXdPm8tz ezkw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FrxsOV6s; 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-6dccd3a0af8si51963386d6.501.2024.12.15.11.17.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:17:12 -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=FrxsOV6s; 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 1tMu03-0003NT-FM; Sun, 15 Dec 2024 14:09:55 -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 1tMtzr-00029i-Tj for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:44 -0500 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtzp-0001Ur-9E for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:43 -0500 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-71e15d9629bso679074a34.1 for ; Sun, 15 Dec 2024 11:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289780; x=1734894580; 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=dufLCBl9eHHxrnVCe/umUFhwRr7vI1lAGb7uckjuB5g=; b=FrxsOV6sPlzUG5xw0lanUMi/DdI/dWsBoY0MMySk0DesTk7us818CHXZXurIWxfUoP ovrtr52M4aCFJQaw8052+Cv2dOGkM6dPGB63Oe73Ksdsy7odPmRkz3ku4/nAVFeqabZ5 d7JPXmqcciSk9Crh7MGJSQMtgR8S9a9PV7WQNtOFzz99/PR7drJwE4WTE6h9EsBIyS95 6olsxJSuxKfqEamDx6Bql2abAjLoIf2CQkJxCjTLqJ5e7O1T2eTkPEPkN10aBXFFrY/b +JAOQdX9p0DzLCMvwkG3+aH+TVmy07OY8V45OENKnfLgXNgzFWJBfyODY3DtVjh7YLAA nwhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289780; x=1734894580; 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=dufLCBl9eHHxrnVCe/umUFhwRr7vI1lAGb7uckjuB5g=; b=Cj8Y4t33ja8xLx4Em04EBbVGj3BwPisQWhjA8ixp/d1vQQPN+inhvNm7zgvlnMt4iQ /jYLJelhh2ABCVJiNFP2jmce8BuVwC88ZdcHY4m9BwBZfBDQVfDRGuqsbOf7jOTeBgBa iqfUiHjJRdG6kShuivFEe7ByDDoAZezQYcWQ3AzUQDsonXr4oeikR+81tblxOU3oiJJR ggyCzTDOInHGE7S2tGjJ3OwaScYqduV38dNMAQiI3iYX05f/v0cUXCiWNlXafqZs/vQZ PyHfEz4sUBdbsso+DQr5Mu72fXvy6BKgHF9kDl+xbReP1jszlILBVZ+zdidPsG/shDi1 KLTg== X-Gm-Message-State: AOJu0YyUb+l96vaWDP2K4wWBGnSF/ECwA8SywCaRn38rzQD4ZP74ByUb HhrBY8a/KcCQqGd1HYGtgjQiAdYdKGpCuto5kRzCW2Lp1+v9fswCbMuT6QRDRc/yLM0bCw+vn18 Ol32cuPAj X-Gm-Gg: ASbGncvEDGcwKKJhIGREdxfVLRNWRNbL4ampxDtL50eA2c8ig22W+vVXMdr33cPXPQq SGI4V7dpWI8WOl4yION6qFt5uqudglt7smh+7dQp6+dlqXrPssS+SL5NRlS4kw/VuA+CldtqRp8 DOyzK/IHc9guPmYqGjyeGlzNOwlyvJgdnkvfJYwoyKp3YXK1Qm8HQudwucLCS03G0/C9AgBSDEi ac8YB/uBXrPcIq2++IYqwchoK6kfufCjhZd19bJ34CsGuEPMm2FSN+grN/BEQPXCPVf3zkUrqOd Zt2bY6+iMmWc2MPbq2ZaFi9Ag99cZXpzcyBL4kTcERQ= X-Received: by 2002:a05:6830:6b07:b0:71d:fd31:25b4 with SMTP id 46e09a7af769-71e3b816842mr5646412a34.3.1734289779978; Sun, 15 Dec 2024 11:09:39 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:39 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 46/67] hw/pci: Constify all Property Date: Sun, 15 Dec 2024 13:05:12 -0600 Message-ID: <20241215190533.3222854-47-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::32f; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32f.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: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- hw/pci/pci.c | 2 +- hw/pci/pci_bridge.c | 2 +- hw/pci/pci_host.c | 2 +- hw/pci/pcie_port.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index bf0a1840db..90248481b1 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -81,7 +81,7 @@ static const PropertyInfo prop_pci_busnr = { .get = prop_pci_busnr_get, }; -static Property pci_props[] = { +static const Property pci_props[] = { DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1), DEFINE_PROP_STRING("romfile", PCIDevice, romfile), DEFINE_PROP_UINT32("romsize", PCIDevice, romsize, UINT32_MAX), diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c index 2c7bb1a525..dd4fd3674f 100644 --- a/hw/pci/pci_bridge.c +++ b/hw/pci/pci_bridge.c @@ -477,7 +477,7 @@ int pci_bridge_qemu_reserve_cap_init(PCIDevice *dev, int cap_offset, return 0; } -static Property pci_bridge_properties[] = { +static const Property pci_bridge_properties[] = { DEFINE_PROP_BOOL("x-pci-express-writeable-slt-bug", PCIBridge, pcie_writeable_slt_bug, false), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/pci/pci_host.c b/hw/pci/pci_host.c index dfe6fe6184..321e7be709 100644 --- a/hw/pci/pci_host.c +++ b/hw/pci/pci_host.c @@ -240,7 +240,7 @@ const VMStateDescription vmstate_pcihost = { } }; -static Property pci_host_properties_common[] = { +static const Property pci_host_properties_common[] = { DEFINE_PROP_BOOL("x-config-reg-migration-enabled", PCIHostState, mig_enabled, true), DEFINE_PROP_BOOL(PCI_HOST_BYPASS_IOMMU, PCIHostState, bypass_iommu, false), diff --git a/hw/pci/pcie_port.c b/hw/pci/pcie_port.c index 9f978ba164..bac2822e98 100644 --- a/hw/pci/pcie_port.c +++ b/hw/pci/pcie_port.c @@ -111,7 +111,7 @@ void pcie_chassis_del_slot(PCIESlot *s) QLIST_REMOVE(s, next); } -static Property pcie_port_props[] = { +static const Property pcie_port_props[] = { DEFINE_PROP_UINT8("port", PCIEPort, port, 0), DEFINE_PROP_UINT16("aer_log_max", PCIEPort, parent_obj.parent_obj.exp.aer_log.log_max, @@ -204,7 +204,7 @@ static const TypeInfo pcie_port_type_info = { .class_init = pcie_port_class_init, }; -static Property pcie_slot_props[] = { +static const Property pcie_slot_props[] = { DEFINE_PROP_UINT8("chassis", PCIESlot, chassis, 0), DEFINE_PROP_UINT16("slot", PCIESlot, slot, 0), DEFINE_PROP_BOOL("hotplug", PCIESlot, hotplug, true),