Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932283AbbLBAej (ORCPT ); Tue, 1 Dec 2015 19:34:39 -0500 Received: from mail-pa0-f68.google.com ([209.85.220.68]:32787 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751359AbbLBAeg (ORCPT ); Tue, 1 Dec 2015 19:34:36 -0500 From: Daniel Axtens To: "Geyslan G. Bem" Cc: "Geyslan G. Bem" , kvm@vger.kernel.org, Gleb Natapov , linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, Paul Mackerras , Paolo Bonzini , linuxppc-dev@lists.ozlabs.org, Alexander Graf Subject: Re: [PATCH] kvm: remove unused variable 'vcpu_book3s' In-Reply-To: <1449013410-19103-1-git-send-email-geyslan@gmail.com> References: <1449013410-19103-1-git-send-email-geyslan@gmail.com> User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Wed, 02 Dec 2015 11:34:21 +1100 Message-ID: <878u5dk7si.fsf@gamma.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2481 Lines: 79 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable "Geyslan G. Bem" writes: > The vcpu_book3s struct is assigned but never used. So remove it. Just out of interest, how did you find this? Compiler warning? Static analysis? Manual inspection? Thanks in advance! Regards, Daniel > > Signed-off-by: Geyslan G. Bem > --- > arch/powerpc/kvm/book3s_64_mmu.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/arch/powerpc/kvm/book3s_64_mmu.c b/arch/powerpc/kvm/book3s_6= 4_mmu.c > index 774a253..9bf7031 100644 > --- a/arch/powerpc/kvm/book3s_64_mmu.c > +++ b/arch/powerpc/kvm/book3s_64_mmu.c > @@ -377,15 +377,12 @@ no_seg_found: >=20=20 > static void kvmppc_mmu_book3s_64_slbmte(struct kvm_vcpu *vcpu, u64 rs, u= 64 rb) > { > - struct kvmppc_vcpu_book3s *vcpu_book3s; > u64 esid, esid_1t; > int slb_nr; > struct kvmppc_slb *slbe; >=20=20 > dprintk("KVM MMU: slbmte(0x%llx, 0x%llx)\n", rs, rb); >=20=20 > - vcpu_book3s =3D to_book3s(vcpu); > - > esid =3D GET_ESID(rb); > esid_1t =3D GET_ESID_1T(rb); > slb_nr =3D rb & 0xfff; > --=20 > 2.6.2 > > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/linuxppc-dev --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJWXjyNAAoJEPC3R3P2I92FLaoP/itNYf+NtoxK9Ifo3ID3MOgY 9+M7yve7xA7sHet2ZWFtK+PZL3jO9V2QQW7CcTTVOI6eDK+a+wgWcd4lDGFm5z5h RntWdUwqFGUiiHKULPE0RWwt4N8EVyN91b4Kkbk4L14RsABMIMj7ewHW2jv1NsEB UCnZwTZUK4npU7JNu1s0n7bFzWU4H5X9nPgetzK6Fn7De8zfQbmJQmFuB2k2YNQn zWZwoO7eoCnaCx3r70E09AuU5ZkKpT4y8v5M7EtsCNkzgsgV/YpjqoXTausi3Cxi 2WWV9FI85hfQ5XC0e5+7Bfr+4Rfkt7tQsr6Fi2rAVuqK2dKqNf903yz9mYZgqB3q fdGa/SVDmqXxSaKaoHf+w1qOA6IV7cPA6JXpHHLJV9NQHG0WOTTnYYdf3SBO7b4e ZwBiXFure8873QCK4WuV/J/BfoOlVxYEQES2GZY9dtw2v2bMK4raSodwTJ32MyMQ ryib1ASVGaeYVhPv0aplu+o3ODhrT9R7/NSeyP7pDmwzPAiiDAcZouJ3CBzZvGSY e688iurOzDV/5XTsjqA36onMKvE/VB62v4BlQM638If2Qo1kRPnqjlFODW6OJqMQ haVluf4CPlwGQsGqVmvNzqxCR+cGMoKvkKbh6miJZkrr7NDM5V/KkKjdjtEr6FPO yfo9DsapjLIRbBQvAYkg =imx/ -----END PGP SIGNATURE----- --=-=-=-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/