From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752317Ab1HPF1S (ORCPT ); Tue, 16 Aug 2011 01:27:18 -0400 Received: from mga09.intel.com ([134.134.136.24]:44144 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262Ab1HPF1R (ORCPT ); Tue, 16 Aug 2011 01:27:17 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,351,1309762800"; d="scan'208";a="38115864" Message-ID: <4E49FFB4.8070601@linux.intel.com> Date: Mon, 15 Aug 2011 22:27:16 -0700 From: "H. Peter Anvin" Organization: Intel Open Source Technology Center User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 MIME-Version: 1.0 To: Linus Torvalds CC: Randy Dunlap , Andy Lutomirski , x86@kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH 3.1-rc2] x86: fix mm/fault.c build References: <20110815101846.58809a89.rdunlap@xenotime.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/15/2011 07:09 PM, Linus Torvalds wrote: > On Mon, Aug 15, 2011 at 10:18 AM, Randy Dunlap wrote: >> From: Randy Dunlap >> >> arch/x86/mm/fault.c needs to include asm/vsyscall.h to fix a >> build error: >> >> arch/x86/mm/fault.c: In function '__bad_area_nosemaphore': >> arch/x86/mm/fault.c:728: error: 'VSYSCALL_START' undeclared (first use in this function) > > Grr. This seems to be one of those "under certain configurations > only". I can trigger it with "allnoconfig", but not with my common > configuration or "allmodconfig" > > I just don't see *why* it ends up being config-related. Can anybody > fill me in? It looks like some header file does a conditional include > of fixmap.h or something. Urgh. I *hate* those kinds of "some configs > work" cases. > It's due to the following in : #ifdef CONFIG_X86_LOCAL_APIC # include # include # ifdef CONFIG_X86_IO_APIC # include # endif #endif pulls in which pulls in , bypassing the fact that arch/x86/mm/fault.c is missing . I'll have a patch for it shortly. -hpa