Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752933AbcKGLky (ORCPT ); Mon, 7 Nov 2016 06:40:54 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:34409 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbcKGLkr (ORCPT ); Mon, 7 Nov 2016 06:40:47 -0500 From: "Aneesh Kumar K.V" To: kbuild test robot Cc: kbuild-all@01.org, akpm@linux-foundation.org, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, "Kirill A . Shutemov" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 1/2] mm: move vma_is_anonymous check within pmd_move_must_withdraw In-Reply-To: <201611071732.njM40txT%fengguang.wu@intel.com> References: <201611071732.njM40txT%fengguang.wu@intel.com> Date: Mon, 07 Nov 2016 17:09:36 +0530 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16110711-0012-0000-0000-00001111362C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006040; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00777678; UDB=6.00374439; IPR=6.00554989; BA=6.00004860; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013234; XFM=3.00000011; UTC=2016-11-07 11:39:45 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16110711-0013-0000-0000-000046F1CA72 Message-Id: <8737j3h62v.fsf@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-07_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=2 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611070217 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1794 Lines: 46 kbuild test robot writes: > Hi Aneesh, > > [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/Aneesh-Kumar-K-V/mm-move-vma_is_anonymous-check-within-pmd_move_must_withdraw/20161107-164033 > base: git://git.cmpxchg.org/linux-mmotm.git master > config: i386-randconfig-x006-201645 (attached as .config) > compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 > reproduce: > # save the attached .config to linux build tree > make ARCH=i386 > > All error/warnings (new ones prefixed by >>): > > mm/huge_memory.c: In function 'pmd_move_must_withdraw': >>> mm/huge_memory.c:1441:58: error: 'vma' undeclared (first use in this function) > return (new_pmd_ptl != old_pmd_ptl) && vma_is_anonymous(vma); > ^~~ > mm/huge_memory.c:1441:58: note: each undeclared identifier is reported only once for each function it appears in >>> mm/huge_memory.c:1442:1: warning: control reaches end of non-void function [-Wreturn-type] > } > ^ > > vim +/vma +1441 mm/huge_memory.c > > 1435 /* > 1436 * With split pmd lock we also need to move preallocated > 1437 * PTE page table if new_pmd is on different PMD page table. > 1438 * > 1439 * We also don't deposit and withdraw tables for file pages. > 1440 */ >> 1441 return (new_pmd_ptl != old_pmd_ptl) && vma_is_anonymous(vma); >> 1442 } > 1443 #endif > 1444 > 1445 bool move_huge_pmd(struct vm_area_struct *vma, unsigned long old_addr, > My bad, I didn't test with hugepage enabled for x86. Will fixup in the next update. -aneesh