Skip to content

Commit 946ad1b

Browse files
Paulo Alcantarasmfrench
authored andcommitted
smb: client: reduce stack usage in cifs_demultiplex_thread()
Clang warns about exceeded stack frame size fs/smb/client/connect.c:1109:1: warning: stack frame size (1048) exceeds limit (1024) in 'cifs_demultiplex_thread' [-Wframe-larger-than] It turns out that clean_demultiplex_info() got inlined into cifs_demultiplex_thread(), so mark it as noinline_for_stack to save some stack space. Signed-off-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 69a4e06 commit 946ad1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/smb/client/connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,8 +911,8 @@ cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required)
911911
return 0;
912912
}
913913

914-
915-
static void clean_demultiplex_info(struct TCP_Server_Info *server)
914+
static noinline_for_stack void
915+
clean_demultiplex_info(struct TCP_Server_Info *server)
916916
{
917917
int length;
918918

0 commit comments

Comments
 (0)