From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753439AbcKHGrs convert rfc822-to-8bit (ORCPT ); Tue, 8 Nov 2016 01:47:48 -0500 Received: from TYO201.gate.nec.co.jp ([210.143.35.51]:62063 "EHLO tyo201.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752963AbcKHGrq (ORCPT ); Tue, 8 Nov 2016 01:47:46 -0500 From: Naoya Horiguchi To: kbuild test robot CC: "kbuild-all@01.org" , "linux-mm@kvack.org" , "Kirill A. Shutemov" , Hugh Dickins , Andrew Morton , Dave Hansen , Andrea Arcangeli , Mel Gorman , Michal Hocko , Vlastimil Babka , Pavel Emelyanov , "Zi Yan" , Balbir Singh , "linux-kernel@vger.kernel.org" , "Naoya Horiguchi" Subject: Re: [PATCH v2 05/12] mm: thp: add core routines for thp/pmd migration Thread-Topic: [PATCH v2 05/12] mm: thp: add core routines for thp/pmd migration Thread-Index: AQHSOU9Q7WDKwpLw/E++HKi9rnTMz6DN0IgAgAA9wgA= Date: Tue, 8 Nov 2016 06:46:55 +0000 Message-ID: <20161108064654.GA474@hori1.linux.bs1.fc.nec.co.jp> References: <1478561517-4317-6-git-send-email-n-horiguchi@ah.jp.nec.com> <201611081136.ZuJrd6uJ%fengguang.wu@intel.com> In-Reply-To: <201611081136.ZuJrd6uJ%fengguang.wu@intel.com> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.101.4] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 08, 2016 at 11:05:52AM +0800, kbuild test robot wrote: > Hi Naoya, > > [auto build test ERROR on mmotm/master] > [also build test ERROR on v4.9-rc4 next-20161028] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Naoya-Horiguchi/mm-x86-move-_PAGE_SWP_SOFT_DIRTY-from-bit-7-to-bit-6/20161108-080615 > base: git://git.cmpxchg.org/linux-mmotm.git master > config: arm-at91_dt_defconfig (attached as .config) > compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 > reproduce: > wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > make.cross ARCH=arm > > All errors (new ones prefixed by >>): > > In file included from fs/proc/task_mmu.c:14:0: > include/linux/swapops.h: In function 'swp_entry_to_pmd': > >> include/linux/swapops.h:216:14: error: empty scalar initializer > pmd_t pmd = {}; > ^ > include/linux/swapops.h:216:14: note: (near initialization for 'pmd') > > vim +216 include/linux/swapops.h > > 210 { > 211 return swp_entry(0, 0); > 212 } > 213 > 214 static inline pmd_t swp_entry_to_pmd(swp_entry_t entry) > 215 { > > 216 pmd_t pmd = {}; > 217 > 218 return pmd; > 219 } Here is an alternative: diff --git a/include/linux/swapops.h b/include/linux/swapops.h index db8a858cc6ff..748c9233b3a5 100644 --- a/include/linux/swapops.h +++ b/include/linux/swapops.h @@ -215,9 +215,7 @@ static inline swp_entry_t pmd_to_swp_entry(pmd_t pmd) static inline pmd_t swp_entry_to_pmd(swp_entry_t entry) { - pmd_t pmd = {}; - - return pmd; + return (pmd_t) { 0 }; } static inline int is_pmd_migration_entry(pmd_t pmd) Thanks, Naoya Horiguchi > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation