aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorJan Pokorný <pokorny_jan@seznam.cz>2011-04-13 01:58:50 -0700
committerChristopher Li <sparse@chrisli.org>2011-04-13 01:58:50 -0700
commitb21baf0cce7b2a6c949577952dd159f1c9357d6b (patch)
tree831e41bfbb2e6c3e4c086b7670622b6a5990ed32
parent0a782d32cd9b607a3cdd57e93e6779be65f04108 (diff)
downloadsparse-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.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/ptrlist.h b/ptrlist.h
index fbfc0809..58d3bdaa 100644
--- a/ptrlist.h
+++ b/ptrlist.h
@@ -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])