Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b0d5bc27ce995adaafbc114b92fa76815025c94e
Commit:     b0d5bc27ce995adaafbc114b92fa76815025c94e
Parent:     151575e4644f917d3a9f83c777ac3543284954f8
Author:     Olof Johansson <[EMAIL PROTECTED]>
AuthorDate: Sat Jan 26 20:13:05 2008 +0100
Committer:  Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
CommitDate: Sat Jan 26 20:13:05 2008 +0100

    ide: Fix build break caused by "ide: remove ideprobe_init()"
    
    Fix build break of powerpc holly_defconfig:
    
    In file included from arch/powerpc/platforms/embedded6xx/holly.c:24:
    include/linux/ide.h:1206: error: 'CONFIG_IDE_MAX_HWIFS' undeclared here 
(not in a function)
    
    There's no need to have a sized array in the prototype, might as well
    turn it into a pointer.
    
    It could probably be argued that large parts of the include file can be
    covered under #ifdef CONFIG_IDE, but that's a larger undertaking.
    
    Signed-off-by: Olof Johansson <[EMAIL PROTECTED]>
    Cc: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
---
 drivers/ide/ide-probe.c |    2 +-
 include/linux/ide.h     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 1af94ac..18e9b82 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -1340,7 +1340,7 @@ static void hwif_register_devices(ide_hwif_t *hwif)
        }
 }
 
-int ide_device_add_all(u8 idx[MAX_HWIFS])
+int ide_device_add_all(u8 *idx)
 {
        ide_hwif_t *hwif;
        int i, rc = 0;
diff --git a/include/linux/ide.h b/include/linux/ide.h
index d7c0f9a..ce9b16f 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1201,7 +1201,7 @@ void ide_unregister_region(struct gendisk *);
 
 void ide_undecoded_slave(ide_drive_t *);
 
-int ide_device_add_all(u8 idx[MAX_HWIFS]);
+int ide_device_add_all(u8 *idx);
 int ide_device_add(u8 idx[4]);
 
 static inline void *ide_get_hwifdata (ide_hwif_t * hwif)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to