2018-02-12 16:57:07

by Lennart Sorensen

[permalink] [raw]
Subject: 4.9.80 compile failure with X86_VSYSCALL_EMULATION=n due to 9a0be5af

Commit 9a0be5af added a reference to vsyscall_pgprot in
arch/x86/mm/kaiser.c but that is undefined if X86_VSYSCALL_EMULATION=n
which on an embedded system where you know how all your software is
compiled is quite likely.

Of course the condition is always false with that config so the code
will never be run, but the compiler is unhappy.

--
Len Sorensen


2018-03-21 16:06:25

by Greg KH

[permalink] [raw]
Subject: Re: 4.9.80 compile failure with X86_VSYSCALL_EMULATION=n due to 9a0be5af

On Mon, Feb 12, 2018 at 10:43:25AM -0500, Lennart Sorensen wrote:
> Commit 9a0be5af added a reference to vsyscall_pgprot in
> arch/x86/mm/kaiser.c but that is undefined if X86_VSYSCALL_EMULATION=n
> which on an embedded system where you know how all your software is
> compiled is quite likely.
>
> Of course the condition is always false with that config so the code
> will never be run, but the compiler is unhappy.

What is the compiler error? I have not had any reports of this with all
of the varied builds that we currently run on the stable trees.

thanks,

greg k-h

2018-03-21 16:32:19

by Ben Hutchings

[permalink] [raw]
Subject: Re: 4.9.80 compile failure with X86_VSYSCALL_EMULATION=n due to 9a0be5af

On Wed, 2018-03-21 at 17:04 +0100, Greg Kroah-Hartman wrote:
> On Mon, Feb 12, 2018 at 10:43:25AM -0500, Lennart Sorensen wrote:
> > Commit 9a0be5af added a reference to vsyscall_pgprot in
> > arch/x86/mm/kaiser.c but that is undefined if X86_VSYSCALL_EMULATION=n
> > which on an embedded system where you know how all your software is
> > compiled is quite likely.
> >
> > Of course the condition is always false with that config so the code
> > will never be run, but the compiler is unhappy.
>
> What is the compiler error?  I have not had any reports of this with all
> of the varied builds that we currently run on the stable trees.

You already applied a fix for this ("kaiser: fix compile error without
vsyscall").

Ben.

--
Ben Hutchings
Software Developer, Codethink Ltd.


2018-03-21 16:36:39

by Lennart Sorensen

[permalink] [raw]
Subject: Re: 4.9.80 compile failure with X86_VSYSCALL_EMULATION=n due to 9a0be5af

On Wed, Mar 21, 2018 at 04:31:03PM +0000, Ben Hutchings wrote:
> On Wed, 2018-03-21 at 17:04 +0100, Greg Kroah-Hartman wrote:
> > On Mon, Feb 12, 2018 at 10:43:25AM -0500, Lennart Sorensen wrote:
> > > Commit 9a0be5af added a reference to vsyscall_pgprot in
> > > arch/x86/mm/kaiser.c but that is undefined if X86_VSYSCALL_EMULATION=n
> > > which on an embedded system where you know how all your software is
> > > compiled is quite likely.
> > >
> > > Of course the condition is always false with that config so the code
> > > will never be run, but the compiler is unhappy.
> >
> > What is the compiler error?  I have not had any reports of this with all
> > of the varied builds that we currently run on the stable trees.
>
> You already applied a fix for this ("kaiser: fix compile error without
> vsyscall").

Yeah the fix certainly works fine. I was not the only one reporting it.

--
Len Sorensen

2018-03-21 16:39:09

by Greg KH

[permalink] [raw]
Subject: Re: 4.9.80 compile failure with X86_VSYSCALL_EMULATION=n due to 9a0be5af

On Wed, Mar 21, 2018 at 12:34:38PM -0400, Lennart Sorensen wrote:
> On Wed, Mar 21, 2018 at 04:31:03PM +0000, Ben Hutchings wrote:
> > On Wed, 2018-03-21 at 17:04 +0100, Greg Kroah-Hartman wrote:
> > > On Mon, Feb 12, 2018 at 10:43:25AM -0500, Lennart Sorensen wrote:
> > > > Commit 9a0be5af added a reference to vsyscall_pgprot in
> > > > arch/x86/mm/kaiser.c but that is undefined if X86_VSYSCALL_EMULATION=n
> > > > which on an embedded system where you know how all your software is
> > > > compiled is quite likely.
> > > >
> > > > Of course the condition is always false with that config so the code
> > > > will never be run, but the compiler is unhappy.
> > >
> > > What is the compiler error???I have not had any reports of this with all
> > > of the varied builds that we currently run on the stable trees.
> >
> > You already applied a fix for this ("kaiser: fix compile error without
> > vsyscall").
>
> Yeah the fix certainly works fine. I was not the only one reporting it.

Ah, ok, sorry, was catching up on email...

greg k-h