summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-06 12:06:38 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-06 12:06:38 +0100
commit6bc51908292afc0f852cdf64f85908956978baa8 (patch)
tree11f852a3e46d85168b3952b3d85385fd078de440
parent5268338be38102b8c7a99748b4bb792db25a871f (diff)
downloadrtems-libbsd-6bc51908292afc0f852cdf64f85908956978baa8.tar.bz2
Disable unused pfil_try_rlock()
-rw-r--r--freebsd/sys/net/pfil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/sys/net/pfil.c b/freebsd/sys/net/pfil.c
index 7fcecc88..8f4f50b8 100644
--- a/freebsd/sys/net/pfil.c
+++ b/freebsd/sys/net/pfil.c
@@ -105,6 +105,7 @@ pfil_chain_get(int dir, struct pfil_head *ph)
return (NULL);
}
+#ifndef __rtems__
/*
* pfil_try_rlock() acquires rm reader lock for specified head
* if this is immediately possible.
@@ -115,6 +116,7 @@ pfil_try_rlock(struct pfil_head *ph, struct rm_priotracker *tracker)
return (PFIL_TRY_RLOCK(ph, tracker));
}
+#endif /* __rtems__ */
/*
* pfil_rlock() acquires rm reader lock for specified head.