From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> sh allmodconfig: drivers/ata/libata-core.c:127: error: `ata_pci_default_filter' undeclared here (not in a function) drivers/ata/libata-core.c:127: error: initializer element is not constant drivers/ata/libata-core.c:127: error: (near initialization for `ata_bmdma_port_ops.mode_filter') Cc: Tejun Heo <htejun@xxxxxxxxx> Cc: Jeff Garzik <jeff@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/ata/libata-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/ata/libata-core.c~git-libata-fix-config_pci=n-build drivers/ata/libata-core.c --- a/drivers/ata/libata-core.c~git-libata-fix-config_pci=n-build +++ a/drivers/ata/libata-core.c @@ -123,9 +123,9 @@ const struct ata_port_operations ata_sff const struct ata_port_operations ata_bmdma_port_ops = { .inherits = &ata_sff_port_ops, - +#ifdef CONFIG_PCI .mode_filter = ata_pci_default_filter, - +#endif .bmdma_setup = ata_bmdma_setup, .bmdma_start = ata_bmdma_start, .bmdma_stop = ata_bmdma_stop, _ -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html