From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH] powerpc: fix call to subpage_protection() From: Michael Ellerman To: Michael Neuling In-Reply-To: <13149.1290047579@neuling.org> References: <1289418856.2983.23.camel@localhost> <1289426817.2147.1403.camel@pasglop> <1289520464.4752.12.camel@localhost> <17075.1289877977@neuling.org> <1289958663.3028.175.camel@localhost> <27638.1289959435@neuling.org> <1290020404.2974.15.camel@localhost> <13149.1290047579@neuling.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-xEgXUbvqycQI4ODkE/4h" Date: Thu, 18 Nov 2010 23:21:01 +1100 Message-ID: <1290082861.22575.6.camel@concordia> Mime-Version: 1.0 Cc: Jim Keniston , linuxppc-dev@lists.ozlabs.org, David Gibson Reply-To: michael@ellerman.id.au List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-xEgXUbvqycQI4ODkE/4h Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2010-11-18 at 13:32 +1100, Michael Neuling wrote: > In:=20 > powerpc/mm: Fix pgtable cache cleanup with CONFIG_PPC_SUBPAGE_PROT > commit d28513bc7f675d28b479db666d572e078ecf182d > Author: David Gibson >=20 > subpage_protection() was changed to to take an mm rather a pgdir but it > didn't change calling site in hashpage_preload(). The change wasn't > noticed at compile time since hashpage_preload() used a void* as the > parameter to subpage_protection(). ...=20 >=20 > diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils= _64.c > index 83f534d..5e95844 100644 > --- a/arch/powerpc/mm/hash_utils_64.c > +++ b/arch/powerpc/mm/hash_utils_64.c > @@ -1123,7 +1123,7 @@ void hash_preload(struct mm_struct *mm, unsigned lo= ng ea, > else > #endif /* CONFIG_PPC_HAS_HASH_64K */ > rc =3D __hash_page_4K(ea, access, vsid, ptep, trap, local, ssize, > - subpage_protection(pgdir, ea)); > + subpage_protection(mm, ea)); Type checking is fun :) This is stable material no? cheers --=-xEgXUbvqycQI4ODkE/4h Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkzlGi0ACgkQdSjSd0sB4dIb5ACfUiXocJsXsn0mqMfE7rDk+Xjs Id4AoLRo52j7GKX2IkgiPDw/dn7ZP9Fg =spYy -----END PGP SIGNATURE----- --=-xEgXUbvqycQI4ODkE/4h--