From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECD0930CD80 for ; Fri, 9 Jan 2026 14:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767970133; cv=none; b=tW4nqFEK0AYdOy4OhtuiBblDwlB+bI9BROtCadJMxhTaW4+TDTSSEO2vqm+3Qo/TM30sON4HxOKtNq/I+azpkqElJb01Q4jSjTVauJUumUO2VABl0M7q6kpnH1hyplakpmGnAcuItbXtCS8pgPKgbWn72vpHy+1Ru1cHfX3p44k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767970133; c=relaxed/simple; bh=msIqm/AkbYx3CUlyJgc9T+OoxXXV8N/xfEh0/G0A//k=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KzmjAHPzQUAdZVCudKga4SeGHzAlxlS+vSn2xAkaIi28VD5SE+KTTflDGXxBQ6wRZeB7+QKAiWxz27QnOl2Q309U3ol1/DLwrP3kxmzBWBxt4wKzhzO3uacLCkzvVeJ+X1JOPqz1OJs0NF6f+BGCvBULhE2Wqs9hSNf4jhIw654= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.224.107]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4dnl5R3gZNzJ46dX; Fri, 9 Jan 2026 22:48:43 +0800 (CST) Received: from dubpeml100005.china.huawei.com (unknown [7.214.146.113]) by mail.maildlp.com (Postfix) with ESMTPS id 2478140570; Fri, 9 Jan 2026 22:48:50 +0800 (CST) Received: from SecurePC-101-06.huawei.com (10.122.19.247) by dubpeml100005.china.huawei.com (7.214.146.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Fri, 9 Jan 2026 14:48:49 +0000 From: Jonathan Cameron To: Michael Tsirkin , , Davidlohr Bueso CC: , , Ravi Shankar , Marcel Apfelbaum , Markus Armbruster , Michael Roth Subject: [PATCH qemu v5 7/7] hw/cxl: Remove register special_ops->read() Date: Fri, 9 Jan 2026 14:45:11 +0000 Message-ID: <20260109144511.557781-8-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20260109144511.557781-1-Jonathan.Cameron@huawei.com> References: <20260109144511.557781-1-Jonathan.Cameron@huawei.com> Precedence: bulk X-Mailing-List: linux-cxl@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: lhrpeml100010.china.huawei.com (7.191.174.197) To dubpeml100005.china.huawei.com (7.214.146.113) From: Davidlohr Bueso ... this is unused, unlike its write counterpart. Suggested-by: Jonathan.Cameron@huawei.com Tested-by: Dongjoo Seo Signed-off-by: Davidlohr Bueso Signed-off-by: Jonathan Cameron --- hw/cxl/cxl-component-utils.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hw/cxl/cxl-component-utils.c b/hw/cxl/cxl-component-utils.c index 213099402262..d36162e91b4c 100644 --- a/hw/cxl/cxl-component-utils.c +++ b/hw/cxl/cxl-component-utils.c @@ -69,10 +69,6 @@ static uint64_t cxl_cache_mem_read_reg(void *opaque, hwaddr offset, switch (size) { case 4: - if (cregs->special_ops && cregs->special_ops->read) { - return cregs->special_ops->read(cxl_cstate, offset, 4); - } - QEMU_BUILD_BUG_ON(sizeof(*cregs->cache_mem_registers) != 4); if (offset == A_CXL_BI_RT_STATUS || -- 2.48.1