mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
clangd reports many "unused header" warnings throughout the Xe driver. Start working to clean this up by removing unnecessary includes in our .c files and/or replacing them with explicit includes of other headers that were previously being included indirectly. By far the most common offender here was unnecessary inclusion of xe_gt.h. That likely originates from the early days of xe.ko when xe_mmio did not exist and all register accesses, including those unrelated to GTs, were done with GT functions. There's still a lot of additional #include cleanup that can be done in the headers themselves; that will come as a followup series. v2: - Squash the 79-patch series down to a single patch. (MattB) Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://patch.msgid.link/20260115032803.4067824-2-matthew.d.roper@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
31 lines
640 B
C
31 lines
640 B
C
// SPDX-License-Identifier: MIT
|
|
/*
|
|
* Copyright © 2022 Intel Corporation
|
|
*/
|
|
|
|
#include <linux/debugfs.h>
|
|
|
|
#include <drm/drm_debugfs.h>
|
|
|
|
#include "xe_gsc_debugfs.h"
|
|
#include "xe_guc_debugfs.h"
|
|
#include "xe_huc_debugfs.h"
|
|
#include "xe_macros.h"
|
|
#include "xe_uc_debugfs.h"
|
|
#include "xe_uc_types.h"
|
|
|
|
void xe_uc_debugfs_register(struct xe_uc *uc, struct dentry *parent)
|
|
{
|
|
struct dentry *root;
|
|
|
|
root = debugfs_create_dir("uc", parent);
|
|
if (IS_ERR(root)) {
|
|
XE_WARN_ON("Create UC directory failed");
|
|
return;
|
|
}
|
|
|
|
xe_gsc_debugfs_register(&uc->gsc, root);
|
|
xe_guc_debugfs_register(&uc->guc, root);
|
|
xe_huc_debugfs_register(&uc->huc, root);
|
|
}
|