pmaports/device/testing/linux-asus-tf101/02-fix_static_vma_address.patch
Oliver Smith 64035ac463
device/*: move to device/testing/* (!1063)
Prepare for better device categorization by moving everything to testing
subdir first.

[skip-ci]: chicken-egg problem: passing pmaports CI depends on pmbootstrap MR
				depends on this MR

Related: postmarketos#16
2020-03-14 08:35:32 +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);