smb: client: reduce stack usage in cifs_demultiplex_thread()
authorPaulo Alcantara <pc@manguebit.com>
Thu, 17 Aug 2023 15:34:11 +0000 (12:34 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 20 Aug 2023 21:05:50 +0000 (16:05 -0500)
commit946ad1b8b18dd91804e2dbfd9a9cefb6a8196bc0
treeb2292f07ae41a72fb6cb7622285e509cc0791487
parent69a4e06c0e7bceeba95104180110841d232e94e4
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>
fs/smb/client/connect.c