From: Rusty Trivial Russell <trivial@rustcorp.com.au>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: [TRIVIAL] [2.6 PATCH] hlist constification
Date: Sun, 05 Oct 2003 16:55:19 +1000 [thread overview]
Message-ID: <20031005072052.3102C2CC42@lists.samba.org> (raw)
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
reply other threads:[~2003-10-05 7:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031005072052.3102C2CC42@lists.samba.org \
--to=trivial@rustcorp.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox