summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--include/slist.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e1330bb..97ac77e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -48,6 +48,7 @@ o resolve global variable "alarm" conflict with alarm() function in unistd.h.
o enable gcc warnings, including -Werror
o use list_for_each_entry() instead of list_for_each()
o use const when possible
+o remove prefetch in slist.h since it confuses gcc
version 0.9.5 (2007/07/29)
------------------------------
diff --git a/include/slist.h b/include/slist.h
index ab7fa34..257b627 100644
--- a/include/slist.h
+++ b/include/slist.h
@@ -30,7 +30,7 @@ static inline void slist_add(struct slist_head *head, struct slist_head *t)
#define slist_entry(ptr, type, member) container_of(ptr,type,member)
#define slist_for_each(pos, head) \
- for (pos = (head)->next; pos && ({ prefetch(pos.next); 1; }); \
+ for (pos = (head)->next; pos; \
pos = pos->next)
#define slist_for_each_safe(pos, prev, next, head) \