summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2002-09-18 09:01:34 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-09-18 09:01:34 -0700
commitb3e20e41ed7ba22d11dce0a148cebfeba6cef092 (patch)
tree8dd0b7a209295b3ebc03ff01d33466fa33050405
parent54de58e9a24b1d7e7755f6d9c2142322eb469968 (diff)
parent0bb436c288a2b43f4958a2458764dd076fc28d68 (diff)
Merge http://linux-isdn.bkbits.net/linux-2.5.make
into home.transmeta.com:/home/torvalds/v2.5/linux
-rw-r--r--Makefile34
-rw-r--r--arch/i386/Makefile16
-rw-r--r--arch/i386/kernel/Makefile4
-rw-r--r--arch/i386/math-emu/Makefile2
-rw-r--r--arch/i386/mm/Makefile10
-rw-r--r--arch/i386/pci/Makefile2
-rw-r--r--arch/mips/Makefile10
-rw-r--r--arch/mips/arc/Makefile7
-rw-r--r--arch/mips/baget/prom/Makefile7
-rw-r--r--arch/mips/dec/prom/Makefile2
-rw-r--r--arch/mips64/Makefile6
-rw-r--r--arch/mips64/arc/Makefile2
-rw-r--r--arch/mips64/sgi-ip22/Makefile2
-rw-r--r--arch/ppc/boot/Makefile4
-rw-r--r--arch/ppc/boot/lib/Makefile2
-rw-r--r--arch/sparc/Makefile2
-rw-r--r--arch/sparc/prom/Makefile7
-rw-r--r--arch/sparc64/Makefile2
-rw-r--r--arch/sparc64/prom/Makefile2
-rw-r--r--drivers/ide/Makefile20
-rw-r--r--drivers/ide/arm/Makefile5
-rw-r--r--drivers/ide/legacy/Makefile5
-rw-r--r--drivers/ide/pci/Makefile5
-rw-r--r--drivers/ide/ppc/Makefile5
-rw-r--r--drivers/ieee1394/Makefile6
-rw-r--r--drivers/isdn/hisax/st5481_init.c4
-rw-r--r--drivers/message/fusion/Makefile25
-rw-r--r--fs/Makefile2
-rw-r--r--init/Makefile2
-rw-r--r--ipc/Makefile7
-rw-r--r--kernel/Makefile7
-rw-r--r--mm/Makefile7
-rw-r--r--net/Makefile3
-rw-r--r--sound/Makefile2
34 files changed, 59 insertions, 169 deletions
diff --git a/Makefile b/Makefile
index a6a5545b2f1e..bafc0f6cdfc2 100644
--- a/Makefile
+++ b/Makefile
@@ -162,8 +162,6 @@ objtree := $(TOPDIR)
export srctree objtree
-SUBDIRS := init kernel mm fs ipc lib drivers sound net security
-
# The temporary file to save gcc -MD generated dependencies must not
# contain a comma
depfile = $(subst $(comma),_,$(@D)/.$(@F).d)
@@ -246,15 +244,35 @@ endif
# Link components for vmlinux
# ---------------------------------------------------------------------------
-INIT := init/init.o
-CORE_FILES := kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o security/built-in.o
-LIBS := lib/lib.a
-DRIVERS := drivers/built-in.o sound/sound.o
-NETWORKS := net/network.o
+init-y := init/
+drivers-y := drivers/ sound/
+networks-y := net/
+libs-y := lib/
+
+CORE_FILES := kernel/built-in.o mm/built-in.o fs/built-in.o \
+ ipc/built-in.o security/built-in.o
+SUBDIRS += kernel mm fs ipc security
include arch/$(ARCH)/Makefile
-export NETWORKS DRIVERS LIBS HEAD LDFLAGS MAKEBOOT ASFLAGS
+SUBDIRS += $(patsubst %/,%,$(filter %/, $(init-y) $(init-m)))
+INIT += $(patsubst %/, %/built-in.o, $(init-y))
+
+SUBDIRS += $(patsubst %/,%,$(filter %/, $(core-y) $(core-m)))
+CORE_FILES := $(patsubst %/, %/built-in.o, $(core-y)) $(CORE_FILES)
+
+SUBDIRS += $(patsubst %/,%,$(filter %/, $(drivers-y) $(drivers-m)))
+DRIVERS += $(patsubst %/, %/built-in.o, $(drivers-y))
+
+SUBDIRS += $(patsubst %/,%,$(filter %/, $(networks-y) $(networks-m)))
+NETWORKS += $(patsubst %/, %/built-in.o, $(networks-y))
+
+SUBDIRS += $(patsubst %/,%,$(filter %/, $(libs-y) $(libs-m)))
+LIBS += $(patsubst %/, %/lib.a, $(libs-y))
+
+$(warning $(SUBDIRS))
+
+export NETWORKS DRIVERS LIBS HEAD LDFLAGS MAKEBOOT
# boot target
# ---------------------------------------------------------------------------
diff --git a/arch/i386/Makefile b/arch/i386/Makefile
index aba80e50ede1..128bac6d965b 100644
--- a/arch/i386/Makefile
+++ b/arch/i386/Makefile
@@ -87,20 +87,12 @@ endif
HEAD := arch/i386/kernel/head.o arch/i386/kernel/init_task.o
-SUBDIRS += arch/i386/kernel arch/i386/mm arch/i386/lib
+libs-y += arch/i386/lib/
-CORE_FILES := arch/i386/kernel/kernel.o arch/i386/mm/mm.o $(CORE_FILES)
-LIBS := $(TOPDIR)/arch/i386/lib/lib.a $(LIBS) $(TOPDIR)/arch/i386/lib/lib.a
+core-y += arch/i386/kernel/ arch/i386/mm/
-ifdef CONFIG_MATH_EMULATION
-SUBDIRS += arch/i386/math-emu
-DRIVERS += arch/i386/math-emu/math.o
-endif
-
-ifdef CONFIG_PCI
-SUBDIRS += arch/i386/pci
-DRIVERS += arch/i386/pci/pci.o
-endif
+drivers-$(CONFIG_MATH_EMULATION) += arch/i386/math-emu/
+drivers-$(CONFIG_PCI) += arch/i386/pci/
MAKEBOOT = +$(MAKE) -C arch/$(ARCH)/boot
diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile
index 9ed44ae77636..61fa1a7ac1bc 100644
--- a/arch/i386/kernel/Makefile
+++ b/arch/i386/kernel/Makefile
@@ -2,9 +2,7 @@
# Makefile for the linux kernel.
#
-EXTRA_TARGETS := kernel.o head.o init_task.o
-
-O_TARGET := kernel.o
+EXTRA_TARGETS := head.o init_task.o
export-objs := mca.o i386_ksyms.o time.o
diff --git a/arch/i386/math-emu/Makefile b/arch/i386/math-emu/Makefile
index 1b189a61f044..2024b9ae9774 100644
--- a/arch/i386/math-emu/Makefile
+++ b/arch/i386/math-emu/Makefile
@@ -2,8 +2,6 @@
# Makefile for wm-FPU-emu
#
-O_TARGET := math.o
-
#DEBUG = -DDEBUGGING
DEBUG =
PARANOID = -DPARANOID
diff --git a/arch/i386/mm/Makefile b/arch/i386/mm/Makefile
index ad32eb72052b..b3b628546885 100644
--- a/arch/i386/mm/Makefile
+++ b/arch/i386/mm/Makefile
@@ -1,17 +1,11 @@
#
# Makefile for the linux i386-specific parts of the memory manager.
#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definition is now in the main makefile...
-O_TARGET := mm.o
+export-objs := pageattr.o
-obj-y := init.o pgtable.o fault.o ioremap.o extable.o pageattr.o
+obj-y := init.o pgtable.o fault.o ioremap.o extable.o pageattr.o
obj-$(CONFIG_DISCONTIGMEM) += discontig.o
-export-objs := pageattr.o
obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
include $(TOPDIR)/Rules.make
diff --git a/arch/i386/pci/Makefile b/arch/i386/pci/Makefile
index 9e5e9cce0a18..623a4ab517e3 100644
--- a/arch/i386/pci/Makefile
+++ b/arch/i386/pci/Makefile
@@ -1,5 +1,3 @@
-O_TARGET := pci.o
-
obj-y := i386.o
ifdef CONFIG_VISWS
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index f3752bbae803..53e0f13b9d82 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -112,7 +112,7 @@ endif
ifdef CONFIG_DECSTATION
CORE_FILES += arch/mips/dec/dec.o
SUBDIRS += arch/mips/dec arch/mips/dec/prom
-LIBS += arch/mips/dec/prom/rexlib.a
+LIBS += arch/mips/dec/prom/lib.a
LOADADDR += 0x80040000
endif
@@ -134,20 +134,20 @@ endif
ifdef CONFIG_MIPS_JAZZ
CORE_FILES += arch/mips/jazz/jazz.o
SUBDIRS += arch/mips/jazz arch/mips/arc
-LIBS += arch/mips/arc/arclib.a
+LIBS += arch/mips/arc/lib.a
LOADADDR += 0x80080000
endif
ifdef CONFIG_SNI_RM200_PCI
CORE_FILES += arch/mips/sni/sni.o
SUBDIRS += arch/mips/sni arch/mips/arc
-LIBS += arch/mips/arc/arclib.a
+LIBS += arch/mips/arc/lib.a
LOADADDR += 0x80080000
endif
ifdef CONFIG_SGI_IP22
CORE_FILES += arch/mips/sgi/kernel/ip22-kern.o
-LIBS += arch/mips/arc/arclib.a
+LIBS += arch/mips/arc/lib.a
SUBDIRS += arch/mips/sgi/kernel arch/mips/arc
#
# Set LOADADDR to >= 0x88069000 if you want to leave space for symmon,
@@ -162,7 +162,7 @@ endif
#
ifdef CONFIG_BAGET_MIPS
SUBDIRS += arch/mips/baget arch/mips/baget/prom
-LIBS += arch/mips/baget/baget.a arch/mips/baget/prom/bagetlib.a
+LIBS += arch/mips/baget/baget.a arch/mips/baget/prom/lib.a
LOADADDR += 0x80001000
endif
diff --git a/arch/mips/arc/Makefile b/arch/mips/arc/Makefile
index acba7efa4e09..f71a6a44df60 100644
--- a/arch/mips/arc/Makefile
+++ b/arch/mips/arc/Makefile
@@ -2,13 +2,8 @@
# Makefile for the SGI arcs prom monitor library routines
# under Linux.
#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile...
-L_TARGET = arclib.a
+L_TARGET = lib.a
obj-y += console.o init.o memory.o tree.o env.o cmdline.o misc.o \
time.o file.o identify.o
diff --git a/arch/mips/baget/prom/Makefile b/arch/mips/baget/prom/Makefile
index ee24ab306560..d481acc62f9a 100644
--- a/arch/mips/baget/prom/Makefile
+++ b/arch/mips/baget/prom/Makefile
@@ -1,13 +1,8 @@
#
# Makefile for the Baget/MIPS prom emulator library routines.
#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile...
-L_TARGET := bagetlib.a
+L_TARGET := lib.a
obj-y := init.o
diff --git a/arch/mips/dec/prom/Makefile b/arch/mips/dec/prom/Makefile
index 4a0a5c808584..3bd45e47b624 100644
--- a/arch/mips/dec/prom/Makefile
+++ b/arch/mips/dec/prom/Makefile
@@ -3,7 +3,7 @@
# under Linux.
#
-L_TARGET := rexlib.a
+L_TARGET := lib.a
obj-y := init.o memory.o cmdline.o identify.o locore.o
diff --git a/arch/mips64/Makefile b/arch/mips64/Makefile
index a98b580fbd96..d976f03024ed 100644
--- a/arch/mips64/Makefile
+++ b/arch/mips64/Makefile
@@ -72,7 +72,7 @@ endif
# Board-dependent options and extra files
#
ifdef CONFIG_SGI_IP22
-LIBS += arch/mips64/sgi-ip22/ip22.a arch/mips64/arc/arclib.a
+LIBS += arch/mips64/sgi-ip22/lib.a arch/mips64/arc/lib.a
SUBDIRS += arch/mips64/sgi-ip22 arch/mips64/arc
#
# Set LOADADDR to >= 0x88069000 if you want to leave space for symmon,
@@ -84,7 +84,7 @@ endif
ifdef CONFIG_SGI_IP27
CORE_FILES += arch/mips64/sgi-ip27/ip27.o
-LIBS += arch/mips64/arc/arclib.a
+LIBS += arch/mips64/arc/lib.a
SUBDIRS += arch/mips64/sgi-ip27 arch/mips64/arc
#
# Set LOADADDR to >= 0xc000000000300000 if you want to leave space for
@@ -100,7 +100,7 @@ endif
endif
ifdef CONFIG_SGI_IP32
-LIBS += arch/mips64/sgi-ip32/ip32-kern.a arch/mips64/arc/arclib.a
+LIBS += arch/mips64/sgi-ip32/ip32-kern.a arch/mips64/arc/lib.a
SUBDIRS += arch/mips64/sgi-ip32 arch/mips64/arc
#
# Set LOADADDR to >= 0x????????? if you want to leave space for symmon,
diff --git a/arch/mips64/arc/Makefile b/arch/mips64/arc/Makefile
index e1f687c34ec3..8338871b859d 100644
--- a/arch/mips64/arc/Makefile
+++ b/arch/mips64/arc/Makefile
@@ -2,7 +2,7 @@
# Makefile for the ARC prom monitor library routines under Linux.
#
-L_TARGET = arclib.a
+L_TARGET = lib.a
obj-y := console.o init.o identify.o tree.o env.o cmdline.o misc.o time.o \
file.o
diff --git a/arch/mips64/sgi-ip22/Makefile b/arch/mips64/sgi-ip22/Makefile
index 243847481903..770466434727 100644
--- a/arch/mips64/sgi-ip22/Makefile
+++ b/arch/mips64/sgi-ip22/Makefile
@@ -5,7 +5,7 @@
EXTRA_AFLAGS := $(CFLAGS)
-L_TARGET = ip22.a
+L_TARGET = lib.a
obj-y += ip22-berr.o ip22-mc.o ip22-sc.o ip22-hpc.o ip22-int.o ip22-rtc.o \
ip22-setup.o system.o ip22-timer.o ip22-irq.o ip22-reset.o time.o
diff --git a/arch/ppc/boot/Makefile b/arch/ppc/boot/Makefile
index 21d300d12121..8403ee2b1727 100644
--- a/arch/ppc/boot/Makefile
+++ b/arch/ppc/boot/Makefile
@@ -19,7 +19,7 @@ OBJCOPY_ARGS = -O elf32-powerpc
MKIMAGE := ./utils/mkimage.wrapper
-lib/zlib.a: lib/zlib.c
+lib/lib.a: lib/zlib.c
$(MAKE) -C lib
images/vmlinux.gz: $(TOPDIR)/vmlinux
@@ -55,7 +55,7 @@ maketools:
# The targets all boards support for boot images.
BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
-$(BOOT_TARGETS): vmapus lib/zlib.a images/vmlinux.gz maketools
+$(BOOT_TARGETS): vmapus lib/lib.a images/vmlinux.gz maketools
ifneq ($(BOOTDIRS),)
for d in $(BOOTDIRS); do $(MAKE) -C $$d $@; done
endif
diff --git a/arch/ppc/boot/lib/Makefile b/arch/ppc/boot/lib/Makefile
index 0e7c20f5ad8f..f1bd994045f0 100644
--- a/arch/ppc/boot/lib/Makefile
+++ b/arch/ppc/boot/lib/Makefile
@@ -2,7 +2,7 @@
# Makefile for some libs needed by zImage.
#
-L_TARGET := zlib.a
+L_TARGET := lib.a
obj-y := zlib.o
diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile
index 16f5e4ffff1d..e8b261e9a3c0 100644
--- a/arch/sparc/Makefile
+++ b/arch/sparc/Makefile
@@ -40,7 +40,7 @@ SUBDIRS += arch/sparc/kernel arch/sparc/lib arch/sparc/prom \
CORE_FILES := arch/sparc/kernel/kernel.o arch/sparc/mm/mm.o $(CORE_FILES) \
arch/sparc/math-emu/math-emu.o
-LIBS := $(LIBS) arch/sparc/prom/promlib.a arch/sparc/lib/lib.a
+LIBS := $(LIBS) arch/sparc/prom/lib.a arch/sparc/lib/lib.a
# This one has to come last
SUBDIRS += arch/sparc/boot
diff --git a/arch/sparc/prom/Makefile b/arch/sparc/prom/Makefile
index f625a75cb820..f31f40c90567 100644
--- a/arch/sparc/prom/Makefile
+++ b/arch/sparc/prom/Makefile
@@ -2,13 +2,8 @@
# Makefile for the Sun Boot PROM interface library under
# Linux.
#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile...
-L_TARGET = promlib.a
+L_TARGET = lib.a
obj-y := bootstr.o devmap.o devops.o init.o memory.o misc.o mp.o \
palloc.o ranges.o segment.o console.o printf.o tree.o
diff --git a/arch/sparc64/Makefile b/arch/sparc64/Makefile
index efe6a336c593..8b19c262ce84 100644
--- a/arch/sparc64/Makefile
+++ b/arch/sparc64/Makefile
@@ -72,7 +72,7 @@ endif
CORE_FILES += arch/sparc64/math-emu/math-emu.o
-LIBS := $(TOPDIR)/lib/lib.a $(LIBS) $(TOPDIR)/arch/sparc64/prom/promlib.a \
+LIBS := $(TOPDIR)/lib/lib.a $(LIBS) $(TOPDIR)/arch/sparc64/prom/lib.a \
$(TOPDIR)/arch/sparc64/lib/lib.a
vmlinux.aout: vmlinux
diff --git a/arch/sparc64/prom/Makefile b/arch/sparc64/prom/Makefile
index 47f887ec521b..1ba1a1e1b31e 100644
--- a/arch/sparc64/prom/Makefile
+++ b/arch/sparc64/prom/Makefile
@@ -5,7 +5,7 @@
EXTRA_AFLAGS := -ansi
-L_TARGET = promlib.a
+L_TARGET = lib.a
obj-y := bootstr.o devops.o init.o memory.o misc.o \
tree.o console.o printf.o p1275.o map.o
diff --git a/drivers/ide/Makefile b/drivers/ide/Makefile
index b53bcfe7e550..766508e279ad 100644
--- a/drivers/ide/Makefile
+++ b/drivers/ide/Makefile
@@ -9,18 +9,8 @@
#
export-objs := ide-iops.o ide-taskfile.o ide-proc.o ide.o ide-probe.o ide-dma.o ide-lib.o setup-pci.o
-all-subdirs := arm legacy pci ppc
-mod-subdirs := arm legacy pci ppc
-
-obj-y :=
-obj-m :=
-ide-obj-y :=
-
-subdir-$(CONFIG_BLK_DEV_IDEPCI) += pci
-subdir-$(CONFIG_BLK_DEV_IDE) += legacy ppc arm pci
-
# First come modules that register themselves with the core
-obj-y += pci/idedriver-pci.o
+obj-$(CONFIG_BLK_DEV_IDEPCI) += pci/
# Core IDE code - must come before legacy
@@ -35,13 +25,9 @@ obj-$(CONFIG_BLK_DEV_IDEDMA_PCI) += ide-dma.o
obj-$(CONFIG_BLK_DEV_ISAPNP) += ide-pnp.o
ifeq ($(CONFIG_BLK_DEV_IDE),y)
-obj-$(CONFIG_PROC_FS) += ide-proc.o
+obj-$(CONFIG_PROC_FS) += ide-proc.o
endif
-ifeq ($(CONFIG_BLK_DEV_IDE),y)
- obj-y += legacy/idedriver-legacy.o
- obj-y += ppc/idedriver-ppc.o
- obj-y += arm/idedriver-arm.o
-endif
+obj-$(CONFIG_BLK_DEV_IDE) += legacy/ ppc/ arm/
include $(TOPDIR)/Rules.make
diff --git a/drivers/ide/arm/Makefile b/drivers/ide/arm/Makefile
index faf5e710f939..f84bd1936eda 100644
--- a/drivers/ide/arm/Makefile
+++ b/drivers/ide/arm/Makefile
@@ -1,9 +1,4 @@
-O_TARGET := idedriver-arm.o
-
-obj-y :=
-obj-m :=
-
obj-$(CONFIG_BLK_DEV_IDE_ICSIDE) += icside.o
obj-$(CONFIG_BLK_DEV_IDE_RAPIDE) += rapide.o
diff --git a/drivers/ide/legacy/Makefile b/drivers/ide/legacy/Makefile
index 0c652267f4fa..44e6e0908cee 100644
--- a/drivers/ide/legacy/Makefile
+++ b/drivers/ide/legacy/Makefile
@@ -1,9 +1,4 @@
-O_TARGET := idedriver-legacy.o
-
-obj-y :=
-obj-m :=
-
obj-$(CONFIG_BLK_DEV_ALI14XX) += ali14xx.o
obj-$(CONFIG_BLK_DEV_DTC2278) += dtc2278.o
obj-$(CONFIG_BLK_DEV_HT6560B) += ht6560b.o
diff --git a/drivers/ide/pci/Makefile b/drivers/ide/pci/Makefile
index 8b96336e18b1..adf5a6ab7453 100644
--- a/drivers/ide/pci/Makefile
+++ b/drivers/ide/pci/Makefile
@@ -1,9 +1,4 @@
-O_TARGET := idedriver-pci.o
-
-obj-y :=
-obj-m :=
-
obj-$(CONFIG_BLK_DEV_ADMA100) += adma100.o
obj-$(CONFIG_BLK_DEV_AEC62XX) += aec62xx.o
obj-$(CONFIG_BLK_DEV_ALI15X3) += alim15x3.o
diff --git a/drivers/ide/ppc/Makefile b/drivers/ide/ppc/Makefile
index 6d8a46486337..add23af02343 100644
--- a/drivers/ide/ppc/Makefile
+++ b/drivers/ide/ppc/Makefile
@@ -1,9 +1,4 @@
-O_TARGET := idedriver-ppc.o
-
-obj-y :=
-obj-m :=
-
obj-$(CONFIG_BLK_DEV_MPC8xx_IDE) += mpc8xx.o
obj-$(CONFIG_BLK_DEV_IDE_PMAC) += pmac.o
obj-$(CONFIG_BLK_DEV_IDE_SWARM) += swarm.o
diff --git a/drivers/ieee1394/Makefile b/drivers/ieee1394/Makefile
index 7a69b3f1c17e..59d51d5e518e 100644
--- a/drivers/ieee1394/Makefile
+++ b/drivers/ieee1394/Makefile
@@ -2,11 +2,8 @@
# Makefile for the Linux IEEE 1394 implementation
#
-O_TARGET := ieee1394drv.o
-
export-objs := ieee1394_core.o ohci1394.o cmp.o
-list-multi := ieee1394.o
ieee1394-objs := ieee1394_core.o ieee1394_transactions.o hosts.o \
highlevel.o csr.o nodemgr.o
@@ -22,6 +19,3 @@ obj-$(CONFIG_IEEE1394_AMDTP) += amdtp.o
obj-$(CONFIG_IEEE1394_CMP) += cmp.o
include $(TOPDIR)/Rules.make
-
-ieee1394.o: $(ieee1394-objs)
- $(LD) $(LDFLAGS) -r -o $@ $(ieee1394-objs)
diff --git a/drivers/isdn/hisax/st5481_init.c b/drivers/isdn/hisax/st5481_init.c
index f68156cbaea7..703fa4b1f9d7 100644
--- a/drivers/isdn/hisax/st5481_init.c
+++ b/drivers/isdn/hisax/st5481_init.c
@@ -59,7 +59,7 @@ static LIST_HEAD(adapter_list);
* This function will be called when the adapter is plugged
* into the USB bus.
*/
-static int probe_st5481(struct usb_interface *intf
+static int probe_st5481(struct usb_interface *intf,
const struct usb_device_id *id)
{
struct usb_device *dev = interface_to_usbdev(intf);
@@ -115,7 +115,7 @@ static int probe_st5481(struct usb_interface *intf
st5481_start(adapter);
dev_set_drvdata(&intf->dev, adapter);
- return adapter;
+ return 0;
err_b:
st5481_release_b(&adapter->bcs[0]);
diff --git a/drivers/message/fusion/Makefile b/drivers/message/fusion/Makefile
index d9cea6300a3b..d71cd2d6c424 100644
--- a/drivers/message/fusion/Makefile
+++ b/drivers/message/fusion/Makefile
@@ -1,14 +1,7 @@
#
# Makefile for the LSI Logic Fusion MPT (Message Passing Technology) drivers.
#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definition is now inherited from the
-# parent makefile.
-#
-# Note 3! If you want to turn on various debug defines for an extended period of
+# Note! If you want to turn on various debug defines for an extended period of
# time but don't want them lingering around in the Makefile when you pass it on
# to someone else, use the MPT_CFLAGS env variable (thanks Steve). -nromer
@@ -53,27 +46,11 @@ EXTRA_CFLAGS += -I. ${MPT_CFLAGS}
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-} LSI_LOGIC
-O_TARGET := fusion.o
-
export-objs := mptbase.o mptscsih.o mptlan.o mptctl.o isense.o
-# ? what's list-multi for?
-#list-multi := fusion.o mptscsih.o
-
obj-$(CONFIG_FUSION) += mptbase.o mptscsih.o
obj-$(CONFIG_FUSION_ISENSE) += isense.o
obj-$(CONFIG_FUSION_CTL) += mptctl.o
obj-$(CONFIG_FUSION_LAN) += mptlan.o
-O_OBJS := $(filter-out $(export-objs), $(obj-y))
-OX_OBJS := $(filter $(export-objs), $(obj-y))
-M_OBJS := $(sort $(filter-out $(export-objs), $(obj-m)))
-MX_OBJS := $(sort $(filter $(export-objs), $(obj-m)))
-
include $(TOPDIR)/Rules.make
-
-
-# EXP...
-## Fusion MPT extra's...
-##mptscsih.o: $(mptscsih-objs)
-## $(LD) -r -o $@ $(mptscsih-objs)
diff --git a/fs/Makefile b/fs/Makefile
index eaccee26c5b3..e1a1bfd4c4b8 100644
--- a/fs/Makefile
+++ b/fs/Makefile
@@ -5,8 +5,6 @@
# Rewritten to use lists instead of if-statements.
#
-O_TARGET := fs.o
-
export-objs := open.o dcache.o buffer.o bio.o inode.o dquot.o mpage.o aio.o \
fcntl.o
diff --git a/init/Makefile b/init/Makefile
index 311a5ff546c6..90b477436bfd 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -2,8 +2,6 @@
# Makefile for the linux kernel.
#
-O_TARGET := init.o
-
obj-y := main.o version.o do_mounts.o
include $(TOPDIR)/Rules.make
diff --git a/ipc/Makefile b/ipc/Makefile
index c358aa2a4c7e..446ce49ab2fe 100644
--- a/ipc/Makefile
+++ b/ipc/Makefile
@@ -1,13 +1,6 @@
#
# Makefile for the linux ipc.
#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definition is now in the main makefile...
-
-O_TARGET := ipc.o
obj-y := util.o
diff --git a/kernel/Makefile b/kernel/Makefile
index b560bc0b2c5c..ee937c477b83 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -1,13 +1,6 @@
#
# Makefile for the linux kernel.
#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile...
-
-O_TARGET := kernel.o
export-objs = signal.o sys.o kmod.o context.o ksyms.o pm.o exec_domain.o \
printk.o platform.o suspend.o dma.o
diff --git a/mm/Makefile b/mm/Makefile
index 1352d00f6d77..ff0df68c65c6 100644
--- a/mm/Makefile
+++ b/mm/Makefile
@@ -1,13 +1,6 @@
#
# Makefile for the linux memory manager.
#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definition is now in the main makefile...
-
-O_TARGET := mm.o
export-objs := shmem.o filemap.o mempool.o page_alloc.o \
page-writeback.o
diff --git a/net/Makefile b/net/Makefile
index 4fed0f516ca9..1aeac6c82168 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -5,9 +5,6 @@
# Rewritten to use lists instead of if-statements.
#
-O_TARGET := network.o
-
-
export-objs := netsyms.o
obj-y := socket.o core/
diff --git a/sound/Makefile b/sound/Makefile
index 6806db9b183a..973d80cdc168 100644
--- a/sound/Makefile
+++ b/sound/Makefile
@@ -1,8 +1,6 @@
# Makefile for the Linux sound card driver
#
-O_TARGET := sound.o
-
export-objs := sound_core.o
obj-$(CONFIG_SOUND) += soundcore.o