]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Pass enum to kvmppc_get_last_inst
authorAlexander Graf <agraf@suse.de>
Wed, 10 Sep 2014 12:37:29 +0000 (14:37 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 22 Sep 2014 08:11:36 +0000 (10:11 +0200)
commit81ce63ba87e3178c7c506b972d6747be33f9c68a
tree6598f70fc84d121175c1229d09248d578ea34a55
parenta1e7d305d2530865963ba16c81cab7781009a205
KVM: PPC: Pass enum to kvmppc_get_last_inst

The kvmppc_get_last_inst function recently received a facelift that allowed
us to pass an enum of the type of instruction we want to read into it rather
than an unreadable boolean.

Unfortunately, not all callers ended up passing the enum. This wasn't really
an issue as "true" and "false" happen to match the two enum values we have,
but it's still hard to read.

Update all callers of kvmppc_get_last_inst() to follow the new calling
convention.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/emulate.c
arch/powerpc/kvm/emulate_loadstore.c
arch/powerpc/kvm/powerpc.c