diff options
| author | Jan Pokorný <pokorny_jan@seznam.cz> | 2011-04-13 01:58:50 -0700 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2011-04-13 01:58:50 -0700 |
| commit | b21baf0cce7b2a6c949577952dd159f1c9357d6b (patch) | |
| tree | 831e41bfbb2e6c3e4c086b7670622b6a5990ed32 | |
| parent | 0a782d32cd9b607a3cdd57e93e6779be65f04108 (diff) | |
| download | sparse-dev-b21baf0cce7b2a6c949577952dd159f1c9357d6b.tar.gz | |
remove unused "container" macro
This macro seems to be unused since commit e7fb6e0 (4 years ago).
But my estimation that it does not currently have any practical usage for
navigating through the sparse structures may be wrong.
Signed-off-by: Jan Pokorny <pokorny_jan@seznam.cz>
Signed-off-by: Christopher Li <sparse@chrisli.org>
| -rw-r--r-- | ptrlist.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -9,9 +9,6 @@ * (C) Copyright Linus Torvalds 2003-2005 */ -#define container(ptr, type, member) \ - (type *)((void *)(ptr) - offsetof(type, member)) - /* Silly type-safety check ;) */ #define DECLARE_PTR_LIST(listname,type) struct listname { type *list[1]; } #define CHECK_TYPE(head,ptr) (void)(&(ptr) == &(head)->list[0]) |
