]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Use the reg_to_encoding() macro instead of sys_reg()
authorAlexandru Elisei <alexandru.elisei@arm.com>
Wed, 6 Jan 2021 14:42:18 +0000 (14:42 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 14 Jan 2021 11:09:38 +0000 (11:09 +0000)
commit3eec11bc990db2ab1ff8c0ac169df4831a63ba01
tree67a61e8d0d2695a1fa63dba9b2c1fa3116315225
parent9fd979c5a55cebc158225871bc5dc6e709a5f66e
KVM: arm64: Use the reg_to_encoding() macro instead of sys_reg()

The reg_to_encoding() macro is a wrapper over sys_reg() and conveniently
takes a sys_reg_desc or a sys_reg_params argument and returns the 32 bit
register encoding. Use it instead of calling sys_reg() directly.

Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210106144218.110665-1-alexandru.elisei@arm.com
arch/arm64/kvm/sys_regs.c