]> git.baikalelectronics.ru Git - kernel.git/commit
ata: pata_artop: make arrays static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Sun, 6 Oct 2019 14:29:56 +0000 (15:29 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2019 14:26:31 +0000 (07:26 -0700)
commitd91ff2af24a1f705a0ba0b991416c8370ab35c76
tree042b1ac55279a647cc50822766d07542135203a2
parent9b3a13f203d5425f6b4f4aed0c0d39d34fd618c4
ata: pata_artop: make arrays static const, makes object smaller

Don't populate the const arrays on the stack but instead make them
static. Makes the object code smaller by 292 bytes.

Before:
   text    data     bss     dec     hex filename
   6988    3132     128   10248    2808 drivers/ata/pata_artop.o

After:
   text    data     bss     dec     hex filename
   6536    3292     128    9956    26e4 drivers/ata/pata_artop.o

(gcc version 9.2.1, amd64)

Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/pata_artop.c