Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932279AbbBZUFF (ORCPT ); Thu, 26 Feb 2015 15:05:05 -0500 Received: from filtteri1.pp.htv.fi ([213.243.153.184]:55794 "EHLO filtteri1.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753716AbbBZUFD (ORCPT ); Thu, 26 Feb 2015 15:05:03 -0500 Date: Thu, 26 Feb 2015 22:04:55 +0200 From: Aaro Koskinen To: "Kirill A. Shutemov" Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Howells , Geert Uytterhoeven , Heiko Carstens , Helge Deller , "James E.J. Bottomley" , Koichi Yasutake , Martin Schwidefsky Subject: Re: [PATCHv3 01/17] mm: add missing __PAGETABLE_{PUD,PMD}_FOLDED defines Message-ID: <20150226200455.GB14117@fuloong-minipc.musicnaut.iki.fi> References: <1424950520-90188-1-git-send-email-kirill.shutemov@linux.intel.com> <1424950520-90188-2-git-send-email-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1424950520-90188-2-git-send-email-kirill.shutemov@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1001 Lines: 26 Hi, On Thu, Feb 26, 2015 at 01:35:04PM +0200, Kirill A. Shutemov wrote: > Core mm expects __PAGETABLE_{PUD,PMD}_FOLDED to be defined if these page > table levels folded. Usually, these defines are provided by > and . > > But some architectures fold page table levels in a custom way. They need > to define these macros themself. This patch adds missing defines. > > The patch fixes mm->nr_pmds underflow and eliminates dead __pmd_alloc() > and __pud_alloc() on architectures without these page table levels. > > Signed-off-by: Kirill A. Shutemov > Cc: Aaro Koskinen PA-RISC change: Tested-by: Aaro Koskinen A. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/