From 1415283befa0e47df1270d10356a074793664757 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 3 Mar 2023 22:30:04 -0800 Subject: 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 Reviewed-by: Matt Roper Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/xe/xe_gt_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/drm/xe/xe_gt_topology.c') diff --git a/drivers/gpu/drm/xe/xe_gt_topology.c b/drivers/gpu/drm/xe/xe_gt_topology.c index f2cbee53462b..14cf135fd648 100644 --- a/drivers/gpu/drm/xe/xe_gt_topology.c +++ b/drivers/gpu/drm/xe/xe_gt_topology.c @@ -123,7 +123,7 @@ xe_gt_topology_dump(struct xe_gt *gt, struct drm_printer *p) * groupsize and groupnum are non-zero. */ 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) { return find_next_bit(mask, XE_MAX_DSS_FUSE_BITS, groupnum * groupsize); } -- cgit