diff options
author | Paulo Alcantara <pc@manguebit.com> | 2023-08-17 12:34:10 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-08-20 16:05:50 -0500 |
commit | 69a4e06c0e7bceeba95104180110841d232e94e4 (patch) | |
tree | 5d2cb8dd17271b36303b707d52a45aebc6320eb0 /Documentation/filesystems/caching/backend-api.rst | |
parent | a18280e7fdea1f2f0736c45f9fee27eccd3998ae (diff) |
smb: client: reduce stack usage in cifs_try_adding_channels()
Clang warns about exceeded stack frame size
fs/smb/client/sess.c:160:5: warning: stack frame size (1368) exceeds
limit (1024) in 'cifs_try_adding_channels' [-Wframe-larger-than]
It turns out that cifs_ses_add_channel() got inlined into
cifs_try_adding_channels() which had a stack-allocated variable @ctx
of 624 bytes in size. Fix this by making it heap-allocated.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202307270640.5ODmPwDl-lkp@intel.com/
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'Documentation/filesystems/caching/backend-api.rst')
0 files changed, 0 insertions, 0 deletions