summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-02-23 14:17:19 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2015-02-27 15:51:36 +0000
commitf799a527db2851b2890146a9ce777f73fea30176 (patch)
treeb218e9b99b95e87e99d4ce2af39e563ac14c3947
parent0b3e540aa40117561d4dc1e9616f003ec7a8d621 (diff)
tests/radeon: set the list* functions as inline
To silence the chatty compiler. As a future work we may want to merge these with libdrm_lists.h Cc: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
-rw-r--r--tests/radeon/list.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/radeon/list.h b/tests/radeon/list.h
index 305c903e..27e0761b 100644
--- a/tests/radeon/list.h
+++ b/tests/radeon/list.h
@@ -44,13 +44,13 @@ struct list_head
struct list_head *next;
};
-static void list_inithead(struct list_head *item)
+static inline void list_inithead(struct list_head *item)
{
item->prev = item;
item->next = item;
}
-static void list_add(struct list_head *item, struct list_head *list)
+static inline void list_add(struct list_head *item, struct list_head *list)
{
item->prev = list;
item->next = list->next;
@@ -58,7 +58,7 @@ static void list_add(struct list_head *item, struct list_head *list)
list->next = item;
}
-static void list_addtail(struct list_head *item, struct list_head *list)
+static inline void list_addtail(struct list_head *item, struct list_head *list)
{
item->next = list;
item->prev = list->prev;
@@ -66,7 +66,7 @@ static void list_addtail(struct list_head *item, struct list_head *list)
list->prev = item;
}
-static void list_replace(struct list_head *from, struct list_head *to)
+static inline void list_replace(struct list_head *from, struct list_head *to)
{
to->prev = from->prev;
to->next = from->next;
@@ -74,13 +74,13 @@ static void list_replace(struct list_head *from, struct list_head *to)
from->prev->next = to;
}
-static void list_del(struct list_head *item)
+static inline void list_del(struct list_head *item)
{
item->prev->next = item->next;
item->next->prev = item->prev;
}
-static void list_delinit(struct list_head *item)
+static inline void list_delinit(struct list_head *item)
{
item->prev->next = item->next;
item->next->prev = item->prev;