Mel Gorman
bba3d8c3b3
[PARISC] Redefine ATOMIC_INIT and ATOMIC64_INIT to drop the casts
...
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>
Cc: <stable@vger.kernel.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-07-25 09:08:46 +04: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-07-25 09:08:46 +04:00
2008-10-10 16:32:29 +00:00
2012-03-28 18:30:02 +01:00
2011-07-26 16:49:47 -07:00
2009-06-11 21:02:14 +02:00
2012-06-05 14:10:17 +09: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
2012-03-20 21:48:30 +08:00
2009-01-05 19:11:05 +00:00
2012-04-02 14:41:26 -07:00
2012-06-28 11:44:36 +02:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2011-10-28 14:58:53 +02:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2012-03-28 18:30:02 +01:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2011-09-27 18:08:04 +02:00
2012-03-28 18:30:02 +01: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
2012-03-28 18:30:02 +01: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
2012-02-27 09:35:08 -06:00
2008-10-10 16:32:29 +00:00
2009-09-28 00:24:23 -04:00
2012-05-10 15:12:08 -07: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
2012-05-08 14:19:41 -07:00
2012-06-05 14:10:22 +09:00
2008-10-10 16:32:29 +00:00
2009-06-16 19:47:51 -07:00
2012-04-08 12:48:59 +03:00
2012-03-28 18:30:02 +01: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
2012-03-23 16:58:42 -07:00
2011-07-26 16:49:47 -07: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
2012-05-10 15:12:08 -07: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
2012-02-23 20:19:04 -07:00
2008-10-10 16:32:29 +00:00
2012-05-10 15:12:08 -07: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
2012-05-10 15:12:08 -07:00
2008-10-10 16:32:29 +00:00
2012-05-30 21:04:50 -04:00
2012-05-16 13:15:21 +01:00
2012-05-16 15:16:26 -07:00
2012-03-28 18:30:02 +01:00
2011-07-26 16:49:43 -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
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
2012-05-25 12:35:45 +01:00
2012-02-24 01:37:35 -08:00
2008-10-10 16:32:29 +00:00
2012-03-28 18:30:02 +01:00
2009-12-14 23:55:32 +01:00
2012-05-10 15:12:08 -07:00
2012-05-30 21:04:50 -04: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
2012-03-28 18:30:02 +01:00
2009-09-27 23:07:23 -04:00
2010-08-10 13:47:39 -07:00
2008-10-10 16:32:29 +00:00
2012-06-01 12:58:50 -04:00
2012-03-28 18:30:02 +01: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
2012-01-03 22:55:17 -05:00
2012-05-31 11:14:37 +01:00
2008-10-10 16:32:29 +00:00
2008-10-10 16:32:29 +00:00
2011-07-31 18:18:08 -05: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