Message ID | 20190906164522.5644-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 5ece56a2a6b24f635bd46931467bd70acd8bcce9 |
Headers | show |
Series | scsi: ips: make array 'options' static const, makes object smaller | expand |
Colin, > Don't populate the array 'options' on the stack but instead make it > static const. Makes the object code smaller by 143 bytes. Applied to 5.5/scsi-queue, thanks!
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index e8bc8d328bab..f25672982c5f 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c @@ -498,7 +498,7 @@ ips_setup(char *ips_str) int i; char *key; char *value; - IPS_OPTION options[] = { + static const IPS_OPTION options[] = { {"noi2o", &ips_force_i2o, 0}, {"nommap", &ips_force_memio, 0}, {"ioctlsize", &ips_ioctlsize, IPS_IOCTL_SIZE},