mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
virt: coco: arm-cca-guest: Rename TSM report source file
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 <jonathan.cameron@oss.qualcomm.com> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Cc: Will Deacon <will@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
714153dca3
commit
07005b64d7
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user