diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-09-06 17:45:22 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-09-30 22:46:40 -0400 |
commit | 5ece56a2a6b24f635bd46931467bd70acd8bcce9 (patch) | |
tree | 867a3aa0e90b81f64e623dbf429f38e6e1689913 /drivers/scsi/ips.c | |
parent | b23c640c33b8ab10060b8d243d1aa817e5eb00dc (diff) | |
download | linux-5ece56a2a6b24f635bd46931467bd70acd8bcce9.tar.gz linux-5ece56a2a6b24f635bd46931467bd70acd8bcce9.tar.bz2 linux-5ece56a2a6b24f635bd46931467bd70acd8bcce9.zip |
scsi: ips: make array 'options' static const, makes object smaller
Don't populate the array 'options' on the stack but instead make it static
const. Makes the object code smaller by 143 bytes.
Before:
text data bss dec hex filename
94483 11272 1184 106939 1a1bb drivers/scsi/ips.o
After:
text data bss dec hex filename
94244 11368 1184 106796 1a12c drivers/scsi/ips.o
(gcc version 9.2.1, amd64)
Link: https://lore.kernel.org/r/20190906164522.5644-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ips.c')
-rw-r--r-- | drivers/scsi/ips.c | 2 |
1 files changed, 1 insertions, 1 deletions
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}, |