[OpenAFS-devel] Re: Compiling kernel module for 2.6.28.1

Dr A V Le Blanc Dr A V Le Blanc <LeBlanc@man.ac.uk>
Fri, 23 Jan 2009 09:51:36 +0000


I've tried compiling the kernel module from openafs-1.5.57 for kernel
2.6.28.1, and I get this error:

  CC [M]  /tmp/openafs-1.5.57/src/libafs/MODLOAD-2.6.28.1-SP/osi_export.o
/tmp/openafs-1.5.57/src/libafs/MODLOAD-2.6.28.1-SP/osi_export.c: In function 'get_dentry_from_fid':
/tmp/openafs-1.5.57/src/libafs/MODLOAD-2.6.28.1-SP/osi_export.c:525: error: implicit declaration of function 'd_alloc_anon'
/tmp/openafs-1.5.57/src/libafs/MODLOAD-2.6.28.1-SP/osi_export.c:525: warning: assignment makes pointer from integer without a cast
make[6]: *** [/tmp/openafs-1.5.57/src/libafs/MODLOAD-2.6.28.1-SP/osi_export.o] Error 1
make[5]: *** [_module_/tmp/openafs-1.5.57/src/libafs/MODLOAD-2.6.28.1-SP] Error 2

Can it be that 'd_alloc_anon' doesn't exist anymore?  It appears in the
kernel sources only in a file under Documentation, not in any of the
source files.

     -- Owen