--- Makefile | 2 +- include/Kbuild | 1 + tests/Makefile | 5 +---- 3 files changed, 3 insertions(+), 5 deletions(-) Index: linux-2.6/Makefile =================================================================== --- linux-2.6.orig/Makefile 2007-10-31 13:41:37.099422015 -0700 +++ linux-2.6/Makefile 2007-10-31 13:59:17.338947602 -0700 @@ -577,7 +577,7 @@ export mod_strip_cmd ifeq ($(KBUILD_EXTMOD),) -core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ +core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ tests/ vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ $(core-y) $(core-m) $(drivers-y) $(drivers-m) \ Index: linux-2.6/include/Kbuild =================================================================== --- linux-2.6.orig/include/Kbuild 2007-10-31 13:41:37.107422136 -0700 +++ linux-2.6/include/Kbuild 2007-10-31 13:59:17.338947602 -0700 @@ -4,5 +4,6 @@ header-y += sound/ header-y += mtd/ header-y += rdma/ header-y += video/ +header-y += tests/ header-y += asm-$(ARCH)/ Index: linux-2.6/tests/Makefile =================================================================== --- linux-2.6.orig/tests/Makefile 2007-10-31 13:41:37.115422477 -0700 +++ linux-2.6/tests/Makefile 2007-10-31 13:59:17.338947602 -0700 @@ -1,5 +1,2 @@ -obj-m := slub_test.o - -default: - $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules +obj-m += slub_test.o