2004-10-07 07:44:52

by Martin Zwickel

[permalink] [raw]
Subject: 2.6.9-rc3-mm2: compile error in irq.c

Hi there!

I don't know if someone already made a patch that's working, so I'm
posting the compile error here:

arch/i386/kernel/irq.c:203: error: redefinition of `is_irq_stack_ptr'
include/asm/hardirq.h:25: error: `is_irq_stack_ptr' previously defined here
arch/i386/kernel/irq.c: In function `is_irq_stack_ptr':
arch/i386/kernel/irq.c:207: error: `hardirq_stack' undeclared (first use in this function)
arch/i386/kernel/irq.c:207: error: (Each undeclared identifier is reported only once
arch/i386/kernel/irq.c:207: error: for each function it appears in.)
arch/i386/kernel/irq.c:210: error: `softirq_stack' undeclared (first use in this function)
make[1]: *** [arch/i386/kernel/irq.o] Error 1
make: *** [arch/i386/kernel] Error 2


Regards,
Martin

--
MyExcuse:
virus attack, luser responsible

Martin Zwickel <[email protected]>
Research & Development

TechnoTrend AG <http://www.technotrend.de>


Attachments:
(No filename) (913.00 B)
(No filename) (189.00 B)
Download all attachments

2004-10-07 09:06:23

by Martin Zwickel

[permalink] [raw]
Subject: Re: 2.6.9-rc3-mm2: compile error in irq.c

On Thu, 7 Oct 2004 09:44:04 +0200
Martin Zwickel <[email protected]> bubbled:

> Hi there!
>
> I don't know if someone already made a patch that's working, so I'm
> posting the compile error here:
>
> arch/i386/kernel/irq.c:203: error: redefinition of `is_irq_stack_ptr'
> include/asm/hardirq.h:25: error: `is_irq_stack_ptr' previously defined
> here arch/i386/kernel/irq.c: In function `is_irq_stack_ptr':
> arch/i386/kernel/irq.c:207: error: `hardirq_stack' undeclared (first
> use in this function) arch/i386/kernel/irq.c:207: error: (Each
> undeclared identifier is reported only once
> arch/i386/kernel/irq.c:207: error: for each function it appears in.)
> arch/i386/kernel/irq.c:210: error: `softirq_stack' undeclared (first
> use in this function) make[1]: *** [arch/i386/kernel/irq.o] Error 1
> make: *** [arch/i386/kernel] Error 2
>

Hmm, I made an "#ifdef CONFIG_4KSTACKS" around the is_irq_stack_ptr() in
irq.c because the hardirq_stack() is only defined if the 4K-STACKS are
selected.

Is this the correct way?

--
MyExcuse:
Post-it Note Sludge leaked into the monitor.

Martin Zwickel <[email protected]>
Research & Development

TechnoTrend AG <http://www.technotrend.de>


Attachments:
(No filename) (1.18 kB)
(No filename) (189.00 B)
Download all attachments