]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: make const array static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Tue, 20 Oct 2020 14:19:36 +0000 (15:19 +0100)
committerSteve French <stfrench@microsoft.com>
Tue, 20 Oct 2020 16:52:44 +0000 (11:52 -0500)
commitedc05443c86760e04942c00ce45b825432fcc48c
treefb924d06bec2eab707bf95b1761a6c84b8331591
parenta1487a1367772ec62cccbbd44448a92d37f15246
cifs: make const array static, makes object smaller

Don't populate const array smb3_create_tag_posix on the stack but
instead make it static. Makes the object code smaller by 50 bytes.

Before:
   text    data     bss     dec     hex filename
 150184   47167       0  197351   302e7 fs/cifs/smb2pdu.o

After:
    text    data     bss     dec     hex filename
 150070   47231       0  197301   302b5 fs/cifs/smb2pdu.o

(gcc version 10.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c