[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210809023342.377422-1-julius.victorian.home@gmail.com>
Date: Sun, 8 Aug 2021 22:33:42 -0400
From: Julius Victorian <julius.victorian.home@...il.com>
To: airlied@...ux.ie
Cc: jani.nikula@...ux.intel.com, joonas.lahtinen@...ux.intel.com,
linux-kernel@...r.kernel.org, rodrigo.vivi@...el.com,
daniel@...ll.ch, intel-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org,
Julius <julius.victorian.home@...il.com>
Subject: [PATCH] DRM: i915: i915_perf: Fixed compiler warning
From: Julius <julius.victorian.home@...il.com>
Fixed compiler warning: "left shift of negative value"
Signed-off-by: Julius Victorian <julius.victorian.home@...il.com>
---
drivers/gpu/drm/i915/i915_perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 9f94914958c3..7b852974241e 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -2804,7 +2804,7 @@ get_default_sseu_config(struct intel_sseu *out_sseu,
* all available subslices per slice.
*/
out_sseu->subslice_mask =
- ~(~0 << (hweight8(out_sseu->subslice_mask) / 2));
+ ~(~0U << (hweight8(out_sseu->subslice_mask) / 2));
out_sseu->slice_mask = 0x1;
}
}
--
2.30.2
Powered by blists - more mailing lists