Skip to content

Commit d9ea27a

Browse files
YueHaibingMarc Zyngier
authored andcommitted
KVM: arm/arm64: vgic-its: Make attribute accessors static
Fix sparse warnings: arch/arm64/kvm/../../../virt/kvm/arm/vgic/vgic-its.c:1732:5: warning: symbol 'vgic_its_has_attr_regs' was not declared. Should it be static? arch/arm64/kvm/../../../virt/kvm/arm/vgic/vgic-its.c:1753:5: warning: symbol 'vgic_its_attr_regs_access' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> [maz: fixed subject] Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent 3c3736c commit d9ea27a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

virt/kvm/arm/vgic/vgic-its.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,8 +1736,8 @@ static void vgic_its_destroy(struct kvm_device *kvm_dev)
17361736
kfree(its);
17371737
}
17381738

1739-
int vgic_its_has_attr_regs(struct kvm_device *dev,
1740-
struct kvm_device_attr *attr)
1739+
static int vgic_its_has_attr_regs(struct kvm_device *dev,
1740+
struct kvm_device_attr *attr)
17411741
{
17421742
const struct vgic_register_region *region;
17431743
gpa_t offset = attr->attr;
@@ -1757,9 +1757,9 @@ int vgic_its_has_attr_regs(struct kvm_device *dev,
17571757
return 0;
17581758
}
17591759

1760-
int vgic_its_attr_regs_access(struct kvm_device *dev,
1761-
struct kvm_device_attr *attr,
1762-
u64 *reg, bool is_write)
1760+
static int vgic_its_attr_regs_access(struct kvm_device *dev,
1761+
struct kvm_device_attr *attr,
1762+
u64 *reg, bool is_write)
17631763
{
17641764
const struct vgic_register_region *region;
17651765
struct vgic_its *its;

0 commit comments

Comments
 (0)