All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] net/core/sock.c won't compile on alpha
@ 2012-08-22 12:14 Bob Tracy
  2012-08-22 21:16 ` Michael Cree
  2012-08-22 21:20 ` Simon Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Bob Tracy @ 2012-08-22 12:14 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-alpha, mcree

Kernel version 3.6.0-rc2, and probably -rc1 as well.  I get the
following compile-time error on alpha architecture:

(...)
  CC      net/core/sock.o
net/core/sock.c:274:36: error: initializer element is not constant
net/core/sock.c:274:36: error: (near initialization for "memalloc_socks")
net/core/sock.c:274:36: error: initializer element is not constant
make[2]: *** [net/core/sock.o] Error 1
make[1]: *** [net/core] Error 2
make: *** [net] Error 2

Compiler is gcc-4.6.3.

Line 274 of net/core/sock.c is

struct static_key memalloc_socks = STATIC_KEY_INIT_FALSE;

which made its first appearance in 3.6.0-rc1.

--Bob

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

* Re: [BUG] net/core/sock.c won't compile on alpha
  2012-08-22 12:14 [BUG] net/core/sock.c won't compile on alpha Bob Tracy
@ 2012-08-22 21:16 ` Michael Cree
  2012-08-23  5:20   ` Bob Tracy
  2012-08-22 21:20 ` Simon Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Cree @ 2012-08-22 21:16 UTC (permalink / raw)
  To: Bob Tracy; +Cc: linux-kernel, linux-alpha

On 23/08/2012, at 12:14 AM, Bob Tracy wrote:
> Kernel version 3.6.0-rc2, and probably -rc1 as well.  I get the
> following compile-time error on alpha architecture:
>
> (...)
>  CC      net/core/sock.o
> net/core/sock.c:274:36: error: initializer element is not constant

Try v3.6-rc3.  It should be fixed now.

Cheers
Michael.



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

* Re: [BUG] net/core/sock.c won't compile on alpha
  2012-08-22 12:14 [BUG] net/core/sock.c won't compile on alpha Bob Tracy
  2012-08-22 21:16 ` Michael Cree
@ 2012-08-22 21:20 ` Simon Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Simon Brown @ 2012-08-22 21:20 UTC (permalink / raw)
  To: Bob Tracy; +Cc: linux-alpha

Bob,

Is this a different issue to the one discussed and fixed earlier in the month
with this email subject:
Re: [next:akpm 129/309] net/core/sock.c:274:36: error: initializer element is not constant

Sounds very similar.

Simon

At Wed, 22 Aug 2012 07:14:07 -0500,
Bob Tracy wrote:
> 
> Kernel version 3.6.0-rc2, and probably -rc1 as well.  I get the
> following compile-time error on alpha architecture:
> 
> (...)
>   CC      net/core/sock.o
> net/core/sock.c:274:36: error: initializer element is not constant
> net/core/sock.c:274:36: error: (near initialization for "memalloc_socks")
> net/core/sock.c:274:36: error: initializer element is not constant
> make[2]: *** [net/core/sock.o] Error 1
> make[1]: *** [net/core] Error 2
> make: *** [net] Error 2
> 
> Compiler is gcc-4.6.3.
> 
> Line 274 of net/core/sock.c is
> 
> struct static_key memalloc_socks = STATIC_KEY_INIT_FALSE;
> 
> which made its first appearance in 3.6.0-rc1.
> 
> --Bob
> --
> To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

* Re: [BUG] net/core/sock.c won't compile on alpha
  2012-08-22 21:16 ` Michael Cree
@ 2012-08-23  5:20   ` Bob Tracy
  0 siblings, 0 replies; 4+ messages in thread
From: Bob Tracy @ 2012-08-23  5:20 UTC (permalink / raw)
  To: Michael Cree; +Cc: linux-kernel, linux-alpha

On Thu, Aug 23, 2012 at 09:16:53AM +1200, Michael Cree wrote:
> On 23/08/2012, at 12:14 AM, Bob Tracy wrote:
> >Kernel version 3.6.0-rc2, and probably -rc1 as well.  I get the
> >following compile-time error on alpha architecture:
> >
> >(...)
> > CC      net/core/sock.o
> >net/core/sock.c:274:36: error: initializer element is not constant
> 
> Try v3.6-rc3.  It should be fixed now.

That got it.  Finally saw the discussion on the bug (from about a month
ago -- thanks, Simon).

--Bob

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

end of thread, other threads:[~2012-08-23  5:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-22 12:14 [BUG] net/core/sock.c won't compile on alpha Bob Tracy
2012-08-22 21:16 ` Michael Cree
2012-08-23  5:20   ` Bob Tracy
2012-08-22 21:20 ` Simon Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.