linux-next: build failure after merge of the drm-misc tree
Subsystems (3)
Hi all,
After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this:
In file included from drivers/gpu/drm/i915/intel_drv.h:32:0,
from drivers/gpu/drm/i915/intel_display.c:36:
drivers/gpu/drm/i915/intel_display.c: In function 'intel_primary_plane_create':
drivers/gpu/drm/i915/i915_drv.h:2601:40: error: 'struct drm_device' has no member named 'info'
#define INTEL_GEN(dev_priv) ((dev_priv)->info.gen)
^
drivers/gpu/drm/i915/intel_display.c:15077:6: note: in expansion of macro 'INTEL_GEN'
if (INTEL_GEN(dev) >= 9) {
^
drivers/gpu/drm/i915/i915_drv.h:2601:40: error: 'struct drm_device' has no member named 'info'
#define INTEL_GEN(dev_priv) ((dev_priv)->info.gen)
^
drivers/gpu/drm/i915/intel_display.c:15081:13: note: in expansion of macro 'INTEL_GEN'
} else if (INTEL_GEN(dev) >= 4) {
^
drivers/gpu/drm/i915/i915_drv.h:2601:40: error: 'struct drm_device' has no member named 'info'
#define INTEL_GEN(dev_priv) ((dev_priv)->info.gen)
^
drivers/gpu/drm/i915/intel_display.c:15088:6: note: in expansion of macro 'INTEL_GEN'
if (INTEL_GEN(dev) >= 4)
^
drivers/gpu/drm/i915/intel_display.c: In function 'intel_cursor_plane_create':
drivers/gpu/drm/i915/i915_drv.h:2601:40: error: 'struct drm_device' has no member named 'info'
#define INTEL_GEN(dev_priv) ((dev_priv)->info.gen)
^
drivers/gpu/drm/i915/intel_display.c:15231:6: note: in expansion of macro 'INTEL_GEN'
if (INTEL_GEN(dev) >= 4)
^Caused by commit
93ca7e006670 ("drm/i915: Use the per-plane rotation property")
interacting with commit
55b8f2a76dff ("drm/i915: Make INTEL_GEN only take dev_priv")
from the drm-intel tree.
I added this merge fix patch:
From 3d8024ddc9cd584e23e9ff4845a46475972c3d36 Mon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email protected]>
Date: Mon, 24 Oct 2016 11:12:05 +1100
Subject: [PATCH] drm/i915: merge fix for INTEL_GEN API change
Signed-off-by Stephen Rothwell <[email protected]>
--- drivers/gpu/drm/i915/intel_display.c | 9 +++++---- drivers/gpu/drm/i915/intel_sprite.c | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/intel_display.c +5 -4
@@ -15074,18 +15074,18 @@ static struct drm_plane *intel_primary_plane_create(struct drm_device *dev,if (ret) goto fail; -if (INTEL_GEN (dev) >=9 ) { +if (INTEL_GEN (dev_priv) >=9 ) { supported_rotations =DRM_ROTATE_0 |DRM_ROTATE_90 |DRM_ROTATE_180 |DRM_ROTATE_270 ; - }else if (INTEL_GEN (dev) >=4 ) { + }else if (INTEL_GEN (dev_priv) >=4 ) { supported_rotations =DRM_ROTATE_0 |DRM_ROTATE_180 ; }else { supported_rotations =DRM_ROTATE_0 ; } -if (INTEL_GEN (dev) >=4 ) +if (INTEL_GEN (dev_priv) >=4 )drm_plane_create_rotation_property (&primary->base,DRM_ROTATE_0 , supported_rotations);
@@ -15199,6 +15199,7 @@ static struct drm_plane *intel_cursor_plane_create(struct drm_device *dev, {struct intel_plane *cursor =NULL ;struct intel_plane_state *state =NULL ; +struct drm_i915_private *dev_priv =to_i915 (dev);int ret; cursor =kzalloc (sizeof (*cursor),GFP_KERNEL );
@@ -15228,7 +15229,7 @@ static struct drm_plane *intel_cursor_plane_create(struct drm_device *dev,if (ret) goto fail; -if (INTEL_GEN (dev) >=4 ) +if (INTEL_GEN (dev_priv) >=4 ) drm_plane_create_rotation_property(&cursor->base, DRM_ROTATE_0, DRM_ROTATE_0 |
drivers/gpu/drm/i915/intel_sprite.c +1 -1
@@ -1126,7 +1126,7 @@ intel_plane_init(struct drm_device *dev, enum pipe pipe, int plane) goto fail; } -if (INTEL_GEN (dev) >=9 ) { +if (INTEL_GEN (dev_priv) >=9 ) { supported_rotations =DRM_ROTATE_0 |DRM_ROTATE_90 |DRM_ROTATE_180 |DRM_ROTATE_270 ;
Signature · 5 lines
2.8.1 -- Cheers, Stephen Rothwell