From patchwork Fri Feb 3 10:12:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 650019 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp733334pva; Fri, 3 Feb 2023 02:13:16 -0800 (PST) X-Google-Smtp-Source: AK7set/qMtI/wAuKJYPOa0yhX8d0gONSn8hKitiwtGEqUdFgarGoVW2fL55/TOvC4bHtJzpPz+Os X-Received: by 2002:a0c:df90:0:b0:537:77b2:8aa3 with SMTP id w16-20020a0cdf90000000b0053777b28aa3mr17096681qvl.27.1675419195979; Fri, 03 Feb 2023 02:13:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675419195; cv=none; d=google.com; s=arc-20160816; b=bZoYWocO45Pn5i7r3wU4bJgN967TfD3GCPGjq+6ZgQqV43x7fJSBDkrTzn9UwOjgPZ DlD4T16RqP3aCDBmyMo8eqyZIZy6BH3E2wy/THLpYoBsap3JZnO7xBP9C7PH/IRXcWEO kcwsTQk4GC+PUHrdFx+gqXjswIh7cC3b6yynjQOhb9GiryWodaQorX1J7PIT3UlKwpU+ wmXVgEvegGihYUx92z3GsCSZwSkxMKZsXIyR62a6rAYFKM8Dbys+nGyFnqwVxSTbSlOj XcZb+MJ8tav/+Qrl9C4pzoDXpoC7+QhSFaf/8braec9SjdEu6ZyiSNkwRDOVlh9tx7k1 PNOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=LEOiYrWSQHlsAiuHuhCXDy1Rcvv1RyyMjqSxdpXj0GY=; b=XPwyzPubNzwy5/6O1lDLFdNVkbXl0ihPK4G8XjxVMLYaHzJ+J12GTh+Ei5kEn4opFp u8Z/68qmdGqujjO1+OkH1czks2/VC6X/SpgeexyOx6V/kSYJ1zDZL97ExLKLYOnTKWWh EYDzSEZ1PPgi/xGHuVIHgEICPjdhu8GURNRWowvbp8/FvY35Zxog0fPrvrqncQbwNuvd eu0ZAANFgD2BuOTYiVw1YjGuLMwnd7mmRAv//Mb938r3o2AMEIMTMFUegs/ui55lBifk PyFPEad3Z59p4LQYXrTEvdSf/TelhyOUxESV+eHvnq0lPHyB7yFUfHhuNIlZ3XgE8OUS 77Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bAFZYsXN; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t24-20020a0cb398000000b0056a2d002ac4si257254qve.271.2023.02.03.02.13.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Feb 2023 02:13:15 -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=bAFZYsXN; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNt3f-0008Kw-AB; Fri, 03 Feb 2023 05:12:39 -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 1pNt3Z-0008Ij-Ju for qemu-devel@nongnu.org; Fri, 03 Feb 2023 05:12:33 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450: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 1pNt3V-0002Ek-Ke for qemu-devel@nongnu.org; Fri, 03 Feb 2023 05:12:32 -0500 Received: by mail-wm1-x32f.google.com with SMTP id j29-20020a05600c1c1d00b003dc52fed235so3462153wms.1 for ; Fri, 03 Feb 2023 02:12:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LEOiYrWSQHlsAiuHuhCXDy1Rcvv1RyyMjqSxdpXj0GY=; b=bAFZYsXNqhecxi1at/paRgFqbKwLYdYKYGVg2kUH/ZKlEHHHQpGlgpCMXuk1s3BVDb ZcHj8NGxXeYdQLsH//cr8HmT4SUHltKwcy4TA5Ep68g13vMm8bNTKmg8/clsNnUsm0Yl QzsBS1MG9xikLTSts0a2Rbl2Q+HUCEBlhXSrZgTqLj/EkZ5xMwx8ddtFNoLImAkq+qcF rWxsqAjp6gmBw2UUD4ECYh+ZB6fu2FtQ4JjF1KraH7h0B6Wi7ctEG1VtSF0TxMzKTJdF VJHUrr/cp/pjBPVAuDiKaOOlXkFJs1qPctE8NI0uf7qZuilhMPKAMbFcvNJFOklpmNUW U+OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LEOiYrWSQHlsAiuHuhCXDy1Rcvv1RyyMjqSxdpXj0GY=; b=HQTy7rWK7/sjRM+X01eM1d0ARhgTL8wX97xO72Rp8MUO4JB49eaZQm5MD98OE73xN1 DeVtJufUGbhon3KoMRpkzpxakUUBCKWagWYwOetK7oZbK3TSRGX3ICAPO9NlBPd43Onp 0wLo4RFy/HKQf/2X6VKKkibywN4PfwV/E6IWBClKVg/NcfQo77Z2DkDgsu2xnVMskBWj AH7Hi0oCy3XHyH14pkVLIb1ulJh/7Oe8eIZf84h2sAEXwhNJ/GZhNaMmEg1sepyeUjUF VYDG3F9724OEPUKO5bgoWwklL40fkuQf77m5tntXJDZKhbXJb/vBC4nY7Yf729RDCVGo wkNQ== X-Gm-Message-State: AO0yUKXMX7USBmPTsHkuXWvFWPYphZTpdeThFH9TrSZjAF2Xt8qxbZk3 LmRyeByLwcqW0WtfvEgZ8/pVI5qO0kpwr/nD X-Received: by 2002:a05:600c:510e:b0:3dc:59e9:9285 with SMTP id o14-20020a05600c510e00b003dc59e99285mr9945129wms.18.1675419147489; Fri, 03 Feb 2023 02:12:27 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id n36-20020a05600c3ba400b003dc54eef495sm2473728wms.24.2023.02.03.02.12.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 Feb 2023 02:12:27 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Eduardo Habkost , qemu-trivial@nongnu.org, =?utf-8?q?D?= =?utf-8?q?aniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?Phili?= =?utf-8?q?ppe_Mathieu-Daud=C3=A9?= Subject: [PATCH 0/4] hw/qdev-properties: Constify Property* in DeviceClass Date: Fri, 3 Feb 2023 11:12:20 +0100 Message-Id: <20230203101224.25796-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-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=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 Qualify some Property pointers as 'const' when the structure is accessed read-only. Philippe Mathieu-Daudé (4): hw/qdev-properties: Constify Property* in object_field_prop_ptr() hw/qdev-properties: Constify Property* in PropertyInfo::print() handler hw/qdev-properties: Constify Property* in PropertyInfo::create() handler hw/qdev-properties: Constify DeviceClass::props_ field hw/core/qdev-properties-system.c | 2 +- hw/core/qdev-properties.c | 14 +++++++------- include/hw/qdev-core.h | 2 +- include/hw/qdev-properties.h | 6 +++--- softmmu/qdev-monitor.c | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-)