Re: [PATCH 0/8] x86: audit and remove needless module.h includes
From: Paul Gortmaker
Date: Thu Jul 14 2016 - 11:19:50 EST
[Re: [PATCH 0/8] x86: audit and remove needless module.h includes] On 14/07/2016 (Thu 15:04) Ingo Molnar wrote:
>
> * Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx> 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