error: ‘VM_RESERVED’ undeclared (first use in this function
從linux 3.7.0開始內核不再支持struct vm_area_struct結構體中flag標志使用值 VM_RESERVED,驅動開發中把
vma->vm_flags |= (VM_IO | VM_LOCKED | VM_RESERVED); 改為 vma->vm_flags |= (VM_IO | VM_LOCKED | (VM_DONTEXPAND | VM_DONTDUMP));
重新編譯內核即可。
本欄目更多精彩內容:http://www.bianceng.cn/OS/Linux/