Skip to contentSkip to conversation

drm/nouveau: Do not include drm_fb_helper.h

PATCH In review Thomas Zimmermann 2 participants 3 messages Sep 30, 2025 – Oct 3, 2025

Subsystems (3)
lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

PATCH 1/1 drm/nouveau: Do not include drm_fb_helper.h

The driver doesn't need anything from <drm/drm_fb_helper.h>. Remove the include directive.

---
 drivers/gpu/drm/nouveau/dispnv50/disp.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/nouveau/dispnv50/disp.c +0 -1
index e97e39abf3a2..1d4d1bb63326 100644
@@ -40,7 +40,6 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_edid.h>
 #include <drm/drm_eld.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_fixed.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/drm_vblank.h>
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 2 lines

The driver doesn't need anything from <drm/drm_fb_helper.h>. Remove the include directive.

Kind regards,
Petr
...

Quoted 6 lines

+++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c

drivers/gpu/drm/nouveau/dispnv50/disp.c +0 -1
@@ -40,7 +40,6 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_edid.h>
 #include <drm/drm_eld.h>
-#include <drm/drm_fb_helper.h>
#2 lore raw
In reply to Thomas Zimmermann

Hi,

Quoted 13 lines

The driver doesn't need anything from <drm/drm_fb_helper.h>. Remove the include directive.

---
 drivers/gpu/drm/nouveau/dispnv50/disp.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/nouveau/dispnv50/disp.c +0 -0
index e97e39abf3a2..1d4d1bb63326 100644

drivers/gpu/drm/nouveau/dispnv50/disp.c line 45

Quoted 7 lines
drivers/gpu/drm/nouveau/dispnv50/disp.c +0 -1
@@ -40,7 +40,6 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_edid.h>
 #include <drm/drm_eld.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_fixed.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/drm_vblank.h>

it looks to me that at least these 3 aren't needed either:

#include <drm/display/drm_dp_helper.h>
#include <drm/drm_atomic.h>
#include <drm/drm_fixed.h>

But maybe I miss something obvious.

Kind regards,
Petr