From: Rusty Trivial Russell <trivial@rustcorp.com.au>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: [TRIVIAL] [2.{4,5} TRIVIAL PATCH] Change list_emtpy() to take a const pointer
Date: Sun, 05 Oct 2003 16:51:27 +1000 [thread overview]
Message-ID: <20031005072051.237422CC20@lists.samba.org> (raw)
From: "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>
Hi Rusty, list
Didn't know what was the best place to submit this one, I
guessed trivial.
Just change the definition of list_empty() to take a const
pointer. I have some upper layers of code that do all the
const/non-const thing and list_empty() breaks it without
this.
--- trivial-2.6.0-test6-bk6/include/linux/list.h.orig 2003-10-05 16:50:40.000000000 +1000
+++ trivial-2.6.0-test6-bk6/include/linux/list.h 2003-10-05 16:50:40.000000000 +1000
@@ -203,7 +203,7 @@
* list_empty - tests whether a list is empty
* @head: the list to test.
*/
-static inline int list_empty(struct list_head *head)
+static inline int list_empty(const struct list_head *head)
{
return head->next == head;
}
--
What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
Don't blame me: the Monkey is driving
File: "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>: [2.{4,5} TRIVIAL PATCH] Change list_emtpy() to take a const pointer
next reply other threads:[~2003-10-05 7:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-05 6:51 Rusty Trivial Russell [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-24 2:49 Rusty Trivial Russell
2003-09-04 3:05 Rusty Trivial Russell
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=20031005072051.237422CC20@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
Powered by JetHome