Skip to content

Commit 936774c

Browse files
ozbenhmpe
authored andcommitted
powerpc/kvm: Make kvmppc_xics_create_icp static
It's only used within the same file it's defined Signed-off-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent d398914 commit 936774c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

arch/powerpc/include/asm/kvm_ppc.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ extern void kvmppc_free_host_rm_ops(void);
478478
extern void kvmppc_free_pimap(struct kvm *kvm);
479479
extern int kvmppc_xics_rm_complete(struct kvm_vcpu *vcpu, u32 hcall);
480480
extern void kvmppc_xics_free_icp(struct kvm_vcpu *vcpu);
481-
extern int kvmppc_xics_create_icp(struct kvm_vcpu *vcpu, unsigned long server);
482481
extern int kvm_vm_ioctl_xics_irq(struct kvm *kvm, struct kvm_irq_level *args);
483482
extern int kvmppc_xics_hcall(struct kvm_vcpu *vcpu, u32 cmd);
484483
extern u64 kvmppc_xics_get_icp(struct kvm_vcpu *vcpu);
@@ -507,9 +506,6 @@ static inline int kvmppc_xics_rm_complete(struct kvm_vcpu *vcpu, u32 hcall)
507506
static inline int kvmppc_xics_enabled(struct kvm_vcpu *vcpu)
508507
{ return 0; }
509508
static inline void kvmppc_xics_free_icp(struct kvm_vcpu *vcpu) { }
510-
static inline int kvmppc_xics_create_icp(struct kvm_vcpu *vcpu,
511-
unsigned long server)
512-
{ return -EINVAL; }
513509
static inline int kvm_vm_ioctl_xics_irq(struct kvm *kvm,
514510
struct kvm_irq_level *args)
515511
{ return -ENOTTY; }

arch/powerpc/kvm/book3s_xics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ static struct kvmppc_ics *kvmppc_xics_create_ics(struct kvm *kvm,
10841084
return xics->ics[icsid];
10851085
}
10861086

1087-
int kvmppc_xics_create_icp(struct kvm_vcpu *vcpu, unsigned long server_num)
1087+
static int kvmppc_xics_create_icp(struct kvm_vcpu *vcpu, unsigned long server_num)
10881088
{
10891089
struct kvmppc_icp *icp;
10901090

0 commit comments

Comments
 (0)