projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up some compilation warnings for VxWorks
[yaffs2.git]
/
direct
/
yaffs_list.h
diff --git
a/direct/yaffs_list.h
b/direct/yaffs_list.h
index f1c52544b27f2c4524a4800de29c0cc11ba971e6..c0994934ad0af08d8a0523d9c12c33c55dcbba27 100644
(file)
--- a/
direct/yaffs_list.h
+++ b/
direct/yaffs_list.h
@@
-24,8
+24,6
@@
#define __YAFFS_LIST_H__
#define __YAFFS_LIST_H__
-#include "yportenv.h"
-
/*
* This is a simple doubly linked list implementation that matches the
* way the Linux kernel doubly linked list implementation works.
/*
* This is a simple doubly linked list implementation that matches the
* way the Linux kernel doubly linked list implementation works.
@@
-38,6
+36,10
@@
struct list_head {
/* Initialise a static list */
/* Initialise a static list */
+#ifdef LIST_HEAD
+#undef LIST_HEAD
+#endif
+
#define LIST_HEAD(name) \
struct list_head name = { &(name), &(name)}
#define LIST_HEAD(name) \
struct list_head name = { &(name), &(name)}
@@
-121,7
+123,8
@@
static inline int list_empty(struct list_head *entry)
#define list_for_each_safe(itervar, save_var, list) \
for (itervar = (list)->next, save_var = (list)->next->next; \
#define list_for_each_safe(itervar, save_var, list) \
for (itervar = (list)->next, save_var = (list)->next->next; \
- itervar != (list); itervar = save_var, save_var = save_var->next)
+ itervar != (list); \
+ itervar = save_var, save_var = save_var->next)
#endif
#endif