Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753114AbbF2OWg (ORCPT ); Mon, 29 Jun 2015 10:22:36 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:60639 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753280AbbF2OWa (ORCPT ); Mon, 29 Jun 2015 10:22:30 -0400 Date: Mon, 29 Jun 2015 15:22:15 +0100 From: Mark Brown To: Nicolas Boichat Cc: Lars-Peter Clausen , Arjan van de Ven , Mauro Carvalho Chehab , Antti Palosaari , Ingo Molnar , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Bard Liao , Oder Chiou , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, Anatol Pomozov Message-ID: <20150629142215.GE11162@sirena.org.uk> References: <1435224904-35517-1-git-send-email-drinkcat@chromium.org> <558C0067.2000401@linux.intel.com> <558C1824.8020204@metafoo.de> <20150625153325.GR14071@sirena.org.uk> <558C229D.4090409@metafoo.de> <20150625160817.GT14071@sirena.org.uk> <5591414D.6080802@metafoo.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZRyEpB+iJ+qUx0kp" Content-Disposition: inline In-Reply-To: X-Cookie: Stay together, drag each other down. User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [RFC PATCH 1/2] regmap: add configurable lock class key for lockdep X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1469 Lines: 38 --ZRyEpB+iJ+qUx0kp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 29, 2015 at 10:03:09PM +0800, Nicolas Boichat wrote: > regmap instances are kalloc'ed, so they cannot contain the > lock_class_key, which needs to be statically allocated (in .data). > Another option would be to preallocate a bunch of lock_class_key in > regmap.c, and pick from that, but that's terribly hacky... Honestly this is all starting to sound like we're having to jump through too many hoops for lockep (and other APIs are too from the sounds of it) so we should be looking at lockdep here. --ZRyEpB+iJ+qUx0kp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVkVSWAAoJECTWi3JdVIfQ6VIH/1NYT8QroxC9HT9F2D29bDMN guOaxsKtuEEjdNuB3ZyfOB88J5JgcCSOtb99HYTPdyTg1k66wSCwdP0g75X2OoUr p/jfVDCQFf1fTz9bryAik3yvDA0Qq5OpKQh9yVcZokixsHGvB8hrmL2umotFhLsg Elw4rizQ5vOpsuFlwi+TjYMTekycBlpSobwHQW/KrBd68hpA/aI+PddCn00GjOJS BX+EpYXOKZUT5XCfIvMv9WraqY6y7CXgvJeMKytBFd/msI7lYa4B1250wL2XD6S3 ut9N0Wnz4PIOK9ZD2yzbumDInapqUjeWR1Tby/WmFBNn5cF7UO+9HUvffWiW2s4= =uO83 -----END PGP SIGNATURE----- --ZRyEpB+iJ+qUx0kp-- -- 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/