Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753900AbcDFV60 (ORCPT ); Wed, 6 Apr 2016 17:58:26 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34839 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753363AbcDFV6Y (ORCPT ); Wed, 6 Apr 2016 17:58:24 -0400 Date: Wed, 6 Apr 2016 23:58:19 +0200 From: Ingo Molnar To: Chris Metcalf Cc: Hugh Dickins , Andrew Morton , "Kirill A. Shutemov" , Andrea Arcangeli , Andres Lagar-Cavilla , Yang Shi , Ning Qu , Arnd Bergman , Ralf Baechle , Vineet Gupta , Russell King , Will Deacon , Michael Ellerman , "Aneesh Kumar K.V" , Martin Schwidefsky , Gerald Schaefer , David Miller , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 10/10] arch: fix has_transparent_hugepage() Message-ID: <20160406215819.GA25650@gmail.com> References: <20160406065806.GC3078@gmail.com> <57050111.3070507@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57050111.3070507@mellanox.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: 808 Lines: 29 * Chris Metcalf wrote: > On 4/6/2016 2:58 AM, Ingo Molnar wrote: > >* Hugh Dickins wrote: > > > >>--- a/arch/x86/include/asm/pgtable.h > >>+++ b/arch/x86/include/asm/pgtable.h > >>@@ -181,6 +181,7 @@ static inline int pmd_trans_huge(pmd_t p > >> return (pmd_val(pmd) & (_PAGE_PSE|_PAGE_DEVMAP)) == _PAGE_PSE; > >> } > >>+#define has_transparent_hugepage has_transparent_hugepage > >> static inline int has_transparent_hugepage(void) > >> { > >> return cpu_has_pse; > >Small nit, just writing: > > > > #define has_transparent_hugepage > > > >ought to be enough, right? > > No, since then in hugepage_init() the has_transparent_hugepage() call site > would be left with just a stray pair of parentheses instead of a call. Yes, indeed ... Thanks, Ingo