libata: zpodd: make arrays cdb static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Wed, 6 Sep 2017 08:56:29 +0000 (09:56 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 6 Sep 2017 14:40:28 +0000 (07:40 -0700)
commit795ef788145ed2fa023efdf11e8d5d7bedc21462
tree269cf02835365f1ceb1ee5b0abc777172f55ceb1
parentf723fa4e69920f6a5dd5fa0d10ce90e2f14d189c
libata: zpodd: make arrays cdb static, reduces object code size

Don't populate the arrays cdb on the stack, instead make them static.
Makes the object code smaller by 230 bytes:

Before:
   text    data     bss     dec     hex filename
   3797     240       0    4037     fc5 drivers/ata/libata-zpodd.o

After:
   text    data     bss     dec     hex filename
   3407     400       0    3807     edf drivers/ata/libata-zpodd.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-zpodd.c