X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_list.h;h=68d2c67ba6679b3c866ae442162b028a8769080d;hp=6bb464606a4c192256013cfb8fa3136ff7657014;hb=HEAD;hpb=5062df7307f71d3374da87a7c69102dc3f09da28 diff --git a/direct/yaffs_list.h b/direct/yaffs_list.h index 6bb4646..68d2c67 100644 --- 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. * - * Copyright (C) 2002-2010 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering + * Copyright (C) 2002-2018 Aleph One Ltd. * * Created by Charles Manning * @@ -24,8 +23,6 @@ #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. @@ -38,6 +35,10 @@ struct list_head { /* Initialise a static list */ +#ifdef LIST_HEAD +#undef LIST_HEAD +#endif + #define LIST_HEAD(name) \ struct list_head name = { &(name), &(name)} @@ -121,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; \ - itervar != (list); itervar = save_var, save_var = save_var->next) + itervar != (list); \ + itervar = save_var, save_var = save_var->next) #endif