diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-01-06 04:32:23 -0500 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-02-29 13:34:15 -0500 |
commit | fa85e25dad0f3f4e7ff2c58a914dcfe53210f680 (patch) | |
tree | 79069cc2321f21d3cbe92a4e4aed6685df92acfb /arch/arm/kvm | |
parent | d4c7688c51e57be20ca5f3dffa4c8771888a42fc (diff) |
ARM: KVM: Remove __weak attributes
Now that the old code is long gone, we can remove all the weak
attributes, as there is only one version of the code.
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/kvm')
-rw-r--r-- | arch/arm/kvm/hyp/hyp-entry.S | 4 | ||||
-rw-r--r-- | arch/arm/kvm/hyp/switch.c | 2 | ||||
-rw-r--r-- | arch/arm/kvm/hyp/tlb.c | 6 |
3 files changed, 5 insertions, 7 deletions
diff --git a/arch/arm/kvm/hyp/hyp-entry.S b/arch/arm/kvm/hyp/hyp-entry.S index 54a8d67ad980..78091383a5d9 100644 --- a/arch/arm/kvm/hyp/hyp-entry.S +++ b/arch/arm/kvm/hyp/hyp-entry.S | |||
@@ -58,10 +58,8 @@ | |||
58 | */ | 58 | */ |
59 | 59 | ||
60 | .align 5 | 60 | .align 5 |
61 | __hyp_vector: | ||
62 | .global __hyp_vector | ||
63 | __kvm_hyp_vector: | 61 | __kvm_hyp_vector: |
64 | .weak __kvm_hyp_vector | 62 | .global __kvm_hyp_vector |
65 | 63 | ||
66 | @ Hyp-mode exception vector | 64 | @ Hyp-mode exception vector |
67 | W(b) hyp_reset | 65 | W(b) hyp_reset |
diff --git a/arch/arm/kvm/hyp/switch.c b/arch/arm/kvm/hyp/switch.c index abbe90b5f2ff..f11ede159080 100644 --- a/arch/arm/kvm/hyp/switch.c +++ b/arch/arm/kvm/hyp/switch.c | |||
@@ -191,7 +191,7 @@ again: | |||
191 | return exit_code; | 191 | return exit_code; |
192 | } | 192 | } |
193 | 193 | ||
194 | __alias(__guest_run) int __weak __kvm_vcpu_run(struct kvm_vcpu *vcpu); | 194 | __alias(__guest_run) int __kvm_vcpu_run(struct kvm_vcpu *vcpu); |
195 | 195 | ||
196 | static const char * const __hyp_panic_string[] = { | 196 | static const char * const __hyp_panic_string[] = { |
197 | [ARM_EXCEPTION_RESET] = "\nHYP panic: RST PC:%08x CPSR:%08x", | 197 | [ARM_EXCEPTION_RESET] = "\nHYP panic: RST PC:%08x CPSR:%08x", |
diff --git a/arch/arm/kvm/hyp/tlb.c b/arch/arm/kvm/hyp/tlb.c index aaa44bbac766..82958b8f6a74 100644 --- a/arch/arm/kvm/hyp/tlb.c +++ b/arch/arm/kvm/hyp/tlb.c | |||
@@ -50,14 +50,14 @@ static void __hyp_text __tlb_flush_vmid(struct kvm *kvm) | |||
50 | write_sysreg(0, VTTBR); | 50 | write_sysreg(0, VTTBR); |
51 | } | 51 | } |
52 | 52 | ||
53 | __alias(__tlb_flush_vmid) void __weak __kvm_tlb_flush_vmid(struct kvm *kvm); | 53 | __alias(__tlb_flush_vmid) void __kvm_tlb_flush_vmid(struct kvm *kvm); |
54 | 54 | ||
55 | static void __hyp_text __tlb_flush_vmid_ipa(struct kvm *kvm, phys_addr_t ipa) | 55 | static void __hyp_text __tlb_flush_vmid_ipa(struct kvm *kvm, phys_addr_t ipa) |
56 | { | 56 | { |
57 | __tlb_flush_vmid(kvm); | 57 | __tlb_flush_vmid(kvm); |
58 | } | 58 | } |
59 | 59 | ||
60 | __alias(__tlb_flush_vmid_ipa) void __weak __kvm_tlb_flush_vmid_ipa(struct kvm *kvm, | 60 | __alias(__tlb_flush_vmid_ipa) void __kvm_tlb_flush_vmid_ipa(struct kvm *kvm, |
61 | phys_addr_t ipa); | 61 | phys_addr_t ipa); |
62 | 62 | ||
63 | static void __hyp_text __tlb_flush_vm_context(void) | 63 | static void __hyp_text __tlb_flush_vm_context(void) |
@@ -67,4 +67,4 @@ static void __hyp_text __tlb_flush_vm_context(void) | |||
67 | dsb(ish); | 67 | dsb(ish); |
68 | } | 68 | } |
69 | 69 | ||
70 | __alias(__tlb_flush_vm_context) void __weak __kvm_flush_vm_context(void); | 70 | __alias(__tlb_flush_vm_context) void __kvm_flush_vm_context(void); |