Most recent kernel where this bug did *NOT* occur: 2.6.20 Distribution: Aurora Corona Hardware Environment: SPARCstation 1+ Software Environment: Problem Description: Build fails with: CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 drivers/built-in.o: In function `floppy_shutdown': floppy.c:(.text+0x33edc): undefined reference to `dma_spin_lock' floppy.c:(.text+0x33f0c): undefined reference to `dma_spin_lock' floppy.c:(.text+0x33f20): undefined reference to `dma_spin_lock' drivers/built-in.o: In function `floppy_interrupt': (.text+0x33fe8): undefined reference to `dma_spin_lock' drivers/built-in.o: In function `floppy_interrupt': (.text+0x33ff4): undefined reference to `dma_spin_lock' drivers/built-in.o:(.text+0x3401c): more undefined references to `dma_spin_lock' follow make: *** [.tmp_vmlinux1] Error 1 Steps to reproduce: Compile kernel ;-)
Please attach your .config.
Created attachment 10552 [details] Config file for failed build
dma_spin_lock is used by macros defined in include/asm-sparc64/floppy.h, and it is defined in kernel/dma.c AFAICS, but that file was not compiled here (?) (no kernel/dma.o at any rate).
kernel/Makefile contains: obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o this is surely wrong on a SPARCstation Ultra 1...
Fixed in 2.6.21-rc3.