From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751846Ab2AQART (ORCPT ); Mon, 16 Jan 2012 19:17:19 -0500 Received: from cantor2.suse.de ([195.135.220.15]:53804 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750788Ab2AQARS (ORCPT ); Mon, 16 Jan 2012 19:17:18 -0500 Date: Mon, 16 Jan 2012 16:15:48 -0800 From: Greg KH To: Djalal Harouni Cc: Linus Torvalds , "Rafael J. Wysocki" , "Srivatsa S. Bhat" , Sergei Trofimovich , linux-kernel@vger.kernel.org, Kay Sievers , Linux PM mailing list , Tony Luck , "mingo@elte.hu" , Borislav Petkov , "tglx@linutronix.de" , prasad@linux.vnet.ibm.com, Ming Lei , Borislav Petkov , Hidetoshi Seto , Andi Kleen , gouders@et.bocholt.fh-gelsenkirchen.de, Marcos Souza , justinmattock@gmail.com, Jeff Chua Subject: Re: [PATCH] mce: fix warning messages about static struct mce_device Message-ID: <20120117001548.GA6884@suse.de> References: <20120116224028.GA5072@suse.de> <20120117001403.GC18875@dztty> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120117001403.GC18875@dztty> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 17, 2012 at 01:14:03AM +0100, Djalal Harouni wrote: > On Mon, Jan 16, 2012 at 02:40:28PM -0800, Greg KH wrote: > > From: Greg Kroah-Hartman > > > > When suspending, there was a large list of warnings going something like: > Not only suspend, during poweroff we'll also see these annoying warnings > as reported here: http://lkml.org/lkml/2012/1/10/504 Ah, yes, I forgot about that case. > > Device 'machinecheck1' does not have a release() function, it is broken and must be fixed > > > > This patch turns the static mce_devices into dynamically allocated, and > > properly frees them when they are removed from the system. It solves > > the warning messages on my laptop here. > > > > Reported-by: "Srivatsa S. Bhat" > > Reported-by: Linus Torvalds > > Cc: Kay Sievers > > Cc: Tony Luck > > Cc: Borislav Petkov > > Signed-off-by: Greg Kroah-Hartman > > > > --- > > > > Linus, this should fix the warnings on your laptop, it does on mine. > Patch tested. > > Thanks, this also fixed the warnings for my KVM/Qemu guests. Wonderful, thanks for testing. Linus, do you want to take this directly from the email, or do you want me to put it in a tree to pull from? thanks, greg k-h