projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed segfault in yaffs_guts
[yaffs2.git]
/
direct
/
yaffs_list.h
diff --git
a/direct/yaffs_list.h
b/direct/yaffs_list.h
index 3038ca35ecb4e4cefcd08129368d56bf9352ef2a..68d2c67ba6679b3c866ae442162b028a8769080d 100644
(file)
--- a/
direct/yaffs_list.h
+++ b/
direct/yaffs_list.h
@@
-1,8
+1,7
@@
/*
* YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
/*
* YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002-2011 Aleph One Ltd.
- * for Toby Churchill Ltd and Brightstar Engineering
+ * Copyright (C) 2002-2018 Aleph One Ltd.
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
@@
-36,6
+35,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)}
@@
-119,7
+122,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