aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2011-01-28 19:05:00 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-12 12:06:25 -0500
commit0095a9213324a4466c10de98837a27ab1b7e72be (patch)
treee9a397a0ecc45362571183ea876bbf4834ec940f /drivers/scsi/fcoe
parentfdecf31b7c7b9bb79516344884388f660fd5d5a7 (diff)
[SCSI] libfcoe: rename libfcoe.c to fcoe_cltr.c for the coming fcoe_transport.c
The existing libfcoe.c is mostly for FIP support, rename it to reflect that fact and so we can add fcoe_transport.c to the make file to include both into the libfcoe kernel module. [ Minor modifications by Robert Love converting a few "__attribute__((packed))" modifiers to "__packed" to remove new checkpatch.pl WARNINGS ] Signed-off-by: Yi Zou <yi.zou@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r--drivers/scsi/fcoe/Makefile2
-rw-r--r--drivers/scsi/fcoe/fcoe_ctlr.c (renamed from drivers/scsi/fcoe/libfcoe.c)12
2 files changed, 8 insertions, 6 deletions
diff --git a/drivers/scsi/fcoe/Makefile b/drivers/scsi/fcoe/Makefile
index 950f27615c76..b122b7abddc6 100644
--- a/drivers/scsi/fcoe/Makefile
+++ b/drivers/scsi/fcoe/Makefile
@@ -1,2 +1,4 @@
1obj-$(CONFIG_FCOE) += fcoe.o 1obj-$(CONFIG_FCOE) += fcoe.o
2obj-$(CONFIG_LIBFCOE) += libfcoe.o 2obj-$(CONFIG_LIBFCOE) += libfcoe.o
3
4libfcoe-objs := fcoe_ctlr.o
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/fcoe_ctlr.c
index a4757ca2a4ed..c12d0a7e0d3d 100644
--- a/drivers/scsi/fcoe/libfcoe.c
+++ b/drivers/scsi/fcoe/fcoe_ctlr.c
@@ -72,7 +72,7 @@ unsigned int libfcoe_debug_logging;
72module_param_named(debug_logging, libfcoe_debug_logging, int, S_IRUGO|S_IWUSR); 72module_param_named(debug_logging, libfcoe_debug_logging, int, S_IRUGO|S_IWUSR);
73MODULE_PARM_DESC(debug_logging, "a bit mask of logging levels"); 73MODULE_PARM_DESC(debug_logging, "a bit mask of logging levels");
74 74
75static const char *fcoe_ctlr_states[] = { 75static const char * const fcoe_ctlr_states[] = {
76 [FIP_ST_DISABLED] = "DISABLED", 76 [FIP_ST_DISABLED] = "DISABLED",
77 [FIP_ST_LINK_WAIT] = "LINK_WAIT", 77 [FIP_ST_LINK_WAIT] = "LINK_WAIT",
78 [FIP_ST_AUTO] = "AUTO", 78 [FIP_ST_AUTO] = "AUTO",
@@ -290,8 +290,8 @@ static void fcoe_ctlr_solicit(struct fcoe_ctlr *fip, struct fcoe_fcf *fcf)
290 struct fip_mac_desc mac; 290 struct fip_mac_desc mac;
291 struct fip_wwn_desc wwnn; 291 struct fip_wwn_desc wwnn;
292 struct fip_size_desc size; 292 struct fip_size_desc size;
293 } __attribute__((packed)) desc; 293 } __packed desc;
294 } __attribute__((packed)) *sol; 294 } __packed * sol;
295 u32 fcoe_size; 295 u32 fcoe_size;
296 296
297 skb = dev_alloc_skb(sizeof(*sol)); 297 skb = dev_alloc_skb(sizeof(*sol));
@@ -438,7 +438,7 @@ static void fcoe_ctlr_send_keep_alive(struct fcoe_ctlr *fip,
438 struct ethhdr eth; 438 struct ethhdr eth;
439 struct fip_header fip; 439 struct fip_header fip;
440 struct fip_mac_desc mac; 440 struct fip_mac_desc mac;
441 } __attribute__((packed)) *kal; 441 } __packed * kal;
442 struct fip_vn_desc *vn; 442 struct fip_vn_desc *vn;
443 u32 len; 443 u32 len;
444 struct fc_lport *lp; 444 struct fc_lport *lp;
@@ -509,7 +509,7 @@ static int fcoe_ctlr_encaps(struct fcoe_ctlr *fip, struct fc_lport *lport,
509 struct ethhdr eth; 509 struct ethhdr eth;
510 struct fip_header fip; 510 struct fip_header fip;
511 struct fip_encaps encaps; 511 struct fip_encaps encaps;
512 } __attribute__((packed)) *cap; 512 } __packed * cap;
513 struct fc_frame_header *fh; 513 struct fc_frame_header *fh;
514 struct fip_mac_desc *mac; 514 struct fip_mac_desc *mac;
515 struct fcoe_fcf *fcf; 515 struct fcoe_fcf *fcf;
@@ -1801,7 +1801,7 @@ static void fcoe_ctlr_vn_send(struct fcoe_ctlr *fip,
1801 struct fip_mac_desc mac; 1801 struct fip_mac_desc mac;
1802 struct fip_wwn_desc wwnn; 1802 struct fip_wwn_desc wwnn;
1803 struct fip_vn_desc vn; 1803 struct fip_vn_desc vn;
1804 } __attribute__((packed)) *frame; 1804 } __packed * frame;
1805 struct fip_fc4_feat *ff; 1805 struct fip_fc4_feat *ff;
1806 struct fip_size_desc *size; 1806 struct fip_size_desc *size;
1807 u32 fcp_feat; 1807 u32 fcp_feat;