From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by kanga.kvack.org (Postfix) with ESMTP id 93E2B6B0262 for ; Wed, 6 Apr 2016 08:29:26 -0400 (EDT) Received: by mail-oi0-f50.google.com with SMTP id y204so55378998oie.3 for ; Wed, 06 Apr 2016 05:29:26 -0700 (PDT) Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0071.outbound.protection.outlook.com. [157.56.112.71]) by mx.google.com with ESMTPS id w2si923816oib.0.2016.04.06.05.29.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Apr 2016 05:29:25 -0700 (PDT) Subject: Re: [PATCH 10/10] arch: fix has_transparent_hugepage() References: <20160406065806.GC3078@gmail.com> From: Chris Metcalf Message-ID: <57050111.3070507@mellanox.com> Date: Wed, 6 Apr 2016 08:29:05 -0400 MIME-Version: 1.0 In-Reply-To: <20160406065806.GC3078@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Ingo Molnar , Hugh Dickins Cc: 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 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. -- Chris Metcalf, Mellanox Technologies http://www.mellanox.com -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org