Skip to contentSkip to conversation

git-libata: fix CONFIG_PCI=n build

PATCH Applied [email protected] 2 participants 2 messages Mar 28, 2008 – Mar 29, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 git-libata: fix CONFIG_PCI=n build

From: Andrew Morton <[email protected]>

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')

---

 drivers/ata/libata-core.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/libata-core.c renamed from drivers/ata/libata-core.c~git-libata-fix-config_pci=n-build +2 -2
diff -puN drivers/ata/libata-core.c~git-libata-fix-config_pci=n-build 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,

_

#1 lore raw
Quoted 11 lines · [email protected] wrote:

From: Andrew Morton <[email protected]>

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')

There's a pending patch to pull ata_pci_default_filter() out of CONFIG_PCI as there's nothing PCI specific about it but this is a correct fix. Jeff, if you're gonna merge the modularize-SFF patchset, this one isn't necessary. If not, please go ahead and merge this.

Thanks.

Signature · 1 line
tejun