Skip to contentSkip to conversation

drm/sti: restore mode_fixup callback

PATCH In review Arnd Bergmann 2 participants 2 messages Mar 17, 2016

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

PATCH 1/1 drm/sti: restore mode_fixup callback

Commit 8a2fa38fddd3 removed the mode_fixup because it was empty, but 652353e6e561 modified it to call drm_mode_set_crtcinfo() instead.

Both commits are correct, but the merge of the two kept the nonempty version without the reference to it, as shown by the gcc warning:

drm/sti/sti_crtc.c:54:13: error: 'sti_crtc_mode_fixup' defined but not used

This restores the callback pointer to fix the merge.

Reverts: 8a2fa38fddd3 ("drm/sti: removed optional dummy crtc mode_fixup function.")

Fixes 652353e6e561 ("drm/sti: set CRTC modesetting parameters")
Fixes cf481068cdd4 ("Merge branch '2016-02-26-st-drm-next' of http://git.linaro.org/people/benjamin.gaignard/kernel into drm-next")
---
 drivers/gpu/drm/sti/sti_crtc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/sti/sti_crtc.c +1 -0
index fa47f63b5316..505620c7c2c8 100644
@@ -230,6 +230,7 @@ static void sti_crtc_atomic_flush(struct drm_crtc *crtc,
 static const struct drm_crtc_helper_funcs sti_crtc_helper_funcs = {
 	.enable = sti_crtc_enable,
 	.disable = sti_crtc_disabling,
+	.mode_fixup = sti_crtc_mode_fixup,
 	.mode_set = drm_helper_crtc_mode_set,
 	.mode_set_nofb = sti_crtc_mode_set_nofb,
 	.mode_set_base = drm_helper_crtc_mode_set_base,
Signature · 6 lines
2.7.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v1 1/1
#1 lore raw

Thank you Arnd for highlighting this.

Quoted 25 lines · Arnd Bergmann

Commit 8a2fa38fddd3 removed the mode_fixup because it was empty, but 652353e6e561 modified it to call drm_mode_set_crtcinfo() instead.

Both commits are correct, but the merge of the two kept the nonempty version without the reference to it, as shown by the gcc warning:

drm/sti/sti_crtc.c:54:13: error: 'sti_crtc_mode_fixup' defined but not used

This restores the callback pointer to fix the merge.

Reverts: 8a2fa38fddd3 ("drm/sti: removed optional dummy crtc mode_fixup function.")

Fixes 652353e6e561 ("drm/sti: set CRTC modesetting parameters")
Fixes cf481068cdd4 ("Merge branch '2016-02-26-st-drm-next' of http://git.linaro.org/people/benjamin.gaignard/kernel into drm-next")
---
  drivers/gpu/drm/sti/sti_crtc.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/sti/sti_crtc.c +0 -0
index fa47f63b5316..505620c7c2c8 100644

drivers/gpu/drm/sti/sti_crtc.c static void sti_crtc_atomic_flush(struct drm_crtc *crtc, · line 236

Quoted 7 lines
drivers/gpu/drm/sti/sti_crtc.c +1 -0
@@ -230,6 +230,7 @@ static void sti_crtc_atomic_flush(struct drm_crtc *crtc,
  static const struct drm_crtc_helper_funcs sti_crtc_helper_funcs = {
  	.enable = sti_crtc_enable,
  	.disable = sti_crtc_disabling,
+	.mode_fixup = sti_crtc_mode_fixup,
  	.mode_set = drm_helper_crtc_mode_set,
  	.mode_set_nofb = sti_crtc_mode_set_nofb,
  	.mode_set_base = drm_helper_crtc_mode_set_base,

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel