projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add lock-free RCU queue and stack
[urcu.git]
/
tests
/
api_gcc.h
diff --git
a/tests/api_gcc.h
b/tests/api_gcc.h
index 17487d5c701e81b66349b798b7f7fade5b1d8a96..be437cccba7d7a04458053a6a4506a1412051ad5 100644
(file)
--- a/
tests/api_gcc.h
+++ b/
tests/api_gcc.h
@@
-291,13
+291,6
@@
cmpxchg(volatile long *ptr, long oldval, long newval)
#include <sys/param.h>
/* #include "atomic.h" */
#include <sys/param.h>
/* #include "atomic.h" */
-/*
- * Compiler magic.
- */
-#define container_of(ptr, type, member) ({ \
- const typeof( ((type *)0)->member ) *__mptr = (ptr); \
- (type *)( (char *)__mptr - offsetof(type,member) );})
-
/*
* Default machine parameters.
*/
/*
* Default machine parameters.
*/
@@
-652,10
+645,6
@@
static void smp_init(void)
#define LIST_POISON1 ((void *) 0x00100100)
#define LIST_POISON2 ((void *) 0x00200200)
#define LIST_POISON1 ((void *) 0x00100100)
#define LIST_POISON2 ((void *) 0x00200200)
-#define container_of(ptr, type, member) ({ \
- const typeof( ((type *)0)->member ) *__mptr = (ptr); \
- (type *)( (char *)__mptr - offsetof(type,member) );})
-
#if 0
/*
* Simple doubly linked list implementation.
#if 0
/*
* Simple doubly linked list implementation.
This page took
0.024882 seconds
and
4
git commands to generate.