Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752742AbdCOJBP (ORCPT ); Wed, 15 Mar 2017 05:01:15 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:33605 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751461AbdCOJBK (ORCPT ); Wed, 15 Mar 2017 05:01:10 -0400 MIME-Version: 1.0 In-Reply-To: <58C866B6.4040800@cs.rutgers.edu> References: <201703150534.RFh2ClRg%fengguang.wu@intel.com> <58C866B6.4040800@cs.rutgers.edu> From: Geert Uytterhoeven Date: Wed, 15 Mar 2017 10:01:08 +0100 X-Google-Sender-Auth: DO0_SCb674E_Xh1dT-87ErPGuk0 Message-ID: Subject: Re: [PATCH v4 05/11] mm: thp: enable thp migration in generic path To: Zi Yan Cc: kbuild test robot , "kbuild-all@01.org" , "linux-kernel@vger.kernel.org" , Linux MM , "Kirill A. Shutemov" , Andrew Morton , Minchan Kim , Vlastimil Babka , Mel Gorman , Michal Hocko , Naoya Horiguchi , Anshuman Khandual , dnellans@nvidia.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 861 Lines: 25 On Tue, Mar 14, 2017 at 10:55 PM, Zi Yan 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. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds