svn commit: r288112 - head/sys/dev/drm2
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Sep 22 15:32:28 UTC 2015
Author: bz
Date: Tue Sep 22 15:32:27 2015
New Revision: 288112
URL: https://svnweb.freebsd.org/changeset/base/288112
Log:
Hide an unused in FreeBSD function behind #ifdef linux to get rid of
the compile time warning.
Reviewed by: gnn
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3710
Modified:
head/sys/dev/drm2/drm_lock.c
Modified: head/sys/dev/drm2/drm_lock.c
==============================================================================
--- head/sys/dev/drm2/drm_lock.c Tue Sep 22 15:06:26 2015 (r288111)
+++ head/sys/dev/drm2/drm_lock.c Tue Sep 22 15:32:27 2015 (r288112)
@@ -38,7 +38,9 @@ __FBSDID("$FreeBSD$");
#include <dev/drm2/drmP.h>
+#if defined(__linux__)
static int drm_notifier(void *priv);
+#endif
static int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context);
@@ -284,6 +286,7 @@ int drm_lock_free(struct drm_lock_data *
return 0;
}
+#if defined(__linux__)
/**
* If we get here, it means that the process has called DRM_IOCTL_LOCK
* without calling DRM_IOCTL_UNLOCK.
@@ -314,6 +317,7 @@ static int drm_notifier(void *priv)
} while (prev != old);
return 0;
}
+#endif
/**
* This function returns immediately and takes the hw lock
More information about the svn-src-all
mailing list