[v7,1/9] drm/cma: Update DEFINE_DRM_GEM_CMA_FOPS to add get_unmapped_area
diff mbox

Message ID 1492164819-10513-2-git-send-email-yannick.fertre@st.com
State New
Headers show

Commit Message

Yannick Fertre April 14, 2017, 10:13 a.m. UTC
Missing field get_unmapped_area which is necessary with device without MMU

Signed-off-by: Yannick Fertre <yannick.fertre@st.com>
---
 include/drm/drm_gem_cma_helper.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Neil Armstrong April 14, 2017, 12:49 p.m. UTC | #1
On 04/14/2017 12:13 PM, Yannick Fertre wrote:
> Missing field get_unmapped_area which is necessary with device without MMU
> 
> Signed-off-by: Yannick Fertre <yannick.fertre@st.com>
> ---
>  include/drm/drm_gem_cma_helper.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/drm/drm_gem_cma_helper.h b/include/drm/drm_gem_cma_helper.h
> index f962d33..7320b14 100644
> --- a/include/drm/drm_gem_cma_helper.h
> +++ b/include/drm/drm_gem_cma_helper.h
> @@ -50,6 +50,7 @@ struct drm_gem_cma_object {
>  		.read		= drm_read,\
>  		.llseek		= noop_llseek,\
>  		.mmap		= drm_gem_cma_mmap,\
> +		.get_unmapped_area	= drm_gem_cma_get_unmapped_area,\
>  	}
>  
>  /* free GEM object */
> 

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>

Patch
diff mbox

diff --git a/include/drm/drm_gem_cma_helper.h b/include/drm/drm_gem_cma_helper.h
index f962d33..7320b14 100644
--- a/include/drm/drm_gem_cma_helper.h
+++ b/include/drm/drm_gem_cma_helper.h
@@ -50,6 +50,7 @@  struct drm_gem_cma_object {
 		.read		= drm_read,\
 		.llseek		= noop_llseek,\
 		.mmap		= drm_gem_cma_mmap,\
+		.get_unmapped_area	= drm_gem_cma_get_unmapped_area,\
 	}
 
 /* free GEM object */