From patchwork Fri Feb 27 18:07:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Vesely X-Patchwork-Id: 5902351 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 0BEB4BF440 for ; Fri, 27 Feb 2015 18:07:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 46DB620272 for ; Fri, 27 Feb 2015 18:07:39 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 46FA520253 for ; Fri, 27 Feb 2015 18:07:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C5A806E936; Fri, 27 Feb 2015 10:07:35 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by gabe.freedesktop.org (Postfix) with ESMTP id DBED76E934 for ; Fri, 27 Feb 2015 10:07:34 -0800 (PST) Received: by mail-qg0-f53.google.com with SMTP id f51so15386349qge.12 for ; Fri, 27 Feb 2015 10:07:34 -0800 (PST) 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=Rr8Y2TGcY+GN2r9GDjAoNjGtqMGCD1a/JioMDf6Qhq8=; b=FG6lBpjC7axPdRtn9FF51UE/S9Towp6J/Axs/zhqyXhGvT6oKfOh082c2oggcQl4DJ CyCHRlzL+ALJbJh588qYyiDL9ieYL8oNkd7dk+Dn6MWPVO4PJ81MZ+Z8B4CpT/OhqIOb +1D2g1kZgnYva4KTvl4rYGwMPwwtgc7FvzAyB8x7bU2ryUvkLaVSPjq3PCx3dIf5cKDR leX0u5Zn+cR6safsGj/Njoc+rwHpTLzjeVH1Xsq4ZT/CQXM7b3yUb7hQQckqjymOq39m 33XS5KW4ucyXit0sxAxIB5YraZ9qfy2O9+87BjLtumiq+FXS2gmLsoy4jqPMDsev/UIC mUWQ== X-Gm-Message-State: ALoCoQlyCA22019TBW+QQ1N5izgaUvWByzQ+k9XYmZ6ceieykQ4X8Z7nEPG5cyG8XpTjO93bm0D5 X-Received: by 10.140.145.3 with SMTP id 3mr31425340qhr.43.1425060454487; Fri, 27 Feb 2015 10:07:34 -0800 (PST) Received: from adriatix.rutgers.edu ([198.151.130.147]) by mx.google.com with ESMTPSA id 70sm3062318qhe.29.2015.02.27.10.07.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Feb 2015 10:07:34 -0800 (PST) From: Jan Vesely To: Emil Velikov , dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 8/8] Fix unused function warnings Date: Fri, 27 Feb 2015 13:07:28 -0500 Message-Id: <1425060448-5315-9-git-send-email-jan.vesely@rutgers.edu> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1425060448-5315-1-git-send-email-jan.vesely@rutgers.edu> References: <1425060448-5315-1-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 Signed-off-by: Jan Vesely --- tests/drmstat.c | 9 ++------- xf86drm.c | 8 ++------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/tests/drmstat.c b/tests/drmstat.c index 36cc70d..6502d78 100644 --- a/tests/drmstat.c +++ b/tests/drmstat.c @@ -82,10 +82,12 @@ static void getversion(int fd) } } +/* static void handler(int fd, void *oldctx, void *newctx) { printf("Got fd %d\n", fd); } +*/ static void process_sigio(char *device) { @@ -427,11 +429,4 @@ int main(int argc, char **argv) return r; } -static 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 3c8fc0b..a660842 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -131,12 +131,6 @@ drmMsg(const char *format, ...) } } -static void -drmSetDebugMsgFunction(debug_msg_func_t debug_msg_ptr) -{ - drm_debug_print = debug_msg_ptr; -} - static void *drmHashTable = NULL; /* Context switch callbacks */ void *drmGetHashTable(void) @@ -272,6 +266,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; @@ -287,6 +282,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.