projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: warnings on non-Linux platforms
[userspace-rcu.git]
/
src
/
urcu-call-rcu-impl.h
diff --git
a/src/urcu-call-rcu-impl.h
b/src/urcu-call-rcu-impl.h
index 18fd65a0ec45b04de012dff83838f260cbe07bcb..a9c0e4d55b106b2f00c6f9da2638778b2a7f4240 100644
(file)
--- a/
src/urcu-call-rcu-impl.h
+++ b/
src/urcu-call-rcu-impl.h
@@
-199,7
+199,7
@@
static void call_rcu_unlock(pthread_mutex_t *pmp)
* Losing affinity can be caused by CPU hotunplug/hotplug, or by
* cpuset(7).
*/
* Losing affinity can be caused by CPU hotunplug/hotplug, or by
* cpuset(7).
*/
-#if HAVE_SCHED_SETAFFINITY
+#if
def
HAVE_SCHED_SETAFFINITY
static
int set_thread_cpu_affinity(struct call_rcu_data *crdp)
{
static
int set_thread_cpu_affinity(struct call_rcu_data *crdp)
{
@@
-233,7
+233,7
@@
int set_thread_cpu_affinity(struct call_rcu_data *crdp)
}
#else
static
}
#else
static
-int set_thread_cpu_affinity(struct call_rcu_data *crdp)
+int set_thread_cpu_affinity(struct call_rcu_data *crdp
__attribute__((unused))
)
{
return 0;
}
{
return 0;
}
@@
-1053,7
+1053,7
@@
end:
URCU_ATTR_ALIAS(urcu_stringify(urcu_register_rculfhash_atfork))
void alias_urcu_register_rculfhash_atfork();
URCU_ATTR_ALIAS(urcu_stringify(urcu_register_rculfhash_atfork))
void alias_urcu_register_rculfhash_atfork();
-void urcu_unregister_rculfhash_atfork(struct urcu_atfork *atfork)
+void urcu_unregister_rculfhash_atfork(struct urcu_atfork *atfork
__attribute__((unused))
)
{
call_rcu_lock(&call_rcu_mutex);
if (--registered_rculfhash_atfork_refcount)
{
call_rcu_lock(&call_rcu_mutex);
if (--registered_rculfhash_atfork_refcount)
This page took
0.02251 seconds
and
4
git commands to generate.