From patchwork Sun Dec 11 18:03:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 9469845 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 DD53C60761 for ; Sun, 11 Dec 2016 18:04:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D538B20564 for ; Sun, 11 Dec 2016 18:04:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C92CA2831C; Sun, 11 Dec 2016 18:04:09 +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.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID 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 E053220564 for ; Sun, 11 Dec 2016 18:04:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2BEAF6E06A; Sun, 11 Dec 2016 18:04:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5E0F96E06A for ; Sun, 11 Dec 2016 18:04:02 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id g23so6288006wme.1 for ; Sun, 11 Dec 2016 10:04:02 -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; bh=69CzaV1dQd4WI4LV0N+vrkMqIp3WyDcwl4M8jU8N0y8=; b=ZmBihF64fLVpoAn6EYTs3NLBXbe7gQ+1+AwII+jkPPupKb+XZu4EWWCPAwTTOKWAZi 1OJWnsGiPIul7xmYBKtql04hxIHzzSckvV2Nkzlnf3SfWOhfLmnlzA36og40VRECfoXt aA9uHuRpjsxSdfSDS83Pw0ACg+dUz27Gub2mJ0oExRXSVLN+C/tvrIlXg0IA8Ef3mgip sM0h4rV6bPNtWJKYFAYl5E1SqCEiMTHT/V6IODmN8YbDVL1F0yspOOBHKR4uDAYhQBdc p7V4qxVlbNE1qetdMZxyIgW1TCi378Ltk6F0MGefSwrBP1DUfWfwX2wbNQ6NCsdBJHKA C8RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=69CzaV1dQd4WI4LV0N+vrkMqIp3WyDcwl4M8jU8N0y8=; b=Fs6RlSbw2x+Uxvb7WfMrj5D4wqIzEJZqhlmUclyn02mKbQjU5xzo8/wOJznUtjyevW t0lBqDPcuuD7cnLV/LcHUdCXgYaNfZxeXgTZZnEOWRFePmIKnV5vjjxxcQn7iDIa+AyV e54rsCxc3fiKmcac7eTGmf24aNkt7Rha9ZrV/j4Q/bvAiD/Scm+INB6xoLiz1rVPnPmz bhO04Sp+oNtGIMJ09hkKqoX0xRbkngmwudqcaUWP0H1N8Ew/E7ISe7MFxy1zgZ3PqqIp CXk7LWjHaKb9FAlMeMhx8ZFjaSapxAROe5C3eWZJ1/ntd5X235Mk/C+AXxG2vEG4GZKH 2Ilw== X-Gm-Message-State: AKaTC02+TQ+dKS7b3pAgtQHaFTsJqyd/CIFDnhGsXBSGP5I1IHJO3C5N/U3ays608eaA/A== X-Received: by 10.25.199.145 with SMTP id x139mr9362055lff.142.1481479440715; Sun, 11 Dec 2016 10:04:00 -0800 (PST) Received: from localhost.localdomain ([5.20.238.37]) by smtp.gmail.com with ESMTPSA id y25sm8295562lja.13.2016.12.11.10.03.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Dec 2016 10:04:00 -0800 (PST) From: Grazvydas Ignotas To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] xf86drm: fix sign-compare warning Date: Sun, 11 Dec 2016 20:03:56 +0200 Message-Id: <1481479437-30537-1-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 2.7.4 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-Virus-Scanned: ClamAV using ClamSMTP xf86drm.c:3601:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (expected < sizeof(match)) { ^ Signed-off-by: Grazvydas Ignotas --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index 2e8c956..b5eeeb0 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -3582,7 +3582,7 @@ char *drmGetDeviceNameFromFd2(int fd) FILE *f; char buf[512]; static const char match[9] = "\nDEVNAME="; - int expected = 1; + size_t expected = 1; if (fstat(fd, &sbuf))