Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: rename debugfs_engines files

We shouldn't be using debugfs_ namespace for this functionality. Rename
debugfs_engines.[ch] to intel_gt_engines_debugfs.[ch] and then make
functions, defines and structs follow suit.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210918025754.1254705-2-lucas.demarchi@intel.com

+19 -19
+1 -1
drivers/gpu/drm/i915/Makefile
··· 78 78 79 79 # "Graphics Technology" (aka we talk to the gpu) 80 80 gt-y += \ 81 - gt/debugfs_engines.o \ 82 81 gt/debugfs_gt_pm.o \ 83 82 gt/gen2_engine_cs.o \ 84 83 gt/gen6_engine_cs.o \ ··· 99 100 gt/intel_gt_buffer_pool.o \ 100 101 gt/intel_gt_clock_utils.o \ 101 102 gt/intel_gt_debugfs.o \ 103 + gt/intel_gt_engines_debugfs.o \ 102 104 gt/intel_gt_irq.o \ 103 105 gt/intel_gt_pm.o \ 104 106 gt/intel_gt_pm_irq.o \
+2 -2
drivers/gpu/drm/i915/gt/debugfs_engines.c drivers/gpu/drm/i915/gt/intel_gt_engines_debugfs.c
··· 6 6 7 7 #include <drm/drm_print.h> 8 8 9 - #include "debugfs_engines.h" 10 9 #include "i915_drv.h" /* for_each_engine! */ 11 10 #include "intel_engine.h" 12 11 #include "intel_gt_debugfs.h" 12 + #include "intel_gt_engines_debugfs.h" 13 13 14 14 static int engines_show(struct seq_file *m, void *data) 15 15 { ··· 26 26 } 27 27 DEFINE_INTEL_GT_DEBUGFS_ATTRIBUTE(engines); 28 28 29 - void debugfs_engines_register(struct intel_gt *gt, struct dentry *root) 29 + void intel_gt_engines_debugfs_register(struct intel_gt *gt, struct dentry *root) 30 30 { 31 31 static const struct intel_gt_debugfs_file files[] = { 32 32 { "engines", &engines_fops },
-14
drivers/gpu/drm/i915/gt/debugfs_engines.h
··· 1 - /* SPDX-License-Identifier: MIT */ 2 - /* 3 - * Copyright © 2019 Intel Corporation 4 - */ 5 - 6 - #ifndef DEBUGFS_ENGINES_H 7 - #define DEBUGFS_ENGINES_H 8 - 9 - struct intel_gt; 10 - struct dentry; 11 - 12 - void debugfs_engines_register(struct intel_gt *gt, struct dentry *root); 13 - 14 - #endif /* DEBUGFS_ENGINES_H */
+2 -2
drivers/gpu/drm/i915/gt/intel_gt_debugfs.c
··· 5 5 6 6 #include <linux/debugfs.h> 7 7 8 - #include "debugfs_engines.h" 9 8 #include "debugfs_gt_pm.h" 10 9 #include "i915_drv.h" 11 10 #include "intel_gt_debugfs.h" 11 + #include "intel_gt_engines_debugfs.h" 12 12 #include "intel_sseu_debugfs.h" 13 13 #include "uc/intel_uc_debugfs.h" 14 14 ··· 23 23 if (IS_ERR(root)) 24 24 return; 25 25 26 - debugfs_engines_register(gt, root); 26 + intel_gt_engines_debugfs_register(gt, root); 27 27 debugfs_gt_pm_register(gt, root); 28 28 intel_sseu_debugfs_register(gt, root); 29 29
+14
drivers/gpu/drm/i915/gt/intel_gt_engines_debugfs.h
··· 1 + /* SPDX-License-Identifier: MIT */ 2 + /* 3 + * Copyright © 2019 Intel Corporation 4 + */ 5 + 6 + #ifndef INTEL_GT_ENGINES_DEBUGFS_H 7 + #define INTEL_GT_ENGINES_DEBUGFS_H 8 + 9 + struct intel_gt; 10 + struct dentry; 11 + 12 + void intel_gt_engines_debugfs_register(struct intel_gt *gt, struct dentry *root); 13 + 14 + #endif /* INTEL_GT_ENGINES_DEBUGFS_H */