summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2015-09-22 15:32:27 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2015-09-22 15:32:27 +0000
commit9293cfeb42225de563ddca09a6afdba223837d89 (patch)
tree943ce7ba14cb115e7705d0ce63345b8240d64716
parent98ef2a61989d3b9777d57cab4feed62b35f1a790 (diff)
Notes
-rw-r--r--sys/dev/drm2/drm_lock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/drm2/drm_lock.c b/sys/dev/drm2/drm_lock.c
index 1bc681ca44d9..8b593c41035b 100644
--- a/sys/dev/drm2/drm_lock.c
+++ b/sys/dev/drm2/drm_lock.c
@@ -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 *lock_data, unsigned int context)
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