From b2ba2c2eb46c05a53323f138e7ab2faf41253df4 Mon Sep 17 00:00:00 2001 From: David Brazdil Date: Mon, 8 Nov 2021 10:26:35 +0000 Subject: [PATCH] ANDROID: KVM: arm64: Mark select_iommu_ops static The function is only used in the compilation unit where it is defined. Silence a warning by marking it static. Test: builds Bug: 190463801 Change-Id: I296cffefdef4639ef2bab644d42f1374ee1a2f60 Signed-off-by: David Brazdil (cherry picked from commit 91abc8ece242eb595e7dd0b85eac27c51a27ba88) Signed-off-by: Mostafa Saleh --- arch/arm64/kvm/hyp/nvhe/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/hyp/nvhe/setup.c b/arch/arm64/kvm/hyp/nvhe/setup.c index 1716b70f9286..6f8b2b5c1320 100644 --- a/arch/arm64/kvm/hyp/nvhe/setup.c +++ b/arch/arm64/kvm/hyp/nvhe/setup.c @@ -301,7 +301,7 @@ static int fix_hyp_pgtable_refcnt(void) &walker); } -int select_iommu_ops(enum kvm_iommu_driver driver) +static int select_iommu_ops(enum kvm_iommu_driver driver) { switch (driver) { case KVM_IOMMU_DRIVER_NONE: