2.6.9-rc1 compile fix: nfsroot.c
PATCH 1/1 2.6.9-rc1 compile fix: nfsroot.c
Here's an untested patch for this error:
fs/nfs/nfsroot.c: In function `root_nfs_get_handle':fs/nfs/nfsroot.c:499: error: incompatible type for argument 1 of nfs_copy_fh' fs/nfs/nfsroot.c:499: error: incompatible type for argument 2 of nfs_copy_fh'
fs/nfs/nfsroot.c +1 -1
@@ -496,7 +496,7 @@ static int __init root_nfs_get_handle(voprintk (KERN_ERR "Root-NFS: Server returned error %d " "while mounting %s\n" , status, nfs_path); else - nfs_copy_fh(nfs_data.root, fh); + nfs_copy_fh(&nfs_data.root, &fh);return status; }
Signature · 4 lines
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial coreQuoted 5 lines · Russell King
Here's an untested patch for this error:
fs/nfs/nfsroot.c: In function `root_nfs_get_handle':fs/nfs/nfsroot.c:499: error: incompatible type for argument 1 ofnfs_copy_fh' fs/nfs/nfsroot.c:499: error: incompatible type for argument 2 ofnfs_copy_fh'
Compiled and boot-tested here successfully.