2002-07-09 16:31:23

by Thunder from the hill

[permalink] [raw]
Subject: WARNING in arch/i386/kernel/init_task.c

Hi,

Compiling 2.5 with the stack patch enabled, I get the following warning
about the union thread_union init_thread_union:

/home/thunder/tmp/thunder-2.5/arch/i386/kernel/init_task.c:39: warning:
initialization from incompatible pointer type

union thread_union init_thread_union
__attribute__((__section__(".data.init_task"))) =
{ {
task: &init_task,
exec_domain: &default_exec_domain,
flags: 0,
cpu: 0,
addr_limit: KERNEL_DS,
irq_stack: &init_irq_union,
} };

Would it be OK to replace irq_stack: &init_irq_union with
&init_irq_union.init_task?

.config used was configallmod

Regards,
Thunder
--
(Use http://www.ebb.org/ungeek if you can't decode)
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$
N--- o? K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G
e++++ h* r--- y-
------END GEEK CODE BLOCK------