Commit 037e6d86 authored by Mark Rustad's avatar Mark Rustad Committed by Christoph Hellwig

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: default avatarMark Rustad <mark.d.rustad@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 605c6dbe
...@@ -47,7 +47,7 @@ struct scsi_host_sg_pool { ...@@ -47,7 +47,7 @@ struct scsi_host_sg_pool {
mempool_t *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) #if (SCSI_MAX_SG_SEGMENTS < 32)
#error SCSI_MAX_SG_SEGMENTS is too small (must be 32 or greater) #error SCSI_MAX_SG_SEGMENTS is too small (must be 32 or greater)
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment