linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [TRIVIAL] [2.{4,5} TRIVIAL PATCH] Change list_emtpy() to take a const pointer
@ 2003-09-04  3:05 Rusty Trivial Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Rusty Trivial Russell @ 2003-09-04  3:05 UTC (permalink / raw)
  To: torvalds, linux-kernel

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-test4-bk5/include/linux/list.h.orig	2003-09-04 13:01:29.000000000 +1000
+++ trivial-2.6.0-test4-bk5/include/linux/list.h	2003-09-04 13:01:29.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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [TRIVIAL] [2.{4,5} TRIVIAL PATCH] Change list_emtpy() to take a const pointer
@ 2003-10-05  6:51 Rusty Trivial Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Rusty Trivial Russell @ 2003-10-05  6:51 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [TRIVIAL] [2.{4,5} TRIVIAL PATCH] Change list_emtpy() to take a const pointer
@ 2003-09-24  2:49 Rusty Trivial Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Rusty Trivial Russell @ 2003-09-24  2:49 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

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-test5-bk10/include/linux/list.h.orig	2003-09-24 12:27:13.000000000 +1000
+++ trivial-2.6.0-test5-bk10/include/linux/list.h	2003-09-24 12:27:13.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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-05  7:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-04  3:05 [TRIVIAL] [2.{4,5} TRIVIAL PATCH] Change list_emtpy() to take a const pointer Rusty Trivial Russell
2003-09-24  2:49 Rusty Trivial Russell
2003-10-05  6:51 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;
as well as URLs for NNTP newsgroup(s).