File drivers/block/smart1,2.h line 256 needs 'c' comment 242 static unsigned long smart1_completed(ctlr_info_t *h) 243 { 244 unsigned char status; 245 unsigned long cmd; 246 247 if (inb(h->ioaddr + SMART1_SYSTEM_DOORBELL) & CHANNEL_BUSY) { 248 outb(CHANNEL_BUSY, h->ioaddr + SMART1_SYSTEM_DOORBELL); 249 250 cmd = inl(h->ioaddr + SMART1_COMPLETE_ADDR); 251 status = inb(h->ioaddr + SMART1_LISTSTATUS); 252 253 outb(CHANNEL_CLEAR, h->ioaddr + SMART1_LOCAL_DOORBELL); 254 255 256 # error Please convert me to Documentation/DMA-mapping.txt 257 258 if (cmd) ((cmdlist_t*)bus_to_virt(cmd))->req.hdr.rcode = status; 259 } else { 260 cmd = 0; 261 } 262 return cmd; 263 } ran make mrproper make xconfig make depend make bzImage >> Complie error w/ smart1,2.h changed to 'c' comment make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.5.7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 " -C arch/i386/lib make[1]: Entering directory `/usr/src/linux-2.5.7/arch/i386/lib' make all_targets make[2]: Entering directory `/usr/src/linux-2.5.7/arch/i386/lib' make[2]: Nothing to be done for `all_targets'. make[2]: Leaving directory `/usr/src/linux-2.5.7/arch/i386/lib' make[1]: Leaving directory `/usr/src/linux-2.5.7/arch/i386/lib' ld -m elf_i386 -T /usr/src/linux-2.5.7/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \ --start-group \ arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \ /usr/src/linux-2.5.7/arch/i386/lib/lib.a /usr/src/linux-2.5.7/lib/lib.a /usr/src/linux-2.5.7/arch/i386/lib/lib.a \ drivers/base/base.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o \ net/network.o \ --end-group \ -o vmlinux drivers/block/block.o: In function `smart1_completed': drivers/block/block.o(.text+0xcfa7): undefined reference to `bus_to_virt_not_defined_use_pci_map' make: *** [vmlinux] Error 1 gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98) make --version GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i386-redhat-linux-gnu Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ld -v GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8) fdformat --version fdformat from util-linux-2.11f insmod -V insmod version 2.4.13 tune2fs 1.26 (3-Feb-2002) cat /proc/version Linux version 2.4.18 () (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)) #6 SMP Tue Mar 12 19:45:43 PST 2002 cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 6 cpu MHz : 797.542 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse bogomips : 1592.52 processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 6 cpu MHz : 797.542 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse bogomips : 1592.52 cat /proc/ioports 0000-001f : dma1 0020-003f : pic1 0040-005f : timer 0060-006f : keyboard 0080-008f : dma page reg 00a0-00bf : pic2 00c0-00df : dma2 00f0-00ff : fpu 0170-0177 : ide1 0376-0376 : ide1 03c0-03df : vga+ 03f8-03ff : serial(auto) 0cf8-0cff : PCI conf1 1800-18ff : Compaq Computer Corporation Advanced System Management Controller 2000-20ff : PCI device 1000:0010 (LSI Logic / Symbios Logic (formerly NCR)) 2400-24ff : ATI Technologies Inc 3D Rage IIC 215IIC [Mach64 GT IIC] 2800-280f : ServerWorks OSB4 IDE Controller 2800-2807 : ide0 2808-280f : ide1 3000-303f : Intel Corp. 82557 [Ethernet Pro 100] 3000-303f : eepro100 3040-307f : Intel Corp. 82557 [Ethernet Pro 100] (#2) 3040-307f : eepro100