From: akpm@linux-foundation.org Subject: + mm-fix-build-of-split-ptlock-code.patch added to -mm tree Date: Fri, 20 Dec 2013 15:19:24 -0800 Message-ID: <52b4d07c.4LKT2/R61ZXvoOD5%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:55306 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753450Ab3LTXTZ (ORCPT ); Fri, 20 Dec 2013 18:19:25 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, kirill.shutemov@linux.intel.com, hughd@google.com, olof@lixom.net Subject: + mm-fix-build-of-split-ptlock-code.patch added to -mm tree To: olof@lixom.net,hughd@google.com,kirill.shutemov@linux.intel.com From: akpm@linux-foundation.org Date: Fri, 20 Dec 2013 15:19:24 -0800 The patch titled Subject: mm: fix build of split ptlock code has been added to the -mm tree. Its filename is mm-fix-build-of-split-ptlock-code.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-fix-build-of-split-ptlock-code.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-fix-build-of-split-ptlock-code.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Olof Johansson Subject: mm: fix build of split ptlock code Commit 597d795a2a78 ("mm: do not allocate page->ptl dynamically, if spinlock_t fits to long") restructures some allocators that are compiled even if USE_SPLIT_PTLOCKS arn't used. It results in compilation failure: mm/memory.c:4282:6: error: 'struct page' has no member named 'ptl' mm/memory.c:4288:12: error: 'struct page' has no member named 'ptl' Add in the missing ifdef. Fixes: 597d795a2a78 ('mm: do not allocate page->ptl dynamically, if spinlock_t fits to long') Signed-off-by: Olof Johansson Cc: Kirill A. Shutemov Cc: Hugh Dickins Signed-off-by: Andrew Morton --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/memory.c~mm-fix-build-of-split-ptlock-code mm/memory.c --- a/mm/memory.c~mm-fix-build-of-split-ptlock-code +++ a/mm/memory.c @@ -4271,7 +4271,7 @@ void copy_user_huge_page(struct page *ds } #endif /* CONFIG_TRANSPARENT_HUGEPAGE || CONFIG_HUGETLBFS */ -#if ALLOC_SPLIT_PTLOCKS +#if USE_SPLIT_PTE_PTLOCKS && ALLOC_SPLIT_PTLOCKS bool ptlock_alloc(struct page *page) { spinlock_t *ptl; _ Patches currently in -mm which might be from olof@lixom.net are origin.patch mm-fix-build-of-split-ptlock-code.patch linux-next.patch