From patchwork Thu Jan 29 18:47:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 5744681 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 222A2BF440 for ; Thu, 29 Jan 2015 18:47:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 71B7620251 for ; Thu, 29 Jan 2015 18:47:41 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A12922022D for ; Thu, 29 Jan 2015 18:47:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C95A97A00E; Thu, 29 Jan 2015 10:47:38 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by gabe.freedesktop.org (Postfix) with ESMTP id 81DA77A00B for ; Thu, 29 Jan 2015 10:47:37 -0800 (PST) Received: by mail-wi0-f179.google.com with SMTP id l15so28468567wiw.0 for ; Thu, 29 Jan 2015 10:47:36 -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=D6tveWltHeRS8JYiWPySjooBpxSCQXQc3an2G4iaUW4=; b=vWHBYd40IVo0VCecfaP1iqjMDX2OigVwdrsHd+jDgIcm5fPKvvZKzxB+j/34RafnXe YD61qCD2kpwuSgWoKvXwirsJxVMXgCn4Boc8hEYUBXi6GJOr6ja+DILHXl/gfKaDQPUP isXuBpwpZkltHPYna2LgV9lJykM9vw4wlEHYeeK8KrL0e+09LKT/L6iNMA3A214ROUl4 MkKTCrDHAU1bdDpZBy3hOZzMDHfLj/NrqgMtAm2Z8Nut22BJ8KkBecCb9qkyr9CD2PKA nZb6IewTtaykf9tz9xSPz8aIAE6u0XkttOkz11b1KIphSxSMjoNZlD3WxTh023+BU6BX kPJQ== X-Received: by 10.194.250.5 with SMTP id yy5mr3561105wjc.133.1422557256515; Thu, 29 Jan 2015 10:47:36 -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.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jan 2015 10:47:35 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 4/6] drmOpenDevice: silence compiler warning Date: Thu, 29 Jan 2015 18:47:08 +0000 Message-Id: <1422557230-22155-5-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 Under 64bit Android the compiler throws a -Wsign-compare warning. Typecast the variable dev to silence the build. Signed-off-by: Emil Velikov --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index 345325a..b41c1d8 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -394,7 +394,7 @@ wait_for_udev: /* Check if the device node is not what we expect it to be, and recreate it * and try again if so. */ - if (st.st_rdev != dev) { + if (st.st_rdev != (dev_t)dev) { if (!isroot) return DRM_ERR_NOT_ROOT; remove(buf);