Mel Gorman
2b6007fbac
PARISC: Redefine ATOMIC_INIT and ATOMIC64_INIT to drop the casts
...
commit bba3d8c3b3 upstream.
The following build error occured during a parisc build with
swap-over-NFS patches applied.
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
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.
Reported-by: Fengguang Wu <fengguang.wu@intel.com >
Signed-off-by: Mel Gorman <mgorman@suse.de >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-14 10:00:51 -07:00
..
2009-08-03 09:05:00 +01:00
2009-12-12 13:08:14 +01:00
2008-10-10 16:32:29 +00:00
2009-03-13 01:18:56 -04:00
2012-09-14 10:00:51 -07:00
2008-10-10 16:32:29 +00:00
2011-03-23 19:46:22 -07:00
2009-06-11 21:02:14 +02:00
2010-05-19 08:36:48 +01:00
2008-10-10 16:32:29 +00:00
2009-01-14 19:56:50 -08:00
2010-10-21 21:20:09 -04:00
2011-04-15 12:55:56 -05:00
2009-01-05 19:11:05 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2010-09-14 16:08:45 -07:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2010-08-11 08:59:21 -07:00
2009-07-03 03:34:06 +00:00
2008-10-10 16:32:29 +00:00
2011-03-31 11:26:23 -03:00
2009-12-16 07:20:12 -08:00
2008-10-10 16:32:29 +00:00
2011-03-17 13:08:27 -03:00
2008-10-10 16:32:29 +00:00
2011-03-16 09:54:02 -04:00
2009-09-27 23:27:04 -04:00
2008-10-10 16:32:29 +00:00
2009-12-16 03:48:54 +00:00
2011-08-15 18:31:32 -07:00
2008-10-10 16:32:29 +00:00
2009-09-28 00:24:23 -04:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-20 14:40:31 -07:00
2009-03-13 01:20:48 -04:00
2008-10-10 16:32:29 +00:00
2011-02-17 14:16:30 -08:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2011-02-10 10:22:14 -06:00
2010-10-07 14:08:55 +01:00
2010-08-14 22:26:51 +02:00
2008-10-10 16:32:29 +00:00
2009-06-16 19:47:51 -07:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2010-06-09 11:12:36 +02:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2011-01-13 17:32:47 -08:00
2009-01-05 18:15:25 +00:00
2008-10-10 16:32:29 +00:00
2011-06-27 14:13:09 -07:00
2009-01-05 08:40:14 +10:30
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2009-06-11 21:02:17 +02:00
2010-03-06 22:54:10 +00:00
2008-11-26 22:22:41 +00:00
2008-10-10 16:32:29 +00:00
2010-03-12 15:52:42 -08:00
2008-10-10 16:32:29 +00:00
2009-04-02 00:20:15 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2010-10-18 19:58:50 +02:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2011-04-15 12:55:18 -05:00
2008-10-10 16:32:29 +00:00
2008-11-26 22:22:36 +00:00
2012-06-01 15:12:53 +08:00
2009-07-03 03:34:11 +00:00
2008-10-10 16:32:29 +00:00
2010-03-12 15:52:38 -08:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2010-08-07 18:15:50 +02:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-20 14:40:31 -07:00
2008-10-10 16:32:29 +00:00
2011-05-25 08:39:43 -07:00
2009-10-12 13:26:31 -07:00
2008-10-10 16:32:29 +00:00
2009-12-14 23:55:32 +01:00
2009-12-14 23:55:32 +01:00
2008-10-10 16:32:29 +00:00
2008-10-20 14:40:31 -07:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2009-02-01 11:01:27 +05:30
2009-09-27 23:07:23 -04:00
2010-10-07 14:08:55 +01:00
2010-08-10 13:47:39 -07:00
2008-10-10 16:32:29 +00:00
2010-05-14 11:13:27 +02:00
2008-10-10 16:32:29 +00:00
2009-07-27 12:10:38 -07:00
2009-07-03 03:34:09 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2011-03-23 19:47:18 -07:00
2010-03-06 22:54:09 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2011-08-15 18:31:32 -07:00
2008-10-10 16:32:30 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00