summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorMark Rustad <mark.d.rustad@intel.com>2014-10-14 06:38:53 -0700
committerChristoph Hellwig <hch@lst.de>2014-11-12 11:15:53 +0100
commit037e6d8654469051e6a75d64e6c2d6727130fe4c (patch)
treeacdcdf31c4bf85b7dd023b3ddd1551a43c6fcc09 /drivers/scsi/scsi_lib.c
parent605c6dbef7556604b20b9831ea790dfe988416d8 (diff)
downloadlwn-037e6d8654469051e6a75d64e6c2d6727130fe4c.tar.gz
lwn-037e6d8654469051e6a75d64e6c2d6727130fe4c.zip
scsi: resolve some missing-field-initializers warnings
Resolve some missing-field-initializers warnings by using designated initialization. [hch: W=2 with modern gcc warns about this. Pretty pointless to me, but I'd prefer to keep us warning free] Signed-off-by: Mark Rustad <mark.d.rustad@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 50a6e1ac8d9c..389bc6fd19ae 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -47,7 +47,7 @@ struct scsi_host_sg_pool {
mempool_t *pool;
};
-#define SP(x) { x, "sgpool-" __stringify(x) }
+#define SP(x) { .size = x, "sgpool-" __stringify(x) }
#if (SCSI_MAX_SG_SEGMENTS < 32)
#error SCSI_MAX_SG_SEGMENTS is too small (must be 32 or greater)
#endif