From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: Warnings from PM QoS plist usage Date: Mon, 19 Jul 2010 03:43:24 +0200 Message-ID: <201007190343.24736.rjw@sisk.pl> References: <20100714093510.GC5933@sirena.org.uk> <201007151858.47087.rjw@sisk.pl> <1279213353.21982.54.camel@mulgrave.site> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1279213353.21982.54.camel@mulgrave.site> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: James Bottomley Cc: linux-pm@lists.linux-foundation.org, Mark Brown , mark gross List-Id: linux-pm@vger.kernel.org On Thursday, July 15, 2010, James Bottomley wrote: > On Thu, 2010-07-15 at 18:58 +0200, Rafael J. Wysocki wrote: > > On Thursday, July 15, 2010, Mark Brown wrote: > > > On Thu, Jul 15, 2010 at 08:12:58AM +0200, James Bottomley wrote: > > > > On Wed, 2010-07-14 at 10:35 +0100, Mark Brown wrote: > > > > > > > > > I've not looked at the PM QoS code at all so I don't know what the > > > > > > appropriate place to fix this is - do we perhaps want to fix the debug > > > > > > code to cope with no locks? Looking at the plist.h code it seems fairly > > > > > > clear that there's currently no expectation that users should use > > > > > > _PLIST_INIT_HEAD() directly. > > > > > > > Sorry ... I just wasn't sure what it wanted without reading through the > > > > plist code more ... and also that debug item is hidden by > > > > CONFIG_DEBUG_RT_MUTEXES, which is why I couldn't enable it. > > > > > > Ah, yes - I missed the existing spinlock. > > > > > > > This should fix the warning. > > > > > > It does indeed - thanks! > > > > > > Tested-by: Mark Brown > > > > Thanks for testing. > > > > James, I hope it's appropriate to add your sign-off to the patch? > > Certainly > > Signed-off-by: James Bottomley > > Although I'd advise just folding it into the plist patch since it's not > gone upstream yet. Done. Rafael