Skip to content

Commit eb0ff80

Browse files
TinaZhangZWzhenyw
authored andcommitted
drm/i915/gvt: Fix klocwork issues about data size
Add llu suffix and cast operator to fix the klocwork warning about "Operands in a bitwise operation have different size" Signed-off-by: Tina Zhang <[email protected]> Acked-by: Zhenyu Wang <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent dbafc67 commit eb0ff80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/gvt/scheduler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ shadow_context_descriptor_update(struct intel_context *ce,
296296
* Update bits 0-11 of the context descriptor which includes flags
297297
* like GEN8_CTX_* cached in desc_template
298298
*/
299-
desc &= ~(0x3 << GEN8_CTX_ADDRESSING_MODE_SHIFT);
300-
desc |= workload->ctx_desc.addressing_mode <<
299+
desc &= ~(0x3ull << GEN8_CTX_ADDRESSING_MODE_SHIFT);
300+
desc |= (u64)workload->ctx_desc.addressing_mode <<
301301
GEN8_CTX_ADDRESSING_MODE_SHIFT;
302302

303303
ce->lrc_desc = desc;

0 commit comments

Comments
 (0)