mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] drm: armada: fix armada_gem_vm_fault() to match new signature.
@ 2017-01-31 18:58 Liviu Dudau
  2017-01-31 18:58 ` [PATCH 2/3] drm/etnaviv: Update etnaviv_gem_fault() declaration to match definition Liviu Dudau
  2017-01-31 18:58 ` [PATCH 3/3] drm/omapdrm: Update omap_gem_fault() " Liviu Dudau
  0 siblings, 2 replies; 5+ messages in thread
From: Liviu Dudau @ 2017-01-31 18:58 UTC (permalink / raw)
  To: David Airlie, Russell King, Christian Gmeiner
  Cc: etnaviv, DRI devel, LKML, Liviu Dudau, Dave Jiang, Russell King

Commit 25d3db7600b8 ("mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite
to take only vmf") changes the signature of the .fault hook. Update the
armada_gem_vm_fault() function to match.

Fixes: 25d3db7600b8 (mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf)
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Liviu Dudau <liviu@dudau.co.uk>
---
 drivers/gpu/drm/armada/armada_gem.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/armada/armada_gem.c b/drivers/gpu/drm/armada/armada_gem.c
index a293c8be232c..1ec0419003f3 100644
--- a/drivers/gpu/drm/armada/armada_gem.c
+++ b/drivers/gpu/drm/armada/armada_gem.c
@@ -14,8 +14,9 @@
 #include <drm/armada_drm.h>
 #include "armada_ioctlP.h"
 
-static int armada_gem_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
+static int armada_gem_vm_fault(struct vm_fault *vmf)
 {
+	struct vm_area_struct *vma = vmf->vma;
 	struct armada_gem_object *obj = drm_to_armada_gem(vma->vm_private_data);
 	unsigned long pfn = obj->phys_addr >> PAGE_SHIFT;
 	int ret;
-- 
2.11.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-01  9:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-31 18:58 [PATCH 1/3] drm: armada: fix armada_gem_vm_fault() to match new signature Liviu Dudau
2017-01-31 18:58 ` [PATCH 2/3] drm/etnaviv: Update etnaviv_gem_fault() declaration to match definition Liviu Dudau
2017-02-01  9:26   ` Lucas Stach
2017-02-01  9:45     ` Liviu Dudau
2017-01-31 18:58 ` [PATCH 3/3] drm/omapdrm: Update omap_gem_fault() " Liviu Dudau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®