Re: [PATCH] libata: make static arrays const, reduces object code size

2017-09-18 Thread Tejun Heo
On Mon, Sep 18, 2017 at 02:31:40PM +0100, Colin King wrote: > From: Colin Ian King > > Don't populate const arrayis on the stack, instead make them static. > Makes the object code smaller by over 260 bytes: > > Signed-off-by: Colin Ian King ... > diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocf

[PATCH] libata: make static arrays const, reduces object code size

2017-09-18 Thread Colin King
From: Colin Ian King Don't populate const arrayis on the stack, instead make them static. Makes the object code smaller by over 260 bytes: Signed-off-by: Colin Ian King --- drivers/ata/libata-scsi.c | 10 +- fs/ocfs2/dlm/dlmrecovery.c | 1 - 2 files changed, 5 insertions(+), 6 deleti