我試圖在安裝了 Lubuntu 的虛擬機器上編譯 Linux 內核,但出現以下錯誤:
In file included from ubuntu/aufs/aufs.h:45:0,
from ubuntu/aufs/module.c:25:ubuntu/aufs/file.h:
In function ‘au_vm_prfile_set’:ubuntu/aufs/file.h:289:5: error:
‘struct vm_area_struct’ has no member named ‘vm_prfile’
make[3]: *** [ubuntu/aufs/module.o]Error 1
make[2]: *** [ubuntu/aufs] Error 2
make[1]: *** [ubuntu] Error 2
答案1
這是一個錯誤,你需要申請aufs3.12 mmap補丁添加 ”虛擬機器設定檔」:
....
@@ -213,6 +213,7 @@ struct vm_region {
unsigned long vm_top; /* region allocated to here */
unsigned long vm_pgoff; /* the offset in vm_file corresponding to vm_start */
struct file *vm_file; /* the backing file or NULL */
+ **struct file *vm_prfile**; /* the virtual backing file or NULL */