Bug 1232
Summary: | Wont build without DMA support enabled | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | P (pliden) |
Component: | IDE | Assignee: | Bartlomiej Zolnierkiewicz (bzolnier) |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | Reimar.Doeffinger |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.0-test5 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
The .config used for this compilation
patch for drivers/ide/setup-ide.c patch for drivers/ide/pci/generic.c |
Description
P
2003-09-14 15:14:10 UTC
Created attachment 890 [details]
The .config used for this compilation
I had the same problem with kernel 2.6.0-test6 when enabling RZ1000 chipset drivers but disabling BLK_DEV_IDEDMA_PCI. This seems to be because drivers/ide/setup-ide.c and drivers/ide/pci/generic.c call ide_setup_dma, which is defined in drivers/ide/ide-dma.c. This file is of course not linked in when DMA support is disabled. I made a patch that fixes the problem (it removes anything that has to do with DMA from setup-ide.c and generic.c when CONFIG_BLK_DEV_IDEDMA_PCI isn't set), but I'm not absolutely sure it won't break anything, especially the generic driver with a DMA-capable chipset (but DMA support disabled during kernel compile) I think should be tested... Created attachment 966 [details]
patch for drivers/ide/setup-ide.c
Created attachment 967 [details]
patch for drivers/ide/pci/generic.c
Just tried with 2.6.10-rc3 and it builds, closing. |