Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2018-02-19 Thread Arnd Bergmann
On Thu, Feb 15, 2018 at 10:00 PM, Arnd Bergmann wrote: > On Thu, Feb 15, 2018 at 5:43 PM, Greg KH wrote: >> On Thu, Feb 15, 2018 at 04:37:10PM +0100, Arnd Bergmann wrote: >>> In order to test this, I backported some 35 other (mostly trivial) patches >>> later >>> kernels, and now I have a 4.9.80

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2018-02-15 Thread Arnd Bergmann
On Thu, Feb 15, 2018 at 5:43 PM, Greg KH wrote: > On Thu, Feb 15, 2018 at 04:37:10PM +0100, Arnd Bergmann wrote: >> On Thu, Feb 15, 2018 at 6:43 AM, Greg KH wrote: >> > On Wed, Feb 14, 2018 at 11:12:24PM +0100, Arnd Bergmann wrote: >> >> On Wed, Dec 6, 2017 at 4:08 PM, Dave Hansen >> >> wrote:

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2018-02-15 Thread Arnd Bergmann
On Thu, Feb 15, 2018 at 6:43 AM, Greg KH wrote: > On Wed, Feb 14, 2018 at 11:12:24PM +0100, Arnd Bergmann wrote: >> On Wed, Dec 6, 2017 at 4:08 PM, Dave Hansen >> wrote: >> >> I also saw another warning: >> >> /git/arm-soc/arch/x86/mm/kaiser.c: In function 'kaiser_init': >> /git/arm-soc/arch/x8

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2018-02-15 Thread Greg KH
On Thu, Feb 15, 2018 at 04:37:10PM +0100, Arnd Bergmann wrote: > On Thu, Feb 15, 2018 at 6:43 AM, Greg KH wrote: > > On Wed, Feb 14, 2018 at 11:12:24PM +0100, Arnd Bergmann wrote: > >> On Wed, Dec 6, 2017 at 4:08 PM, Dave Hansen > >> wrote: > > >> > >> I also saw another warning: > >> > >> /git

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2018-02-14 Thread Greg KH
On Wed, Feb 14, 2018 at 11:12:24PM +0100, Arnd Bergmann wrote: > On Wed, Dec 6, 2017 at 4:08 PM, Dave Hansen > wrote: > > On 12/06/2017 07:03 AM, Arnd Bergmann wrote: > >> On Wed, Dec 6, 2017 at 3:15 PM, Arnd Bergmann wrote: > >> > >>> This changes the type to u64 in the architecture-independent

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2018-02-14 Thread Arnd Bergmann
On Wed, Dec 6, 2017 at 4:08 PM, Dave Hansen wrote: > On 12/06/2017 07:03 AM, Arnd Bergmann wrote: >> On Wed, Dec 6, 2017 at 3:15 PM, Arnd Bergmann wrote: >> >>> This changes the type to u64 in the architecture-independent dummy, >>> and to pteval_t in the x86 specific portion that is used when KA

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2017-12-06 Thread Ingo Molnar
* Arnd Bergmann wrote: > On Wed, Dec 6, 2017 at 6:16 PM, Ingo Molnar wrote: > > > > * Arnd Bergmann wrote: > > > >> On Wed, Dec 6, 2017 at 4:08 PM, Dave Hansen > >> wrote: > >> > On 12/06/2017 07:03 AM, Arnd Bergmann wrote: > >> >> On Wed, Dec 6, 2017 at 3:15 PM, Arnd Bergmann wrote: > >> >

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2017-12-06 Thread Arnd Bergmann
On Wed, Dec 6, 2017 at 6:16 PM, Ingo Molnar wrote: > > * Arnd Bergmann wrote: > >> On Wed, Dec 6, 2017 at 4:08 PM, Dave Hansen >> wrote: >> > On 12/06/2017 07:03 AM, Arnd Bergmann wrote: >> >> On Wed, Dec 6, 2017 at 3:15 PM, Arnd Bergmann wrote: >> >> >> >> Maybe it's better to just to the las

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2017-12-06 Thread Ingo Molnar
* Arnd Bergmann wrote: > On Wed, Dec 6, 2017 at 4:08 PM, Dave Hansen > wrote: > > On 12/06/2017 07:03 AM, Arnd Bergmann wrote: > >> On Wed, Dec 6, 2017 at 3:15 PM, Arnd Bergmann wrote: > >> > >> Maybe it's better to just to the last one-line change in > >> include/linux/kaiser.h. > > > > Hi

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2017-12-06 Thread Arnd Bergmann
On Wed, Dec 6, 2017 at 4:08 PM, Dave Hansen wrote: > On 12/06/2017 07:03 AM, Arnd Bergmann wrote: >> On Wed, Dec 6, 2017 at 3:15 PM, Arnd Bergmann wrote: >> >> Maybe it's better to just to the last one-line change in >> include/linux/kaiser.h. > > Hi Arnd, > > Are you hitting this in -next? > >

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2017-12-06 Thread Dave Hansen
On 12/06/2017 07:03 AM, Arnd Bergmann wrote: > On Wed, Dec 6, 2017 at 3:15 PM, Arnd Bergmann wrote: > >> This changes the type to u64 in the architecture-independent dummy, >> and to pteval_t in the x86 specific portion that is used when KAISER >> is enabled, ensuring that the flags can always fi

Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2017-12-06 Thread Arnd Bergmann
On Wed, Dec 6, 2017 at 3:15 PM, Arnd Bergmann wrote: > This changes the type to u64 in the architecture-independent dummy, > and to pteval_t in the x86 specific portion that is used when KAISER > is enabled, ensuring that the flags can always fit. Unfortunately, > pteval_t is not provided by most

[PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2017-12-06 Thread Arnd Bergmann
The new kaiser_add_mapping() function is provided globally and called from x86 code that can be used in configurations without KAISER but with 64-bit page flags, in particular _PAGE_NX, which uses bit 63, leading to a compiler warning: arch/x86/kernel/ldt.c: In function 'alloc_ldt_struct': arch/x8