[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181031094841.cawzzoddkemmufwl@kshutemo-mobl1>
Date: Wed, 31 Oct 2018 12:48:41 +0300
From: "Kirill A. Shutemov" <kirill@...temov.name>
To: Martin Schwidefsky <schwidefsky@...ibm.com>
Cc: Li Wang <liwang@...hat.com>, Guenter Roeck <linux@...ck-us.net>,
Janosch Frank <frankja@...ux.vnet.ibm.com>,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
Linux-MM <linux-mm@...ck.org>
Subject: Re: [PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded
On Wed, Oct 31, 2018 at 10:35:36AM +0100, Martin Schwidefsky wrote:
> > Maybe
> > return __is_defined(__PAGETABLE_P4D_FOLDED);
> >
> > ?
>
> I have tried that, doesn't work. The reason is that the
> __PAGETABLE_xxx_FOLDED defines to not have a value.
>
> #define __PAGETABLE_P4D_FOLDED
> #define __PAGETABLE_PMD_FOLDED
> #define __PAGETABLE_PUD_FOLDED
>
> While the definition of CONFIG_xxx symbols looks like this
>
> #define CONFIG_xxx 1
>
> The __is_defined needs the value for the __take_second_arg trick.
I guess this is easily fixable :)
--
Kirill A. Shutemov
Powered by blists - more mailing lists