ARM: KVM: Remove __weak attributes
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 6 Jan 2016 09:32:23 +0000 (09:32 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:15 +0000 (18:34 +0000)
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>
arch/arm/kvm/hyp/hyp-entry.S
arch/arm/kvm/hyp/switch.c
arch/arm/kvm/hyp/tlb.c

index 54a8d67ad980e4b7cc1b204f1dcf6bd6c840f09c..78091383a5d91e02a57629b732989a51d81bcabc 100644 (file)
  */
 
        .align 5
-__hyp_vector:
-       .global __hyp_vector
 __kvm_hyp_vector:
-       .weak __kvm_hyp_vector
+       .global __kvm_hyp_vector
 
        @ Hyp-mode exception vector
        W(b)    hyp_reset
index abbe90b5f2fffe142ba9e2ea83a38831dbca7325..f11ede159080cd26945bdf75c8704fada2145a99 100644 (file)
@@ -191,7 +191,7 @@ again:
        return exit_code;
 }
 
-__alias(__guest_run) int __weak __kvm_vcpu_run(struct kvm_vcpu *vcpu);
+__alias(__guest_run) int __kvm_vcpu_run(struct kvm_vcpu *vcpu);
 
 static const char * const __hyp_panic_string[] = {
        [ARM_EXCEPTION_RESET]      = "\nHYP panic: RST   PC:%08x CPSR:%08x",
index aaa44bbac766b15d5d75403a2dc22b947e1f8a66..82958b8f6a74f263b14ec3074e361be774123486 100644 (file)
@@ -50,14 +50,14 @@ static void __hyp_text __tlb_flush_vmid(struct kvm *kvm)
        write_sysreg(0, VTTBR);
 }
 
-__alias(__tlb_flush_vmid) void __weak __kvm_tlb_flush_vmid(struct kvm *kvm);
+__alias(__tlb_flush_vmid) void __kvm_tlb_flush_vmid(struct kvm *kvm);
 
 static void __hyp_text __tlb_flush_vmid_ipa(struct kvm *kvm, phys_addr_t ipa)
 {
        __tlb_flush_vmid(kvm);
 }
 
-__alias(__tlb_flush_vmid_ipa) void __weak __kvm_tlb_flush_vmid_ipa(struct kvm *kvm,
+__alias(__tlb_flush_vmid_ipa) void __kvm_tlb_flush_vmid_ipa(struct kvm *kvm,
                                                            phys_addr_t ipa);
 
 static void __hyp_text __tlb_flush_vm_context(void)
@@ -67,4 +67,4 @@ static void __hyp_text __tlb_flush_vm_context(void)
        dsb(ish);
 }
 
-__alias(__tlb_flush_vm_context) void __weak __kvm_flush_vm_context(void);
+__alias(__tlb_flush_vm_context) void __kvm_flush_vm_context(void);