]> git.itanic.dy.fi Git - scan-pagemap/blobdiff - pagemap.h
analyzer: Avoid ignoring mappings with only one reference
[scan-pagemap] / pagemap.h
index c57f054bbfec898d250511b75a1daa728b0870c5..cd28c4100e1f05f3dfde9748444cb5e68631aaeb 100644 (file)
--- a/pagemap.h
+++ b/pagemap.h
@@ -14,6 +14,8 @@ struct maps_list {
        struct maps *map;
        struct list_head list;
 };
+#define list_to_maps_list(list_head)                           \
+       container_of((list_head), struct maps_list, list)
 
 struct pageframe {
        struct bintree tree;