lkml.org 
[lkml]   [2017]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v4 05/11] mm: thp: enable thp migration in generic path
Date
On 15 Mar 2017, at 4:01, Geert Uytterhoeven wrote:

> On Tue, Mar 14, 2017 at 10:55 PM, Zi Yan <zi.yan@cs.rutgers.edu> wrote:
>>>>> include/linux/swapops.h:223:2: warning: missing braces around initializer [-Wmissing-braces]
>>> return (pmd_t){ 0 };
>>> ^
>>> include/linux/swapops.h:223:2: warning: (near initialization for '(anonymous).pmd') [-Wmissing-braces]
>>
>> I do not have any warning with gcc 6.3.0. This seems to be a GCC bug
>> (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119).
>
> I guess you need
>
> return (pmd_t) { { 0, }};
>
> to kill the warning.

Yeah, that should work. I find the same solution from StackOverflow.

Thanks.

--
Best Regards
Yan Zi
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2017-03-15 17:03    [W:0.070 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site