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

Re: Build failure with kdb



GCS wrote:

>Hi!
>
> I have included Ingo's O1 scheduler K3 in the XFS kernel 2.4.18, and I get a
>compile error to kdb. I have tried to find a solution, but no success.
>Can someone help me out? The output is:
>gcc -D__KERNEL__ -I/home/staff/gcs/kernel/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -I /home/staff/gcs/kernel/linux/arch/i386/kdb -DKBUILD_BASENAME=kdbmain  -DEXPORT_SYMTAB -c kdbmain.c
>kdbmain.c: In function `kdb_ps':
>kdbmain.c:2347: warning: implicit declaration of function `task_has_cpu'
>kdbmain.c:2347: structure has no member named `processor'
>make[2]: *** [kdbmain.o] Error 1
>make[2]: Leaving directory `/home/staff/gcs/kernel/linux/kdb'
>
>Thanks,
>GCS
>
Try replacing task_has_cpu(p) with

    p->state == TASK_RUNNING

All this actually effects is the output of the ps command in kdb. Totally
non-essential for xfs itself.

Steve