diff options
| author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2014-12-07 12:20:46 -0500 |
|---|---|---|
| committer | Alexander Graf <agraf@suse.de> | 2014-12-17 07:12:25 -0500 |
| commit | 24aaaf22ea3c660dd673ebde9922b43047bb3946 (patch) | |
| tree | 1d8e9a20d16480dc51c29e0cfbf89d2e7cf34c36 | |
| parent | 1bc5d59c35976d39b39b14f86abb76c08364cf97 (diff) | |
arch: powerpc: kvm: book3s_32_mmu.c: Remove unused function
Remove the function sr_nx() that is not used anywhere.
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Alexander Graf <agraf@suse.de>
| -rw-r--r-- | arch/powerpc/kvm/book3s_32_mmu.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/powerpc/kvm/book3s_32_mmu.c b/arch/powerpc/kvm/book3s_32_mmu.c index cd0b0730e29e..a2eb6d354a57 100644 --- a/arch/powerpc/kvm/book3s_32_mmu.c +++ b/arch/powerpc/kvm/book3s_32_mmu.c | |||
| @@ -78,11 +78,6 @@ static inline bool sr_kp(u32 sr_raw) | |||
| 78 | return (sr_raw & 0x20000000) ? true: false; | 78 | return (sr_raw & 0x20000000) ? true: false; |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | static inline bool sr_nx(u32 sr_raw) | ||
| 82 | { | ||
| 83 | return (sr_raw & 0x10000000) ? true: false; | ||
| 84 | } | ||
| 85 | |||
| 86 | static int kvmppc_mmu_book3s_32_xlate_bat(struct kvm_vcpu *vcpu, gva_t eaddr, | 81 | static int kvmppc_mmu_book3s_32_xlate_bat(struct kvm_vcpu *vcpu, gva_t eaddr, |
| 87 | struct kvmppc_pte *pte, bool data, | 82 | struct kvmppc_pte *pte, bool data, |
| 88 | bool iswrite); | 83 | bool iswrite); |
