All of lore.kernel.org
 help / color / mirror / Atom feed
* Build error on latest git
@ 2009-01-11  9:49 Petr Titera
  2009-01-11 11:57 ` Petr Titera
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Titera @ 2009-01-11  9:49 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1718 bytes --]

Hello,

I'm getting this build error in arch/x86/kernel/mpparse.c using latest git:

arch/x86/kernel/mpparse.c: In function ‘MP_processor_info’:
arch/x86/kernel/mpparse.c:57: error: ‘disabled_cpus’ undeclared (first 
use in this function)
arch/x86/kernel/mpparse.c:57: error: (Each undeclared identifier is 
reported only once
arch/x86/kernel/mpparse.c:57: error: for each function it appears in.)
arch/x86/kernel/mpparse.c: In function ‘MP_bus_info’:
arch/x86/kernel/mpparse.c:85: error: implicit declaration of function 
‘apic_printk’
arch/x86/kernel/mpparse.c:85: error: ‘APIC_VERBOSE’ undeclared (first 
use in this function)
arch/x86/kernel/mpparse.c: In function ‘print_MP_intsrc_info’:
arch/x86/kernel/mpparse.c:156: error: ‘APIC_VERBOSE’ undeclared (first 
use in this function)
arch/x86/kernel/mpparse.c: In function ‘print_mp_irq_info’:
arch/x86/kernel/mpparse.c:164: error: ‘APIC_VERBOSE’ undeclared (first 
use in this function)
arch/x86/kernel/mpparse.c: In function ‘MP_lintsrc_info’:
arch/x86/kernel/mpparse.c:236: error: ‘APIC_VERBOSE’ undeclared (first 
use in this function)
arch/x86/kernel/mpparse.c: In function ‘smp_read_mpc’:
arch/x86/kernel/mpparse.c:395: error: ‘num_processors’ undeclared (first 
use in this function)
arch/x86/kernel/mpparse.c: In function ‘__get_smp_config’:
arch/x86/kernel/mpparse.c:670: error: ‘num_processors’ undeclared (first 
use in this function)
arch/x86/kernel/mpparse.c: In function ‘smp_scan_config’:
arch/x86/kernel/mpparse.c:692: error: ‘APIC_VERBOSE’ undeclared (first 
use in this function)
make[1]: *** [arch/x86/kernel/mpparse.o] Error 1
make: *** [arch/x86/kernel] Error 2

Petr Titera


[-- Attachment #2: .config --]
[-- Type: application/xml, Size: 39861 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build error on latest git
  2009-01-11  9:49 Build error on latest git Petr Titera
@ 2009-01-11 11:57 ` Petr Titera
  2009-01-11 13:06   ` Jaswinder Singh Rajput
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Titera @ 2009-01-11 11:57 UTC (permalink / raw)
  To: linux-kernel

Going through source it seems to me (still building) that it is caused 
by including asm/smp.h only if build with CONFIG_SMP. This patch seems 
to fix this

diff --git a/include/linux/smp.h b/include/linux/smp.h
index b824669..fd51bb9 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -11,6 +11,8 @@
 #include <linux/list.h>
 #include <linux/cpumask.h>
 
+#include <asm/smp.h>
+
 extern void cpu_idle(void);
 
 struct call_single_data {
@@ -30,7 +32,6 @@ extern unsigned int total_cpus;
 #include <linux/kernel.h>
 #include <linux/compiler.h>
 #include <linux/thread_info.h>
-#include <asm/smp.h>
 
 /*
  * main cross-CPU interfaces, handles INIT, TLB flush, STOP, etc.


Petr Titera napsal(a):
> Hello,
>
> I'm getting this build error in arch/x86/kernel/mpparse.c using latest 
> git:
>
> arch/x86/kernel/mpparse.c: In function ‘MP_processor_info’:
> arch/x86/kernel/mpparse.c:57: error: ‘disabled_cpus’ undeclared (first 
> use in this function)
> arch/x86/kernel/mpparse.c:57: error: (Each undeclared identifier is 
> reported only once
> arch/x86/kernel/mpparse.c:57: error: for each function it appears in.)
> arch/x86/kernel/mpparse.c: In function ‘MP_bus_info’:
> arch/x86/kernel/mpparse.c:85: error: implicit declaration of function 
> ‘apic_printk’
> arch/x86/kernel/mpparse.c:85: error: ‘APIC_VERBOSE’ undeclared (first 
> use in this function)
> arch/x86/kernel/mpparse.c: In function ‘print_MP_intsrc_info’:
> arch/x86/kernel/mpparse.c:156: error: ‘APIC_VERBOSE’ undeclared (first 
> use in this function)
> arch/x86/kernel/mpparse.c: In function ‘print_mp_irq_info’:
> arch/x86/kernel/mpparse.c:164: error: ‘APIC_VERBOSE’ undeclared (first 
> use in this function)
> arch/x86/kernel/mpparse.c: In function ‘MP_lintsrc_info’:
> arch/x86/kernel/mpparse.c:236: error: ‘APIC_VERBOSE’ undeclared (first 
> use in this function)
> arch/x86/kernel/mpparse.c: In function ‘smp_read_mpc’:
> arch/x86/kernel/mpparse.c:395: error: ‘num_processors’ undeclared 
> (first use in this function)
> arch/x86/kernel/mpparse.c: In function ‘__get_smp_config’:
> arch/x86/kernel/mpparse.c:670: error: ‘num_processors’ undeclared 
> (first use in this function)
> arch/x86/kernel/mpparse.c: In function ‘smp_scan_config’:
> arch/x86/kernel/mpparse.c:692: error: ‘APIC_VERBOSE’ undeclared (first 
> use in this function)
> make[1]: *** [arch/x86/kernel/mpparse.o] Error 1
> make: *** [arch/x86/kernel] Error 2
>
> Petr Titera


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: Build error on latest git
  2009-01-11 11:57 ` Petr Titera
@ 2009-01-11 13:06   ` Jaswinder Singh Rajput
  2009-01-11 13:08     ` Jaswinder Singh Rajput
  0 siblings, 1 reply; 7+ messages in thread
From: Jaswinder Singh Rajput @ 2009-01-11 13:06 UTC (permalink / raw)
  To: Petr Titera; +Cc: linux-kernel, Jaswinder Singh Rajput, Ingo Molnar

On Sun, Jan 11, 2009 at 5:27 PM, Petr Titera <P.Titera@century.cz> wrote:
> Going through source it seems to me (still building) that it is caused by
> including asm/smp.h only if build with CONFIG_SMP. This patch seems to fix
> this
>
> diff --git a/include/linux/smp.h b/include/linux/smp.h
> index b824669..fd51bb9 100644
> --- a/include/linux/smp.h
> +++ b/include/linux/smp.h
> @@ -11,6 +11,8 @@
> #include <linux/list.h>
> #include <linux/cpumask.h>
>
> +#include <asm/smp.h>
> +
> extern void cpu_idle(void);
>

No, this is wrong.

asm/smp.h should only be included when CONFIG_SMP is defined.

I will send fix of this.

--
JSR

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build error on latest git
  2009-01-11 13:06   ` Jaswinder Singh Rajput
@ 2009-01-11 13:08     ` Jaswinder Singh Rajput
  2009-01-11 13:51       ` Ingo Molnar
  2009-01-11 14:54       ` Petr Titera
  0 siblings, 2 replies; 7+ messages in thread
From: Jaswinder Singh Rajput @ 2009-01-11 13:08 UTC (permalink / raw)
  To: Jaswinder Singh Rajput; +Cc: Petr Titera, linux-kernel, Ingo Molnar

On Sun, 2009-01-11 at 18:36 +0530, Jaswinder Singh Rajput wrote:
> On Sun, Jan 11, 2009 at 5:27 PM, Petr Titera <P.Titera@century.cz> wrote:
> > Going through source it seems to me (still building) that it is caused by
> > including asm/smp.h only if build with CONFIG_SMP. This patch seems to fix
> > this
> >
> > diff --git a/include/linux/smp.h b/include/linux/smp.h
> > index b824669..fd51bb9 100644
> > --- a/include/linux/smp.h
> > +++ b/include/linux/smp.h
> > @@ -11,6 +11,8 @@
> > #include <linux/list.h>
> > #include <linux/cpumask.h>
> >
> > +#include <asm/smp.h>
> > +
> > extern void cpu_idle(void);
> >
> 
> No, this is wrong.
> 
> asm/smp.h should only be included when CONFIG_SMP is defined.
> 
> I will send fix of this.
> 

Here is the temporary fix, later on I will remove non-smp data from
smp.h

Subject: [PATCH] x86: mpparse.c fix compilation error

Impact: fix compilation error

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
 arch/x86/kernel/mpparse.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index 8385d4e..79dae60 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -27,6 +27,7 @@
 #include <asm/e820.h>
 #include <asm/trampoline.h>
 #include <asm/setup.h>
+#include <asm/smp.h>
 
 #include <mach_apic.h>
 #ifdef CONFIG_X86_32
-- 
1.5.6.6




^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: Build error on latest git
  2009-01-11 13:08     ` Jaswinder Singh Rajput
@ 2009-01-11 13:51       ` Ingo Molnar
  2009-01-11 14:54       ` Petr Titera
  1 sibling, 0 replies; 7+ messages in thread
From: Ingo Molnar @ 2009-01-11 13:51 UTC (permalink / raw)
  To: Jaswinder Singh Rajput; +Cc: Jaswinder Singh Rajput, Petr Titera, linux-kernel


* Jaswinder Singh Rajput <jaswinder@infradead.org> wrote:

> On Sun, 2009-01-11 at 18:36 +0530, Jaswinder Singh Rajput wrote:
> > On Sun, Jan 11, 2009 at 5:27 PM, Petr Titera <P.Titera@century.cz> wrote:
> > > Going through source it seems to me (still building) that it is caused by
> > > including asm/smp.h only if build with CONFIG_SMP. This patch seems to fix
> > > this
> > >
> > > diff --git a/include/linux/smp.h b/include/linux/smp.h
> > > index b824669..fd51bb9 100644
> > > --- a/include/linux/smp.h
> > > +++ b/include/linux/smp.h
> > > @@ -11,6 +11,8 @@
> > > #include <linux/list.h>
> > > #include <linux/cpumask.h>
> > >
> > > +#include <asm/smp.h>
> > > +
> > > extern void cpu_idle(void);
> > >
> > 
> > No, this is wrong.
> > 
> > asm/smp.h should only be included when CONFIG_SMP is defined.
> > 
> > I will send fix of this.
> > 
> 
> Here is the temporary fix, later on I will remove non-smp data from
> smp.h
> 
> Subject: [PATCH] x86: mpparse.c fix compilation error
> 
> Impact: fix compilation error
> 
> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
> ---
>  arch/x86/kernel/mpparse.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

applied to tip/x86/urgent, thanks Jaswinder!

	Ingo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build error on latest git
  2009-01-11 13:08     ` Jaswinder Singh Rajput
  2009-01-11 13:51       ` Ingo Molnar
@ 2009-01-11 14:54       ` Petr Titera
  2009-01-11 15:04         ` Jaswinder Singh Rajput
  1 sibling, 1 reply; 7+ messages in thread
From: Petr Titera @ 2009-01-11 14:54 UTC (permalink / raw)
  To: Jaswinder Singh Rajput, linux-kernel

Hmm that was my first try to fix this. But unfortunatelly it fails in 
arch/x86/kernel/apic.c right after that.

Petr

Jaswinder Singh Rajput napsal(a):
> On Sun, 2009-01-11 at 18:36 +0530, Jaswinder Singh Rajput wrote:
>   
>> On Sun, Jan 11, 2009 at 5:27 PM, Petr Titera <P.Titera@century.cz> wrote:
>>     
>>> Going through source it seems to me (still building) that it is caused by
>>> including asm/smp.h only if build with CONFIG_SMP. This patch seems to fix
>>> this
>>>
>>> diff --git a/include/linux/smp.h b/include/linux/smp.h
>>> index b824669..fd51bb9 100644
>>> --- a/include/linux/smp.h
>>> +++ b/include/linux/smp.h
>>> @@ -11,6 +11,8 @@
>>> #include <linux/list.h>
>>> #include <linux/cpumask.h>
>>>
>>> +#include <asm/smp.h>
>>> +
>>> extern void cpu_idle(void);
>>>
>>>       
>> No, this is wrong.
>>
>> asm/smp.h should only be included when CONFIG_SMP is defined.
>>
>> I will send fix of this.
>>
>>     
>
> Here is the temporary fix, later on I will remove non-smp data from
> smp.h
>
> Subject: [PATCH] x86: mpparse.c fix compilation error
>
> Impact: fix compilation error
>
> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
> ---
>  arch/x86/kernel/mpparse.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
> index 8385d4e..79dae60 100644
> --- a/arch/x86/kernel/mpparse.c
> +++ b/arch/x86/kernel/mpparse.c
> @@ -27,6 +27,7 @@
>  #include <asm/e820.h>
>  #include <asm/trampoline.h>
>  #include <asm/setup.h>
> +#include <asm/smp.h>
>  
>  #include <mach_apic.h>
>  #ifdef CONFIG_X86_32
>   


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build error on latest git
  2009-01-11 14:54       ` Petr Titera
@ 2009-01-11 15:04         ` Jaswinder Singh Rajput
  0 siblings, 0 replies; 7+ messages in thread
From: Jaswinder Singh Rajput @ 2009-01-11 15:04 UTC (permalink / raw)
  To: Petr Titera; +Cc: linux-kernel, Ingo Molnar

On Sun, 2009-01-11 at 15:54 +0100, Petr Titera wrote:
> Hmm that was my first try to fix this. But unfortunatelly it fails in 
> arch/x86/kernel/apic.c right after that.
> 

Ingo, please also apply this to x86/urgent

Subject: [PATCH] x86: fix apic.c build error on latest git

Fix this by reintroducing asm/smp.h include in apic.c - later on
I will fix this by removing non-smp data from smp.h

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
 arch/x86/kernel/apic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c
index d2d17b8..b1fd8f6 100644
--- a/arch/x86/kernel/apic.c
+++ b/arch/x86/kernel/apic.c
@@ -48,6 +48,7 @@
 #include <asm/proto.h>
 #include <asm/apic.h>
 #include <asm/i8259.h>
+#include <asm/smp.h>
 
 #include <mach_apic.h>
 #include <mach_apicdef.h>
-- 
1.5.6.6





^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-01-11 15:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-11  9:49 Build error on latest git Petr Titera
2009-01-11 11:57 ` Petr Titera
2009-01-11 13:06   ` Jaswinder Singh Rajput
2009-01-11 13:08     ` Jaswinder Singh Rajput
2009-01-11 13:51       ` Ingo Molnar
2009-01-11 14:54       ` Petr Titera
2009-01-11 15:04         ` Jaswinder Singh Rajput

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.