From: Kay Sievers <kay.sievers@vrfy.org>
To: Greg KH <greg@kroah.com>
Cc: Adrian Bunk <bunk@stusta.de>, Andrew Morton <akpm@osdl.org>,
rml@novell.com, linux-kernel@vger.kernel.org,
len.brown@intel.com, acpi-devel@lists.sourceforge.net
Subject: Re: 2.6.10-rc1-mm3: ACPI problem due to un-exported hotplug_path
Date: Fri, 5 Nov 2004 21:10:12 +0100 [thread overview]
Message-ID: <20041105201012.GA24063@vrfy.org> (raw)
In-Reply-To: <20041105180513.GA32007@kroah.com>
On Fri, Nov 05, 2004 at 10:05:13AM -0800, Greg KH wrote:
> On Fri, Nov 05, 2004 at 05:45:23PM +0100, Adrian Bunk wrote:
> > The following error (compin from Linus' tree) is caused by the fact that
> > hotplug_path is no longer EXPORT_SYMBOL'ed:
> >
> >
> > <-- snip -->
> >
> > if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.10-rc1-mm3; fi
> > WARNING: /lib/modules/2.6.10-rc1-mm3/kernel/drivers/acpi/container.ko needs unknown symbol hotplug_path
> >
> > <-- snip -->
>
> Hm, must be an -mm specific change that is causing this. I don't see
> this in the current tree.
>
> Len, why would any ACPI code be wanting to get access to hotplug_path
> directly?
I've found it. This wants to introduce a new direct /sbin/hotplug call,
with "add" and "remove" events, without sysfs support.
It should use class support or kobject_hotplug() instead. Nobody should
fake hotplug events anymore, cause every other notification transport
will not get called (currently uevent over netlink).
http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.10-rc1/2.6.10-rc1-mm3/broken-out/bk-acpi.patch
+static int
+container_run_sbin_hotplug(struct acpi_device *device, char *action)
+{
...
+ argv[i++] = hotplug_path;
+ argv[i++] = "container";
+ argv[i] = NULL;
...
+ i = 0;
+ envp[i++] = "HOME=/";
+ envp[i++] = "PATH=/sbin;/bin;/usr/sbin;/usr/bin";
+ envp[i++] = action_str;
+ envp[i++] = container_str;
+ envp[i++] = "PLATFORM=ACPI";
+ envp[i] = NULL;
...
Thanks,
Kay
next prev parent reply other threads:[~2004-11-05 20:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20041105001328.3ba97e08.akpm@osdl.org>
2004-11-05 16:45 ` 2.6.10-rc1-mm3: ACPI problem due to un-exported hotplug_path Adrian Bunk
2004-11-05 18:05 ` Greg KH
2004-11-05 20:10 ` Kay Sievers [this message]
2004-11-05 20:32 ` Ashok Raj
2004-11-05 20:43 ` Greg KH
2004-11-05 20:45 ` Kay Sievers
2004-11-05 20:42 ` Greg KH
2004-11-06 5:18 ` Keshavamurthy Anil S
2004-11-06 5:50 ` Dmitry Torokhov
[not found] ` <20041105211848.A21098-39QZ/XbsZ5/mO6KZMuUCQVaTQe2KTcn/@public.gmane.org>
2004-11-09 22:55 ` Greg KH
[not found] ` <20041109225502.GC7618-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2004-11-09 23:48 ` Dmitry Torokhov
[not found] ` <d120d5000411091548584bf8c5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2004-11-10 0:08 ` Greg KH
[not found] ` <20041110000811.GA8543-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2004-11-10 4:15 ` Dmitry Torokhov
2004-11-16 5:54 ` [ACPI] " 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=20041105201012.GA24063@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=acpi-devel@lists.sourceforge.net \
--cc=akpm@osdl.org \
--cc=bunk@stusta.de \
--cc=greg@kroah.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rml@novell.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox