From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Cyrus-Session-Id: sloti22d1t05-1645646-1522218729-2-17860053970132868958 X-Sieve: CMU Sieve 3.0 X-Spam-known-sender: no X-Spam-score: 0.0 X-Spam-hits: BAYES_00 -1.9, HEADER_FROM_DIFFERENT_DOMAINS 0.249, ME_NOAUTH 0.01, RCVD_IN_DNSWL_HI -5, T_RP_MATCHES_RCVD -0.01, LANGUAGES en, BAYES_USED global, SA_VERSION 3.4.0 X-Spam-source: IP='209.132.180.67', Host='vger.kernel.org', Country='CN', FromHeader='org', MailFrom='org' X-Spam-charsets: plain='utf-8' X-Resolved-to: greg@kroah.com X-Delivered-to: greg@kroah.com X-Mail-from: stable-owner@vger.kernel.org ARC-Seal: i=1; a=rsa-sha256; cv=none; d=messagingengine.com; s=arctest; t=1522218729; b=kEWI2uQGD32ddt2wfpgbGMZZRTcauhSz57v7VRQkS8MO6ia xcYNcLAPCZR0MD0wdDdpDG35XFjRAOzKPYrGymu8R35fbs+/Lp+/KGag5j52G6VT zJQuoUUSOBTmZyOVpDwSE4MnCDgf5sH4sxSMjWCxY3oHcG8pr+ZgrcDOETvD+L/Q 4VrykzFZTaN22F4yRYCnwTYj5LedGGO6qXGch+v/kCi8D7uX7aG7IObFnLCmkV6F 0kfpDghNdDI2tW+Z2l47qzWodWBF20lHR8qqKl/cp1qLQ1X1qR50/cyhUgc0tnKq ZL/gBLeV2iIIOY2N74xivRup8Di8Ws/ixMJAMIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to:sender:list-id; s=arctest; t=1522218729; bh=tV/dYTJ P6OXTXRF43Ozp2SKgu5wLRd/bV0looSONY24=; b=Z12mYFKALLaH9jiQ57CdTS8 QFqQIuOqQzERFaXT4uS38DYx0Y4gobG7UZ9BpQrlW9fwfJ5K+i1ff7GuF3geMHIo YtIB2B7RtWeNW2BxtjoECtrbAOqStkDFAGAzYJm0UXPRDykl8qPGTPArguhCEtw+ pkqT8CkKQ6v2AoYmq81lJdw+TaMUbqmNhFVBsQ8NM+SHAkSK1tAcYdChLzBwbkgS TKiUu4rIv86MrDco2vI0aEvGGPY/xEcHEBG5Ud9kpKkQ2zk/Nv9wVSIPo+CiRJhV +1265Itz5jnM5PRLXpqa5eyWPk1Ba9GnIPXAwvyo7vKA1+YMMiSNm5z4r8r+eLw= = ARC-Authentication-Results: i=1; mx4.messagingengine.com; arc=none (no signatures found); dkim=none (no signatures found); dmarc=none (p=none,has-list-id=yes,d=none) header.from=linuxfoundation.org; iprev=pass policy.iprev=209.132.180.67 (vger.kernel.org); spf=none smtp.mailfrom=stable-owner@vger.kernel.org smtp.helo=vger.kernel.org; x-aligned-from=fail; x-cm=none score=0; x-ptr=pass x-ptr-helo=vger.kernel.org x-ptr-lookup=vger.kernel.org; x-return-mx=pass smtp.domain=vger.kernel.org smtp.result=pass smtp_org.domain=kernel.org smtp_org.result=pass smtp_is_org_domain=no header.domain=linuxfoundation.org header.result=pass header_is_org_domain=yes; x-vs=clean score=-100 state=0 Authentication-Results: mx4.messagingengine.com; arc=none (no signatures found); dkim=none (no signatures found); dmarc=none (p=none,has-list-id=yes,d=none) header.from=linuxfoundation.org; iprev=pass policy.iprev=209.132.180.67 (vger.kernel.org); spf=none smtp.mailfrom=stable-owner@vger.kernel.org smtp.helo=vger.kernel.org; x-aligned-from=fail; x-cm=none score=0; x-ptr=pass x-ptr-helo=vger.kernel.org x-ptr-lookup=vger.kernel.org; x-return-mx=pass smtp.domain=vger.kernel.org smtp.result=pass smtp_org.domain=kernel.org smtp_org.result=pass smtp_is_org_domain=no header.domain=linuxfoundation.org header.result=pass header_is_org_domain=yes; x-vs=clean score=-100 state=0 X-ME-VSCategory: clean X-CM-Envelope: MS4wfPKeOg2XF+Rybpm84LJNBJ1UfW3P08ws/MXqe8NF6a2pzn9hoK5VvPF3vyLkioSC7CrFQ4vhOKBvEwX8mMSmFB2YMoy4Aw/XBBaojagFZDybOFzEobUh NNY/j1q6heYh+Ymh2vQqnKL/KfKYtRGIHdbmyF8ZEyOZilH3JrnFHRw119dRtzdgICceMpJZG1384BV/+q6GgGNsCBG3Ge1XCEq0CuTnBNKNAkaw4MqHN66J X-CM-Analysis: v=2.3 cv=JLoVTfCb c=1 sm=1 tr=0 a=UK1r566ZdBxH71SXbqIOeA==:117 a=UK1r566ZdBxH71SXbqIOeA==:17 a=IkcTkHD0fZMA:10 a=v2DPQv5-lfwA:10 a=CcDkxQVGmiy1nsDGMh0A:9 a=QEXdDO2ut3YA:10 X-ME-CMScore: 0 X-ME-CMCategory: none Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751927AbeC1GcI (ORCPT ); Wed, 28 Mar 2018 02:32:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35632 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750703AbeC1GcH (ORCPT ); Wed, 28 Mar 2018 02:32:07 -0400 Date: Wed, 28 Mar 2018 08:32:02 +0200 From: "gregkh@linuxfoundation.org" To: Nathan Chancellor Cc: "Kani, Toshi" , "dan.rue@linaro.org" , "linux-kernel@vger.kernel.org" , "torvalds@linux-foundation.org" , "bp@suse.de" , "tglx@linutronix.de" , "lious.lilei@hisilicon.com" , "guohanjun@huawei.com" , "wxf.wang@hisilicon.com" , "stable@vger.kernel.org" , "akpm@linux-foundation.org" , "hpa@zytor.com" , "will.deacon@arm.com" , "catalin.marinas@arm.com" , "mingo@redhat.com" , "Hocko, Michal" , "cpandya@codeaurora.org" , "willy@infradead.org" Subject: Re: [PATCH 4.4 20/43] mm/vmalloc: add interfaces to free unmapped page table Message-ID: <20180328063202.GB9547@kroah.com> References: <20180327162716.407986916@linuxfoundation.org> <20180327162717.580646019@linuxfoundation.org> <20180327201700.xmgzgqox3sz3z32r@xps> <20180327203130.GA18921@localhost> <1522183239.2693.240.camel@hpe.com> <20180327204755.GA19436@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180327204755.GA19436@localhost> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: stable-owner@vger.kernel.org X-Mailing-List: stable@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-Mailing-List: linux-kernel@vger.kernel.org List-ID: On Tue, Mar 27, 2018 at 01:47:55PM -0700, Nathan Chancellor wrote: > On Tue, Mar 27, 2018 at 08:40:56PM +0000, Kani, Toshi wrote: > > On Tue, 2018-03-27 at 13:31 -0700, Nathan Chancellor wrote: > > > On Tue, Mar 27, 2018 at 03:17:00PM -0500, Dan Rue wrote: > > > > On Tue, Mar 27, 2018 at 06:27:24PM +0200, Greg Kroah-Hartman wrote: > > > > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > > > > : > > > > > > > > This patch causes the following build error on 4.4 arm64: > > > > > > > > $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=build-arm64 defconfig > > > > $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=build-arm64 > > > > > > > > CC arch/arm64/mm/mmu.o > > > > ../arch/arm64/mm/mmu.c:701:5: error: redefinition of ‘pud_free_pmd_page’ > > > > int pud_free_pmd_page(pud_t *pud) > > > > ^~~~~~~~~~~~~~~~~ > > > > In file included from ../arch/arm64/include/asm/pgtable.h:682:0, > > > > from ../include/linux/mm.h:55, > > > > from ../include/linux/mman.h:4, > > > > from ../arch/arm64/mm/mmu.c:25: > > > > ../include/asm-generic/pgtable.h:777:19: note: previous definition of ‘pud_free_pmd_page’ was here > > > > static inline int pud_free_pmd_page(pud_t *pud) > > > > ^~~~~~~~~~~~~~~~~ > > > > ../arch/arm64/mm/mmu.c:706:5: error: redefinition of ‘pmd_free_pte_page’ > > > > int pmd_free_pte_page(pmd_t *pmd) > > > > ^~~~~~~~~~~~~~~~~ > > > > In file included from ../arch/arm64/include/asm/pgtable.h:682:0, > > > > from ../include/linux/mm.h:55, > > > > from ../include/linux/mman.h:4, > > > > from ../arch/arm64/mm/mmu.c:25: > > > > ../include/asm-generic/pgtable.h:781:19: note: previous definition of ‘pmd_free_pte_page’ was here > > > > static inline int pmd_free_pte_page(pmd_t *pmd) > > > > ^~~~~~~~~~~~~~~~~ > > > > make[2]: *** [../scripts/Makefile.build:270: arch/arm64/mm/mmu.o] Error 1 > > > > make[1]: *** [/home/drue/src/linux/4.4-rc/Makefile:969: arch/arm64/mm] Error 2 > > > > make[1]: Leaving directory '/home/drue/src/linux/4.4-rc/build-arm64' > > > > make: *** [Makefile:152: sub-make] Error 2 > > > > > > > > > > > > > > Both of my arm64 devices built fine with this patch... It seems like > > > the only way to hit that error is if HAVE_ARCH_HUGE_VMAP isn't set, > > > which seems impossible since it is selected by ARM64... > > > > > > Someone smarter than I might have more insight but this patch is > > > unchanged from upstream so I can only assume that this error would > > > manifest there as well. > > > > It appears that HAVE_ARCH_HUGE_VMAP was introduced in 4.6 on arm64. > > Hence the problem in 4.4. > > > > Thanks, > > -Toshi > > > > Ah, thanks for the heads up, since I have 324420bf91f6 ("arm64: add > support for ioremap() block mappings") in my tree due to Linaro's > backport of it for their Linaro Stable Kernel, which serves as a base > for most Android kernels. My apologies for not digging deeper and sorry > for the noise! So should I just drop this patch?