Hi, intermodule is deprecated for quite some time now, and MTD is the sole last user in the tree. To shrink the kernel for the people who don't use MTD, and to prevent accidental return of more users of this, make the compiling of this function conditional on MTD.
Signed-off-by: Arjan van de Ven <[EMAIL PROTECTED]> --- linux/kernel/Makefile 2005-01-30 18:57:11.000000000 +0100 +++ linux/kernel/Makefile 2005-01-30 18:57:11.000000000 +0100 @@ -6,7 +6,7 @@ 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 obj-$(CONFIG_FUTEX) += futex.o @@ -27,6 +27,10 @@ obj-$(CONFIG_SYSFS) += ksysfs.o obj-$(CONFIG_GENERIC_HARDIRQS) += irq/ +inter-$(CONFIG_MTD) += intermodule.o +obj-y += $(inter-y) +obj-y += $(inter=m) + ifneq ($(CONFIG_IA64),y) # According to Alan Modra <[EMAIL PROTECTED]>, the -fno-omit-frame-pointer is # needed for x86 only. Why this used to be enabled for all architectures is beyond - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/