From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C590DC98304 for ; Wed, 23 Sep 2026 14:05:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3AR4hImd3yCvi+4/5N3YFP/xeRF2s54wVsx+FWqPB94=; b=v33oa8FW0bRLm7C5cT5AyB1t/g KDsIGyeFrVjJUQ2ohddrrm13jiYj4rIWq2yyOQRSBw9bAkGxAhnkA6OaYkYc5VmN/sSLxCvNRwp0t Bq6PEQa9HxIVv5AzFWgZejUlBP2P6hRuGOya7IurdaYWT3xEu8BnIN0ky2gIrJmpLcgpVbCeu5OGb zNXl1W+UAHHUuTsd6iIrQnevBCc2wk0QvezBvFXuLX3w/j0N/nHN9j6++iQNld+Cyk4nZXcTmlDPm 5hTo3mFbukt7o6qqCsvO4m3FuEeO/AEN9ycVux56R1curX4iBBdHamOPWAkimhWCa0Gowy92aBzE5 xDxG72rQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x9Naw-00000008UCi-3Ju3; Wed, 23 Sep 2026 14:05:10 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x9Nat-00000008UAI-3CTo for linux-arm-kernel@lists.infradead.org; Wed, 23 Sep 2026 14:05:07 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 36CE26020A; Wed, 23 Sep 2026 14:05:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAC1C1F00899; Wed, 23 Sep 2026 14:04:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790172306; bh=3AR4hImd3yCvi+4/5N3YFP/xeRF2s54wVsx+FWqPB94=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YvQulgww0gqYs8tQHvf2PsXxrCoyc69dDpZvNZjmWhhE/Ds58OP5ziYhFPW/+x+MQ 2JCCNCwMCdkcAHfUGvKbbLhlDr8z5I4TPtSF43zvQrn+kYdAegKJjOwFOEDJwm+wHA /2Fx64HmmdCyLfZGSsDHLJQ+l58rAgNebzVVXoUbD35s1l/FuqVXE4jALYcKbI24c4 P3vcGpP2H77pVRHadB++Argi5p4x4Av9FdjA+o78Rg0JmzGzdUoSGdhVLbImY2gbrx GsJuvVazOncUjJJ9J6eFvWdypzb288jCsbaCr1KrBMWiM+zmqEUzf+nktzCsIj8Pz5 hgLMP3kvEtc9w== From: "Aneesh Kumar K.V (Arm)" To: linux-coco@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: "Aneesh Kumar K.V (Arm)" , Jason Gunthorpe , Catalin Marinas , Greg KH , Jeremy Linton , Jonathan Cameron , Lorenzo Pieralisi , Mark Rutland , Sudeep Holla , Sudeep Holla , Will Deacon , Steven Price , Suzuki K Poulose , Andre Przywara , Herbert Xu , Nathan Chancellor , Nicolas Schier , Olivia Mackall , Russell King , Jonathan Cameron , Suzuki K Poulose Subject: [PATCH v13 5/8] virt: coco: arm-cca-guest: Rename TSM report source file Date: Wed, 23 Sep 2026 19:34:02 +0530 Message-ID: <20260923140405.1111554-6-aneesh.kumar@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260923140405.1111554-1-aneesh.kumar@kernel.org> References: <20260923140405.1111554-1-aneesh.kumar@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Arm CCA guest driver currently only implements TSM report support, but follow-up changes will add more TSM-related functionality to the same module. Rename arm-cca-guest.c to main.c and build it as an object of the arm-cca-guest module. This leaves room for the module to grow additional source files. Also rename the arm_cca_tsm_ops instance to arm_cca_tsm_report_ops to distinguish the report operations from other TSM functionality that will be added. Reviewed-by: Jonathan Cameron Reviewed-by: Suzuki K Poulose Reviewed-by: Catalin Marinas Reviewed-by: Jason Gunthorpe Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Signed-off-by: Aneesh Kumar K.V (Arm) --- drivers/virt/coco/arm-cca-guest/Makefile | 2 ++ drivers/virt/coco/arm-cca-guest/{arm-cca-guest.c => main.c} | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) rename drivers/virt/coco/arm-cca-guest/{arm-cca-guest.c => main.c} (97%) diff --git a/drivers/virt/coco/arm-cca-guest/Makefile b/drivers/virt/coco/arm-cca-guest/Makefile index 69eeba08e98a..7564f4fcc4a4 100644 --- a/drivers/virt/coco/arm-cca-guest/Makefile +++ b/drivers/virt/coco/arm-cca-guest/Makefile @@ -1,2 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only obj-$(CONFIG_ARM_CCA_GUEST) += arm-cca-guest.o + +arm-cca-guest-y += main.o diff --git a/drivers/virt/coco/arm-cca-guest/arm-cca-guest.c b/drivers/virt/coco/arm-cca-guest/main.c similarity index 97% rename from drivers/virt/coco/arm-cca-guest/arm-cca-guest.c rename to drivers/virt/coco/arm-cca-guest/main.c index b741643d1364..80659f0885e9 100644 --- a/drivers/virt/coco/arm-cca-guest/arm-cca-guest.c +++ b/drivers/virt/coco/arm-cca-guest/main.c @@ -156,7 +156,7 @@ static int arm_cca_report_new(struct tsm_report *report, void *data) return ret; } -static const struct tsm_report_ops arm_cca_tsm_ops = { +static const struct tsm_report_ops arm_cca_tsm_report_ops = { .name = KBUILD_MODNAME, .report_new = arm_cca_report_new, }; @@ -177,7 +177,7 @@ static int __init arm_cca_guest_init(void) if (!is_realm_world()) return -ENODEV; - ret = tsm_report_register(&arm_cca_tsm_ops, NULL); + ret = tsm_report_register(&arm_cca_tsm_report_ops, NULL); if (ret < 0) pr_err("Error %d registering with TSM\n", ret); @@ -191,7 +191,7 @@ module_init(arm_cca_guest_init); */ static void __exit arm_cca_guest_exit(void) { - tsm_report_unregister(&arm_cca_tsm_ops); + tsm_report_unregister(&arm_cca_tsm_report_ops); } module_exit(arm_cca_guest_exit); -- 2.43.0