Geert Uytterhoeven 4c2b5e0fab m68k: Add braces to __pmd(x) initializer to kill compiler warning
With gcc 4.1.2:

    include/linux/swapops.h: In function ‘swp_entry_to_pmd’:
    include/linux/swapops.h:294: warning: missing braces around initializer
    include/linux/swapops.h:294: warning: (near initialization for ‘(anonymous).pmd’)

Due to a GCC zero initializer bug (#53119), the standard "(pmd_t){ 0 }"
initializer is not accepted by all GCC versions.
In addition, on m68k pmd_t is an array instead of a single value, so we
need "(pmd_t){ { 0 }, }" instead of "(pmd_t){ 0 }".

Based on commit 9157259d16a8 ("mm: add pmd_t initializer __pmd() to
work around a GCC bug.") for sparc32.

Fixes: 616b8371539a ("mm: thp: enable thp migration in generic path")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-09-10 09:55:35 -07:00
..
2011-12-10 19:52:48 +01:00
2011-03-31 11:26:23 -03:00
2015-05-13 10:55:42 +02:00
2016-10-30 10:13:55 +01:00
2013-08-14 11:46:30 +02:00
2016-07-03 14:05:28 +02:00
2013-02-26 02:46:08 -05:00
2016-08-07 23:47:19 -04:00
2013-11-13 20:21:46 +01:00
2016-05-28 15:48:57 -04:00
2015-08-25 09:59:19 +02:00
2013-12-08 11:01:47 +01:00
2015-09-28 09:59:45 +02:00
2014-09-29 09:56:19 +10:00
2016-07-03 14:05:28 +02:00
2016-02-29 09:51:44 +01:00
2011-12-10 19:52:47 +01:00
2015-11-23 09:58:30 +01:00
2015-03-15 10:23:30 +01:00
2016-02-29 09:51:44 +01:00
2016-07-03 14:05:28 +02:00
2015-01-13 15:24:03 +02:00
2017-06-19 19:41:48 +02:00
2012-03-28 18:30:02 +01:00
2017-05-15 23:40:22 -04:00
2017-05-15 23:40:22 -04:00
2017-07-03 18:44:22 -04:00
2017-03-20 11:27:28 +01:00
2012-04-22 20:16:50 +02:00