Matthew Wilcox wrote:
enable NET in order to force netlink to be built. So something like
this would be enough:
config SCSI_FC_ATTRS
tristate "FiberChannel Transport Attributes"
depends on SCSI
+ select NET
help
If you wish to export transport-specific information about
each attached FiberChannel device to sysfs, say Y.
Thanks....
+#define get_list_head_entry(pos, head, member) \
+ pos = list_entry((head)->next, typeof(*pos), member)
+
This one sets alarm bells ringing ...
Please explain why. I've always wondered why the list macros never
let you look, without dequeuing, the head of the list. It will let
you look - as long as you use the functions that make it think
you're going to walk the list.
I would write this as:
struct fc_nl_user *nluser, *tmp;
list_for_each_entry_safe(nluser, tmp, &fc_nl_user_list, ulist) {
kfree(nluser);
}
ok.. Subtle though, as you have to know you are consuming the entire list.
-- james
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html