From f92f186d8f9377149b0cf81fdcf4e94aead591e8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 4 Oct 2003 21:30:51 -0700 Subject: [PATCH] hlist constification From: Mitchell Blank Jr Make some more of the hlist functions accept constant arguments. --- include/linux/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/linux/list.h b/include/linux/list.h index 5fdf945bbf93..beed16b82895 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -421,12 +421,12 @@ struct hlist_node { #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL) #define INIT_HLIST_NODE(ptr) ((ptr)->next = NULL, (ptr)->pprev = NULL) -static __inline__ int hlist_unhashed(struct hlist_node *h) +static __inline__ int hlist_unhashed(const struct hlist_node *h) { return !h->pprev; } -static __inline__ int hlist_empty(struct hlist_head *h) +static __inline__ int hlist_empty(const struct hlist_head *h) { return !h->first; } -- cgit v1.2.3