diff options
Diffstat (limited to 'arch/powerpc/kvm/mpic.c')
-rw-r--r-- | arch/powerpc/kvm/mpic.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/arch/powerpc/kvm/mpic.c b/arch/powerpc/kvm/mpic.c index 39b3a8f816f2..6249cdc834d1 100644 --- a/arch/powerpc/kvm/mpic.c +++ b/arch/powerpc/kvm/mpic.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <asm/kvm_para.h> | 34 | #include <asm/kvm_para.h> |
35 | #include <asm/kvm_host.h> | 35 | #include <asm/kvm_host.h> |
36 | #include <asm/kvm_ppc.h> | 36 | #include <asm/kvm_ppc.h> |
37 | #include "iodev.h" | 37 | #include <kvm/iodev.h> |
38 | 38 | ||
39 | #define MAX_CPU 32 | 39 | #define MAX_CPU 32 |
40 | #define MAX_SRC 256 | 40 | #define MAX_SRC 256 |
@@ -289,11 +289,6 @@ static inline void IRQ_resetbit(struct irq_queue *q, int n_IRQ) | |||
289 | clear_bit(n_IRQ, q->queue); | 289 | clear_bit(n_IRQ, q->queue); |
290 | } | 290 | } |
291 | 291 | ||
292 | static inline int IRQ_testbit(struct irq_queue *q, int n_IRQ) | ||
293 | { | ||
294 | return test_bit(n_IRQ, q->queue); | ||
295 | } | ||
296 | |||
297 | static void IRQ_check(struct openpic *opp, struct irq_queue *q) | 292 | static void IRQ_check(struct openpic *opp, struct irq_queue *q) |
298 | { | 293 | { |
299 | int irq = -1; | 294 | int irq = -1; |
@@ -1374,8 +1369,9 @@ static int kvm_mpic_write_internal(struct openpic *opp, gpa_t addr, u32 val) | |||
1374 | return -ENXIO; | 1369 | return -ENXIO; |
1375 | } | 1370 | } |
1376 | 1371 | ||
1377 | static int kvm_mpic_read(struct kvm_io_device *this, gpa_t addr, | 1372 | static int kvm_mpic_read(struct kvm_vcpu *vcpu, |
1378 | int len, void *ptr) | 1373 | struct kvm_io_device *this, |
1374 | gpa_t addr, int len, void *ptr) | ||
1379 | { | 1375 | { |
1380 | struct openpic *opp = container_of(this, struct openpic, mmio); | 1376 | struct openpic *opp = container_of(this, struct openpic, mmio); |
1381 | int ret; | 1377 | int ret; |
@@ -1415,8 +1411,9 @@ static int kvm_mpic_read(struct kvm_io_device *this, gpa_t addr, | |||
1415 | return ret; | 1411 | return ret; |
1416 | } | 1412 | } |
1417 | 1413 | ||
1418 | static int kvm_mpic_write(struct kvm_io_device *this, gpa_t addr, | 1414 | static int kvm_mpic_write(struct kvm_vcpu *vcpu, |
1419 | int len, const void *ptr) | 1415 | struct kvm_io_device *this, |
1416 | gpa_t addr, int len, const void *ptr) | ||
1420 | { | 1417 | { |
1421 | struct openpic *opp = container_of(this, struct openpic, mmio); | 1418 | struct openpic *opp = container_of(this, struct openpic, mmio); |
1422 | int ret; | 1419 | int ret; |