Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1443521

Re: [PATCH 0/8] x86: audit and remove needless module.h includes

From Paul Gortmaker <paul.gortmaker@windriver.com>
Newsgroups linux.kernel
Subject Re: [PATCH 0/8] x86: audit and remove needless module.h includes
Date 2016-07-14 17:20 +0200
Message-ID <rUQAF-2UX-21@gated-at.bofh.it> (permalink)
References <rUCHn-24M-5@gated-at.bofh.it> <rUOyS-1GD-43@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[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@windriver.com> 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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/8] x86: audit and remove needless module.h includes Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-07-14 02:30 +0200
  [PATCH 6/8] x86: xen: audit and remove any unnecessary uses of module.h Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-07-14 02:30 +0200
    Re: [PATCH 6/8] x86: xen: audit and remove any unnecessary uses of  module.h Juergen Gross <jgross@suse.com> - 2016-07-14 06:00 +0200
    [tip:x86/headers] x86/xen: Audit and remove any unnecessary uses of  module.h tip-bot for Paul Gortmaker <tipbot@zytor.com> - 2016-07-14 20:50 +0200
  Re: [PATCH 0/8] x86: audit and remove needless module.h includes Ingo Molnar <mingo@kernel.org> - 2016-07-14 15:10 +0200
    Re: [PATCH 0/8] x86: audit and remove needless module.h includes Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-07-14 17:20 +0200
      Re: [PATCH 0/8] x86: audit and remove needless module.h includes Ingo Molnar <mingo@kernel.org> - 2016-07-14 20:40 +0200
        Re: [PATCH 0/8] x86: audit and remove needless module.h includes Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-07-14 20:50 +0200
          Re: [PATCH 0/8] x86: audit and remove needless module.h includes Ingo Molnar <mingo@kernel.org> - 2016-07-14 21:00 +0200

csiph-web