1

drm/print: drop include debugfs.h and include where needed

Surprisingly many places depend on debugfs.h to be included via
drm_print.h. Fix them.

v3: Also fix armada, ite-it6505, imagination, msm, sti, vc4, and xe

v2: Also fix ivpu and vmwgfx

Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240410141434.157908-1-jani.nikula@intel.com
Acked-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # drm/msm
Acked-by: Matt Coster <matt.coster@imgtec.com> # drm/imagination
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Robert Foss <rfoss@kernel.org> #drm/bridge
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240422121011.4133236-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Jani Nikula 2024-04-22 15:10:10 +03:00
parent cbdbd9ca71
commit 33d5ae6cac
31 changed files with 46 additions and 8 deletions

View File

@ -3,6 +3,8 @@
* Copyright (C) 2020-2023 Intel Corporation
*/
#include <linux/debugfs.h>
#include <drm/drm_debugfs.h>
#include <drm/drm_file.h>
#include <drm/drm_print.h>

View File

@ -5,6 +5,7 @@
*/
#include <linux/ctype.h>
#include <linux/debugfs.h>
#include <linux/module.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>

View File

@ -3,6 +3,7 @@
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/
#include <linux/bits.h>
#include <linux/debugfs.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/err.h>

View File

@ -4,6 +4,8 @@
* Copyright (C) 2017 Broadcom
*/
#include <linux/debugfs.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_bridge.h>
#include <drm/drm_connector.h>

View File

@ -23,13 +23,13 @@
* Rob Clark <robdclark@gmail.com>
*/
#include <linux/stdarg.h>
#include <linux/debugfs.h>
#include <linux/dynamic_debug.h>
#include <linux/io.h>
#include <linux/moduleparam.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/dynamic_debug.h>
#include <linux/stdarg.h>
#include <drm/drm.h>
#include <drm/drm_drv.h>

View File

@ -22,6 +22,7 @@
*
*/
#include <linux/debugfs.h>
#include <linux/firmware.h>
#include "i915_drv.h"

View File

@ -12,6 +12,7 @@
#include <linux/build_bug.h>
#include <linux/dcache.h>
#include <linux/debugfs.h>
#include <linux/sysfs.h>
#include <linux/types.h>

View File

@ -2,6 +2,8 @@
/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
*/
#include <linux/debugfs.h>
#include "dpu_hwio.h"
#include "dpu_hw_catalog.h"
#include "dpu_hw_lm.h"

View File

@ -1,5 +1,7 @@
// SPDX-License-Identifier: MIT
#include <linux/debugfs.h>
#include <linux/string.h>
#include <drm/drm_crtc.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_vblank.h>

View File

@ -26,6 +26,7 @@
* Jerome Glisse
*/
#include <linux/debugfs.h>
#include <linux/firmware.h>
#include <linux/module.h>
#include <linux/pci.h>

View File

@ -26,6 +26,7 @@
* Jerome Glisse
*/
#include <linux/debugfs.h>
#include <linux/pci.h>
#include <linux/seq_file.h>
#include <linux/slab.h>

View File

@ -26,6 +26,7 @@
* Jerome Glisse
*/
#include <linux/debugfs.h>
#include <linux/pci.h>
#include <linux/seq_file.h>
#include <linux/slab.h>

View File

@ -26,11 +26,12 @@
* Jerome Glisse
*/
#include <linux/debugfs.h>
#include <linux/firmware.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <drm/drm_device.h>
#include <drm/drm_vblank.h>

View File

@ -30,6 +30,7 @@
*/
#include <linux/atomic.h>
#include <linux/debugfs.h>
#include <linux/firmware.h>
#include <linux/kref.h>
#include <linux/sched/signal.h>

View File

@ -26,6 +26,7 @@
* Jerome Glisse
*/
#include <linux/debugfs.h>
#include <linux/iosys-map.h>
#include <linux/pci.h>

View File

@ -27,6 +27,8 @@
* Christian König
*/
#include <linux/debugfs.h>
#include <drm/drm_file.h>
#include "radeon.h"

View File

@ -21,6 +21,7 @@
* Alex Deucher <alexdeucher@gmail.com>
*/
#include <linux/debugfs.h>
#include <linux/hwmon-sysfs.h>
#include <linux/hwmon.h>
#include <linux/pci.h>

View File

@ -27,6 +27,8 @@
* Christian König
*/
#include <linux/debugfs.h>
#include <drm/drm_device.h>
#include <drm/drm_file.h>

View File

@ -30,6 +30,7 @@
* Dave Airlie
*/
#include <linux/debugfs.h>
#include <linux/dma-mapping.h>
#include <linux/pagemap.h>
#include <linux/pci.h>

View File

@ -26,6 +26,7 @@
* Jerome Glisse
*/
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/slab.h>

View File

@ -26,6 +26,7 @@
* Jerome Glisse
*/
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/slab.h>

View File

@ -5,6 +5,7 @@
*/
#include <linux/component.h>
#include <linux/debugfs.h>
#include <linux/dma-mapping.h>
#include <linux/kernel.h>
#include <linux/module.h>

View File

@ -27,6 +27,7 @@
#define pr_fmt(fmt) "[TTM DEVICE] " fmt
#include <linux/debugfs.h>
#include <linux/mm.h>
#include <drm/ttm/ttm_bo.h>

View File

@ -22,8 +22,9 @@
* Authors: Christian König
*/
#include <linux/iosys-map.h>
#include <linux/debugfs.h>
#include <linux/io-mapping.h>
#include <linux/iosys-map.h>
#include <linux/scatterlist.h>
#include <drm/ttm/ttm_bo.h>

View File

@ -32,10 +32,11 @@
#define pr_fmt(fmt) "[TTM] " fmt
#include <linux/cc_platform.h>
#include <linux/sched.h>
#include <linux/shmem_fs.h>
#include <linux/debugfs.h>
#include <linux/file.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/shmem_fs.h>
#include <drm/drm_cache.h>
#include <drm/drm_device.h>
#include <drm/drm_util.h>

View File

@ -5,6 +5,7 @@
#ifndef _VC4_DRV_H_
#define _VC4_DRV_H_
#include <linux/debugfs.h>
#include <linux/delay.h>
#include <linux/of.h>
#include <linux/refcount.h>

View File

@ -30,6 +30,8 @@
#include "drm/drm_prime.h"
#include "drm/drm_gem_ttm_helper.h"
#include <linux/debugfs.h>
static void vmw_gem_object_free(struct drm_gem_object *gobj)
{
struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gobj);

View File

@ -5,6 +5,7 @@
#include "xe_debugfs.h"
#include <linux/debugfs.h>
#include <linux/string_helpers.h>
#include <drm/drm_debugfs.h>

View File

@ -5,6 +5,8 @@
#include "xe_gt_debugfs.h"
#include <linux/debugfs.h>
#include <drm/drm_debugfs.h>
#include <drm/drm_managed.h>

View File

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

View File

@ -30,11 +30,11 @@
#include <linux/printk.h>
#include <linux/seq_file.h>
#include <linux/device.h>
#include <linux/debugfs.h>
#include <linux/dynamic_debug.h>
#include <drm/drm.h>
struct debugfs_regset32;
struct drm_device;
/* Do *not* use outside of drm_print.[ch]! */