summaryrefslogtreecommitdiff
path: root/tests/drv_hangman.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-03-10 10:35:37 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-03-10 10:58:11 +0000
commiteb59497a83323b9fd02e24ae21a78d795d220351 (patch)
tree436eddab4e1ef0f540c7fe6336b53bb5479500e2 /tests/drv_hangman.c
parent3e0d9ef02cc38ab8b121acfa99ff205305aa4442 (diff)
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>
Diffstat (limited to 'tests/drv_hangman.c')
-rw-r--r--tests/drv_hangman.c2
1 files changed, 1 insertions, 1 deletions
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;