summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_gt_pagefault.c
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2023-11-15 17:15:23 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:44:32 +0300
commit3d78923bd07ad99a33b06eaa69194b35ac1637f1 (patch)
treeb10ea7e9fb680482ddb2855f6404998b8ac6f1ed /drivers/gpu/drm/xe/xe_gt_pagefault.c
parent216d62bb241a73b43dc89f67cdb60304f032956c (diff)
downloadlinux-3d78923bd07ad99a33b06eaa69194b35ac1637f1.tar.xz
drm/xe/guc: Promote guc_to_gt/xe helpers to .h
Duplicating these helpers in almost every .c file is a bad idea. Define them as inlines in .h file to allow proper reuse. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gt_pagefault.c')
-rw-r--r--drivers/gpu/drm/xe/xe_gt_pagefault.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_pagefault.c b/drivers/gpu/drm/xe/xe_gt_pagefault.c
index 9fcbf8773b8b..1e083dda0679 100644
--- a/drivers/gpu/drm/xe/xe_gt_pagefault.c
+++ b/drivers/gpu/drm/xe/xe_gt_pagefault.c
@@ -59,12 +59,6 @@ struct acc {
u8 engine_instance;
};
-static struct xe_gt *
-guc_to_gt(struct xe_guc *guc)
-{
- return container_of(guc, struct xe_gt, uc.guc);
-}
-
static bool access_is_atomic(enum access_type access_type)
{
return access_type == ACCESS_TYPE_ATOMIC;