Skip to contentSkip to conversation

linux-next: build failure after merge of the drm tree

PATCH Stephen Rothwell 1 participant 1 message Oct 6, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Dave,

After merging the drm tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

drivers/gpu/drm/drm_fb_helper.c: In function 'restore_fbdev_mode':
drivers/gpu/drm/drm_fb_helper.c:448:5: error: 'error' undeclared (first use in this function)

     error = true;
     ^

Caused by commit

03f9abb28c3e ("drm: handle cursor_set2 in restore_fbdev_mode")

Quoted 1 line

From Linus' tree interacting with commit

b7bdf0a87add ("drm/fb-helper: Use -errno return in restore_mode_unlocked")

from the drm tree.

I added the following merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Tue, 6 Oct 2015 12:04:49 +1100
Subject: [PATCH] drm/fb-helper: merge fix for "Use -errno return in restore_mode_unlocked"

---
 drivers/gpu/drm/drm_fb_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_fb_helper.c +1 -1
index 97d1a4633c5c..bd6d4ab27512 100644
@@ -445,7 +445,7 @@ static int restore_fbdev_mode(struct drm_fb_helper *fb_helper)
 		if (crtc->funcs->cursor_set2) {
 			ret = crtc->funcs->cursor_set2(crtc, NULL, 0, 0, 0, 0, 0);
 			if (ret)
-				error = true;
+				return ret;
 		} else if (crtc->funcs->cursor_set) {
 			ret = crtc->funcs->cursor_set(crtc, NULL, 0, 0, 0);
 			if (ret)
Signature · 5 lines
2.5.1

-- 
Cheers,
Stephen Rothwell                    [email protected]