In article <20000223022355.A816@ganymede.isdn.uiuc.edu> you wrote:
> +#define list_for_each(pos, head) \
> + for (pos = (head).next; pos != &(head); pos = pos->next)
On second thought I agree with you - this looks useful. I think it
should take a struct list_head *head, though, rather than struct
list_head head, in order to be consistent with the other list
functions.
> +/*
> static struct ctl_table_header root_table_header =
> - {root_table, DNODE_SINGLE(&root_table_header)};
> + { root_table, LIST_HEAD_INIT(root_table_header) };
> +*/
> +static LIST_HEAD(root_table_header);
Just delete dead code istead of commenting it out...
Best,
Borislav
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:33 EST