* [PATCH] Export symbols so CONFIG_INPUT works as a module
@ 2006-01-24 18:19 Martin Michlmayr
2006-01-24 18:31 ` Arjan van de Ven
2006-01-24 18:34 ` Dave Jones
0 siblings, 2 replies; 46+ messages in thread
From: Martin Michlmayr @ 2006-01-24 18:19 UTC (permalink / raw)
To: linux-kernel
Currently, modular input support fails to load with the following error:
qube:# modprobe input
input: Unknown symbol kobject_get_path
input: Unknown symbol add_input_randomness
In the short run, this can be solved by exporting these two symbols.
There have been discussions about fixing this in a different manner,
see http://www.ussg.iu.edu/hypermail/linux/kernel/0505.2/1068.html
Since this was in the days of 2.6.12-rc4 and modular input support is
still broken, I suggest these symbols to be exported for now.
Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
---
drivers/char/random.c | 2 ++
lib/kobject.c | 1 +
2 files changed, 3 insertions(+)
--- a/drivers/char/random.c 2006-01-24 18:11:26.000000000 +0000
+++ b/drivers/char/random.c 2006-01-24 18:11:57.000000000 +0000
@@ -647,6 +647,8 @@
(type << 4) ^ code ^ (code >> 4) ^ value);
}
+EXPORT_SYMBOL(add_input_randomness);
+
void add_interrupt_randomness(int irq)
{
if (irq >= NR_IRQS || irq_timer_state[irq] == 0)
--- a/lib/kobject.c 2006-01-24 18:12:15.000000000 +0000
+++ b/lib/kobject.c 2006-01-24 18:12:43.000000000 +0000
@@ -527,6 +527,7 @@
EXPORT_SYMBOL(kobject_init);
EXPORT_SYMBOL(kobject_register);
EXPORT_SYMBOL(kobject_unregister);
+EXPORT_SYMBOL(kobject_get_path);
EXPORT_SYMBOL(kobject_get);
EXPORT_SYMBOL(kobject_put);
EXPORT_SYMBOL(kobject_add);
--
Martin Michlmayr
http://www.cyrius.com/
^ permalink raw reply [flat|nested] 46+ messages in thread* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-24 18:19 [PATCH] Export symbols so CONFIG_INPUT works as a module Martin Michlmayr @ 2006-01-24 18:31 ` Arjan van de Ven 2006-01-24 18:34 ` Dave Jones 1 sibling, 0 replies; 46+ messages in thread From: Arjan van de Ven @ 2006-01-24 18:31 UTC (permalink / raw) To: Martin Michlmayr; +Cc: linux-kernel On Tue, 2006-01-24 at 18:19 +0000, Martin Michlmayr wrote: > Currently, modular input support fails to load with the following error: > > qube:# modprobe input > input: Unknown symbol kobject_get_path > input: Unknown symbol add_input_randomness > > In the short run, this can be solved by exporting these two symbols. > There have been discussions about fixing this in a different manner, > see http://www.ussg.iu.edu/hypermail/linux/kernel/0505.2/1068.html > Since this was in the days of 2.6.12-rc4 and modular input support is > still broken, I suggest these symbols to be exported for now. better make these _GPL exports to make sure people understand these are internal things... ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-24 18:19 [PATCH] Export symbols so CONFIG_INPUT works as a module Martin Michlmayr 2006-01-24 18:31 ` Arjan van de Ven @ 2006-01-24 18:34 ` Dave Jones 2006-01-24 18:41 ` Al Viro 2006-01-24 19:08 ` [PATCH] Export symbols so CONFIG_INPUT works as a module Martin Michlmayr 1 sibling, 2 replies; 46+ messages in thread From: Dave Jones @ 2006-01-24 18:34 UTC (permalink / raw) To: Martin Michlmayr; +Cc: linux-kernel On Tue, Jan 24, 2006 at 06:19:45PM +0000, Martin Michlmayr wrote: > Currently, modular input support fails to load with the following error: > > qube:# modprobe input > input: Unknown symbol kobject_get_path > input: Unknown symbol add_input_randomness > > In the short run, this can be solved by exporting these two symbols. > There have been discussions about fixing this in a different manner, > see http://www.ussg.iu.edu/hypermail/linux/kernel/0505.2/1068.html > Since this was in the days of 2.6.12-rc4 and modular input support is > still broken, I suggest these symbols to be exported for now. Is there actually any practical reason why you would want to make the input layer modular ? Dave ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-24 18:34 ` Dave Jones @ 2006-01-24 18:41 ` Al Viro 2006-01-24 23:08 ` Dmitry Torokhov 2006-01-24 19:08 ` [PATCH] Export symbols so CONFIG_INPUT works as a module Martin Michlmayr 1 sibling, 1 reply; 46+ messages in thread From: Al Viro @ 2006-01-24 18:41 UTC (permalink / raw) To: Dave Jones, Martin Michlmayr, linux-kernel On Tue, Jan 24, 2006 at 01:34:32PM -0500, Dave Jones wrote: > On Tue, Jan 24, 2006 at 06:19:45PM +0000, Martin Michlmayr wrote: > > Currently, modular input support fails to load with the following error: > > > > qube:# modprobe input > > input: Unknown symbol kobject_get_path > > input: Unknown symbol add_input_randomness > > > > In the short run, this can be solved by exporting these two symbols. > > There have been discussions about fixing this in a different manner, > > see http://www.ussg.iu.edu/hypermail/linux/kernel/0505.2/1068.html > > Since this was in the days of 2.6.12-rc4 and modular input support is > > still broken, I suggest these symbols to be exported for now. > > Is there actually any practical reason why you would want to > make the input layer modular ? More interesting question: is pis^H^H^Hsysfs interaction in there safe for modular code? ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-24 18:41 ` Al Viro @ 2006-01-24 23:08 ` Dmitry Torokhov 2006-01-24 23:14 ` Martin Michlmayr 0 siblings, 1 reply; 46+ messages in thread From: Dmitry Torokhov @ 2006-01-24 23:08 UTC (permalink / raw) To: Al Viro; +Cc: Dave Jones, Martin Michlmayr, linux-kernel On 1/24/06, Al Viro <viro@ftp.linux.org.uk> wrote: > On Tue, Jan 24, 2006 at 01:34:32PM -0500, Dave Jones wrote: > > On Tue, Jan 24, 2006 at 06:19:45PM +0000, Martin Michlmayr wrote: > > > Currently, modular input support fails to load with the following error: > > > > > > qube:# modprobe input > > > input: Unknown symbol kobject_get_path > > > input: Unknown symbol add_input_randomness > > > > > > In the short run, this can be solved by exporting these two symbols. > > > There have been discussions about fixing this in a different manner, > > > see http://www.ussg.iu.edu/hypermail/linux/kernel/0505.2/1068.html > > > Since this was in the days of 2.6.12-rc4 and modular input support is > > > still broken, I suggest these symbols to be exported for now. > > > > Is there actually any practical reason why you would want to > > make the input layer modular ? > > More interesting question: is pis^H^H^Hsysfs interaction in there safe for > modular code? The core should be safe, at least I was trying to make it this way, so if you see something wrong - shout. Locking is another question though... -- Dmitry ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-24 23:08 ` Dmitry Torokhov @ 2006-01-24 23:14 ` Martin Michlmayr 2006-01-25 5:04 ` Dmitry Torokhov 0 siblings, 1 reply; 46+ messages in thread From: Martin Michlmayr @ 2006-01-24 23:14 UTC (permalink / raw) To: dtor_core; +Cc: Al Viro, Dave Jones, linux-kernel * Dmitry Torokhov <dmitry.torokhov@gmail.com> [2006-01-24 18:08]: > > More interesting question: is pis^H^H^Hsysfs interaction in there safe for > > modular code? > > The core should be safe, at least I was trying to make it this way, so > if you see something wrong - shout. Locking is another question > though... So do you want an updated patch using _GPL to export the symbols or to change CONFIG_INPUT to boolean? -- Martin Michlmayr http://www.cyrius.com/ ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-24 23:14 ` Martin Michlmayr @ 2006-01-25 5:04 ` Dmitry Torokhov 2006-01-25 7:51 ` Vojtech Pavlik ` (2 more replies) 0 siblings, 3 replies; 46+ messages in thread From: Dmitry Torokhov @ 2006-01-25 5:04 UTC (permalink / raw) To: Martin Michlmayr; +Cc: Al Viro, Dave Jones, linux-kernel, Vojtech Pavlik On Tuesday 24 January 2006 18:14, Martin Michlmayr wrote: > * Dmitry Torokhov <dmitry.torokhov@gmail.com> [2006-01-24 18:08]: > > > More interesting question: is pis^H^H^Hsysfs interaction in there safe for > > > modular code? > > > > The core should be safe, at least I was trying to make it this way, so > > if you see something wrong - shout. Locking is another question > > though... > > So do you want an updated patch using _GPL to export the symbols or to > change CONFIG_INPUT to boolean? I guess having input core as a module does not make much sense, so we should change CONFIG_INPUT to be boolean _and_ clean up the core code removing module unloading support. -- Dmitry ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-25 5:04 ` Dmitry Torokhov @ 2006-01-25 7:51 ` Vojtech Pavlik 2006-01-25 10:54 ` Martin Michlmayr 2006-01-26 22:17 ` Adrian Bunk 2006-01-25 14:20 ` Jan Engelhardt 2006-02-03 22:36 ` [2.6 patch] make INPUT a bool Adrian Bunk 2 siblings, 2 replies; 46+ messages in thread From: Vojtech Pavlik @ 2006-01-25 7:51 UTC (permalink / raw) To: Dmitry Torokhov; +Cc: Martin Michlmayr, Al Viro, Dave Jones, linux-kernel On Wed, Jan 25, 2006 at 12:04:06AM -0500, Dmitry Torokhov wrote: > On Tuesday 24 January 2006 18:14, Martin Michlmayr wrote: > > * Dmitry Torokhov <dmitry.torokhov@gmail.com> [2006-01-24 18:08]: > > > > More interesting question: is pis^H^H^Hsysfs interaction in there safe for > > > > modular code? > > > > > > The core should be safe, at least I was trying to make it this way, so > > > if you see something wrong - shout. Locking is another question > > > though... > > > > So do you want an updated patch using _GPL to export the symbols or to > > change CONFIG_INPUT to boolean? > > I guess having input core as a module does not make much sense, so > we should change CONFIG_INPUT to be boolean _and_ clean up the core > code removing module unloading support. Well, USB or SCSI cores are also modules, so I think there is some point in having that functionality. What were the required symbols? -- Vojtech Pavlik SuSE Labs, SuSE CR ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-25 7:51 ` Vojtech Pavlik @ 2006-01-25 10:54 ` Martin Michlmayr 2006-01-26 22:17 ` Adrian Bunk 1 sibling, 0 replies; 46+ messages in thread From: Martin Michlmayr @ 2006-01-25 10:54 UTC (permalink / raw) To: Vojtech Pavlik; +Cc: Dmitry Torokhov, linux-kernel * Vojtech Pavlik <vojtech@suse.cz> [2006-01-25 08:51]: > Well, USB or SCSI cores are also modules, so I think there is some point > in having that functionality. > > What were the required symbols? input: Unknown symbol kobject_get_path input: Unknown symbol add_input_randomness -- Martin Michlmayr http://www.cyrius.com/ ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-25 7:51 ` Vojtech Pavlik 2006-01-25 10:54 ` Martin Michlmayr @ 2006-01-26 22:17 ` Adrian Bunk 1 sibling, 0 replies; 46+ messages in thread From: Adrian Bunk @ 2006-01-26 22:17 UTC (permalink / raw) To: Vojtech Pavlik Cc: Dmitry Torokhov, Martin Michlmayr, Al Viro, Dave Jones, linux-kernel On Wed, Jan 25, 2006 at 08:51:59AM +0100, Vojtech Pavlik wrote: > On Wed, Jan 25, 2006 at 12:04:06AM -0500, Dmitry Torokhov wrote: > > On Tuesday 24 January 2006 18:14, Martin Michlmayr wrote: > > > * Dmitry Torokhov <dmitry.torokhov@gmail.com> [2006-01-24 18:08]: > > > > > More interesting question: is pis^H^H^Hsysfs interaction in there safe for > > > > > modular code? > > > > > > > > The core should be safe, at least I was trying to make it this way, so > > > > if you see something wrong - shout. Locking is another question > > > > though... > > > > > > So do you want an updated patch using _GPL to export the symbols or to > > > change CONFIG_INPUT to boolean? > > > > I guess having input core as a module does not make much sense, so > > we should change CONFIG_INPUT to be boolean _and_ clean up the core > > code removing module unloading support. > > Well, USB or SCSI cores are also modules, so I think there is some point > in having that functionality. >... The difference is that USB and SCSI are not that essential, and therefore not always enabled if CONFIG_EMBEDDED=n. It's therefore e.g. not uncommon that distributions offer modular USB and SCSI cores. Are there really people building kernels for that much space limited environments that they set CONFIG_EMBEDDED=y, and at the same time want CONFIG_INPUT=m? I'd have expected people using CONFIG_EMBEDDED=y to usually also set CONFIG_MODULES=n for getting a smaller kernel. > Vojtech Pavlik cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-25 5:04 ` Dmitry Torokhov 2006-01-25 7:51 ` Vojtech Pavlik @ 2006-01-25 14:20 ` Jan Engelhardt 2006-02-03 22:36 ` [2.6 patch] make INPUT a bool Adrian Bunk 2 siblings, 0 replies; 46+ messages in thread From: Jan Engelhardt @ 2006-01-25 14:20 UTC (permalink / raw) To: Dmitry Torokhov Cc: Martin Michlmayr, Al Viro, Dave Jones, linux-kernel, Vojtech Pavlik >I guess having input core as a module does not make much sense, so >we should change CONFIG_INPUT to be boolean _and_ clean up the core >code removing module unloading support. Embedded devices with keyboard hotplugging? Jan Engelhardt -- ^ permalink raw reply [flat|nested] 46+ messages in thread
* [2.6 patch] make INPUT a bool 2006-01-25 5:04 ` Dmitry Torokhov 2006-01-25 7:51 ` Vojtech Pavlik 2006-01-25 14:20 ` Jan Engelhardt @ 2006-02-03 22:36 ` Adrian Bunk 2 siblings, 0 replies; 46+ messages in thread From: Adrian Bunk @ 2006-02-03 22:36 UTC (permalink / raw) To: Dmitry Torokhov Cc: Martin Michlmayr, Al Viro, Dave Jones, linux-kernel, Vojtech Pavlik On Wed, Jan 25, 2006 at 12:04:06AM -0500, Dmitry Torokhov wrote: > On Tuesday 24 January 2006 18:14, Martin Michlmayr wrote: > > * Dmitry Torokhov <dmitry.torokhov@gmail.com> [2006-01-24 18:08]: > > > > More interesting question: is pis^H^H^Hsysfs interaction in there safe for > > > > modular code? > > > > > > The core should be safe, at least I was trying to make it this way, so > > > if you see something wrong - shout. Locking is another question > > > though... > > > > So do you want an updated patch using _GPL to export the symbols or to > > change CONFIG_INPUT to boolean? > > I guess having input core as a module does not make much sense, so > we should change CONFIG_INPUT to be boolean _and_ clean up the core > code removing module unloading support. Is the patch below what you were thinking of? > Dmitry cu Adrian <-- snip --> Make INPUT a bool. INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't make that much sense to make it modular. Signed-off-by: Adrian Bunk <bunk@stusta.de> --- drivers/input/Kconfig | 2 +- drivers/input/input.c | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) --- linux-2.6.16-rc1-mm5-full/drivers/input/Kconfig.old 2006-02-03 22:42:18.000000000 +0100 +++ linux-2.6.16-rc1-mm5-full/drivers/input/Kconfig 2006-02-03 22:42:29.000000000 +0100 @@ -5,7 +5,7 @@ menu "Input device support" config INPUT - tristate "Generic input layer (needed for keyboard, mouse, ...)" if EMBEDDED + bool "Generic input layer (needed for keyboard, mouse, ...)" if EMBEDDED default y ---help--- Say Y here if you have any input device (mouse, keyboard, tablet, --- linux-2.6.16-rc1-mm5-full/drivers/input/input.c.old 2006-02-03 22:42:41.000000000 +0100 +++ linux-2.6.16-rc1-mm5-full/drivers/input/input.c 2006-02-03 22:47:44.000000000 +0100 @@ -984,12 +984,4 @@ return err; } -static void __exit input_exit(void) -{ - input_proc_exit(); - unregister_chrdev(INPUT_MAJOR, "input"); - class_unregister(&input_class); -} - subsys_initcall(input_init); -module_exit(input_exit); ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-24 18:34 ` Dave Jones 2006-01-24 18:41 ` Al Viro @ 2006-01-24 19:08 ` Martin Michlmayr 2006-01-24 19:20 ` Dave Jones 1 sibling, 1 reply; 46+ messages in thread From: Martin Michlmayr @ 2006-01-24 19:08 UTC (permalink / raw) To: Dave Jones, linux-kernel * Dave Jones <davej@redhat.com> [2006-01-24 13:34]: > Is there actually any practical reason why you would want to > make the input layer modular ? Not really, but if it doesn't work as a module then Kbuild shouldn't allow you to configure it like that. -- Martin Michlmayr http://www.cyrius.com/ ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [PATCH] Export symbols so CONFIG_INPUT works as a module 2006-01-24 19:08 ` [PATCH] Export symbols so CONFIG_INPUT works as a module Martin Michlmayr @ 2006-01-24 19:20 ` Dave Jones 0 siblings, 0 replies; 46+ messages in thread From: Dave Jones @ 2006-01-24 19:20 UTC (permalink / raw) To: Martin Michlmayr; +Cc: linux-kernel On Tue, Jan 24, 2006 at 07:08:39PM +0000, Martin Michlmayr wrote: > * Dave Jones <davej@redhat.com> [2006-01-24 13:34]: > > Is there actually any practical reason why you would want to > > make the input layer modular ? > > Not really, but if it doesn't work as a module then Kbuild shouldn't > allow you to configure it like that. That's the point I'm trying to make. If there's no good reason, it may as well be boolean. Dave ^ permalink raw reply [flat|nested] 46+ messages in thread
* [2.6 patch] make INPUT a bool
@ 2006-02-14 15:22 Adrian Bunk
2006-02-14 18:14 ` Jan Engelhardt
2006-02-15 6:20 ` Dmitry Torokhov
0 siblings, 2 replies; 46+ messages in thread
From: Adrian Bunk @ 2006-02-14 15:22 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-kernel, linux-input
Make INPUT a bool.
INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't
make that much sense to make it modular.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on:
- 3 Feb 2006
drivers/input/Kconfig | 2 +-
drivers/input/input.c | 8 --------
2 files changed, 1 insertion(+), 9 deletions(-)
--- linux-2.6.16-rc1-mm5-full/drivers/input/Kconfig.old 2006-02-03 22:42:18.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/drivers/input/Kconfig 2006-02-03 22:42:29.000000000 +0100
@@ -5,7 +5,7 @@
menu "Input device support"
config INPUT
- tristate "Generic input layer (needed for keyboard, mouse, ...)" if EMBEDDED
+ bool "Generic input layer (needed for keyboard, mouse, ...)" if EMBEDDED
default y
---help---
Say Y here if you have any input device (mouse, keyboard, tablet,
--- linux-2.6.16-rc1-mm5-full/drivers/input/input.c.old 2006-02-03 22:42:41.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/drivers/input/input.c 2006-02-03 22:47:44.000000000 +0100
@@ -984,12 +984,4 @@
return err;
}
-static void __exit input_exit(void)
-{
- input_proc_exit();
- unregister_chrdev(INPUT_MAJOR, "input");
- class_unregister(&input_class);
-}
-
subsys_initcall(input_init);
-module_exit(input_exit);
^ permalink raw reply [flat|nested] 46+ messages in thread* Re: [2.6 patch] make INPUT a bool 2006-02-14 15:22 [2.6 patch] make INPUT a bool Adrian Bunk @ 2006-02-14 18:14 ` Jan Engelhardt 2006-02-14 18:22 ` Adrian Bunk 2006-02-15 6:20 ` Dmitry Torokhov 1 sibling, 1 reply; 46+ messages in thread From: Jan Engelhardt @ 2006-02-14 18:14 UTC (permalink / raw) To: Adrian Bunk; +Cc: Dmitry Torokhov, linux-kernel, linux-input > >Make INPUT a bool. > >INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't >make that much sense to make it modular. > modular would make sense to me - http://lkml.org/lkml/2006/1/25/106 >This patch was already sent on: >- 3 Feb 2006 Jan Engelhardt -- ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-14 18:14 ` Jan Engelhardt @ 2006-02-14 18:22 ` Adrian Bunk 2006-02-14 23:47 ` Adrian Bunk 2006-02-17 15:56 ` Jan Engelhardt 0 siblings, 2 replies; 46+ messages in thread From: Adrian Bunk @ 2006-02-14 18:22 UTC (permalink / raw) To: Jan Engelhardt; +Cc: Dmitry Torokhov, linux-kernel, linux-input On Tue, Feb 14, 2006 at 07:14:21PM +0100, Jan Engelhardt wrote: > > > >Make INPUT a bool. > > > >INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't > >make that much sense to make it modular. > > > modular would make sense to me - http://lkml.org/lkml/2006/1/25/106 >... I don't get your point: You don't need INPUT modular for hotplugging devices. In the normal EMBEDDED=n cases, users already do not have the choice of making INPUT modular. If someone is working in an environment that is that space limited that he sets EMBEDDED=y, why on earth should he enable module support that uses relatively much space in his kernel? > Jan Engelhardt cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-14 18:22 ` Adrian Bunk @ 2006-02-14 23:47 ` Adrian Bunk 2006-02-17 15:56 ` Jan Engelhardt 1 sibling, 0 replies; 46+ messages in thread From: Adrian Bunk @ 2006-02-14 23:47 UTC (permalink / raw) To: Jan Engelhardt; +Cc: Dmitry Torokhov, linux-kernel, linux-input On Tue, Feb 14, 2006 at 07:22:38PM +0100, Adrian Bunk wrote: > On Tue, Feb 14, 2006 at 07:14:21PM +0100, Jan Engelhardt wrote: > > > > > >Make INPUT a bool. > > > > > >INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't > > >make that much sense to make it modular. > > > > > modular would make sense to me - http://lkml.org/lkml/2006/1/25/106 > >... > > I don't get your point: > > You don't need INPUT modular for hotplugging devices. > > In the normal EMBEDDED=n cases, users already do not have the choice of > making INPUT modular. > > If someone is working in an environment that is that space limited that > he sets EMBEDDED=y, why on earth should he enable module support that > uses relatively much space in his kernel? >... To back this with numbers: I'm usually using a non-modular kernel on my computer. This is the size difference between the same kernel with CONFIG_MODULES=y and CONFIG_MODULES=n: 3799589 vmlinux-with-modules 3447297 vmlinux-without-modules Yes, the kernel is becoming bigger by 10% only for supporting modules. Since the size increase is the space for the module support part of the kernel plus some additional space in many object files for stuff like EXPORT_SYMBOL's, the relative size increase is most likely even bigger for small kernels. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-14 18:22 ` Adrian Bunk 2006-02-14 23:47 ` Adrian Bunk @ 2006-02-17 15:56 ` Jan Engelhardt 2006-02-17 16:38 ` Adrian Bunk 1 sibling, 1 reply; 46+ messages in thread From: Jan Engelhardt @ 2006-02-17 15:56 UTC (permalink / raw) To: Adrian Bunk; +Cc: Dmitry Torokhov, linux-kernel, linux-input >> >Make INPUT a bool. >> > >> >INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't >> >make that much sense to make it modular. >> > >> modular would make sense to me - http://lkml.org/lkml/2006/1/25/106 >>... > >I don't get your point: >You don't need INPUT modular for hotplugging devices. Well that is, if one happens to plug in a, say, USB keyboard. Jan Engelhardt -- ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-17 15:56 ` Jan Engelhardt @ 2006-02-17 16:38 ` Adrian Bunk 2006-02-20 3:33 ` Samuel Masham 0 siblings, 1 reply; 46+ messages in thread From: Adrian Bunk @ 2006-02-17 16:38 UTC (permalink / raw) To: Jan Engelhardt; +Cc: Dmitry Torokhov, linux-kernel, linux-input On Fri, Feb 17, 2006 at 04:56:51PM +0100, Jan Engelhardt wrote: > >> >Make INPUT a bool. > >> > > >> >INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't > >> >make that much sense to make it modular. > >> > > >> modular would make sense to me - http://lkml.org/lkml/2006/1/25/106 > >>... > > > >I don't get your point: > >You don't need INPUT modular for hotplugging devices. > > Well that is, if one happens to plug in a, say, USB keyboard. Let me repeat the same sentence more boldly: YOU DO NOT NEED MODULES FOR HOTPLUGGING DEVICES. Please try to understand this sentence. And I've already given numbers why CONFIG_EMBEDDED=y and CONFIG_MODULES=y at the same time is insane. > Jan Engelhardt cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-17 16:38 ` Adrian Bunk @ 2006-02-20 3:33 ` Samuel Masham 2006-02-20 13:28 ` Adrian Bunk 0 siblings, 1 reply; 46+ messages in thread From: Samuel Masham @ 2006-02-20 3:33 UTC (permalink / raw) To: Adrian Bunk; +Cc: Jan Engelhardt, Dmitry Torokhov, linux-kernel, linux-input Hi Adrian, > And I've already given numbers why CONFIG_EMBEDDED=y and > CONFIG_MODULES=y at the same time is insane. >From your numbers this sounds true ... but actually you might want the modules to delay the init of the various hardware bits... Sometime boot-time is king and you just try and get back as much of the size costs as it takes... I think for EMBEDDED and MODULES is actually a very common case ... if somewhat odd. Samuel ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-20 3:33 ` Samuel Masham @ 2006-02-20 13:28 ` Adrian Bunk 2006-02-22 1:34 ` Herbert Poetzl 0 siblings, 1 reply; 46+ messages in thread From: Adrian Bunk @ 2006-02-20 13:28 UTC (permalink / raw) To: Samuel Masham; +Cc: Jan Engelhardt, Dmitry Torokhov, linux-kernel, linux-input On Mon, Feb 20, 2006 at 12:33:55PM +0900, Samuel Masham wrote: > Hi Adrian, Hi Samuel, > > And I've already given numbers why CONFIG_EMBEDDED=y and > > CONFIG_MODULES=y at the same time is insane. > > >From your numbers this sounds true ... but actually you might want the > modules to delay the init of the various hardware bits... > > Sometime boot-time is king and you just try and get back as much of > the size costs as it takes... this is irrelevant since CONFIG_INPUT alone does not init any hardware. > I think for EMBEDDED and MODULES is actually a very common case ... if > somewhat odd. You are misunderstanding EMBEDDED. It does _not_ mean "this is an embedded device". It does mean "offer additional options for additional space savings". For an embedded system with relaxed space limits, EMBEDDED=n is the right choice. > Samuel cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-20 13:28 ` Adrian Bunk @ 2006-02-22 1:34 ` Herbert Poetzl 2006-02-22 2:31 ` Adrian Bunk 0 siblings, 1 reply; 46+ messages in thread From: Herbert Poetzl @ 2006-02-22 1:34 UTC (permalink / raw) To: Adrian Bunk Cc: Samuel Masham, Jan Engelhardt, Dmitry Torokhov, linux-kernel, linux-input, Andrew Morton On Mon, Feb 20, 2006 at 02:28:32PM +0100, Adrian Bunk wrote: > On Mon, Feb 20, 2006 at 12:33:55PM +0900, Samuel Masham wrote: > > > Hi Adrian, > > Hi Samuel, > > > > And I've already given numbers why CONFIG_EMBEDDED=y and > > > CONFIG_MODULES=y at the same time is insane. > > > > >From your numbers this sounds true ... but actually you might want the > > modules to delay the init of the various hardware bits... > > > > Sometime boot-time is king and you just try and get back as much of > > the size costs as it takes... > > this is irrelevant since CONFIG_INPUT alone does not init any hardware. > > > I think for EMBEDDED and MODULES is actually a very common case ... if > > somewhat odd. > > You are misunderstanding EMBEDDED. well, I suggested the following (or a similar) change some time ago (unfortunately I could not find it in the lkml archives, so it might have been lost) http://vserver.13thfloor.at/Stuff/embedded_to_expert.txt best, Herbert > It does _not_ mean "this is an embedded device". > It does mean "offer additional options for additional space savings". > > For an embedded system with relaxed space limits, EMBEDDED=n is the > right choice. > > > Samuel > > cu > Adrian > > -- > > "Is there not promise of rain?" Ling Tan asked suddenly out > of the darkness. There had been need of rain for many days. > "Only a promise," Lao Er said. > Pearl S. Buck - Dragon Seed > > - > 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/ ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-22 1:34 ` Herbert Poetzl @ 2006-02-22 2:31 ` Adrian Bunk 2006-02-22 2:44 ` Herbert Poetzl 2006-02-25 11:58 ` Geert Uytterhoeven 0 siblings, 2 replies; 46+ messages in thread From: Adrian Bunk @ 2006-02-22 2:31 UTC (permalink / raw) To: Samuel Masham, Jan Engelhardt, Dmitry Torokhov, linux-kernel, linux-input, Andrew Morton On Wed, Feb 22, 2006 at 02:34:11AM +0100, Herbert Poetzl wrote: > On Mon, Feb 20, 2006 at 02:28:32PM +0100, Adrian Bunk wrote: > > On Mon, Feb 20, 2006 at 12:33:55PM +0900, Samuel Masham wrote: > > > > > Hi Adrian, > > > > Hi Samuel, > > > > > > And I've already given numbers why CONFIG_EMBEDDED=y and > > > > CONFIG_MODULES=y at the same time is insane. > > > > > > >From your numbers this sounds true ... but actually you might want the > > > modules to delay the init of the various hardware bits... > > > > > > Sometime boot-time is king and you just try and get back as much of > > > the size costs as it takes... > > > > this is irrelevant since CONFIG_INPUT alone does not init any hardware. > > > > > I think for EMBEDDED and MODULES is actually a very common case ... if > > > somewhat odd. > > > > You are misunderstanding EMBEDDED. > > well, I suggested the following (or a similar) > change some time ago (unfortunately I could not > find it in the lkml archives, so it might have > been lost) > > http://vserver.13thfloor.at/Stuff/embedded_to_expert.txt That's not a good solution since EMBEDDED is really only about additional space savings - even if you are an "expert", there's no reason to enable EMBEDDED when building a kernel for systems with > 50 MB RAM. The better solution is IMHO an additional option: http://lkml.org/lkml/2006/2/7/93 http://lkml.org/lkml/2006/2/7/139 > best, > Herbert cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-22 2:31 ` Adrian Bunk @ 2006-02-22 2:44 ` Herbert Poetzl 2006-02-22 3:10 ` Adrian Bunk 2006-02-25 11:58 ` Geert Uytterhoeven 1 sibling, 1 reply; 46+ messages in thread From: Herbert Poetzl @ 2006-02-22 2:44 UTC (permalink / raw) To: Adrian Bunk Cc: Samuel Masham, Jan Engelhardt, Dmitry Torokhov, linux-kernel, linux-input, Andrew Morton On Wed, Feb 22, 2006 at 03:31:21AM +0100, Adrian Bunk wrote: > On Wed, Feb 22, 2006 at 02:34:11AM +0100, Herbert Poetzl wrote: > > On Mon, Feb 20, 2006 at 02:28:32PM +0100, Adrian Bunk wrote: > > > On Mon, Feb 20, 2006 at 12:33:55PM +0900, Samuel Masham wrote: > > > > > > > Hi Adrian, > > > > > > Hi Samuel, > > > > > > > > And I've already given numbers why CONFIG_EMBEDDED=y and > > > > > CONFIG_MODULES=y at the same time is insane. > > > > > > > > >From your numbers this sounds true ... but actually you might want the > > > > modules to delay the init of the various hardware bits... > > > > > > > > Sometime boot-time is king and you just try and get back as much of > > > > the size costs as it takes... > > > > > > this is irrelevant since CONFIG_INPUT alone does not init any hardware. > > > > > > > I think for EMBEDDED and MODULES is actually a very common case ... if > > > > somewhat odd. > > > > > > You are misunderstanding EMBEDDED. > > > > well, I suggested the following (or a similar) > > change some time ago (unfortunately I could not > > find it in the lkml archives, so it might have > > been lost) > > > > http://vserver.13thfloor.at/Stuff/embedded_to_expert.txt > > That's not a good solution since EMBEDDED is really only about > additional space savings - even if you are an "expert", there's no > reason to enable EMBEDDED when building a kernel for systems > with > 50 MB RAM. well, not sure everybody kows that ... config X86_P4_CLOCKMOD depends on EMBEDDED config VT_CONSOLE bool "Support for console on virtual terminal" if EMBEDDED config VGA_CONSOLE bool "VGA text console" if EMBEDDED config DNOTIFY bool "Dnotify support" if EMBEDDED config DEBUG_BUGVERBOSE bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED but, the patch was just considered a starting point so that folks would know _what_ EMBEDDED is currently used for ... > The better solution is IMHO an additional option: > http://lkml.org/lkml/2006/2/7/93 > http://lkml.org/lkml/2006/2/7/139 whatever, just get rid of the CONFIG_EMBEDDED everybody get's wrong and nobody really understands ... > > best, > > Herbert > > cu > Adrian > > -- > > "Is there not promise of rain?" Ling Tan asked suddenly out > of the darkness. There had been need of rain for many days. > "Only a promise," Lao Er said. > Pearl S. Buck - Dragon Seed > > - > 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/ ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-22 2:44 ` Herbert Poetzl @ 2006-02-22 3:10 ` Adrian Bunk 2006-02-22 3:20 ` Dmitry Torokhov 2006-02-22 12:01 ` Herbert Poetzl 0 siblings, 2 replies; 46+ messages in thread From: Adrian Bunk @ 2006-02-22 3:10 UTC (permalink / raw) To: Samuel Masham, Jan Engelhardt, Dmitry Torokhov, linux-kernel, linux-input, Andrew Morton On Wed, Feb 22, 2006 at 03:44:38AM +0100, Herbert Poetzl wrote: > On Wed, Feb 22, 2006 at 03:31:21AM +0100, Adrian Bunk wrote: > > On Wed, Feb 22, 2006 at 02:34:11AM +0100, Herbert Poetzl wrote: > > > On Mon, Feb 20, 2006 at 02:28:32PM +0100, Adrian Bunk wrote: > > > > On Mon, Feb 20, 2006 at 12:33:55PM +0900, Samuel Masham wrote: > > > > > > > > > Hi Adrian, > > > > > > > > Hi Samuel, > > > > > > > > > > And I've already given numbers why CONFIG_EMBEDDED=y and > > > > > > CONFIG_MODULES=y at the same time is insane. > > > > > > > > > > >From your numbers this sounds true ... but actually you might want the > > > > > modules to delay the init of the various hardware bits... > > > > > > > > > > Sometime boot-time is king and you just try and get back as much of > > > > > the size costs as it takes... > > > > > > > > this is irrelevant since CONFIG_INPUT alone does not init any hardware. > > > > > > > > > I think for EMBEDDED and MODULES is actually a very common case ... if > > > > > somewhat odd. > > > > > > > > You are misunderstanding EMBEDDED. > > > > > > well, I suggested the following (or a similar) > > > change some time ago (unfortunately I could not > > > find it in the lkml archives, so it might have > > > been lost) > > > > > > http://vserver.13thfloor.at/Stuff/embedded_to_expert.txt > > > > That's not a good solution since EMBEDDED is really only about > > additional space savings - even if you are an "expert", there's no > > reason to enable EMBEDDED when building a kernel for systems > > with > 50 MB RAM. > > well, not sure everybody kows that ... > > config X86_P4_CLOCKMOD > depends on EMBEDDED This one is an x86_64 only issue, and yes, it's wrong. > config VT_CONSOLE > bool "Support for console on virtual terminal" if EMBEDDED Looks OK. > config VGA_CONSOLE > bool "VGA text console" if EMBEDDED Looks OK. > config DNOTIFY > bool "Dnotify support" if EMBEDDED Looks OK. > config DEBUG_BUGVERBOSE > bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED Looks OK. > but, the patch was just considered a starting point > so that folks would know _what_ EMBEDDED is currently > used for ... Except for the X86_P4_CLOCKMOD case, all of your examples are correct usages of EMBEDDED. > > The better solution is IMHO an additional option: > > http://lkml.org/lkml/2006/2/7/93 > > http://lkml.org/lkml/2006/2/7/139 > > whatever, just get rid of the CONFIG_EMBEDDED everybody > get's wrong and nobody really understands ... No, the EMBEDDED semantics shouldn't be changed and most people get it right. Naming it EXPERT as you suggested would make it even worse. We could name it SHOW_OPTIONS_FOR_ADDITIONAL_SPACE_SAVINGS_IF_YOU_REALLY_KNOW_WHAT_YOU_ARE_DOING, but unless someone comes up with a name that is both short and significantely better than EMBEDDED I don't see a reason for changing it. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-22 3:10 ` Adrian Bunk @ 2006-02-22 3:20 ` Dmitry Torokhov 2006-02-22 12:01 ` Herbert Poetzl 1 sibling, 0 replies; 46+ messages in thread From: Dmitry Torokhov @ 2006-02-22 3:20 UTC (permalink / raw) To: Adrian Bunk Cc: Samuel Masham, Jan Engelhardt, linux-kernel, linux-input, Andrew Morton On Tuesday 21 February 2006 22:10, Adrian Bunk wrote: > On Wed, Feb 22, 2006 at 03:44:38AM +0100, Herbert Poetzl wrote: > > > > config X86_P4_CLOCKMOD > > depends on EMBEDDED > > This one is an x86_64 only issue, and yes, it's wrong. That's for P4, not X86_64... And since P4 clock modulation does not provide almost any energy savings it was "hidden" under embedded. -- Dmitry ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-22 3:10 ` Adrian Bunk 2006-02-22 3:20 ` Dmitry Torokhov @ 2006-02-22 12:01 ` Herbert Poetzl 2006-02-22 12:15 ` Adrian Bunk 1 sibling, 1 reply; 46+ messages in thread From: Herbert Poetzl @ 2006-02-22 12:01 UTC (permalink / raw) To: Adrian Bunk Cc: Samuel Masham, Jan Engelhardt, Dmitry Torokhov, linux-kernel, linux-input, Andrew Morton On Wed, Feb 22, 2006 at 04:10:01AM +0100, Adrian Bunk wrote: > On Wed, Feb 22, 2006 at 03:44:38AM +0100, Herbert Poetzl wrote: > > On Wed, Feb 22, 2006 at 03:31:21AM +0100, Adrian Bunk wrote: > > > On Wed, Feb 22, 2006 at 02:34:11AM +0100, Herbert Poetzl wrote: > > > > On Mon, Feb 20, 2006 at 02:28:32PM +0100, Adrian Bunk wrote: > > > > > On Mon, Feb 20, 2006 at 12:33:55PM +0900, Samuel Masham wrote: > > > > > > > > > > > Hi Adrian, > > > > > > > > > > Hi Samuel, > > > > > > > > > > > > And I've already given numbers why CONFIG_EMBEDDED=y and > > > > > > > CONFIG_MODULES=y at the same time is insane. > > > > > > > > > > > > >From your numbers this sounds true ... but actually you might want the > > > > > > modules to delay the init of the various hardware bits... > > > > > > > > > > > > Sometime boot-time is king and you just try and get back as much of > > > > > > the size costs as it takes... > > > > > > > > > > this is irrelevant since CONFIG_INPUT alone does not init any hardware. > > > > > > > > > > > I think for EMBEDDED and MODULES is actually a very common case ... if > > > > > > somewhat odd. > > > > > > > > > > You are misunderstanding EMBEDDED. > > > > > > > > well, I suggested the following (or a similar) > > > > change some time ago (unfortunately I could not > > > > find it in the lkml archives, so it might have > > > > been lost) > > > > > > > > http://vserver.13thfloor.at/Stuff/embedded_to_expert.txt > > > > > > That's not a good solution since EMBEDDED is really only about > > > additional space savings - even if you are an "expert", there's no > > > reason to enable EMBEDDED when building a kernel for systems > > > with > 50 MB RAM. > > > > well, not sure everybody kows that ... > > > > config X86_P4_CLOCKMOD > > depends on EMBEDDED > > This one is an x86_64 only issue, and yes, it's wrong. > > > config VT_CONSOLE > > bool "Support for console on virtual terminal" if EMBEDDED > > Looks OK. > > > config VGA_CONSOLE > > bool "VGA text console" if EMBEDDED > > Looks OK. > > > config DNOTIFY > > bool "Dnotify support" if EMBEDDED > > Looks OK. > > > config DEBUG_BUGVERBOSE > > bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED > > Looks OK. > > > but, the patch was just considered a starting point > > so that folks would know _what_ EMBEDDED is currently > > used for ... > > Except for the X86_P4_CLOCKMOD case, all of your examples are correct > usages of EMBEDDED. ahem, well, then I'm definitely doing something wrong when I disable the VGA console on my 2GB servers, as "there's no reason to enable EMBEDDED when building a kernel for systems with > 50 MB RAM" sorry, I kind of disagree here, this might be useful for embedded systems, but it is definitely useful for other systems as well ... at least I do not like the 'assumption' that every system with >50MB has to have a VGA console ... I agree that the 0815 distro will not need this and it can be hidden behind some option ... best, Herbert > > > The better solution is IMHO an additional option: > > > http://lkml.org/lkml/2006/2/7/93 > > > http://lkml.org/lkml/2006/2/7/139 > > > > whatever, just get rid of the CONFIG_EMBEDDED everybody > > get's wrong and nobody really understands ... > > No, the EMBEDDED semantics shouldn't be changed and most people get it > right. > > Naming it EXPERT as you suggested would make it even worse. We could name it > SHOW_OPTIONS_FOR_ADDITIONAL_SPACE_SAVINGS_IF_YOU_REALLY_KNOW_WHAT_YOU_ARE_DOING, > but unless someone comes up with a name that is both short and > significantely better than EMBEDDED I don't see a reason for changing it. > > cu > Adrian > > -- > > "Is there not promise of rain?" Ling Tan asked suddenly out > of the darkness. There had been need of rain for many days. > "Only a promise," Lao Er said. > Pearl S. Buck - Dragon Seed > > - > 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/ ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-22 12:01 ` Herbert Poetzl @ 2006-02-22 12:15 ` Adrian Bunk 2006-02-22 18:09 ` Herbert Poetzl 0 siblings, 1 reply; 46+ messages in thread From: Adrian Bunk @ 2006-02-22 12:15 UTC (permalink / raw) To: Samuel Masham, Jan Engelhardt, Dmitry Torokhov, linux-kernel, linux-input, Andrew Morton On Wed, Feb 22, 2006 at 01:01:21PM +0100, Herbert Poetzl wrote: > On Wed, Feb 22, 2006 at 04:10:01AM +0100, Adrian Bunk wrote: >... > > Except for the X86_P4_CLOCKMOD case, all of your examples are correct > > usages of EMBEDDED. > > ahem, well, then I'm definitely doing something > wrong when I disable the VGA console on my 2GB > servers, as "there's no reason to enable EMBEDDED > when building a kernel for systems with > 50 MB RAM" > > sorry, I kind of disagree here, this might be useful > for embedded systems, but it is definitely useful > for other systems as well ... at least I do not like > the 'assumption' that every system with >50MB has > to have a VGA console ... > > I agree that the 0815 distro will not need this and > it can be hidden behind some option ... It's not assumed that every system with > 50 MB has a VGA console. These are options where accidentially disabling only causes problems for the majority of users. You can enable EMBEDDED on your 2 GB servers if you really want to save a few bytes in the kernel, but OTOH I doubt there is much practival value in reducing the kernel for a system with 2 GB RAM by a few kB. > best, > Herbert >... cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-22 12:15 ` Adrian Bunk @ 2006-02-22 18:09 ` Herbert Poetzl 0 siblings, 0 replies; 46+ messages in thread From: Herbert Poetzl @ 2006-02-22 18:09 UTC (permalink / raw) To: Adrian Bunk Cc: Samuel Masham, Jan Engelhardt, Dmitry Torokhov, linux-kernel, linux-input, Andrew Morton On Wed, Feb 22, 2006 at 01:15:42PM +0100, Adrian Bunk wrote: > On Wed, Feb 22, 2006 at 01:01:21PM +0100, Herbert Poetzl wrote: > > On Wed, Feb 22, 2006 at 04:10:01AM +0100, Adrian Bunk wrote: > >... > > > Except for the X86_P4_CLOCKMOD case, all of your examples are correct > > > usages of EMBEDDED. > > > > ahem, well, then I'm definitely doing something > > wrong when I disable the VGA console on my 2GB > > servers, as "there's no reason to enable EMBEDDED > > when building a kernel for systems with > 50 MB RAM" > > > > sorry, I kind of disagree here, this might be useful > > for embedded systems, but it is definitely useful > > for other systems as well ... at least I do not like > > the 'assumption' that every system with >50MB has > > to have a VGA console ... > > > > I agree that the 0815 distro will not need this and > > it can be hidden behind some option ... > > It's not assumed that every system with > 50 MB has a VGA console. > > These are options where accidentially disabling only causes problems > for the majority of users. > > You can enable EMBEDDED on your 2 GB servers if you really want > to save a few bytes in the kernel, but OTOH I doubt there is much > practival value in reducing the kernel for a system with 2 GB RAM by a > few kB. it is not the size I care about, it is the missing/disabled vga hardware (and serial console) that I care about, but what the hell, you consider it EMBEDDED and I don't. period. nevertheless folks put all kind of stuff under EMBEDDED because they _think_ it actually means _SPECIALIST_ or _EXPERT_ and just is bad namimg ... that's something which IMHO should be clarified, and if it is just by adding another Kconfig option which does that > > best, > > Herbert > >... > > cu > Adrian > > -- > > "Is there not promise of rain?" Ling Tan asked suddenly out > of the darkness. There had been need of rain for many days. > "Only a promise," Lao Er said. > Pearl S. Buck - Dragon Seed > > - > 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/ ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-22 2:31 ` Adrian Bunk 2006-02-22 2:44 ` Herbert Poetzl @ 2006-02-25 11:58 ` Geert Uytterhoeven 2006-02-25 12:46 ` Adrian Bunk 1 sibling, 1 reply; 46+ messages in thread From: Geert Uytterhoeven @ 2006-02-25 11:58 UTC (permalink / raw) To: Adrian Bunk Cc: Samuel Masham, Jan Engelhardt, Dmitry Torokhov, Linux Kernel Development, linux-input, Andrew Morton On Wed, 22 Feb 2006, Adrian Bunk wrote: > On Wed, Feb 22, 2006 at 02:34:11AM +0100, Herbert Poetzl wrote: > > On Mon, Feb 20, 2006 at 02:28:32PM +0100, Adrian Bunk wrote: > > > On Mon, Feb 20, 2006 at 12:33:55PM +0900, Samuel Masham wrote: > That's not a good solution since EMBEDDED is really only about > additional space savings - even if you are an "expert", there's no > reason to enable EMBEDDED when building a kernel for systems > with > 50 MB RAM. and On Fri, 17 Feb 2006, Adrian Bunk wrote: > And I've already given numbers why CONFIG_EMBEDDED=y and > CONFIG_MODULES=y at the same time is insane. But if my m68k box has less than 47.68 MiB RAM, I may want CONFIG_EMBEDDED=y, and I like to have CONFIG_MODULES=y... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 11:58 ` Geert Uytterhoeven @ 2006-02-25 12:46 ` Adrian Bunk 2006-02-25 14:22 ` Jan Engelhardt 0 siblings, 1 reply; 46+ messages in thread From: Adrian Bunk @ 2006-02-25 12:46 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Samuel Masham, Jan Engelhardt, Dmitry Torokhov, Linux Kernel Development, linux-input, Andrew Morton On Sat, Feb 25, 2006 at 12:58:01PM +0100, Geert Uytterhoeven wrote: > On Wed, 22 Feb 2006, Adrian Bunk wrote: > > On Wed, Feb 22, 2006 at 02:34:11AM +0100, Herbert Poetzl wrote: > > > On Mon, Feb 20, 2006 at 02:28:32PM +0100, Adrian Bunk wrote: > > > > On Mon, Feb 20, 2006 at 12:33:55PM +0900, Samuel Masham wrote: > > That's not a good solution since EMBEDDED is really only about > > additional space savings - even if you are an "expert", there's no > > reason to enable EMBEDDED when building a kernel for systems > > with > 50 MB RAM. > > and > > On Fri, 17 Feb 2006, Adrian Bunk wrote: > > And I've already given numbers why CONFIG_EMBEDDED=y and > > CONFIG_MODULES=y at the same time is insane. > > But if my m68k box has less than 47.68 MiB RAM, I may want CONFIG_EMBEDDED=y, > and I like to have CONFIG_MODULES=y... My 50 MB number was much too high (I didn't want to think where exactly to set the borderline). My point is that if you are in an environment that is that space limited that you want to see options that allow e.g. not building futexes, module support with an impact of approx. 10% on code size would be one of the first things you should disable. > Gr{oetje,eeting}s, > Geert cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 12:46 ` Adrian Bunk @ 2006-02-25 14:22 ` Jan Engelhardt 2006-02-25 14:50 ` Adrian Bunk 2006-02-25 14:57 ` Jesper Juhl 0 siblings, 2 replies; 46+ messages in thread From: Jan Engelhardt @ 2006-02-25 14:22 UTC (permalink / raw) To: Adrian Bunk Cc: Geert Uytterhoeven, Samuel Masham, Dmitry Torokhov, Linux Kernel Development, linux-input, Andrew Morton > >My 50 MB number was much too high (I didn't want to think where exactly >to set the borderline). > >My point is that if you are in an environment that is that space limited >that you want to see options that allow e.g. not building futexes, >module support with an impact of approx. 10% on code size would be one >of the first things you should disable. > You said that INPUT was not a driver, right. But without it, a keyboard won't work, will it? Jan Engelhardt -- ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 14:22 ` Jan Engelhardt @ 2006-02-25 14:50 ` Adrian Bunk 2006-02-25 15:29 ` Jan Engelhardt 2006-02-25 14:57 ` Jesper Juhl 1 sibling, 1 reply; 46+ messages in thread From: Adrian Bunk @ 2006-02-25 14:50 UTC (permalink / raw) To: Jan Engelhardt Cc: Geert Uytterhoeven, Samuel Masham, Dmitry Torokhov, Linux Kernel Development, linux-input, Andrew Morton On Sat, Feb 25, 2006 at 03:22:04PM +0100, Jan Engelhardt wrote: > > > >My 50 MB number was much too high (I didn't want to think where exactly > >to set the borderline). > > > >My point is that if you are in an environment that is that space limited > >that you want to see options that allow e.g. not building futexes, > >module support with an impact of approx. 10% on code size would be one > >of the first things you should disable. > > > > You said that INPUT was not a driver, right. But without it, a keyboard > won't work, will it? Yes, you do need INPUT for a keyboard. No, INPUT alone does not support any hardware - that's the job of the drivers depending on INPUT. No, I don't understand what your question wants to achieve. > Jan Engelhardt cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 14:50 ` Adrian Bunk @ 2006-02-25 15:29 ` Jan Engelhardt 2006-02-25 15:40 ` Adrian Bunk 0 siblings, 1 reply; 46+ messages in thread From: Jan Engelhardt @ 2006-02-25 15:29 UTC (permalink / raw) To: Adrian Bunk Cc: Geert Uytterhoeven, Samuel Masham, Dmitry Torokhov, Linux Kernel Development, linux-input, Andrew Morton >> >> You said that INPUT was not a driver, right. But without it, a keyboard >> won't work, will it? > >Yes, you do need INPUT for a keyboard. > >No, INPUT alone does not support any hardware - that's the job of the >drivers depending on INPUT. > >No, I don't understand what your question wants to achieve. > Let's look at another subsystem: "Yes, you do need SND for a soundcard." "No, SND alone does not support any hardware - that's the job of the drivers depending on SND." Should SND also be made a bool like INPUT? Jan Engelhardt -- ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 15:29 ` Jan Engelhardt @ 2006-02-25 15:40 ` Adrian Bunk 2006-02-25 22:01 ` Jan Engelhardt 0 siblings, 1 reply; 46+ messages in thread From: Adrian Bunk @ 2006-02-25 15:40 UTC (permalink / raw) To: Jan Engelhardt Cc: Geert Uytterhoeven, Samuel Masham, Dmitry Torokhov, Linux Kernel Development, linux-input, Andrew Morton On Sat, Feb 25, 2006 at 04:29:16PM +0100, Jan Engelhardt wrote: > >> > >> You said that INPUT was not a driver, right. But without it, a keyboard > >> won't work, will it? > > > >Yes, you do need INPUT for a keyboard. > > > >No, INPUT alone does not support any hardware - that's the job of the > >drivers depending on INPUT. > > > >No, I don't understand what your question wants to achieve. > > > > Let's look at another subsystem: > > "Yes, you do need SND for a soundcard." > > "No, SND alone does not support any hardware - that's the job of the drivers > depending on SND." > > Should SND also be made a bool like INPUT? No, SND=m is also possible in the EMBEDDED=n case. > Jan Engelhardt cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 15:40 ` Adrian Bunk @ 2006-02-25 22:01 ` Jan Engelhardt 2006-02-25 22:07 ` Adrian Bunk 0 siblings, 1 reply; 46+ messages in thread From: Jan Engelhardt @ 2006-02-25 22:01 UTC (permalink / raw) To: Adrian Bunk Cc: Geert Uytterhoeven, Samuel Masham, Dmitry Torokhov, Linux Kernel Development, linux-input, Andrew Morton >> >> You said that INPUT was not a driver, right. But without it, a keyboard >> >> won't work, will it? >> > >> >Yes, you do need INPUT for a keyboard. >> >No, INPUT alone does not support any hardware - that's the job of the >> >drivers depending on INPUT. >> >No, I don't understand what your question wants to achieve. >> >> Let's look at another subsystem: >> "Yes, you do need SND for a soundcard." >> "No, SND alone does not support any hardware - that's the job of the drivers >> depending on SND." >> Should SND also be made a bool like INPUT? > >No, SND=m is also possible in the EMBEDDED=n case. > This example was to show that INPUT should not be y-only. Except if you plan to make SND y-only too. Jan Engelhardt -- ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 22:01 ` Jan Engelhardt @ 2006-02-25 22:07 ` Adrian Bunk 2006-02-25 22:23 ` Dmitry Torokhov 2006-02-27 12:59 ` Vojtech Pavlik 0 siblings, 2 replies; 46+ messages in thread From: Adrian Bunk @ 2006-02-25 22:07 UTC (permalink / raw) To: Jan Engelhardt Cc: Geert Uytterhoeven, Samuel Masham, Dmitry Torokhov, Linux Kernel Development, linux-input, Andrew Morton On Sat, Feb 25, 2006 at 11:01:03PM +0100, Jan Engelhardt wrote: > >> >> You said that INPUT was not a driver, right. But without it, a keyboard > >> >> won't work, will it? > >> > > >> >Yes, you do need INPUT for a keyboard. > >> >No, INPUT alone does not support any hardware - that's the job of the > >> >drivers depending on INPUT. > >> >No, I don't understand what your question wants to achieve. > >> > >> Let's look at another subsystem: > >> "Yes, you do need SND for a soundcard." > >> "No, SND alone does not support any hardware - that's the job of the drivers > >> depending on SND." > >> Should SND also be made a bool like INPUT? > > > >No, SND=m is also possible in the EMBEDDED=n case. > > > This example was to show that INPUT should not be y-only. Except if you plan to > make SND y-only too. Please try to understand the following: - INPUT=m is already only available if EMBEDDED=y - as I did already explain, EMBEDDED=y and MODULES=y at the same time doesn't make much sense As I already said, SND=m is completely different since it is also available in the (common) EMBEDDED=n case. > Jan Engelhardt cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 22:07 ` Adrian Bunk @ 2006-02-25 22:23 ` Dmitry Torokhov 2006-02-26 18:13 ` Adrian Bunk 2006-02-27 7:11 ` Vojtech Pavlik 2006-02-27 12:59 ` Vojtech Pavlik 1 sibling, 2 replies; 46+ messages in thread From: Dmitry Torokhov @ 2006-02-25 22:23 UTC (permalink / raw) To: Adrian Bunk Cc: Jan Engelhardt, Geert Uytterhoeven, Samuel Masham, Linux Kernel Development, linux-input, Andrew Morton On Saturday 25 February 2006 17:07, Adrian Bunk wrote: > On Sat, Feb 25, 2006 at 11:01:03PM +0100, Jan Engelhardt wrote: > > >> >> You said that INPUT was not a driver, right. But without it, a keyboard > > >> >> won't work, will it? > > >> > > > >> >Yes, you do need INPUT for a keyboard. > > >> >No, INPUT alone does not support any hardware - that's the job of the > > >> >drivers depending on INPUT. > > >> >No, I don't understand what your question wants to achieve. > > >> > > >> Let's look at another subsystem: > > >> "Yes, you do need SND for a soundcard." > > >> "No, SND alone does not support any hardware - that's the job of the drivers > > >> depending on SND." > > >> Should SND also be made a bool like INPUT? > > > > > >No, SND=m is also possible in the EMBEDDED=n case. > > > > > This example was to show that INPUT should not be y-only. Except if you plan to > > make SND y-only too. > > > Please try to understand the following: > - INPUT=m is already only available if EMBEDDED=y Adrian, There are requests to move it out of EMBEDDED because sometimes you just don't need input layer at all. Dave Jones mentioned that he feels silly enabling EMBEDDED on iSeries... I am thinking about changing it to "EMBEDDED || !X86_PC" to safe-guard the most common platform from accidenially disabling it. I am still not convinced whether INPUT=m makes sence, especially if we make ACPI use input layer... Jan's example about input device with hot-pluggable keyboard is a bit of a stretch. -- Dmitry ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 22:23 ` Dmitry Torokhov @ 2006-02-26 18:13 ` Adrian Bunk 2006-02-27 7:11 ` Vojtech Pavlik 1 sibling, 0 replies; 46+ messages in thread From: Adrian Bunk @ 2006-02-26 18:13 UTC (permalink / raw) To: Dmitry Torokhov Cc: Jan Engelhardt, Geert Uytterhoeven, Samuel Masham, Linux Kernel Development, linux-input, Andrew Morton On Sat, Feb 25, 2006 at 05:23:52PM -0500, Dmitry Torokhov wrote: > > Adrian, > > There are requests to move it out of EMBEDDED because sometimes you > just don't need input layer at all. Dave Jones mentioned that he > feels silly enabling EMBEDDED on iSeries... I am thinking about > changing it to "EMBEDDED || !X86_PC" to safe-guard the most common > platform from accidenially disabling it. Sounds reasonable. > I am still not convinced whether INPUT=m makes sence, especially if > we make ACPI use input layer... Jan's example about input device with > hot-pluggable keyboard is a bit of a stretch. Agreed. > Dmitry cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 22:23 ` Dmitry Torokhov 2006-02-26 18:13 ` Adrian Bunk @ 2006-02-27 7:11 ` Vojtech Pavlik 1 sibling, 0 replies; 46+ messages in thread From: Vojtech Pavlik @ 2006-02-27 7:11 UTC (permalink / raw) To: Dmitry Torokhov Cc: Adrian Bunk, Jan Engelhardt, Geert Uytterhoeven, Samuel Masham, Linux Kernel Development, linux-input, Andrew Morton On Sat, Feb 25, 2006 at 05:23:52PM -0500, Dmitry Torokhov wrote: > Adrian, > > There are requests to move it out of EMBEDDED because sometimes you > just don't need input layer at all. Dave Jones mentioned that he > feels silly enabling EMBEDDED on iSeries... I am thinking about > changing it to "EMBEDDED || !X86_PC" to safe-guard the most common > platform from accidenially disabling it. > > I am still not convinced whether INPUT=m makes sence, especially if > we make ACPI use input layer... Jan's example about input device with > hot-pluggable keyboard is a bit of a stretch. The possibility to keep INPUT=m makes a big sense in that it keeps the interfaces to the rest of the kernel clean. No direct linking, no callbacks into inner functions from elsewhere, etc. Nicely isolated. Even with ACPI, the part that will use input will usually be modular, too. The only big user of INPUT, which can't be modular at the time is CONFIG_VT. And this, I believe, is a bug. -- Vojtech Pavlik Director SuSE Labs ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 22:07 ` Adrian Bunk 2006-02-25 22:23 ` Dmitry Torokhov @ 2006-02-27 12:59 ` Vojtech Pavlik 1 sibling, 0 replies; 46+ messages in thread From: Vojtech Pavlik @ 2006-02-27 12:59 UTC (permalink / raw) To: Adrian Bunk Cc: Jan Engelhardt, Geert Uytterhoeven, Samuel Masham, Dmitry Torokhov, Linux Kernel Development, linux-input, Andrew Morton On Sat, Feb 25, 2006 at 11:07:38PM +0100, Adrian Bunk wrote: > On Sat, Feb 25, 2006 at 11:01:03PM +0100, Jan Engelhardt wrote: > > >> >> You said that INPUT was not a driver, right. But without it, a keyboard > > >> >> won't work, will it? > > >> > > > >> >Yes, you do need INPUT for a keyboard. > > >> >No, INPUT alone does not support any hardware - that's the job of the > > >> >drivers depending on INPUT. > > >> >No, I don't understand what your question wants to achieve. > > >> > > >> Let's look at another subsystem: > > >> "Yes, you do need SND for a soundcard." > > >> "No, SND alone does not support any hardware - that's the job of the drivers > > >> depending on SND." > > >> Should SND also be made a bool like INPUT? > > > > > >No, SND=m is also possible in the EMBEDDED=n case. > > > > > This example was to show that INPUT should not be y-only. Except if you plan to > > make SND y-only too. > > > Please try to understand the following: > - INPUT=m is already only available if EMBEDDED=y That is because too many people were making the mistake of saying 'N' to INPUT. EMBEDDED here was really chosen while meaning EXPERT. This has nothing to do with the kernel image size - the size of input.c is pretty minimal anyway. > - as I did already explain, EMBEDDED=y and MODULES=y at the same > time doesn't make much sense It doesn't. But in the same way making INPUT depend on EMBEDDED doesn't make sense if you intend EMBEDDED to truly mean what it says. > As I already said, SND=m is completely different since it is also > available in the (common) EMBEDDED=n case. It's not. Input, like sound, scsi, usb, firewire .... is just another subsystem in the kernel. The kernel can live without it, and it used to work just fine when all modular, including autoloading. -- Vojtech Pavlik Director SuSE Labs ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-25 14:22 ` Jan Engelhardt 2006-02-25 14:50 ` Adrian Bunk @ 2006-02-25 14:57 ` Jesper Juhl 1 sibling, 0 replies; 46+ messages in thread From: Jesper Juhl @ 2006-02-25 14:57 UTC (permalink / raw) To: Jan Engelhardt Cc: Adrian Bunk, Geert Uytterhoeven, Samuel Masham, Dmitry Torokhov, Linux Kernel Development, linux-input, Andrew Morton On 2/25/06, Jan Engelhardt <jengelh@linux01.gwdg.de> wrote: > > > >My 50 MB number was much too high (I didn't want to think where exactly > >to set the borderline). > > > >My point is that if you are in an environment that is that space limited > >that you want to see options that allow e.g. not building futexes, > >module support with an impact of approx. 10% on code size would be one > >of the first things you should disable. > > > > You said that INPUT was not a driver, right. But without it, a keyboard > won't work, will it? > No, it won't, so if you want to use a keyboard you build INPUT into the kernel. -- Jesper Juhl <jesper.juhl@gmail.com> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-14 15:22 [2.6 patch] make INPUT a bool Adrian Bunk 2006-02-14 18:14 ` Jan Engelhardt @ 2006-02-15 6:20 ` Dmitry Torokhov 2006-02-16 23:22 ` Adrian Bunk 1 sibling, 1 reply; 46+ messages in thread From: Dmitry Torokhov @ 2006-02-15 6:20 UTC (permalink / raw) To: Adrian Bunk; +Cc: linux-kernel, linux-input On Tuesday 14 February 2006 10:22, Adrian Bunk wrote: > Make INPUT a bool. > > INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't > make that much sense to make it modular. > Adrian, We also need to get rid of input_register_device pinning input module and input_dev release function decrementing module's refcount. Thanks! -- Dmitry ^ permalink raw reply [flat|nested] 46+ messages in thread
* [2.6 patch] make INPUT a bool 2006-02-15 6:20 ` Dmitry Torokhov @ 2006-02-16 23:22 ` Adrian Bunk 2006-02-17 1:47 ` Dmitry Torokhov 0 siblings, 1 reply; 46+ messages in thread From: Adrian Bunk @ 2006-02-16 23:22 UTC (permalink / raw) To: Dmitry Torokhov; +Cc: linux-kernel, linux-input On Wed, Feb 15, 2006 at 01:20:58AM -0500, Dmitry Torokhov wrote: > On Tuesday 14 February 2006 10:22, Adrian Bunk wrote: > > Make INPUT a bool. > > > > INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't > > make that much sense to make it modular. > > > > Adrian, > > We also need to get rid of input_register_device pinning input module > and input_dev release function decrementing module's refcount. Is the patch below OK? > Thanks! > Dmitry cu Adrian <-- snip --> Make INPUT a bool. INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't make that much sense to make it modular. Signed-off-by: Adrian Bunk <bunk@stusta.de> --- drivers/input/Kconfig | 2 +- drivers/input/input.c | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) --- linux-2.6.16-rc1-mm5-full/drivers/input/Kconfig.old 2006-02-03 22:42:18.000000000 +0100 +++ linux-2.6.16-rc1-mm5-full/drivers/input/Kconfig 2006-02-03 22:42:29.000000000 +0100 @@ -5,7 +5,7 @@ menu "Input device support" config INPUT - tristate "Generic input layer (needed for keyboard, mouse, ...)" if EMBEDDED + bool "Generic input layer (needed for keyboard, mouse, ...)" if EMBEDDED default y ---help--- Say Y here if you have any input device (mouse, keyboard, tablet, --- linux-2.6.16-rc3-mm1-full/drivers/input/input.c.old 2006-02-16 23:59:47.000000000 +0100 +++ linux-2.6.16-rc3-mm1-full/drivers/input/input.c 2006-02-17 00:06:06.000000000 +0100 @@ -23,10 +23,6 @@ #include <linux/device.h> #include <linux/mutex.h> -MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>"); -MODULE_DESCRIPTION("Input core"); -MODULE_LICENSE("GPL"); - EXPORT_SYMBOL(input_allocate_device); EXPORT_SYMBOL(input_register_device); EXPORT_SYMBOL(input_unregister_device); @@ -470,13 +466,10 @@ if (!proc_bus_input_dir) return -ENOMEM; - proc_bus_input_dir->owner = THIS_MODULE; - entry = create_proc_read_entry("devices", 0, proc_bus_input_dir, input_devices_read, NULL); if (!entry) goto fail1; - entry->owner = THIS_MODULE; input_fileops = *entry->proc_fops; input_fileops.poll = input_devices_poll; entry->proc_fops = &input_fileops; @@ -485,8 +478,6 @@ if (!entry) goto fail2; - entry->owner = THIS_MODULE; - return 0; fail2: remove_proc_entry("devices", proc_bus_input_dir); @@ -662,7 +653,6 @@ struct input_dev *dev = to_input_dev(class_dev); kfree(dev); - module_put(THIS_MODULE); } /* @@ -830,8 +820,6 @@ if (error) goto fail3; - __module_get(THIS_MODULE); - path = kobject_get_path(&dev->cdev.kobj, GFP_KERNEL); printk(KERN_INFO "input: %s as %s\n", dev->name ? dev->name : "Unspecified device", path ? path : "N/A"); @@ -953,7 +941,6 @@ } static struct file_operations input_fops = { - .owner = THIS_MODULE, .open = input_open_file, }; @@ -984,12 +971,4 @@ return err; } -static void __exit input_exit(void) -{ - input_proc_exit(); - unregister_chrdev(INPUT_MAJOR, "input"); - class_unregister(&input_class); -} - subsys_initcall(input_init); -module_exit(input_exit); ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [2.6 patch] make INPUT a bool 2006-02-16 23:22 ` Adrian Bunk @ 2006-02-17 1:47 ` Dmitry Torokhov 0 siblings, 0 replies; 46+ messages in thread From: Dmitry Torokhov @ 2006-02-17 1:47 UTC (permalink / raw) To: Adrian Bunk; +Cc: linux-kernel, linux-input On 2/16/06, Adrian Bunk <bunk@stusta.de> wrote: > On Wed, Feb 15, 2006 at 01:20:58AM -0500, Dmitry Torokhov wrote: > > On Tuesday 14 February 2006 10:22, Adrian Bunk wrote: > > > Make INPUT a bool. > > > > > > INPUT!=y is only possible if EMBEDDED=y, and in such cases it doesn't > > > make that much sense to make it modular. > > > > > > > Adrian, > > > > We also need to get rid of input_register_device pinning input module > > and input_dev release function decrementing module's refcount. > > Is the patch below OK? > Looks great! Thank you, Adrian. -- Dmitry ^ permalink raw reply [flat|nested] 46+ messages in thread
end of thread, other threads:[~2006-02-27 12:59 UTC | newest] Thread overview: 46+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-01-24 18:19 [PATCH] Export symbols so CONFIG_INPUT works as a module Martin Michlmayr 2006-01-24 18:31 ` Arjan van de Ven 2006-01-24 18:34 ` Dave Jones 2006-01-24 18:41 ` Al Viro 2006-01-24 23:08 ` Dmitry Torokhov 2006-01-24 23:14 ` Martin Michlmayr 2006-01-25 5:04 ` Dmitry Torokhov 2006-01-25 7:51 ` Vojtech Pavlik 2006-01-25 10:54 ` Martin Michlmayr 2006-01-26 22:17 ` Adrian Bunk 2006-01-25 14:20 ` Jan Engelhardt 2006-02-03 22:36 ` [2.6 patch] make INPUT a bool Adrian Bunk 2006-01-24 19:08 ` [PATCH] Export symbols so CONFIG_INPUT works as a module Martin Michlmayr 2006-01-24 19:20 ` Dave Jones -- strict thread matches above, loose matches on Subject: below -- 2006-02-14 15:22 [2.6 patch] make INPUT a bool Adrian Bunk 2006-02-14 18:14 ` Jan Engelhardt 2006-02-14 18:22 ` Adrian Bunk 2006-02-14 23:47 ` Adrian Bunk 2006-02-17 15:56 ` Jan Engelhardt 2006-02-17 16:38 ` Adrian Bunk 2006-02-20 3:33 ` Samuel Masham 2006-02-20 13:28 ` Adrian Bunk 2006-02-22 1:34 ` Herbert Poetzl 2006-02-22 2:31 ` Adrian Bunk 2006-02-22 2:44 ` Herbert Poetzl 2006-02-22 3:10 ` Adrian Bunk 2006-02-22 3:20 ` Dmitry Torokhov 2006-02-22 12:01 ` Herbert Poetzl 2006-02-22 12:15 ` Adrian Bunk 2006-02-22 18:09 ` Herbert Poetzl 2006-02-25 11:58 ` Geert Uytterhoeven 2006-02-25 12:46 ` Adrian Bunk 2006-02-25 14:22 ` Jan Engelhardt 2006-02-25 14:50 ` Adrian Bunk 2006-02-25 15:29 ` Jan Engelhardt 2006-02-25 15:40 ` Adrian Bunk 2006-02-25 22:01 ` Jan Engelhardt 2006-02-25 22:07 ` Adrian Bunk 2006-02-25 22:23 ` Dmitry Torokhov 2006-02-26 18:13 ` Adrian Bunk 2006-02-27 7:11 ` Vojtech Pavlik 2006-02-27 12:59 ` Vojtech Pavlik 2006-02-25 14:57 ` Jesper Juhl 2006-02-15 6:20 ` Dmitry Torokhov 2006-02-16 23:22 ` Adrian Bunk 2006-02-17 1:47 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox