diff options
-rw-r--r-- | tools/virtio/linux/kernel.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h index 8ee01e6e5e3a..4e53f8986304 100644 --- a/tools/virtio/linux/kernel.h +++ b/tools/virtio/linux/kernel.h @@ -13,6 +13,7 @@ #include <linux/array_size.h> #include <linux/compiler.h> +#include <linux/container_of.h> #include <linux/types.h> #include <linux/overflow.h> #include <linux/list.h> @@ -109,10 +110,6 @@ static inline void free_page(unsigned long addr) free((void *)addr); } -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) );}) - # ifndef likely # define likely(x) (__builtin_expect(!!(x), 1)) # endif |