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)
commit3ece60e3e78e6066b4ea02dea6687e5d373c6a77
treefb924d06bec2eab707bf95b1761a6c84b8331591
parent9934430e2178d5164eb1ac91a9b092f9e7e64745
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