Closed valerierx closed 3 years ago
Since Linux 5.8, mmap_sem has been renamed to mmap_lock according to this patch. The kernel module builds without any error with this patch, I haven't tested it yet since my BCM70015 arrives in a month.
Per the patch:
The proper fix is to replace down_write(&mm->mmap_sem) with mmap_write_lock(mm) and up_write(&mm->mmap_sem) with mmap_write_unlock(mm)
This PR does exactly that. :+1:
Merging.
Since Linux 5.8, mmap_sem has been renamed to mmap_lock according to this patch. The kernel module builds without any error with this patch, I haven't tested it yet since my BCM70015 arrives in a month.