Subject: linux-next: ide tree build failure

From: Stephen Rothwell <[email-masked]>
Date: Mon, 30 Jun 2008 15:28:54 +1000

Hi Bart,

Today's linux-next build (powerpc ppc64_defconfig) failed like this:

drivers/ide/ppc/pmac.c: In function 'pmac_ide_setup_device':
drivers/ide/ppc/pmac.c:1115: error: implicit declaration of function 'ide_alloc_host'
drivers/ide/ppc/pmac.c:1115: warning: assignment makes pointer from integer without a cast

Caused by commit 9cfe46a0547b6a1481e773785bceb6a319963b49 ("ide: add
struct ide_host (take 2)") from the ide tree which I have reverted.

Then the x86_64 allmodconfig build fails with:

ERROR: "ide_init_port_hw" [drivers/ide/legacy/ide-cs.ko] undefined!

For which I applied the patch below.
-- 
Cheers,
Stephen Rothwell                    [email-masked]
http://www.canb.auug.org.au/~sfr/

>>From 1bdb17cc47df67e2ca9137ca80d23cc3ac6c61cc Mon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email-masked]>
Date: Mon, 30 Jun 2008 15:26:59 +1000
Subject: [PATCH] ide: export ide_init_port_hw to modules

Signed-off-by: Stephen Rothwell <[email-masked]>
---
 drivers/ide/ide.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index d7ae256..7e905cc 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -288,6 +288,7 @@ void ide_init_port_hw(ide_hwif_t *hwif, hw_regs_t *hw)
 	hwif->ack_intr = hw->ack_intr;
 	hwif->config_data = hw->config;
 }
+EXPORT_SYMBOL_GPL(ide_init_port_hw);
 
 /*
  *	Locks for IDE setting functionality
-- 
1.5.6