]> git.baikalelectronics.ru Git - kernel.git/commit
block/DAC960.c: make some arrays static const, shrinks object size
authorColin Ian King <colin.king@canonical.com>
Tue, 21 Aug 2018 09:12:48 +0000 (10:12 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Aug 2018 17:00:17 +0000 (11:00 -0600)
commit8772aa02e7fb9a2372861a83c0ffa6eed10dd1d8
treea293b834432fb0a40fe0f064dce3d68408d80fd2
parentfa6723618c2f35d0e80916694c477b2e23078743
block/DAC960.c: make some arrays static const, shrinks object size

Don't populate the arrays ReadCacheStatus, WriteCacheStatus and
SenseErrors on the stack but instead make them static const. Makes
the object code smaller by 47 bytes:

Before:
   text    data     bss     dec     hex filename
 160974   34628     832  196434   2ff52 drivers/block/DAC960.o

After:
   text    data     bss     dec     hex filename
 160671   34884     832  196387   2ff23 drivers/block/DAC960.o

(gcc version 8.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/DAC960.c