new->a = 8;
new->b = 12;
new->c[55] = 2;
- old = urcu_publish_content(&test_rcu_pointer, new);
+ old = urcu_publish_content((void **)&test_rcu_pointer, new);
rcu_write_unlock();
/* can be done after unlock */
if (old) {
* Return old pointer, OK to free, no more reference exist.
* Called under rcu_write_lock.
*/
-void *_urcu_publish_content(void **ptr, void *new)
+void *urcu_publish_content(void **ptr, void *new)
{
int prev_parity;
void *oldptr;
extern void rcu_write_lock(void);
extern void rcu_write_unlock(void);
-extern void *_urcu_publish_content(void **ptr, void *new);
-
-/*
- * gcc does not like automatic &struct ... * -> void **.
- * Remove the warning. (hopefully this is ok)
- */
-#define urcu_publish_content(ptr, new) _urcu_publish_content((void **)ptr, new)
+extern void *urcu_publish_content(void **ptr, void *new);
/*
* Reader thread registration.