Re: [patch 1/1] sparc32: convert to asm-generic/hardirq.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 25 Sep 2009 14:07:21 -0700 (PDT)
David Miller <davem@xxxxxxxxxxxxx> wrote:

> From: akpm@xxxxxxxxxxxxxxxxxxxx
> Date: Fri, 18 Sep 2009 12:59:03 -0700
> 
> > From: Christoph Hellwig <hch@xxxxxx>
> > 
> > Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> > Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
> > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> 
> I had this in my tree but it breaks the build, so please toss
> this from your queue.  Thanks.
> 
> In file included from include/asm-generic/hardirq.h:6,
>                  from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/hardirq_32.h:11,
>                  from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/hardirq.h:6,
>                  from include/linux/hardirq.h:10,
>                  from include/linux/interrupt.h:12,
>                  from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/irq_32.h:9,
>                  from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/irq.h:6,
>                  from include/linux/irqnr.h:10,
>                  from include/linux/random.h:12,
>                  from include/linux/stackprotector.h:6,
>                  from init/main.c:17:
> include/linux/irq.h:216: error: ___NR_IRQS___ undeclared here (not in a function)

hm, I tried to fix this but my sparc32 cross-compiler broke.

ARCH=sparc:

scripts/mod/empty.c:1: error: -m64 is not supported by this configuration
scripts/mod/empty.c:1: error: -mlong-double-64 not allowed with -m64
scripts/mod/empty.c:1: error: -mcmodel= is not supported on 32 bit systems

  /opt/crosstool/gcc-4.1.0-glibc-2.3.6/sparc-unknown-linux-gnu/bin/sparc-unknown-linux-gnu-gcc -Wp,-MD,scripts/mod/.empty.o.d  -nostdinc -isystem /opt/crosstool/gcc-4.1.0-glibc-2.3.6/sparc-unknown-linux-gnu/lib/gcc/sparc-unknown-linux-gnu/4.1.0/include -Iinclude  -I/usr/src/devel/arch/sparc/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare -Wa,--undeclared-regs -pg -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg    -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)"  -D"KBUILD_MODNAME=KBUILD_STR(empty)" -D"DEBUG_HASH=43" -D"DEBUG_HASH2=50" -c -o scripts/mod/.tmp_empty.o scripts/mod/empty.c

How'd that -m64 get in there?

I haven't tested sparc32 in some time so perhaps I've forgotten the magic sauce.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux