From: Roland Dreier <rdreier@cisco.com>
To: Greg KH <gregkh@suse.de>
Cc: Andreas Mohr <andi@lisas.de>,
linux-kernel@vger.kernel.org, rusty@rustcorp.com.au
Subject: Re: [BUG] git 2.6.31-rc3'ish: "<kobject> does not have a release() function, it is broken and must be fixed."
Date: Thu, 06 Aug 2009 13:28:01 -0700 [thread overview]
Message-ID: <adabpmsg01a.fsf@cisco.com> (raw)
In-Reply-To: <20090716225525.GC1548@suse.de> (Greg KH's message of "Thu, 16 Jul 2009 15:55:25 -0700")
> > The error happening _before_ module _init() and _after_ module _exit()
> > clearly points to something outside of an individual driver's control,
> > i.e. a module core code bug, as hinted by Greg.
> >
> > x86_32 UP, Debian testing, module-init-tools 3.9-2, git as of yesterday.
>
> I can't duplicate this here at all. I wonder what the difference is.
> No one has touched this code path in a while, any chance you could run
> 'git bisect' to track this down?
I don't understand how you can't duplicate it. I see it here too
(missing release warning on module unload with kobject debugging turned
on) and it's obvious why it's happening from looking at the code;
lib/kobject.c has:
struct kobj_type *t = get_ktype(kobj);
//...
if (t && !t->release)
pr_debug("kobject: '%s' (%p): does not have a release() "
"function, it is broken and must be fixed.\n",
kobject_name(kobj), kobj);
and kernel/params.c has:
struct kobj_type module_ktype = {
.sysfs_ops = &module_sysfs_ops,
};
ie a ktype with no release method. And indeed, the release method was
removed in:
commit 7a6a41615bfb2f03ce797bc24104c50b42c935e5
Author: Greg Kroah-Hartman <gregkh@suse.de>
Date: Sat Dec 22 21:18:25 2007 -0800
Modules: remove unneeded release function
ie you did it yourself!
What's the deal?
- R.
next prev parent reply other threads:[~2009-08-06 20:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-16 18:12 [BUG] git 2.6.31-rc3'ish: "<kobject> does not have a release() function, it is broken and must be fixed." Andreas Mohr
2009-07-16 22:55 ` Greg KH
2009-08-06 20:28 ` Roland Dreier [this message]
2009-08-06 20:50 ` Andreas Mohr
2009-08-06 22:32 ` Greg KH
2009-08-06 23:47 ` Roland Dreier
2009-08-06 23:58 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=adabpmsg01a.fsf@cisco.com \
--to=rdreier@cisco.com \
--cc=andi@lisas.de \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.