Constify llist_count() parameter

Counting list entires should not alter the list content: let's make this
obvious from type signature.

Change-Id: I414e67a3de733fab407161b3264d3b89070ba537
diff --git a/include/osmocom/core/linuxlist.h b/include/osmocom/core/linuxlist.h
index 8d0533f..7791310 100644
--- a/include/osmocom/core/linuxlist.h
+++ b/include/osmocom/core/linuxlist.h
@@ -387,7 +387,7 @@
  * This function is not efficient, mostly useful for small lists and non time
  * critical cases like unit tests.
  */
-static inline unsigned int llist_count(struct llist_head *head)
+static inline unsigned int llist_count(const struct llist_head *head)
 {
 	struct llist_head *entry;
 	unsigned int i = 0;