]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 09:18:43 +0000 (11:18 +0200)
commit7f4a2ad30499697d3d16331bcc40a7dca4de6e7d
treef387f50fd24151684cccd527acc63fbe0a13b4f6
parent4c223b42c6e528292183aa9322a5356b401ffd2a
libata: zpodd: make arrays cdb static, reduces object code size

commit 795ef788145ed2fa023efdf11e8d5d7bedc21462 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ata/libata-zpodd.c