From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751384AbcGNPTr (ORCPT ); Thu, 14 Jul 2016 11:19:47 -0400 Received: from mail.windriver.com ([147.11.1.11]:62774 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751084AbcGNPTp (ORCPT ); Thu, 14 Jul 2016 11:19:45 -0400 Date: Thu, 14 Jul 2016 11:18:39 -0400 From: Paul Gortmaker To: Ingo Molnar CC: , Arjan van de Ven , Boris Ostrovsky , David Vrabel , "H. Peter Anvin" , Ingo Molnar , Juergen Gross , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Thomas Gleixner , , , Subject: Re: [PATCH 0/8] x86: audit and remove needless module.h includes Message-ID: <20160714151835.GO4194@windriver.com> References: <20160714001901.31603-1-paul.gortmaker@windriver.com> <20160714130443.GA27637@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160714130443.GA27637@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Re: [PATCH 0/8] x86: audit and remove needless module.h includes] On 14/07/2016 (Thu 15:04) Ingo Molnar wrote: > > * Paul Gortmaker wrote: > > > To that end, I have done allmodconfig, allyesconfig and allnoconfig > > for both 32 bit and 64 bit x86 with these changes on the linux-next > > from today, which presumably has an up to date copy of tip in it. > > It does, still I get this on allnoconfig with your patches applied: Took me a while to figure out why I didn't see this; I was able to finally reproduce it on x86-32 with allnoconfig but CONFIG_SMP=y. > > arch/x86/kernel/setup_percpu.c: In function ‘setup_percpu_segment’: > arch/x86/kernel/setup_percpu.c:159:2: error: implicit declaration of function > ‘pack_descriptor’ [-Werror=implicit-function-declaration] > pack_descriptor(&gdt, per_cpu_offset(cpu), 0xFFFFF, > ^ > arch/x86/kernel/setup_percpu.c:162:2: error: implicit declaration of function > ‘write_gdt_entry’ [-Werror=implicit-function-declaration] > write_gdt_entry(get_cpu_gdt_table(cpu), > ^ > arch/x86/kernel/setup_percpu.c:162:18: error: implicit declaration of function > ‘get_cpu_gdt_table’ [-Werror=implicit-function-declaration] > write_gdt_entry(get_cpu_gdt_table(cpu), All three of these guys live in asm/desc.h and adding that to the top of arch/x86/kernel/setup_percpu.c asm include list seems to fix the reproducer I now have here. > > I'll continue testing with the setup_percpu.c change left out. Let me know if you want a resend or if you want to just add the asm/desc.h locally or ... Paul. -- > > Thanks, > > Ingo