linux-4.11/drivers/gpu/drm/bridge/tc358767.c:715]: (error) Signed integer overflow for expression 'max_tu_symbol<<23'.

David Binderman dcb314 at hotmail.com
Tue May 2 08:38:59 UTC 2017


Hello there,

Source code is

    max_tu_symbol = TU_SIZE_RECOMMENDED - 1;
    tc_write(DP0_MISC, (max_tu_symbol << 23) | TU_SIZE_RECOMMENDED | BPC_8);

and

#define TU_SIZE_RECOMMENDED     (0x3f << 16) /* LSCLK cycles per TU */

So it looks to me like 44 bits are required. Suggest use type long ?

Regards

David Binderman
 



More information about the dri-devel mailing list