Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762632AbYCCXgQ (ORCPT ); Mon, 3 Mar 2008 18:36:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756799AbYCCXf7 (ORCPT ); Mon, 3 Mar 2008 18:35:59 -0500 Received: from g1t0028.austin.hp.com ([15.216.28.35]:21332 "EHLO g1t0028.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754319AbYCCXf5 (ORCPT ); Mon, 3 Mar 2008 18:35:57 -0500 Date: Mon, 3 Mar 2008 16:35:56 -0700 From: Alex Chiang To: Greg KH Cc: Gary Hade , kaneshige.kenji@jp.fujitsu.com, warthog19@eaglescrag.net, Matthew Wilcox , kristen.c.accardi@intel.com, rick.jones2@hp.com, linux-kernel@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz, linux-acpi@vger.kernel.org Subject: Re: [PATCH 0/4, v7] PCI, ACPI: Physical PCI slot objects Message-ID: <20080303233556.GA3694@ldl.fc.hp.com> Mail-Followup-To: Alex Chiang , Greg KH , Gary Hade , kaneshige.kenji@jp.fujitsu.com, warthog19@eaglescrag.net, Matthew Wilcox , kristen.c.accardi@intel.com, rick.jones2@hp.com, linux-kernel@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz, linux-acpi@vger.kernel.org References: <20080229002341.GA21420@ldl.fc.hp.com> <20080301051247.GB19353@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080301051247.GB19353@suse.de> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2974 Lines: 69 * Greg KH : > On Thu, Feb 28, 2008 at 05:23:41PM -0700, Alex Chiang wrote: > > > > I did turn on kobject debugging, and all seems well except for > > one little thing. I based my module (pci_slot) on acpiphp, and > > the kobject system complains: > > > > kobject: 'acpiphp' (a00000020476aed0): does not have a release() > > function, it is broken and must be fixed. > > > > kobject: 'pci_slot' (a000000204791e50): does not have a release() > > function, it is broken and must be fixed. > > > > Not quite sure what to do about these yet, but since no one has > > fixed acpiphp yet, I'm thinking that I can't be *too* wrong. :) > > Um, the obvious solution of providing a release function for these > kobjects is somehow not correct? > > Please do that, otherwise the code is wrong (and yes, acpiphp might be > wrong as well, I haven't seen that report yet.) Hrm, maybe this is a false alarm? Those messages appear when doing an rmmod . Turns out you get those messages for lots of modules, for instance, uhci_ucd: [root@canola ~]# rmmod uhci_hcd kobject: 'uhci_hcd' (e0000005078e0000): kobject_cleanup kobject: 'uhci_hcd' (e0000005078e0000): auto cleanup 'remove' event kobject: 'uhci_hcd' (e0000005078e0000): kobject_uevent_env kobject: 'uhci_hcd' (e0000005078e0000): fill_kobj_path: path = '/bus/pci/drivers/uhci_hcd' kobject: 'uhci_hcd' (e0000005078e0000): auto cleanup kobject_del kobject: 'uhci_hcd' (e0000005078e0000): calling ktype release kobject: 'uhci_hcd': free name kobject: 'drivers' (e0000005065a0060): kobject_cleanup kobject: 'drivers' (e0000005065a0060): auto cleanup kobject_del kobject: 'drivers' (e0000005065a0060): calling ktype release kobject: (e0000005065a0060): dynamic_kobj_release kobject: 'drivers': free name kobject: 'holders' (e0000005065a0000): kobject_cleanup kobject: 'holders' (e0000005065a0000): auto cleanup kobject_del kobject: 'holders' (e0000005065a0000): calling ktype release kobject: (e0000005065a0000): dynamic_kobj_release kobject: 'holders': free name kobject: 'uhci_hcd' (a00000020427c8d0): kobject_cleanup kobject: 'uhci_hcd' (a00000020427c8d0): does not have a release() function, it is broken and must be fixed. kobject: 'uhci_hcd' (a00000020427c8d0): auto cleanup 'remove' event kobject: 'uhci_hcd' (a00000020427c8d0): kobject_uevent_env kobject: 'uhci_hcd' (a00000020427c8d0): fill_kobj_path: path = '/module/uhci_hcd' kobject: 'uhci_hcd' (a00000020427c8d0): auto cleanup kobject_del kobject: 'uhci_hcd': free name Are you saying that modules that call module_init/module_exit are supposed to supply a release() function? (those messages from my earlier email only came out when I did an rmmod , for foo = acpiphp, pci_slot) Thanks. /ac -- 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/