implementation of doubly linked list using list.h
View Single Post
Assuming line 46 is this one:
element = list_entry (ptr, struct roll_struct, list);
you can't put a typename (struct roll_struct) there. You must use the name of a variable. You have the same error on the other two lines.