* [TRIVIAL] [2.6 PATCH] hlist constification
@ 2003-10-05 6:55 Rusty Trivial Russell
0 siblings, 0 replies; only message in thread
From: Rusty Trivial Russell @ 2003-10-05 6:55 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
From: Mitchell Blank Jr <mitch@sfgoth.com>
I posted a patch to consify 3 inline functions in <linux/list.h> to lkml
on 9/1 but it looks like it slipped through the cracks. Looking at your
trivial tree it seems that Inaky Perez-Gonzalez already submitted a patch
to constify list_empty(). Here is a patch to do the other two. Should
be non-controversial.
Patch is versus your current 2.6.0-test5-bk2 trivial tree.
-Mitch
--- trivial-2.6.0-test6-bk6/include/linux/list.h.orig 2003-10-05 16:50:48.000000000 +1000
+++ trivial-2.6.0-test6-bk6/include/linux/list.h 2003-10-05 16:50:48.000000000 +1000
@@ -421,12 +421,12 @@
#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;
}
--
What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
Don't blame me: the Monkey is driving
File: Mitchell Blank Jr <mitch@sfgoth.com>: [2.6 PATCH] hlist constification
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-10-05 7:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-05 6:55 [TRIVIAL] [2.6 PATCH] hlist constification Rusty Trivial Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox