Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mm-sources 2.6.9-rc3-mm2 compile error CONFIG_4KSTACKS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
esprout
n00b
n00b


Joined: 09 Jan 2003
Posts: 22

PostPosted: Wed Oct 06, 2004 2:37 pm    Post subject: mm-sources 2.6.9-rc3-mm2 compile error CONFIG_4KSTACKS Reply with quote

When you have CONFIG_4KSTACKS not set, then compiling mm-sources-2.6.9-rc3-mm2 gives an error at irq.o:

CC arch/i386/kernel/irq.o
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 onlyonce
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

Seems someone in the spanish forum also found the same issue:

https://forums.gentoo.org/viewtopic.php?t=233041

Any ideas what causes this and how to fix it? I need to have CONFIG_4KSTACKS not set in order to enable reiser4 support.
Back to top
View user's profile Send private message
fallow
Bodhisattva
Bodhisattva


Joined: 08 Jan 2004
Posts: 2208
Location: Poland

PostPosted: Wed Oct 06, 2004 4:04 pm    Post subject: Reply with quote

i think it`s here
http://lkml.org/lkml/2004/10/4/38

Code:

--- linux-2.6.9-rc3-mm2/arch/i386/kernel/irq.c.old2004-10-04 12:30:08.600490264 +0200
+++ linux-2.6.9-rc3-mm2/arch/i386/kernel/irq.c2004-10-04 12:27:44.632376744 +0200
@@ -199,6 +199,7 @@
 
 atomic_t irq_err_count;
 
+#ifdef CONFIG_4KSTACKS
 int is_irq_stack_ptr(struct task_struct *task, void *p)
 {
 unsigned long off;
@@ -213,6 +214,7 @@
 
 return 0;
 }
+#endif
 
 /*
  * /proc/interrupts printing:


greetz :)
_________________
"Time is a companion that goes with us on a journey. It reminds us to cherish each moment, because it will never come again. What we leave behind is not as important as how we have lived" J-L. Picard ;)
Back to top
View user's profile Send private message
jdong
n00b
n00b


Joined: 01 Mar 2004
Posts: 41

PostPosted: Wed Oct 06, 2004 5:07 pm    Post subject: Reply with quote

I love that... get rid of the function if it doesn't work!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum