Files
linux/arch/alpha/include/asm
Mel Gorman 5e5369da75 Redefine ATOMIC_INIT and ATOMIC64_INIT to drop the casts
commit 67a806d949 upstream.

The following build error occurred during an alpha build:

  net/core/sock.c:274:36: error: initializer element is not constant

Dave Anglin says:
> Here is the line in sock.i:
>
> struct static_key memalloc_socks = ((struct static_key) { .enabled =
> ((atomic_t) { (0) }) });

The above line contains two compound literals.  It also uses a designated
initializer to initialize the field enabled.  A compound literal is not a
constant expression.

The location of the above statement isn't fully clear, but if a compound
literal occurs outside the body of a function, the initializer list must
consist of constant expressions.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Michael Cree <mcree@orcon.net.nz>
Acked-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-02 09:47:25 -07:00
..
2009-05-02 15:36:10 -07:00
2011-03-31 11:26:23 -03:00
2011-05-25 08:39:38 -07:00
2011-01-17 05:42:15 +01:00
2011-01-17 05:42:13 +01:00
2010-10-07 14:08:55 +01:00
2010-08-14 22:26:51 +02:00
2010-06-09 11:12:36 +02:00
2010-01-05 15:34:49 +09:00
2011-01-13 17:32:47 -08:00
2009-06-30 18:55:59 -07:00
2010-10-26 16:52:08 -07:00
2010-03-12 15:52:38 -08:00
2009-01-15 16:39:40 -08:00
2009-02-01 11:01:22 +05:30
2009-02-01 11:01:22 +05:30
2010-10-07 14:08:55 +01:00
2011-03-23 19:47:18 -07:00
2009-05-02 15:36:10 -07:00
2011-05-28 10:48:39 -07:00
2009-04-01 08:59:16 -07:00