mirror of
https://github.com/torvalds/linux
synced 2024-09-21 11:38:48 +00:00
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) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
69a4e06c0e
commit
946ad1b8b1
|
@ -911,8 +911,8 @@ cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static void clean_demultiplex_info(struct TCP_Server_Info *server)
|
||||
static noinline_for_stack void
|
||||
clean_demultiplex_info(struct TCP_Server_Info *server)
|
||||
{
|
||||
int length;
|
||||
|
||||
|
|
Loading…
Reference in a new issue