The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Petr Titera <P.Titera@century.cz>
To: linux-kernel@vger.kernel.org
Subject: Re: Build error on latest git
Date: Sun, 11 Jan 2009 12:57:20 +0100	[thread overview]
Message-ID: <4969DEA0.5020301@century.cz> (raw)
In-Reply-To: <4969C096.9060909@century.cz>

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


  reply	other threads:[~2009-01-11 11:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-11  9:49 Build error on latest git Petr Titera
2009-01-11 11:57 ` Petr Titera [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4969DEA0.5020301@century.cz \
    --to=p.titera@century.cz \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox