mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-26 19:26:43 +00:00
igt/drv_hangman: 32bit compilation warning
drv_hangman.c: In function ‘hangcheck_unterminated’: drv_hangman.c:290:27: warning: integer overflow in expression [-Woverflow] int64_t timeout_ns = 100 * NSEC_PER_SEC; /* 100 seconds */ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
3e0d9ef02c
commit
eb59497a83
@ -291,7 +291,7 @@ static void test_error_state_capture(unsigned ring_id,
|
|||||||
* case and it takes a lot more time to wrap, so the acthd can potentially keep
|
* case and it takes a lot more time to wrap, so the acthd can potentially keep
|
||||||
* increasing for a long time
|
* increasing for a long time
|
||||||
*/
|
*/
|
||||||
#define NSEC_PER_SEC 1000000000L
|
#define NSEC_PER_SEC 1000000000LL
|
||||||
static void hangcheck_unterminated(void)
|
static void hangcheck_unterminated(void)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user