summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_guc_debugfs.c
diff options
context:
space:
mode:
authorFrancois Dugast <francois.dugast@intel.com>2023-07-13 17:20:20 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:37:30 +0300
commitf5b85ab62b0ae0e6b5817312eeb252effaea2453 (patch)
tree2701ff8cc639eb4239a9610d68689b4427638c92 /drivers/gpu/drm/xe/xe_guc_debugfs.c
parent80c58bdf0ea28ccb2e78647d53524ef86486e3ec (diff)
downloadlinux-f5b85ab62b0ae0e6b5817312eeb252effaea2453.tar.xz
drm/xe: Cleanup COMPLEX_MACRO style issues
Remove some style issues of type COMPLEX_MACRO reported by checkpatch. Signed-off-by: Francois Dugast <francois.dugast@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_guc_debugfs.c')
-rw-r--r--drivers/gpu/drm/xe/xe_guc_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_debugfs.c b/drivers/gpu/drm/xe/xe_guc_debugfs.c
index 6b72db4d5bb2..0178b1a2d367 100644
--- a/drivers/gpu/drm/xe/xe_guc_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_guc_debugfs.c
@@ -87,7 +87,7 @@ void xe_guc_debugfs_register(struct xe_guc *guc, struct dentry *parent)
struct drm_info_list *local;
int i;
-#define DEBUGFS_SIZE ARRAY_SIZE(debugfs_list) * sizeof(struct drm_info_list)
+#define DEBUGFS_SIZE (ARRAY_SIZE(debugfs_list) * sizeof(struct drm_info_list))
local = drmm_kmalloc(&guc_to_xe(guc)->drm, DEBUGFS_SIZE, GFP_KERNEL);
if (!local) {
XE_WARN_ON("Couldn't allocate memory");