flohoff / amifldrv

AMI BIOS Aptio kernel flash driver
23 stars 8 forks source link

Fixed compile bugs related to vm_flags and add compile docs for Fedora and Debian #2

Closed Krizen2000 closed 1 year ago

Krizen2000 commented 1 year ago

Error message:

In function ‘AMI_chrdrv_mmap’:
error: assignment of read-only member ‘vm_flags’

 vma->vm_flags |= VM_LOCKED;

Fix from https://gist.github.com/joanbm/d10e9cbbbb8e245b6e7e27b2db338faf

System: Fedora 38 kernel 6.3.8-200.fc38.x86_64