From eb59497a83323b9fd02e24ae21a78d795d220351 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 10 Mar 2016 10:35:37 +0000 Subject: [PATCH] igt/drv_hangman: 32bit compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/drv_hangman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/drv_hangman.c b/tests/drv_hangman.c index 6ac743f1..f4cdadb8 100644 --- a/tests/drv_hangman.c +++ b/tests/drv_hangman.c @@ -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;