From patchwork Wed Mar 18 18:37:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Vesely X-Patchwork-Id: 6042801 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 54146BF90F for ; Wed, 18 Mar 2015 18:37:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9049C20384 for ; Wed, 18 Mar 2015 18:37:39 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C059C2010B for ; Wed, 18 Mar 2015 18:37:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 363F36E843; Wed, 18 Mar 2015 11:37:37 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-f42.google.com (mail-qg0-f42.google.com [209.85.192.42]) by gabe.freedesktop.org (Postfix) with ESMTP id BA4556E843 for ; Wed, 18 Mar 2015 11:37:35 -0700 (PDT) Received: by qgf3 with SMTP id 3so45028724qgf.3 for ; Wed, 18 Mar 2015 11:37:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=OSdYMfMCgG4WkvuLXU82uvIDlANctvUTkPTJw5DLOSI=; b=HSU76BOCrR9JklzaOHOxZjg8BiPVpO6dE7jG9Dy75rZlPpSdn12xQEKPHUNnuYt9c6 rxDFrJcSzWp5acHjcdRaqZ3F3V9PYWeldlPankZCeOYAe8N1R9POEJQlvHhpAdrv6BBi uZ80p7GzYeUx8Ozeo5rhtg9Oxht8ZhCYsKi3vj/qmMAq2E6ZBNkE+1LGAFiKZb48Ubao r/Xvf9xwX/36mYy/hnW5wwm1otDlVj8jOFpQ4SEWdZiaDTjmy23JZcUpf2GZVIJwrpa1 UMRQYA2sNPmSy6/Opa7+78MbBvI1hvrj+yHGccZlEUntFNDW6RXTnKYjHYekaWcooiFt zdiw== X-Gm-Message-State: ALoCoQnRuP8Tz4aalYIaNcdgyc06wPmxtTn43Xnvbsh+wZc1rjuZ/GTGqe/JpynaMU6NVjUA8r8b X-Received: by 10.140.101.243 with SMTP id u106mr4968191qge.48.1426703855265; Wed, 18 Mar 2015 11:37:35 -0700 (PDT) Received: from adriatix.rutgers.edu ([198.151.130.138]) by mx.google.com with ESMTPSA id r102sm12345247qkh.12.2015.03.18.11.37.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 11:37:34 -0700 (PDT) From: Jan Vesely To: dri-devel@lists.freedesktop.org, Emil Velikov Subject: [PATCH libdrm v2 8/8] Fix unused function warnings Date: Wed, 18 Mar 2015 14:37:33 -0400 Message-Id: <1426703854-18692-1-git-send-email-jan.vesely@rutgers.edu> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1425060448-5315-9-git-send-email-jan.vesely@rutgers.edu> References: <1425060448-5315-9-git-send-email-jan.vesely@rutgers.edu> 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 v2: Remove the handler function instead of commenting out split debugmsg function removal to a separate patch Signed-off-by: Jan Vesely Reviewed-by: Emil Velikov --- tests/drmstat.c | 13 ------------- xf86drm.c | 2 ++ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/tests/drmstat.c b/tests/drmstat.c index c6ff1ff..c800ebb 100644 --- a/tests/drmstat.c +++ b/tests/drmstat.c @@ -81,11 +81,6 @@ static void getversion(int fd) printf( "No driver available\n" ); } } - -void handler(int fd, void *oldctx, void *newctx) -{ - printf("Got fd %d\n", fd); -} static void process_sigio(char *device) { @@ -97,7 +92,6 @@ static void process_sigio(char *device) } sigio_fd = fd; - /* drmInstallSIGIOHandler(fd, handler); */ for (;;) sleep(60); } @@ -427,11 +421,4 @@ int main(int argc, char **argv) return r; } -void DRM_PRINTFLIKE(4, 0) -xf86VDrvMsgVerb(int scrnIndex, int type, int verb, const char *format, - va_list args) -{ - vfprintf(stderr, format, args); -} - int xf86ConfigDRI[10]; diff --git a/xf86drm.c b/xf86drm.c index 5032f35..a309d57 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -277,6 +277,7 @@ static int drmMatchBusID(const char *id1, const char *id2, int pci_domain_ok) * If any other failure happened then it will output error mesage using * drmMsg() call. */ +#if !defined(UDEV) static int chown_check_return(const char *path, uid_t owner, gid_t group) { int rv; @@ -292,6 +293,7 @@ static int chown_check_return(const char *path, uid_t owner, gid_t group) path, errno, strerror(errno)); return -1; } +#endif /** * Open the DRM device, creating it if necessary.