summaryrefslogtreecommitdiff
path: root/xf86drm.c
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2015-02-27 12:54:34 -0500
committerJan Vesely <jan.vesely@rutgers.edu>2015-03-20 13:36:53 -0400
commit6fc0e4ba1ea153ff949cba0002fc5ed544de0de0 (patch)
tree019d565380d582bac299cacfc6626a45cbf83b42 /xf86drm.c
parent9588e66dbd695dce24e0aba54eaf94f573ab5363 (diff)
Fix unused function warnings
v2: Remove the handler function instead of commenting out split debugmsg function removal to a separate patch Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'xf86drm.c')
-rw-r--r--xf86drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 051ed5d5..43d07000 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.