[OpenAFS-devel] compiling a kernel module for 2.6.28.1

Dr A V Le Blanc Dr A V Le Blanc <LeBlanc@man.ac.uk>
Mon, 19 Jan 2009 16:17:05 +0000


Has anyone had success compiling a kernel module for 2.6.28.1?  For
1.4.8 I get this:

  CC [M]  /tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vfsops.o
/tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vfsops.c: In function 'afs_init_inodecache':
/tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vfsops.c:330: warning: passing argument 5 of 'kmem_cache_create' from incompatible pointer type
  CC [M]  /tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vm.o
/tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vm.c: In function 'osi_VM_TryToSmush':
/tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vm.c:79: warning: 'invalidate_inode_pages' is deprecated (declared at include/linux/fs.h:1796)
  CC [M]  /tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vnodeops.o
/tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vnodeops.c: In function 'afs_linux_write_end':
/tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vnodeops.c:1777: warning: unused variable 'index'
/tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vnodeops.c: In function 'afs_linux_write_begin':
/tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vnodeops.c:1794: error: implicit declaration of function '__grab_cache_page'
/tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vnodeops.c:1794: warning: assignment makes pointer from integer without a cast
make[6]: *** [/tmp/openafs-1.4.8/src/libafs/MODLOAD-2.6.28.1-MP/osi_vnodeops.o] Error 1

and for 1.5.56, I get this:

  CC [M]  /tmp/openafs-1.5.56/src/libafs/MODLOAD-2.6.28.1-SP/rx.o
/tmp/openafs-1.5.56/src/libafs/MODLOAD-2.6.28.1-SP/rx.c: In function 'rxi_NewCall':
/tmp/openafs-1.5.56/src/libafs/MODLOAD-2.6.28.1-SP/rx.c:2203: error: expected expression before 'do'
/tmp/openafs-1.5.56/src/libafs/MODLOAD-2.6.28.1-SP/rx.c: In function 'rxi_AddRpcStat':
/tmp/openafs-1.5.56/src/libafs/MODLOAD-2.6.28.1-SP/rx.c:7211: warning: value computed is not used
/tmp/openafs-1.5.56/src/libafs/MODLOAD-2.6.28.1-SP/rx.c:7211: warning: value computed is not used
make[6]: *** [/tmp/openafs-1.5.56/src/libafs/MODLOAD-2.6.28.1-SP/rx.o] Error 1

This is on a Debian lenny system with 32-bit architecture, using standard
kernel.org kernel source and with gcc-4.3.2.

     -- Owen