2.5.69-bk4 -- drivers/ide/ppc/pmac.c: 724: In function `pmac_find_ide_boot': incompatible types in return
gcc -Wp,-MD,drivers/ide/ppc/.pmac.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Iarch/ppc -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -fomit-frame-pointer -nostdinc -iwithprefix include -Idrivers/ide -DKBUILD_BASENAME=pmac -DKBUILD_MODNAME=pmac -c -o drivers/ide/ppc/pmac.o drivers/ide/ppc/pmac.c drivers/ide/ppc/pmac.c: In function `pmac_find_ide_boot':drivers/ide/ppc/pmac.c:724: incompatible types in return
make[3]: *** [drivers/ide/ppc/pmac.o] Error 1
CONFIG_BLK_DEV_IDEDISK=yCONFIG_BLK_DEV_IDECD=mCONFIG_BLK_DEV_IDESCSI=m
#
# IDE chipset support/bugfixes
#CONFIG_BLK_DEV_IDEPCI=yCONFIG_BLK_DEV_GENERIC=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_IDE_PMAC=yCONFIG_BLK_DEV_IDEDMA_PMAC=yCONFIG_BLK_DEV_IDEDMA_PMAC_AUTO=yCONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not setCONFIG_BLK_DEV_IDE_MODES=y
I fixed this one by changing the last return value of the function from
return NODEV;
to
return -ENODEV;
I don't know if this is the correct return value but it worked for me...anybody knows if it's the correct fix?
Quoted 37 lines · Miles Lane
gcc -Wp,-MD,drivers/ide/ppc/.pmac.o.d -D__KERNEL__ -Iinclude -Wall
(quoted diff) +0
-4-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Iarch/ppc -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -fomit-frame-pointer -nostdinc -iwithprefix include -Idrivers/ide -DKBUILD_BASENAME=pmac -DKBUILD_MODNAME=pmac -c -o
drivers/ide/ppc/pmac.odrivers/ide/ppc/pmac.cdrivers/ide/ppc/pmac.c: In function `pmac_find_ide_boot':drivers/ide/ppc/pmac.c:724: incompatible types in return make[3]: *** [drivers/ide/ppc/pmac.o] Error 1
CONFIG_BLK_DEV_IDEDISK=yCONFIG_BLK_DEV_IDECD=mCONFIG_BLK_DEV_IDESCSI=m#
# IDE chipset support/bugfixes
#CONFIG_BLK_DEV_IDEPCI=yCONFIG_BLK_DEV_GENERIC=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_IDE_PMAC=yCONFIG_BLK_DEV_IDEDMA_PMAC=yCONFIG_BLK_DEV_IDEDMA_PMAC_AUTO=yCONFIG_IDEDMA_AUTO=y
#CONFIG_IDEDMA_IVBis not setCONFIG_BLK_DEV_IDE_MODES=y-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/