From patchwork Thu Jan 29 18:47:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 5744711 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0A1579F38B for ; Thu, 29 Jan 2015 18:47:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4C5392024D for ; Thu, 29 Jan 2015 18:47:45 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 87C222024C for ; Thu, 29 Jan 2015 18:47:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 92B597A00C; Thu, 29 Jan 2015 10:47:43 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by gabe.freedesktop.org (Postfix) with ESMTP id 5469E7A014 for ; Thu, 29 Jan 2015 10:47:39 -0800 (PST) Received: by mail-wi0-f180.google.com with SMTP id h11so28515640wiw.1 for ; Thu, 29 Jan 2015 10:47:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ziMXTlGU0ywUrpARxUxluSbw2kBSFzU1aXh6C4mXJTw=; b=CR7H5m29ATaxhuaT5P0PRbE+FTgoZjpXOAiZf6mS2jbtaNSFSQPDY+EDe7YOYjQev/ iXNuhNyF1GwO0QH/ZSjB48Nn9oIml2yKrnYT4wVV7qai7QWvLTBfrxS9yYQbDZqC87w5 nU0N8amdkZl8GsrbkjRmzL2TZt6E6Q2Ixd44Dps/NYbiDB1DjedEj5e3XuEyfuKvzcSY ZcgvryPAmkyeArqNtQNbGBEaHWHagMuUPgmVotZAF7bkdrv4kDVckIkkUQ8Jyi+mJfHL ULwogZA51eBlUZzTo+C/wuEzmza1yRKBqrbZxHFncOa06cPIOM9dujxXO1yOl3BWqfmx eG9w== X-Received: by 10.194.76.73 with SMTP id i9mr3807279wjw.93.1422557257969; Thu, 29 Jan 2015 10:47:37 -0800 (PST) Received: from arch-laptop.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id hl1sm11558164wjc.18.2015.01.29.10.47.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jan 2015 10:47:36 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 5/6] drmGetStats: silence compiler warning Date: Thu, 29 Jan 2015 18:47:09 +0000 Message-Id: <1422557230-22155-6-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1422557230-22155-1-git-send-email-emil.l.velikov@gmail.com> References: <1422557230-22155-1-git-send-email-emil.l.velikov@gmail.com> Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drm_stats_t::count is of type unsigned long, while i is an int. Make the latter an unsigned int. Spotted as -Wsign-compare warning while building under Android 5. Signed-off-by: Emil Velikov --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index b41c1d8..cc79ab6 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -2213,7 +2213,7 @@ int drmGetClient(int fd, int idx, int *auth, int *pid, int *uid, int drmGetStats(int fd, drmStatsT *stats) { drm_stats_t s; - int i; + unsigned int i; if (drmIoctl(fd, DRM_IOCTL_GET_STATS, &s)) return -errno;