linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/3] git-libata: fix CONFIG_PCI=n build
@ 2008-03-28 21:33 akpm
  2008-03-29  1:04 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2008-03-28 21:33 UTC (permalink / raw)
  To: jeff; +Cc: linux-ide, akpm, htejun

From: Andrew Morton <akpm@linux-foundation.org>

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@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 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,
_

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-29  1:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 21:33 [patch 1/3] git-libata: fix CONFIG_PCI=n build akpm
2008-03-29  1:04 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).