From f66ce57358db77bdc50b055325ac103f7c38d5fa Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Tue, 15 Jan 2008 12:56:17 +0000 Subject: Max Kellermann : remove prefetch from slist.h since it confuses gcc --- ChangeLog | 1 + include/slist.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) \ -- cgit v1.2.3