habanalabs/gaudi: use lower_32_bits() for casting
Use standard kernel macro to take lower 32 bits of 64-bits variable. Signed-off-by: Rajaravi Krishna Katta <rkatta@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2ba75d3119
commit
b8d852add6
|
@ -8957,7 +8957,7 @@ static int gaudi_add_sync_to_engine_map_entry(
|
|||
*/
|
||||
if (reg_value == 0 || reg_value == 0xffffffff)
|
||||
return 0;
|
||||
reg_value -= (u32)CFG_BASE;
|
||||
reg_value -= lower_32_bits(CFG_BASE);
|
||||
|
||||
/* create a new hash entry */
|
||||
entry = kzalloc(sizeof(*entry), GFP_KERNEL);
|
||||
|
|
Loading…
Reference in New Issue