Patchwork [3/3] sparc32: fix build failure on CONFIG_SPARC_LEON

login
register
mail settings
Submitter Namhyung Kim
Date Oct. 25, 2010, 4:07 p.m.
Message ID <1288022849.1689.14.camel@leonhard>
Download mbox | patch
Permalink /patch/69115/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Namhyung Kim - Oct. 25, 2010, 4:07 p.m.
2010-10-25 (월), 09:00 -0700, David Miller:
> From: Namhyung Kim <namhyung@gmail.com>
> Date: Tue, 26 Oct 2010 00:52:38 +0900
> 
> >   CC      arch/sparc/kernel/irq_32.o
> > arch/sparc/kernel/irq_32.c: In function 'request_fast_irq':
> > arch/sparc/kernel/irq_32.c:370:25: error: conflicting types for 'trapbase_cpu1'
> 
> I doubt SMP LEON chips even exist, so better to just anti-dep
> this in arch/sparc/Kconfig

If I understood correctly, you meant this?


          The LEON processor is a synthesizable VHDL model of the
David Miller - Oct. 25, 2010, 4:09 p.m.
From: Namhyung Kim <namhyung@gmail.com>
Date: Tue, 26 Oct 2010 01:07:29 +0900

> 2010-10-25 (월), 09:00 -0700, David Miller:
>> From: Namhyung Kim <namhyung@gmail.com>
>> Date: Tue, 26 Oct 2010 00:52:38 +0900
>> 
>> >   CC      arch/sparc/kernel/irq_32.o
>> > arch/sparc/kernel/irq_32.c: In function 'request_fast_irq':
>> > arch/sparc/kernel/irq_32.c:370:25: error: conflicting types for 'trapbase_cpu1'
>> 
>> I doubt SMP LEON chips even exist, so better to just anti-dep
>> this in arch/sparc/Kconfig
> 
> If I understood correctly, you meant this?

Yes, something like that.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 4db8bc0..a6685ba 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -463,7 +463,7 @@  config SERIAL_CONSOLE
 
 config SPARC_LEON
        bool "Sparc Leon processor family"
-       depends on SPARC32
+       depends on SPARC32 && !SMP
        ---help---
          If you say Y here if you are running on a SPARC-LEON
processor.