|
@@ -72,7 +72,7 @@ unsigned int libfcoe_debug_logging;
|
|
module_param_named(debug_logging, libfcoe_debug_logging, int, S_IRUGO|S_IWUSR);
|
|
module_param_named(debug_logging, libfcoe_debug_logging, int, S_IRUGO|S_IWUSR);
|
|
MODULE_PARM_DESC(debug_logging, "a bit mask of logging levels");
|
|
MODULE_PARM_DESC(debug_logging, "a bit mask of logging levels");
|
|
|
|
|
|
-static const char *fcoe_ctlr_states[] = {
|
|
|
|
|
|
+static const char * const fcoe_ctlr_states[] = {
|
|
[FIP_ST_DISABLED] = "DISABLED",
|
|
[FIP_ST_DISABLED] = "DISABLED",
|
|
[FIP_ST_LINK_WAIT] = "LINK_WAIT",
|
|
[FIP_ST_LINK_WAIT] = "LINK_WAIT",
|
|
[FIP_ST_AUTO] = "AUTO",
|
|
[FIP_ST_AUTO] = "AUTO",
|
|
@@ -290,8 +290,8 @@ static void fcoe_ctlr_solicit(struct fcoe_ctlr *fip, struct fcoe_fcf *fcf)
|
|
struct fip_mac_desc mac;
|
|
struct fip_mac_desc mac;
|
|
struct fip_wwn_desc wwnn;
|
|
struct fip_wwn_desc wwnn;
|
|
struct fip_size_desc size;
|
|
struct fip_size_desc size;
|
|
- } __attribute__((packed)) desc;
|
|
|
|
- } __attribute__((packed)) *sol;
|
|
|
|
|
|
+ } __packed desc;
|
|
|
|
+ } __packed * sol;
|
|
u32 fcoe_size;
|
|
u32 fcoe_size;
|
|
|
|
|
|
skb = dev_alloc_skb(sizeof(*sol));
|
|
skb = dev_alloc_skb(sizeof(*sol));
|
|
@@ -438,7 +438,7 @@ static void fcoe_ctlr_send_keep_alive(struct fcoe_ctlr *fip,
|
|
struct ethhdr eth;
|
|
struct ethhdr eth;
|
|
struct fip_header fip;
|
|
struct fip_header fip;
|
|
struct fip_mac_desc mac;
|
|
struct fip_mac_desc mac;
|
|
- } __attribute__((packed)) *kal;
|
|
|
|
|
|
+ } __packed * kal;
|
|
struct fip_vn_desc *vn;
|
|
struct fip_vn_desc *vn;
|
|
u32 len;
|
|
u32 len;
|
|
struct fc_lport *lp;
|
|
struct fc_lport *lp;
|
|
@@ -509,7 +509,7 @@ static int fcoe_ctlr_encaps(struct fcoe_ctlr *fip, struct fc_lport *lport,
|
|
struct ethhdr eth;
|
|
struct ethhdr eth;
|
|
struct fip_header fip;
|
|
struct fip_header fip;
|
|
struct fip_encaps encaps;
|
|
struct fip_encaps encaps;
|
|
- } __attribute__((packed)) *cap;
|
|
|
|
|
|
+ } __packed * cap;
|
|
struct fc_frame_header *fh;
|
|
struct fc_frame_header *fh;
|
|
struct fip_mac_desc *mac;
|
|
struct fip_mac_desc *mac;
|
|
struct fcoe_fcf *fcf;
|
|
struct fcoe_fcf *fcf;
|
|
@@ -1801,7 +1801,7 @@ static void fcoe_ctlr_vn_send(struct fcoe_ctlr *fip,
|
|
struct fip_mac_desc mac;
|
|
struct fip_mac_desc mac;
|
|
struct fip_wwn_desc wwnn;
|
|
struct fip_wwn_desc wwnn;
|
|
struct fip_vn_desc vn;
|
|
struct fip_vn_desc vn;
|
|
- } __attribute__((packed)) *frame;
|
|
|
|
|
|
+ } __packed * frame;
|
|
struct fip_fc4_feat *ff;
|
|
struct fip_fc4_feat *ff;
|
|
struct fip_size_desc *size;
|
|
struct fip_size_desc *size;
|
|
u32 fcp_feat;
|
|
u32 fcp_feat;
|