From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:45038 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934083AbeBMPsN (ORCPT ); Tue, 13 Feb 2018 10:48:13 -0500 Date: Tue, 13 Feb 2018 16:46:27 +0100 From: Greg Kroah-Hartman To: Hugh Dickins Cc: Tobias Jakobi , ben.hutchings@codethink.co.uk, bp@suse.de, stable@vger.kernel.org Subject: Re: [stable-4.4.y] compile error with KAISER and no vsyscall emulation Message-ID: <20180213154627.GA14300@kroah.com> References: <3d9557f8-5752-4993-f32a-64335348069f@math.uni-bielefeld.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Sat, Feb 10, 2018 at 04:24:10PM -0800, Hugh Dickins wrote: > On Sat, 10 Feb 2018, Tobias Jakobi wrote: > > Hello, > > > > I noticed a compile error with a recent version (4.4.115) of the 4.4.y branch: > > arch/x86/mm/kaiser.c: In function ‘kaiser_init’: > > arch/x86/mm/kaiser.c:348:8: error: ‘vsyscall_pgprot’ undeclared (first use in > > this function) > > > > It seems like my combination of kernel options doesn't work for KAISER. > > X86_VSYSCALL_EMULATION is not set on my system, while LEGACY_VSYSCALL is set to > > NONE (LEGACY_VSYSCALL_NONE=y). I have managed to get things compiling again, by > > moving the 'extern unsigned long vsyscall_pgprot' outside of the preprocessor > > statement. This works for me, I guess because the code in question is never > > called during runtime anyway (vsyscall_enabled() always returns false). > > > > With best wishes, > > Tobias > > Yes, sorry about that, thanks Tobias. Same error on 4.9 too. > Here's the patch that you correctly suggest, and it's good for both: > > > [PATCH 4.4 and 4.9] kaiser: fix compile error without vsyscall Thanks, now queued up. greg k-h