Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/gem: fix build for mm_get_unmapped_area() call after backmerge

Commit 9ac09bb9feac ("mm: consistently use current->mm in
mm_get_unmapped_area()") upstream dropped a parameter from
mm_get_unmapped_area() while commit 99bda20d6d4c ("drm/gem: Introduce
drm_gem_get_unmapped_area() fop") in drm-misc-next added a new user.

Drop the extra parameter from the call.

Fixes: 7f790dd21a93 ("Merge drm/drm-next into drm-misc-next")
Cc: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Link: https://patch.msgid.link/20251215092706.3218018-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+1 -2
+1 -2
drivers/gpu/drm/drm_gem.c
··· 1299 1299 1300 1300 obj = drm_gem_object_lookup_at_offset(filp, pgoff, len >> PAGE_SHIFT); 1301 1301 if (IS_ERR(obj) || !obj->filp || !obj->filp->f_op->get_unmapped_area) 1302 - return mm_get_unmapped_area(current->mm, filp, uaddr, len, 0, 1303 - flags); 1302 + return mm_get_unmapped_area(filp, uaddr, len, 0, flags); 1304 1303 1305 1304 ret = obj->filp->f_op->get_unmapped_area(obj->filp, uaddr, len, 0, 1306 1305 flags);