Re: [BUILD_FAILURE] linux-next: Tree for March 31 build fails withCONFIG_SLICOSS=y

From: Stephen Rothwell
Date: Mon Mar 31 2008 - 09:31:41 EST


Hi Greg,

On Mon, 31 Mar 2008 18:47:10 +0530 Kamalesh Babulal <kamalesh@xxxxxxxxxxxxxxxxxx> wrote:
>
> The kernel next-20080331 kernel build fails with Alacritech's IS-NIC gigabit ethernet
> driver on powerpc with allyesconfig (with # CONFIG_NOVFS is not set)
>
> CC drivers/net/slicoss/slicoss.o
> drivers/net/slicoss/slicoss.c: In function âslic_xmit_build_requestâ:
> drivers/net/slicoss/slicoss.c:933: error: âStopâ undeclared (first use in this function)
> drivers/net/slicoss/slicoss.c:933: error: (Each undeclared identifier is reported only once
> drivers/net/slicoss/slicoss.c:933: error: for each function it appears in.)
> drivers/net/slicoss/slicoss.c:933: error: expected â;â before âCompilationâ
> drivers/net/slicoss/slicoss.c: In function âslic_link_event_handlerâ:
> drivers/net/slicoss/slicoss.c:1420: error: âStopâ undeclared (first use in this function)
> drivers/net/slicoss/slicoss.c:1420: error: expected â;â before âcompilationâ
> drivers/net/slicoss/slicoss.c: In function âslic_if_initâ:
> drivers/net/slicoss/slicoss.c:1848: error: âStopâ undeclared (first use in this function)
> drivers/net/slicoss/slicoss.c:1848: error: expected â;â before âCompilationsâ
> drivers/net/slicoss/slicoss.c: In function âslic_card_initâ:
> drivers/net/slicoss/slicoss.c:2518: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_timer_get_statsâ:
> drivers/net/slicoss/slicoss.c:3269: error: âStopâ undeclared (first use in this function)
> drivers/net/slicoss/slicoss.c:3269: error: expected â;â before âcompilationâ
> drivers/net/slicoss/slicoss.c: In function âslic_link_upr_completeâ:
> drivers/net/slicoss/slicoss.c:3683: error: âStopâ undeclared (first use in this function)
> drivers/net/slicoss/slicoss.c:3683: error: expected â;â before âCompilationâ
> drivers/net/slicoss/slicoss.c: In function âslic_eeprom_cksumâ:
> drivers/net/slicoss/slicoss.c:3806: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_rspqueue_initâ:
> drivers/net/slicoss/slicoss.c:3901: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:3901: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_rspqueue_getnextâ:
> drivers/net/slicoss/slicoss.c:3990: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:3990: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4004: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4004: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4009: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4009: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_cmdqmem_addpageâ:
> drivers/net/slicoss/slicoss.c:4056: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4056: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_cmdq_initâ:
> drivers/net/slicoss/slicoss.c:4081: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4081: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_cmdq_addcmdpageâ:
> drivers/net/slicoss/slicoss.c:4184: error: implicit declaration of function âvirt_to_busâ
> drivers/net/slicoss/slicoss.c:4224: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4224: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4230: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4230: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_cmdq_getdoneâ:
> drivers/net/slicoss/slicoss.c:4271: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4271: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_cmdq_putdoneâ:
> drivers/net/slicoss/slicoss.c:4287: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4287: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4289: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4289: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_cmdq_putdone_irqâ:
> drivers/net/slicoss/slicoss.c:4301: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4301: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4303: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c:4303: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_rcvqueue_fillâ:
> drivers/net/slicoss/slicoss.c:4425: warning: cast from pointer to integer of different size
> drivers/net/slicoss/slicoss.c: In function âslic_rcvqueue_reinsertâ:
> drivers/net/slicoss/slicoss.c:4504: warning: cast from pointer to integer of different size

Strike two! Again, these drivers need to build (or not try to build) for
all architectures ... Its out until you tell me the above is true.

#if defined(CONFIG_X86_64)
hcmd->cmdsize = (ulong32) ((((ulong64) & ihcmd->u.slic_buffers.bufs[1] -
(ulong64) hcmd) + 31) >> 5);
#elif defined(CONFIG_X86)
hcmd->cmdsize = ((((ulong32) & ihcmd->u.slic_buffers.bufs[1] -
(ulong32) hcmd) + 31) >> 5);
#else
Stop Compilation;
#endif

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature