* [2.6 patch] build kernel/intermodule.c only when required
[not found] ` <20051118031751.GA2773@redhat.com>
@ 2005-11-18 3:37 ` Adrian Bunk
2005-11-21 9:30 ` Holger Schurig
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2005-11-18 3:37 UTC (permalink / raw)
To: Dave Jones, Andrew Morton, linux-kernel; +Cc: linux-mtd, rusty, dwmw2
On Thu, Nov 17, 2005 at 10:17:51PM -0500, Dave Jones wrote:
> On Thu, Nov 17, 2005 at 06:55:29PM -0800, Andrew Morton wrote:
>
> > > IMHO the warnings are the best solution for getting a vast amount fixed,
> > > and then it's time to think about the rest.
> >
> > But the warnings don't *work*. I'm *still* staring at stupid pm_register
> > and intermodule_foo warnings. How long has that been?
>
> Too long. I think the mtd stuff won't ever get fixed until after that
> function gets removed.
Let's limit the inclusion of kernel/intermodule.c to the users of these
drivers.
> Dave
cu
Adrian
<-- snip -->
Let's build kernel/intermodule.c only when required.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/mtd/chips/Kconfig | 1 +
drivers/mtd/devices/Kconfig | 1 +
init/Kconfig | 3 +++
kernel/Makefile | 3 ++-
4 files changed, 7 insertions(+), 1 deletion(-)
--- linux-2.6.15-rc1-mm1-full/init/Kconfig.old 2005-11-18 03:22:53.000000000 +0100
+++ linux-2.6.15-rc1-mm1-full/init/Kconfig 2005-11-18 03:23:29.000000000 +0100
@@ -456,6 +456,9 @@
default !SLAB
bool
+config OBSOLETE_INTERMODULE
+ tristate
+
menu "Loadable module support"
config MODULES
--- linux-2.6.15-rc1-mm1-full/kernel/Makefile.old 2005-11-18 03:21:55.000000000 +0100
+++ linux-2.6.15-rc1-mm1-full/kernel/Makefile 2005-11-18 03:22:35.000000000 +0100
@@ -6,10 +6,11 @@
exit.o itimer.o time.o softirq.o resource.o \
sysctl.o capability.o ptrace.o timer.o user.o \
signal.o sys.o kmod.o workqueue.o pid.o \
- rcupdate.o intermodule.o extable.o params.o posix-timers.o \
+ rcupdate.o extable.o params.o posix-timers.o \
kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o \
ktimers.o
+obj-$(CONFIG_OBSOLETE_INTERMODULE) += intermodule.o
obj-$(CONFIG_FUTEX) += futex.o
obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
obj-$(CONFIG_SMP) += cpu.o spinlock.o
--- linux-2.6.15-rc1-mm1-full/drivers/mtd/chips/Kconfig.old 2005-11-18 03:23:52.000000000 +0100
+++ linux-2.6.15-rc1-mm1-full/drivers/mtd/chips/Kconfig 2005-11-18 03:28:09.000000000 +0100
@@ -31,6 +31,7 @@
config MTD_GEN_PROBE
tristate
+ select OBSOLETE_INTERMODULE
config MTD_CFI_ADV_OPTIONS
bool "Flash chip driver advanced configuration options"
--- linux-2.6.15-rc1-mm1-full/drivers/mtd/devices/Kconfig.old 2005-11-18 03:25:17.000000000 +0100
+++ linux-2.6.15-rc1-mm1-full/drivers/mtd/devices/Kconfig 2005-11-18 03:27:46.000000000 +0100
@@ -202,6 +202,7 @@
config MTD_DOCPROBE
tristate
select MTD_DOCECC
+ select OBSOLETE_INTERMODULE
config MTD_DOCECC
tristate
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.6 patch] build kernel/intermodule.c only when required
2005-11-18 3:37 ` [2.6 patch] build kernel/intermodule.c only when required Adrian Bunk
@ 2005-11-21 9:30 ` Holger Schurig
2005-11-21 10:07 ` Jörn Engel
0 siblings, 1 reply; 3+ messages in thread
From: Holger Schurig @ 2005-11-21 9:30 UTC (permalink / raw)
To: linux-mtd
Hi Adrian !
> config MTD_GEN_PROBE
> tristate
> + select OBSOLETE_INTERMODULE
MTD_GEN_PROBE get's selected by MTD_CFI. If I know my flash chips and don't
need any CFI detected, can I (easily) put the info into some platform data
and omit the compilation/exection of cfi_probe.c ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.6 patch] build kernel/intermodule.c only when required
2005-11-21 9:30 ` Holger Schurig
@ 2005-11-21 10:07 ` Jörn Engel
0 siblings, 0 replies; 3+ messages in thread
From: Jörn Engel @ 2005-11-21 10:07 UTC (permalink / raw)
To: Holger Schurig; +Cc: linux-mtd
On Mon, 21 November 2005 10:30:41 +0100, Holger Schurig wrote:
>
> > config MTD_GEN_PROBE
> > tristate
> > + select OBSOLETE_INTERMODULE
>
> MTD_GEN_PROBE get's selected by MTD_CFI. If I know my flash chips and don't
> need any CFI detected, can I (easily) put the info into some platform data
> and omit the compilation/exection of cfi_probe.c ?
Not easily. Someone needs to clean up the whole spaghetti plate in
drivers/mtd that currently still uses OBSOLETE_INTERMODULE. After
that is done, it may be simple to solve your problem as well.
Jörn
--
He who knows others is wise.
He who knows himself is enlightened.
-- Lao Tsu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-11-21 10:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20051118014055.GK11494@stusta.de>
[not found] ` <20051117175015.6aa99fcf.akpm@osdl.org>
[not found] ` <20051118020640.GM11494@stusta.de>
[not found] ` <20051117182047.5fe1a5eb.akpm@osdl.org>
[not found] ` <20051118024433.GN11494@stusta.de>
[not found] ` <20051117185529.31d33192.akpm@osdl.org>
[not found] ` <20051118031751.GA2773@redhat.com>
2005-11-18 3:37 ` [2.6 patch] build kernel/intermodule.c only when required Adrian Bunk
2005-11-21 9:30 ` Holger Schurig
2005-11-21 10:07 ` Jörn Engel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox