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:
Chris Wilson 2016-03-10 10:35:37 +00:00
parent 3e0d9ef02c
commit eb59497a83

View File

@ -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;