drm/nouveau: include drm/drm_edid.h only where needed
Subsystems (3)
PATCH 1/1 drm/nouveau: include drm/drm_edid.h only where needed
Including drm_edid.h from nouveau_connector.h causes the rebuild of 15 files when drm_edid.h is modified, while there are only a few files that actually need to include drm_edid.h.
Signed-off-by Jani Nikula <[email protected]>
--- drivers/gpu/drm/nouveau/dispnv50/head.c | 1 + drivers/gpu/drm/nouveau/nouveau_connector.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/nouveau/dispnv50/head.c +1 -0
@@ -32,6 +32,7 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_edid.h> #include <drm/drm_vblank.h> #include "nouveau_connector.h"
drivers/gpu/drm/nouveau/nouveau_connector.h +1 -1
@@ -35,7 +35,6 @@#include <drm/display/drm_dp_helper.h> #include <drm/drm_crtc.h> -#include <drm/drm_edid.h> #include <drm/drm_encoder.h> #include <drm/drm_util.h>
@@ -44,6 +43,7 @@struct nvkm_i2c_port ;struct dcb_output ; +struct edid ;#ifdef CONFIG_DRM_NOUVEAU_BACKLIGHT struct nouveau_backlight {
Signature · 1 line
2.39.2
Quoted 3 lines · Jani Nikula
Including
drm_edid.hfromnouveau_connector.hcauses the rebuild of 15 files whendrm_edid.his modified, while there are only a few files that actually need to includedrm_edid.h.
Ping?
Quoted 39 lines
Signed-off-by Jani Nikula <[email protected]>--- drivers/gpu/drm/nouveau/dispnv50/head.c | 1 + drivers/gpu/drm/nouveau/nouveau_connector.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/nouveau/dispnv50/head.c +1
-0@@ -32,6 +32,7 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_edid.h> #include <drm/drm_vblank.h> #include "nouveau_connector.h" drivers/gpu/drm/nouveau/nouveau_connector.h +1
-1@@ -35,7 +35,6 @@#include <drm/display/drm_dp_helper.h> #include <drm/drm_crtc.h> -#include <drm/drm_edid.h> #include <drm/drm_encoder.h> #include <drm/drm_util.h> @@ -44,6 +43,7 @@struct nvkm_i2c_port ;struct dcb_output ; +struct edid ;#ifdef CONFIG_DRM_NOUVEAU_BACKLIGHT struct nouveau_backlight {
Signature · 1 line
Jani Nikula, Intel