summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_gt_topology.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2023-03-04 09:30:04 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-20 02:29:45 +0300
commit1415283befa0e47df1270d10356a074793664757 (patch)
tree3f99775d103a70af328a7ea75a6417cf7618d857 /drivers/gpu/drm/xe/xe_gt_topology.h
parent8846ffb457587e5d393a83ce977c3db7c800fe58 (diff)
downloadlinux-1415283befa0e47df1270d10356a074793664757.tar.xz
drm/xe: Constify xe_dss_mask_group_ffs()
Due to how xe_dss_mask_t is implemented, the type is a pointer. Since this is only used for looking up the bits, make it const so it can be used together with a const gt passed around. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gt_topology.h')
-rw-r--r--drivers/gpu/drm/xe/xe_gt_topology.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_topology.h b/drivers/gpu/drm/xe/xe_gt_topology.h
index f47ab1b1269c..5f35deed9128 100644
--- a/drivers/gpu/drm/xe/xe_gt_topology.h
+++ b/drivers/gpu/drm/xe/xe_gt_topology.h
@@ -15,7 +15,7 @@ void xe_gt_topology_init(struct xe_gt *gt);
void xe_gt_topology_dump(struct xe_gt *gt, struct drm_printer *p);
unsigned int
-xe_dss_mask_group_ffs(xe_dss_mask_t mask, int groupsize, int groupnum);
+xe_dss_mask_group_ffs(const xe_dss_mask_t mask, int groupsize, int groupnum);
bool
xe_gt_topology_has_dss_in_quadrant(struct xe_gt *gt, int quad);