From: Greg KH <greg@kroah.com>
To: Paul Mundt <lethal@linux-sh.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kobject: Always build in kernel/ksysfs.o.
Date: Thu, 31 Jan 2008 09:03:44 -0800 [thread overview]
Message-ID: <20080131170344.GA20966@kroah.com> (raw)
In-Reply-To: <20080131091234.GA14631@linux-sh.org>
On Thu, Jan 31, 2008 at 06:12:34PM +0900, Paul Mundt wrote:
> kernel/ksysfs.c seems to be a random dumping group for misc globals
> that the rest of the tree depend on. This has caused problems with
> exports in the past when sysfs is disabled, which can already be
> observed in commit-id 51107301b629640f9ab76fe23bf385e187b9ac29.
>
> The latest one is the kernel_kobj usage, which presently results in:
>
> fs/built-in.o: In function `debugfs_init':
> inode.c:(.init.text+0xc34): undefined reference to `kernel_kobj'
> make: *** [.tmp_vmlinux1] Error 1
>
> kernel/ksysfs.c itself at this point only contains globals and some
> basic sysfs initialization, the sysfs initialization code is optimized
> out when we build with sysfs disabled. Given that, it's easier to just
> build in unconditionally, rather than trying to find some other random
> place to dump and initialize the globals.
>
> Additionally, the current trend seems to be decoupling of kobjects from
> sysfs, in which case it still makes sense to perform the kernel_kobj
> initialization that happens here even if sysfs is disabled, as
> lib/kobject.o is built-in unconditionally.
>
> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
I'll take this, it looks right, but I don't think it fixes the
kernel_kobj problem, that shows up in a number of other places too. I'm
working on fixing that up properly right now, give me a day, I'm doing
builds with tons of different kernel options :)
thanks,
greg k-h
next prev parent reply other threads:[~2008-01-31 17:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-31 9:12 [PATCH] kobject: Always build in kernel/ksysfs.o Paul Mundt
2008-01-31 17:03 ` Greg KH [this message]
2008-01-31 23:15 ` Paul Mundt
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=20080131170344.GA20966@kroah.com \
--to=greg@kroah.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
/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.