[PATCH] kvm : arm/arm64 : fix some warningg

From: Peng Hao
Date: Sun Apr 01 2018 - 11:42:56 EST


fix some "warning: no previous prototype".

Signed-off-by: Peng Hao <peng.hao2@xxxxxxxxxx>
---
virt/kvm/arm/vgic/vgic-its.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-its.c
index 4650953..881494b 100644
--- a/virt/kvm/arm/vgic/vgic-its.c
+++ b/virt/kvm/arm/vgic/vgic-its.c
@@ -177,12 +177,12 @@ struct vgic_its_abi {

#define NR_ITS_ABIS ARRAY_SIZE(its_table_abi_versions)

-inline const struct vgic_its_abi *vgic_its_get_abi(struct vgic_its *its)
+static inline const struct vgic_its_abi *vgic_its_get_abi(struct vgic_its *its)
{
return &its_table_abi_versions[its->abi_rev];
}

-int vgic_its_set_abi(struct vgic_its *its, int rev)
+static int vgic_its_set_abi(struct vgic_its *its, int rev)
{
const struct vgic_its_abi *abi;

@@ -1731,7 +1731,7 @@ static void vgic_its_destroy(struct kvm_device *kvm_dev)
kfree(its);
}

-int vgic_its_has_attr_regs(struct kvm_device *dev,
+static int vgic_its_has_attr_regs(struct kvm_device *dev,
struct kvm_device_attr *attr)
{
const struct vgic_register_region *region;
@@ -1752,7 +1752,7 @@ int vgic_its_has_attr_regs(struct kvm_device *dev,
return 0;
}

-int vgic_its_attr_regs_access(struct kvm_device *dev,
+static int vgic_its_attr_regs_access(struct kvm_device *dev,
struct kvm_device_attr *attr,
u64 *reg, bool is_write)
{
--
1.8.3.1