[OpenAFS-devel] Kernel 2.6.20: ‘struct task_ struct’ has no member named ‘todo’

Marc Dionne marc.dionne@technoconseil.com
Wed, 27 Dec 2006 20:34:01 -0500


Anders Kaseorg wrote:
> The OpenAFS kernel module fails to compile on Ubuntu Feisty with ke=
rnel
> 2.6.20.  This is with the openafs-stable-1_4_x branch in CVS.
> 
> openafs/src/libafs/MODLOAD-2.6.20-2-generic-MP/rx_kmutex.c: In func=
tion
> ‘afs_cv_wait’:
> openafs/src/libafs/MODLOAD-2.6.20-2-generic-MP/rx_kmutex.c:122: err=
or:
> ‘struct task_struct’ has no member named â€=
˜todo’
> openafs/src/libafs/MODLOAD-2.6.20-2-generic-MP/rx_kmutex.c:128: war=
ning:
> implicit declaration of function ‘refrigerator’
> 
> Anders

You might want to try the patch in RT #49890 - it covers all the issues 
I ran into with Fedora rawhide with a 2.6.20 rc1 based kernel.

Besides the refrigerator changes (no more PF_FREEZE, need to include 
freezer.h), there's a change in the INIT_WORK interface and a 
replacement of SLAB_KERNEL with GFP_KERNEL.

Marc