[OpenAFS-devel] compiling a kernel module for 2.6.28.1

Simon Wilkinson sxw@inf.ed.ac.uk
Mon, 19 Jan 2009 16:30:33 +0000


On 19 Jan 2009, at 16:17, Dr A V Le Blanc wrote:

> 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

I suspect you need STABLE14-linux-2629-20090115 from
http://www.openafs.org/cgi-bin/wdelta/STABLE14-linux-2629-20090115? 
diff&f=u


> and for 1.5.56, I get this:

1.5.56 is know to be broken for all platforms other than Windows and  
IRIX.

S.