public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.69-bk4 -- drivers/ide/ppc/pmac.c: 724: In function `pmac_find_ide_boot': incompatible types in return
@ 2003-05-10 23:27 Miles Lane
  2003-05-11 11:02 ` Daniele Pala
  0 siblings, 1 reply; 2+ messages in thread
From: Miles Lane @ 2003-05-10 23:27 UTC (permalink / raw)
  To: linux-kernel

   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=y
CONFIG_BLK_DEV_IDECD=m
CONFIG_BLK_DEV_IDESCSI=m

#
# IDE chipset support/bugfixes
#
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_BLK_DEV_ADMA=y

CONFIG_BLK_DEV_IDE_PMAC=y
CONFIG_BLK_DEV_IDEDMA_PMAC=y
CONFIG_BLK_DEV_IDEDMA_PMAC_AUTO=y
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_BLK_DEV_IDE_MODES=y


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

* Re: 2.5.69-bk4 -- drivers/ide/ppc/pmac.c: 724: In function `pmac_find_ide_boot': incompatible types in return
  2003-05-10 23:27 2.5.69-bk4 -- drivers/ide/ppc/pmac.c: 724: In function `pmac_find_ide_boot': incompatible types in return Miles Lane
@ 2003-05-11 11:02 ` Daniele Pala
  0 siblings, 0 replies; 2+ messages in thread
From: Daniele Pala @ 2003-05-11 11:02 UTC (permalink / raw)
  To: linux-kernel

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?

On Sat, May 10, 2003 at 04:27:27PM -0700, Miles Lane wrote:
>   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=y
> CONFIG_BLK_DEV_IDECD=m
> CONFIG_BLK_DEV_IDESCSI=m
> 
> #
> # IDE chipset support/bugfixes
> #
> CONFIG_BLK_DEV_IDEPCI=y
> CONFIG_BLK_DEV_GENERIC=y
> CONFIG_IDEPCI_SHARE_IRQ=y
> CONFIG_BLK_DEV_IDEDMA_PCI=y
> CONFIG_IDEDMA_PCI_AUTO=y
> CONFIG_BLK_DEV_IDEDMA=y
> CONFIG_BLK_DEV_ADMA=y
> 
> CONFIG_BLK_DEV_IDE_PMAC=y
> CONFIG_BLK_DEV_IDEDMA_PMAC=y
> CONFIG_BLK_DEV_IDEDMA_PMAC_AUTO=y
> CONFIG_IDEDMA_AUTO=y
> # CONFIG_IDEDMA_IVB is not set
> CONFIG_BLK_DEV_IDE_MODES=y
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

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

end of thread, other threads:[~2003-05-11 14:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-10 23:27 2.5.69-bk4 -- drivers/ide/ppc/pmac.c: 724: In function `pmac_find_ide_boot': incompatible types in return Miles Lane
2003-05-11 11:02 ` Daniele Pala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox