summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon_ttm.h
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2020-11-16 20:36:30 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-11-16 23:56:33 +0300
commit0a2e8d51e4da122ae42907eb569c3edb178c85df (patch)
tree1dd2776ea56a93859cba6c84f4e9738ddc4c621b /drivers/gpu/drm/radeon/radeon_ttm.h
parent4fe1999e44b7b70d3d37f28f73a2b1c59810af91 (diff)
downloadlinux-0a2e8d51e4da122ae42907eb569c3edb178c85df.tar.xz
drm/radeon/radeon_drv: Move 'radeon_mmap()'s prototype to shared header
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_ttm.c:931:5: warning: no previous prototype for ‘radeon_mmap’ [-Wmissing-prototypes] 931 | int radeon_mmap(struct file *filp, struct vm_area_struct *vma) | ^~~~~~~~~~~ Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Gareth Hughes <gareth@valinux.com> Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ttm.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon_ttm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.h b/drivers/gpu/drm/radeon/radeon_ttm.h
index 91ea7141bc81..4d7b90ee2774 100644
--- a/drivers/gpu/drm/radeon/radeon_ttm.h
+++ b/drivers/gpu/drm/radeon/radeon_ttm.h
@@ -32,5 +32,6 @@ struct radeon_device;
int radeon_ttm_init(struct radeon_device *rdev);
void radeon_ttm_fini(struct radeon_device *rdev);
+int radeon_mmap(struct file *filp, struct vm_area_struct *vma);
#endif /* __RADEON_TTM_H__ */