Re: Linux 2.4.19pre8-ac3 -- thread_info?

J.A. Magallon (jamagallon@able.es)
Wed, 15 May 2002 16:04:55 +0200


On 2002.05.15 Jan Nieuwenhuizen wrote:
>
>It seems that 2.4.19pre8-ac3 introduced the use of thread_info, but
>it's not defined in sched.h?
>
>Greetings,
>Jan.
>
>gcc -D__KERNEL__ -I/var/src/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -O2 -c -o sched.o sched.c
>sched.c: In function `migration_thread':
>sched.c:1595: structure has no member named `thread_info'
>sched.c:1600: structure has no member named `thread_info'
>sched.c:1606: structure has no member named `thread_info'
>sched.c:1574: warning: `cpu_src' might be used uninitialized in this function
>make[2]: *** [sched.o] Error 1
>

Sure it has been added ?
It can be the O1-sched patch or the O1-updates from rml, when extracted from
2.5 still use that.
Just change every occurence of:

p->thread_info->cpu

to

p->cpu.

Hope this helps.

-- 
J.A. Magallon                           #  Let the source be with you...        
mailto:jamagallon@able.es
Mandrake Linux release 8.3 (Cooker) for i586
Linux werewolf 2.4.19-pre8-jam2 #3 SMP lun may 13 00:49:15 CEST 2002 i686
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/