mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-25 18:57:41 +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
|
||||
* increasing for a long time
|
||||
*/
|
||||
#define NSEC_PER_SEC 1000000000L
|
||||
#define NSEC_PER_SEC 1000000000LL
|
||||
static void hangcheck_unterminated(void)
|
||||
{
|
||||
int fd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user