drm/i915/display: include media/cec-notifier.h and linux/debugfs.h where needed

Use a forward declaration for struct cec_notifier instead of including
media/cec-notifier.h in intel_display_types.h, and only include it where
needed.

Also realize that a lot of places depend on including linux/debugfs.h
via intel_display_types.h -> media/cec-notifier.h -> media/cec.h, and
include that too where needed.

v2: hsw_ips.c also needs debugfs.h (kernel test robot)

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240827104521.4151471-1-jani.nikula@intel.com
This commit is contained in:
Jani Nikula 2024-08-27 13:45:21 +03:00
parent 5cc6529767
commit ae19ba915e
16 changed files with 25 additions and 1 deletions

View File

@ -3,6 +3,8 @@
* Copyright © 2022 Intel Corporation
*/
#include <linux/debugfs.h>
#include "hsw_ips.h"
#include "i915_drv.h"
#include "i915_reg.h"

View File

@ -3,6 +3,8 @@
* Copyright 2024, Intel Corporation.
*/
#include <linux/debugfs.h>
#include "intel_alpm.h"
#include "intel_crtc.h"
#include "intel_de.h"

View File

@ -25,6 +25,7 @@
*
*/
#include <linux/debugfs.h>
#include <linux/firmware.h>
#include <drm/display/drm_dp_helper.h>

View File

@ -21,6 +21,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include <linux/debugfs.h>
#include <linux/time.h>
#include <drm/drm_fixed.h>

View File

@ -3,6 +3,7 @@
* Copyright © 2020 Intel Corporation
*/
#include <linux/debugfs.h>
#include <linux/string_helpers.h>
#include <drm/drm_debugfs.h>

View File

@ -43,7 +43,6 @@
#include <drm/drm_rect.h>
#include <drm/drm_vblank_work.h>
#include <drm/intel/i915_hdcp_interface.h>
#include <media/cec-notifier.h>
#include "gem/i915_gem_object_types.h" /* for to_intel_bo() */
#include "i915_vma.h"
@ -55,6 +54,7 @@
#include "intel_dpll_mgr.h"
#include "intel_wm_types.h"
struct cec_notifier;
struct drm_printer;
struct __intel_global_objs_state;
struct intel_connector;

View File

@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
#include <linux/debugfs.h>
#include <drm/display/drm_dp_helper.h>
#include "i915_drv.h"

View File

@ -3,6 +3,8 @@
* Copyright © 2021 Intel Corporation
*/
#include <linux/debugfs.h>
#include "i915_drv.h"
#include "i915_reg.h"
#include "intel_atomic.h"

View File

@ -38,6 +38,7 @@
* forcibly disable it to allow proper screen updates.
*/
#include <linux/debugfs.h>
#include <linux/string_helpers.h>
#include <drm/drm_blend.h>

View File

@ -41,6 +41,8 @@
#include <drm/drm_probe_helper.h>
#include <drm/intel/intel_lpe_audio.h>
#include <media/cec-notifier.h>
#include "g4x_hdmi.h"
#include "i915_drv.h"
#include "i915_reg.h"

View File

@ -21,6 +21,7 @@
* IN THE SOFTWARE.
*/
#include <linux/debugfs.h>
#include <linux/kernel.h>
#include <drm/drm_probe_helper.h>

View File

@ -26,6 +26,7 @@
*/
#include <linux/acpi.h>
#include <linux/debugfs.h>
#include <linux/dmi.h>
#include <acpi/video.h>

View File

@ -3,6 +3,8 @@
* Copyright © 2020 Intel Corporation
*/
#include <linux/debugfs.h>
#include "g4x_dp.h"
#include "i915_drv.h"
#include "i915_reg.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include <linux/debugfs.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_damage_helper.h>
#include <drm/drm_debugfs.h>

View File

@ -3,6 +3,8 @@
* Copyright © 2023 Intel Corporation
*/
#include <linux/debugfs.h>
#include "i915_drv.h"
#include "i9xx_wm.h"
#include "intel_display_types.h"

View File

@ -3,6 +3,8 @@
* Copyright © 2022 Intel Corporation
*/
#include <linux/debugfs.h>
#include <drm/drm_blend.h>
#include "i915_drv.h"