]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Reuse sys_reg() macro when searching the trap table
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 9 Jan 2019 19:18:40 +0000 (19:18 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 19 Feb 2019 21:05:39 +0000 (21:05 +0000)
commit234e717a4b5af67f1138b6e3a6d9a1892854974f
tree29f399ceca47041cb5fb7bcdf66e9b69db7b0643
parentb4dd336fd1ff0c8caf2b0b903d87cd3cf0d293f9
KVM: arm64: Reuse sys_reg() macro when searching the trap table

Instead of having an open-coded macro, reuse the sys_reg() macro
that does the exact same thing (the encoding is slightly different,
but the ordering property is the same).

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
arch/arm64/kvm/sys_regs.c