Skip to contentSkip to conversation

sfx.c driver build failure

DISCUSSION Benjamin Herrenschmidt 4 participants 5 messages Jul 25, 2008

lore
Share & tools
lore
#0 lore raw

Hi Michael !

The sfx driver (which happens to be part of some of our test configs) fails to build in current Linus tree on powerpc with this error:

/home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c: In function ‘efx_probe_interrupts’:
/home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c:845: error: lvalue required as unary ‘&’ oper and

Cheers,
Ben.

#1 lore raw
Quoted 6 lines · On Fri, 25 Jul 2008 16:15:59 +1000 Benjamin Herrenschmidt…

The sfx driver (which happens to be part of some of our test configs) fails to build in current Linus tree on powerpc with this error:

/home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c: In function ‘efx_probe_interrupts’:
/home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c:845: error: lvalue required as unary ‘&’ operand

Commit 695a6b456307455a10059512208e8ed0d376ecd3 "topology: work around topology_core_siblings() breakage" in linux-next (from the cpus4096 tree) comments out the offending lines ... With the comment "the topology API is a mess right now".

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#2 lore raw
Quoted 5 lines · Stephen Rothwell
Quoted 4 lines · On Fri, 25 Jul 2008 16:15:59 +1000 Benjamin Herrenschmidt…

The sfx driver (which happens to be part of some of our test configs) fails to build in current Linus tree on powerpc with this error:

Quoted 7 lines
Quoted 2 lines

/home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c: In function ‘efx_probe_interrupts’:
/home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c:845: error: lvalue required as unary ‘&’ operand

Commit 695a6b456307455a10059512208e8ed0d376ecd3 "topology: work around topology_core_siblings() breakage" in linux-next (from the cpus4096 tree) comments out the offending lines ... With the comment "the topology API is a mess right now".

there's a patch from Mike Travis that solves it all from grounds up and which approach has the ack of Rusty as well, but it's not fully tested through yet - i will get to it later today.

Ingo

#3 lore raw
In reply to Benjamin Herrenschmidt
Quoted 6 lines · Benjamin Herrenschmidt

The sfx driver (which happens to be part of some of our test configs) fails to build in current Linus tree on powerpc with this error:

/home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c: In function ÿÿefx_probe_interruptsÿÿ:
/home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c:845: error: lvalue required as unary ÿÿ&ÿÿ oper and

I'm not the maintainer of that code; I wrote the original version, but it's now maintained by Solarflare.

I don't see anything on that line that ought to be architecture-specific. Could you send me the preprocessed efx.c from your powerpc build?

Michael

#4 lore raw
Quoted 8 lines · Michael Brown
Quoted 6 lines · Benjamin Herrenschmidt

The sfx driver (which happens to be part of some of our test configs) fails to build in current Linus tree on powerpc with this error:

/home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c: In function ÿÿefx_probe_interruptsÿÿ:
/home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c:845: error: lvalue required as unary ÿÿ&ÿÿ oper and

Quoted 5 lines

I'm not the maintainer of that code; I wrote the original version, but it's now maintained by Solarflare.

I don't see anything on that line that ought to be architecture-specific. Could you send me the preprocessed efx.c from your powerpc build?

Apparently, it's a know generic breakage of the topology stuff, it's beeing sorted out.

Cheers,
Ben.