diff options
| author | Colin Ian King <[email protected]> | 2017-11-28 18:12:34 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-12-04 20:32:55 -0500 |
| commit | d828e5c6d7a0bdca824481189bb7a911a6bf2d31 (patch) | |
| tree | ef4a99e5ddf9fe53013b3ee42786ac4b99f722c6 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 13f6b610fe0aa6c37cf6da73f1515457f3a212b7 (diff) | |
scsi: wd719x: make card_types static const, shrinks object size
Don't populate the read-only array card_types on the stack but instead
make it static and constify it. Makes the object code smaller by over
110 bytes:
Before:
text data bss dec hex filename
25625 5752 0 31377 7a91 drivers/scsi/wd719x.o
After:
text data bss dec hex filename
25447 5816 0 31263 7a1f drivers/scsi/wd719x.o
(gcc version 7.2.0 x86_64)
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions