]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Use lm_alias() for kvm_ksym_ref()
authorMark Rutland <mark.rutland@arm.com>
Thu, 10 May 2018 11:13:47 +0000 (12:13 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Sun, 20 May 2018 10:44:01 +0000 (11:44 +0100)
commitbbc5a959b5a0cbc1da54b7e51eb128d2e51df955
treecfebeb90cee7d150494e7542b946dc5b691130b3
parentafa228a6773efce28def42a14cc737f0fbf48cd7
arm64: KVM: Use lm_alias() for kvm_ksym_ref()

For historical reasons, we open-code lm_alias() in kvm_ksym_ref().

Let's use lm_alias() to avoid duplication and make things clearer.

As we have to pull this from <linux/mm.h> (which is not safe for
inclusion in assembly), we may as well move the kvm_ksym_ref()
definition into the existing !__ASSEMBLY__ block.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Christoffer Dall <christoffer.dall@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: kvmarm@lists.cs.columbia.edu
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_asm.h