summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-09-06 20:01:04 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2019-10-01 05:47:21 +0300
commit7e52440c81aa2cf200102072e337ab6b11c331ef (patch)
tree6819d49fbfeaa704e6593bd7e06a2b56b26b3ccc /lib
parent5ece56a2a6b24f635bd46931467bd70acd8bcce9 (diff)
downloadlinux-7e52440c81aa2cf200102072e337ab6b11c331ef.tar.xz
scsi: ufs: make array setup_attrs static const, makes object smaller
Don't populate the array setup_attrs on the stack but instead make it static const. Makes the object code smaller by 180 bytes. Before: text data bss dec hex filename 2140 224 0 2364 93c drivers/scsi/ufs/ufshcd-dwc.o After: text data bss dec hex filename 1863 320 0 2183 887 drivers/scsi/ufs/ufshcd-dwc.o (gcc version 9.2.1, amd64) Link: https://lore.kernel.org/r/20190906170104.10450-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 'lib')
0 files changed, 0 insertions, 0 deletions