From nobody Tue Nov 26 12:26:50 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1707909743; cv=none; d=zohomail.com; s=zohoarc; b=hbr4oio98NRQxVXsPOME+1YdLYcMgh2dqcrSbkUJRyLQQuD10yOpfNkw5u3N86kDFNtpRrh7hotLDsVEQEPmiXPogQPSTaSSxfYWc3/IsLmyO7d3Hq1cdVpswVHUE7PclKqTLgppcrdOLpynKfKs2EBf1445+OLm16vcbs43yZk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1707909743; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=7L7U5a8D5EylkKppdsLWG+1xzPDLzJY36FKng3qebqs=; b=hDWbbXEdnCq6GZgpBFa3tufGhgcaYoTH1z4CYH1v1gYl/VH2ZVhIhqxfRhFkufGYUoyB212TF82exligZ7M3wnHm5jecYx8Ql1cryTshg22kILq8mN6bMC37dNVmtMekrCzrNGEc0q5uMfqBbLNP2/B7tpqeAzpj0zG/n55rWjs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1707909743191552.5059349700846; Wed, 14 Feb 2024 03:22:23 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raDFM-0005Yu-6E; Wed, 14 Feb 2024 06:16:12 -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 1raDEu-0004zP-Fw for qemu-devel@nongnu.org; Wed, 14 Feb 2024 06:15:48 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raDEr-0007HN-Nv for qemu-devel@nongnu.org; Wed, 14 Feb 2024 06:15:43 -0500 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-648-LVeiuTSxNV6LtCAYtyGhgA-1; Wed, 14 Feb 2024 06:15:40 -0500 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a2bc664528fso403766966b.3 for ; Wed, 14 Feb 2024 03:15:39 -0800 (PST) Received: from redhat.com ([2.52.26.67]) by smtp.gmail.com with ESMTPSA id ss6-20020a170907c00600b00a3d17841204sm1232227ejc.94.2024.02.14.03.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 03:15:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707909341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7L7U5a8D5EylkKppdsLWG+1xzPDLzJY36FKng3qebqs=; b=dajjsAKuhVwOt30fz7sRRr1xdANmS+3YHDDj1GfVgR392Kk2jOPKGSeUMw1SfaqnUVMmJh LvVqkb4Qo8omsuKsN9JozCmEdaYPBnh8wwpPV/VSWGmafM0GaWvPrCMnOqy/FWFNwmNIpw 4XmVqSo+SdhxeMvuHmfPJaXNS6fGPoo= X-MC-Unique: LVeiuTSxNV6LtCAYtyGhgA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707909338; x=1708514138; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7L7U5a8D5EylkKppdsLWG+1xzPDLzJY36FKng3qebqs=; b=PIDfwtaDtg0jn3VXs9S9kVYjj11N8eWO7F2inHMUC+QLNZEcjaxVTX6RZrlMQsCov+ 2ECR6+GCAPeHxncuY+USXF7mRFPb5m3bXSiCw/TWkVhvFSaNu649Fo2dlvEvcuUEDpPk x38NVVVZ85Pj5L0UY0TrdZs9xG5oekVor5DGSMR6qqNh6pNADcHOO5YDJ4D5iUc0l0rH 0oxksmNd8kt47/PcQU+BW9y+vUk5BAwd+9LYISYzCgbkrbNdyjHgnt92i3bUChBUuxnq hwmDPKscTnSMSJqPMrubca7mFJtmQiex01gPpYxHiah9gcRHAZoitcyXNuK79P8sGzGZ 2TeQ== X-Gm-Message-State: AOJu0Yyg/qbSfpPLMKjHukWkjZAeOyjs71oQcxftDSbj/ZxxkhK+DUfO bzkp1cMDLryCxNSJ+JCVk4hZ78ZVlWVYItGRe68HHSAbmE/mQnoDewY0DFe9Ai4RqIbqPctC3Bq nVnQ5Q0nuUXwTzsmvykxIcGjnD4o+M1Ejf/ltaZl846/NYIs2jabmy6qf9MqssiKCGPiYODvbBg pf1Wf/A9T0jNoSkMyadmuXbSdJF0dcIA== X-Received: by 2002:a17:906:a451:b0:a3c:930b:2d14 with SMTP id cb17-20020a170906a45100b00a3c930b2d14mr1598430ejb.9.1707909338390; Wed, 14 Feb 2024 03:15:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2gx/PdD/d0yhvlIvbutYnhRfhxQvKnKfgCGu9ZamHq8OmbwH7vXrFgMl/OA2Zzs6SGewVMA== X-Received: by 2002:a17:906:a451:b0:a3c:930b:2d14 with SMTP id cb17-20020a170906a45100b00a3c930b2d14mr1598414ejb.9.1707909338155; Wed, 14 Feb 2024 03:15:38 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVjjwE5ZaDM8VgzWJx6EBQPGzPgT77eJRz+HjaEgFu+O8++l4x/TQ7faHj1clE45TGcgE2GX56ehxr+U5Ee/8ls+onZSYV/d3QNjum4ahl9JtE/SJpsPw/AtneYgVPLPRoZg7XvFkX9GVJjfHbY7qOP67xhWIcd Date: Wed, 14 Feb 2024 06:15:35 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Cc: Peter Maydell , Li Zhijian , Fan Ni , Jonathan Cameron Subject: [PULL 44/60] hw/cxl: Pass NULL for a NULL MemoryRegionOps Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.504, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1707909744625100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Li Zhijian a NULL parameter is enough for a NULL MemoryRegionOps Reviewed-by: Fan Ni Signed-off-by: Li Zhijian Signed-off-by: Jonathan Cameron Message-Id: <20240126120132.24248-9-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/cxl/cxl-component-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/cxl/cxl-component-utils.c b/hw/cxl/cxl-component-utils.c index 9dfde6c0b3..5ddd47ed8d 100644 --- a/hw/cxl/cxl-component-utils.c +++ b/hw/cxl/cxl-component-utils.c @@ -197,7 +197,7 @@ void cxl_component_register_block_init(Object *obj, CXL2_COMPONENT_BLOCK_SIZE); =20 /* io registers controls link which we don't care about in QEMU */ - memory_region_init_io(&cregs->io, obj, NULL, cregs, ".io", + memory_region_init_io(&cregs->io, obj, NULL, NULL, ".io", CXL2_COMPONENT_IO_REGION_SIZE); memory_region_init_io(&cregs->cache_mem, obj, &cache_mem_ops, cxl_csta= te, ".cache_mem", CXL2_COMPONENT_CM_REGION_SIZE); --=20 MST