From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753682AbZFPAkX (ORCPT ); Mon, 15 Jun 2009 20:40:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751401AbZFPAkM (ORCPT ); Mon, 15 Jun 2009 20:40:12 -0400 Received: from kroah.org ([198.145.64.141]:53851 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751179AbZFPAkL (ORCPT ); Mon, 15 Jun 2009 20:40:11 -0400 Date: Mon, 15 Jun 2009 17:35:57 -0700 From: Greg KH To: Wu Fengguang Cc: Andrew Morton , LKML , Ingo Molnar , Mel Gorman , Thomas Gleixner , "H. Peter Anvin" , Peter Zijlstra , Nick Piggin , Hugh Dickins , Andi Kleen , "riel@redhat.com" , "chris.mason@oracle.com" , "linux-mm@kvack.org" Subject: Re: [PATCH 21/22] HWPOISON: send uevent to report memory corruption Message-ID: <20090616003557.GA22690@kroah.com> References: <20090615024520.786814520@intel.com> <20090615031255.278184860@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090615031255.278184860@intel.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2009 at 10:45:41AM +0800, Wu Fengguang wrote: > +static void hwpoison_release(struct kobject *kobj) > +{ > +} > + > +static struct kobj_type hwpoison_ktype = { > + .release = hwpoison_release, > +}; {sigh} Why did you include an empty release function? Was it because the kernel complained when you had no release function? So, why would you think that the acceptable solution to that warning would be an empty release function instead? Hint, this is totally wrong, provide a release function that ACTUALLY DOES SOMETHING!!! Read the kobject documentation for details as to what you need to do here. ugh, I'm so tired of repeating this year after year after year, I feel like a broken record... This is broken, please fix it. greg k-h