From: Kay Sievers <kay.sievers@vrfy.org>
To: Tom Rini <trini@kernel.crashing.org>
Cc: Greg KH <greg@kroah.com>,
Kernel Mailing List <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH 2.6.12-rc4] Add EXPORT_SYMBOL for hotplug_path
Date: Fri, 20 May 2005 19:56:42 +0200 [thread overview]
Message-ID: <1116611802.12975.19.camel@dhcp-188> (raw)
In-Reply-To: <20050520171808.GM3771@smtp.west.cox.net>
On Fri, 2005-05-20 at 10:18 -0700, Tom Rini wrote:
> On Fri, May 20, 2005 at 09:12:55AM +0200, Kay Sievers wrote:
> > On Thu, 2005-05-19 at 09:43 -0700, Tom Rini wrote:
> > > If CONFIG_INPUT is set as a module, it will not load as hotplug_path is
> > > not a defined symbol. Trivial fix is to EXPORT_SYMBOL hotplug_path.
> > >
> > > Signed-off-by: Tom Rini <trini@kernel.crashing.org>
> > >
> > > Index: lib/kobject_uevent.c
> > > ===================================================================
> > > --- c7d7a187a2125518e655dfeadffd38156239ffc3/lib/kobject_uevent.c (mode:100644)
> > > +++ uncommitted/lib/kobject_uevent.c (mode:100644)
> > > @@ -21,6 +21,7 @@
> > > #include <linux/string.h>
> > > #include <linux/kobject_uevent.h>
> > > #include <linux/kobject.h>
> > > +#include <linux/module.h>
> > > #include <net/sock.h>
> > >
> > > #define BUFFER_SIZE 1024 /* buffer for the hotplug env */
> > > @@ -178,6 +179,7 @@
> > >
> > > #ifdef CONFIG_HOTPLUG
> > > char hotplug_path[HOTPLUG_PATH_LEN] = "/sbin/hotplug";
> > > +EXPORT_SYMBOL(hotplug_path);
> > > u64 hotplug_seqnum;
> > > static DEFINE_SPINLOCK(sequence_lock);
> >
> > Please don't export it again. We're on the way to make it private.
> > Nobody should ever have access to it outside of the driver core. The
> > input layer event stuff is completely broken and we are already working
> > on fixing this to use the driver core instead of calling /sbin/hotplug,
> > which is completely nonsense these days.
>
> So Greg said he's ACK this since the "make it private" stuff isn't done
> yet. Will this go in or no?
Well, it doesn't depend on "make it private" it depends on Dimitry, who
wanted to tweak our patch for the input layer. But we wait for weeeks
for that. The SUSE kernel already ships a driver-core input layer
without the /sbin/hotplug stuff.
Kay
next prev parent reply other threads:[~2005-05-20 17:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 16:43 [PATCH 2.6.12-rc4] Add EXPORT_SYMBOL for hotplug_path Tom Rini
2005-05-19 17:40 ` Arjan van de Ven
2005-05-19 18:16 ` Tom Rini
2005-05-19 18:29 ` Dave Jones
2005-05-20 5:18 ` Greg KH
2005-05-20 5:18 ` Dmitry Torokhov
2005-05-20 5:37 ` Greg KH
2005-05-20 7:12 ` Kay Sievers
2005-05-20 17:18 ` Tom Rini
2005-05-20 17:56 ` Kay Sievers [this message]
2005-05-20 19:07 ` Dmitry Torokhov
2005-05-20 19:48 ` Kay Sievers
2005-05-20 20:11 ` Dmitry Torokhov
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=1116611802.12975.19.camel@dhcp-188 \
--to=kay.sievers@vrfy.org \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trini@kernel.crashing.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox