aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0002-drm-Pass-the-user-drm_mode_fb_cmd2-as-const-to-.fb_c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0002-drm-Pass-the-user-drm_mode_fb_cmd2-as-const-to-.fb_c.patch')
-rw-r--r--common/recipes-kernel/linux/files/0002-drm-Pass-the-user-drm_mode_fb_cmd2-as-const-to-.fb_c.patch59
1 files changed, 0 insertions, 59 deletions
diff --git a/common/recipes-kernel/linux/files/0002-drm-Pass-the-user-drm_mode_fb_cmd2-as-const-to-.fb_c.patch b/common/recipes-kernel/linux/files/0002-drm-Pass-the-user-drm_mode_fb_cmd2-as-const-to-.fb_c.patch
deleted file mode 100644
index 609e2d0f..00000000
--- a/common/recipes-kernel/linux/files/0002-drm-Pass-the-user-drm_mode_fb_cmd2-as-const-to-.fb_c.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From e915ae9d87955964538402e0c5510d0161d0072f Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <ville.syrjala@linux.intel.com>
-Date: Wed, 11 Nov 2015 19:11:29 +0200
-Subject: [PATCH 0002/1110] drm: Pass the user drm_mode_fb_cmd2 as const to
- .fb_create()
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Drivers shouldn't clobber the passed in addfb ioctl parameters.
-i915 was doing just that. To prevent it from happening again,
-pass the struct around as const, starting all the way from
-internal_framebuffer_create().
-
-Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
-Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 4 ++--
- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 +-
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
-index 82903ca..1846d65 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
-@@ -530,7 +530,7 @@ static const struct drm_framebuffer_funcs amdgpu_fb_funcs = {
- int
- amdgpu_framebuffer_init(struct drm_device *dev,
- struct amdgpu_framebuffer *rfb,
-- struct drm_mode_fb_cmd2 *mode_cmd,
-+ const struct drm_mode_fb_cmd2 *mode_cmd,
- struct drm_gem_object *obj)
- {
- int ret;
-@@ -547,7 +547,7 @@ amdgpu_framebuffer_init(struct drm_device *dev,
- static struct drm_framebuffer *
- amdgpu_user_framebuffer_create(struct drm_device *dev,
- struct drm_file *file_priv,
-- struct drm_mode_fb_cmd2 *mode_cmd)
-+ const struct drm_mode_fb_cmd2 *mode_cmd)
- {
- struct drm_gem_object *obj;
- struct amdgpu_framebuffer *amdgpu_fb;
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
-index 89df787..cfb48e3 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
-@@ -556,7 +556,7 @@ int amdgpu_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe,
-
- int amdgpu_framebuffer_init(struct drm_device *dev,
- struct amdgpu_framebuffer *rfb,
-- struct drm_mode_fb_cmd2 *mode_cmd,
-+ const struct drm_mode_fb_cmd2 *mode_cmd,
- struct drm_gem_object *obj);
-
- int amdgpufb_remove(struct drm_device *dev, struct drm_framebuffer *fb);
---
-2.7.4
-