From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756971Ab2APVtK (ORCPT ); Mon, 16 Jan 2012 16:49:10 -0500 Received: from netrider.rowland.org ([192.131.102.5]:52449 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756656Ab2APVtI (ORCPT ); Mon, 16 Jan 2012 16:49:08 -0500 Date: Mon, 16 Jan 2012 16:49:06 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: "Rafael J. Wysocki" cc: "Srivatsa S. Bhat" , Sergei Trofimovich , , Kay Sievers , Linux PM mailing list , Greg Kroah-Hartman , Tony Luck , "mingo@elte.hu" , Borislav Petkov , "tglx@linutronix.de" , Subject: Re: 3.2.0-07927-gc49c41a: s2ram: Device 'machinecheck1' does not have a release() function, it is broken and must be fixed In-Reply-To: <201201162148.47996.rjw@sisk.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Jan 2012, Rafael J. Wysocki wrote: > On Monday, January 16, 2012, Srivatsa S. Bhat wrote: > > Just to re-instate, an end-user need not really worry about this warning > > too much since this was there before (at a different place, and hidden) > > when things were working fine... Hence it would be worthwhile to fix > > this warning "correctly" if possible, than just do a quick and dirty > > "silence the warning" kind of workaround. > > Well, since there's nothing to release in there, I really see only two > possible "fixes": either silence the warning the way you describe, or > remove it from the core. No, the right fix is to release something. The device structures should be allocated dynamically, not statically. Greg's suggestion of using a set of per-cpu pointers to dynamically-allocated structures sounds right. Alan Stern