From patchwork Wed Sep 27 18:37:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Anholt X-Patchwork-Id: 9974565 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6BAA260375 for ; Wed, 27 Sep 2017 18:38:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B399292B5 for ; Wed, 27 Sep 2017 18:38:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5050F292C4; Wed, 27 Sep 2017 18:38:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B14FB292BF for ; Wed, 27 Sep 2017 18:38:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 466926E7BB; Wed, 27 Sep 2017 18:37:39 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id 295256E041 for ; Wed, 27 Sep 2017 18:37:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 08CFB10A12E9; Wed, 27 Sep 2017 11:37:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iaX51DP8_7sB; Wed, 27 Sep 2017 11:37:36 -0700 (PDT) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 0942B10A122F; Wed, 27 Sep 2017 11:37:36 -0700 (PDT) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 2814D2FE21E2; Wed, 27 Sep 2017 11:37:35 -0700 (PDT) From: Eric Anholt To: intel-gfx@lists.freedesktop.org Date: Wed, 27 Sep 2017 11:37:33 -0700 Message-Id: <20170927183735.14824-1-eric@anholt.net> X-Mailer: git-send-email 2.14.1 Subject: [Intel-gfx] [PATCH i-g-t 1/3] Fix rlim_cur compiler warnings when building on ARM. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Eric Anholt Reviewed-by: Petri Latvala --- benchmarks/prime_lookup.c | 2 +- tests/gem_exec_reuse.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmarks/prime_lookup.c b/benchmarks/prime_lookup.c index e995b766a173..d6c397299fcb 100644 --- a/benchmarks/prime_lookup.c +++ b/benchmarks/prime_lookup.c @@ -143,7 +143,7 @@ static bool allow_files(unsigned min) return false; igt_info("Current file limit is %ld, estimated we need %d\n", - rlim.rlim_cur, min); + (long)rlim.rlim_cur, min); if (rlim.rlim_cur > min) return true; diff --git a/tests/gem_exec_reuse.c b/tests/gem_exec_reuse.c index cdfa9783f5b7..4e3907cf7b52 100644 --- a/tests/gem_exec_reuse.c +++ b/tests/gem_exec_reuse.c @@ -122,7 +122,8 @@ static uint64_t max_open_files(void) if (getrlimit(RLIMIT_NOFILE, &rlim)) rlim.rlim_cur = 64 << 10; - igt_info("Process limit for file descriptors is %lu\n", rlim.rlim_cur); + igt_info("Process limit for file descriptors is %lu\n", + (long)rlim.rlim_cur); return rlim.rlim_cur; }