pmaports/device/linux-asus-tf101/02-fix_static_vma_address.patch
Denny Harijanto 1b353c020a
asus-tf101: USB Networking and Touch Screen Support (!197)
- Reverts few hacky commits that caused USB networking not to work
- Modified atmel drivers used by TF101 to work with libinput

[skip ci]: already built successfully in CI
2019-02-12 22:29:43 +01:00

13 lines
470 B
Diff

diff --git a/mm/rmap.c b/mm/rmap.c
index 8005080fb9e..13b34598b00 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -521,7 +521,7 @@ void page_unlock_anon_vma(struct anon_vma *anon_vma)
* Returns virtual address or -EFAULT if page's index/offset is not
* within the range mapped the @vma.
*/
-inline unsigned long
+static inline unsigned long
vma_address(struct page *page, struct vm_area_struct *vma)
{
pgoff_t pgoff = page->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT);