Hi,
I am trying to build latest kernel sources including AUFS but it is throwing the following errors..Could you plesae help solve these compilation errors on latest kernel 4.6.rc7
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC fs/aufs/module.o
In file included from fs/aufs/branch.h:17:0,
from fs/aufs/aufs.h:24,
from fs/aufs/module.c:11:
fs/aufs/super.h:140:2: error: unknown type name 'vfs_readf_t'
vfs_readf_t si_xread;
^
fs/aufs/super.h:141:2: error: unknown type name 'vfs_writef_t'
vfs_writef_t si_xwrite;
^
In file included from fs/aufs/aufs.h:24:0,
from fs/aufs/module.c:11:
fs/aufs/branch.h:176:20: error: unknown type name 'vfs_readf_t'
ssize_t xino_fread(vfs_readf_t func, struct file file, void buf, size_t size,
^
fs/aufs/branch.h:178:21: error: unknown type name 'vfs_writef_t'
ssize_t xino_fwrite(vfs_writef_t func, struct file file, void buf,
^
In file included from fs/aufs/aufs.h:31:0,
from fs/aufs/module.c:11:
fs/aufs/file.h: In function 'au_vm_prfile_set':
fs/aufs/file.h:270:5: error: 'struct vm_area_struct' has no member named 'vm_prfile'
vma->vm_prfile = file;
^
make[2]: *** [fs/aufs/module.o] Error 1
make[1]: *** [fs/aufs] Error 2
siva
Hello siva,
"siva":
Which git tree and branch are you using?
For linux-4.6-rc7, you should try aufs4.6 branch.
J. R. Okajima
Hi J.R. Okajima,
Thanks for your reply. I have taken the aufs kernel sources from the following location and trying to add it to the latest aufs4.6.rc7 branch.
Hope this is the latest source
git://github.com/sfjro/aufs4-linux.git
siva
"siva":
Ok.
In my previous mail, I mentioned aufs4.6 branch, but it is not released
yet.
So use aufs4.x-rcN branch instead, and apply all necessary patches.
J. R. Okajima
"J. R. Okajima":
Ouch. I made a mistake again.
For aufs4-linux.git, no patches are necessary usually.
Sorry.
J. R. Okajima
Hi J.R. Okajima,
Thanks for your help. I could now build aufs on linux-4.6-rc7 with aufs4.6 branch after applying necessary patches.
Siva.