xfs
[Top] [All Lists]

Re: Build failure with kdb

To: GCS <gcs@xxxxxx>
Subject: Re: Build failure with kdb
From: Stephen Lord <lord@xxxxxxx>
Date: Thu, 28 Feb 2002 06:36:48 -0600
Cc: linux-xfs@xxxxxxxxxxx
References: <20020228132948.A32089@xxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226
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



<Prev in Thread] Current Thread [Next in Thread>