summaryrefslogtreecommitdiff
path: root/fs/lockd
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-03-24 22:44:51 +0300
committerRichard Weinberger <richard@nod.at>2019-05-07 22:36:39 +0300
commitf4844b35d68ab49c41d542c501fffb46ad81009a (patch)
treeba3a0defe190b28fabc143601fe5a79f45b511bc /fs/lockd
parentfb9a5a3edb4c34ac0d7e6996278604e53a43245f (diff)
downloadlinux-f4844b35d68ab49c41d542c501fffb46ad81009a.tar.xz
ubifs: work around high stack usage with clang
Building this file with clang can result in large stack usage as seen from this warning: fs/ubifs/auth.c:78:5: error: stack frame size of 1152 bytes in function 'ubifs_prepare_auth_node' The problem is that inlining ubifs_hash_calc_hmac() leads to two SHASH_DESC_ON_STACK() blocks in the same function, and clang for some reason does not reuse the stack space as it should. Putting the first declaration into a separate basic block avoids this problem and reduces the stack allocation to 640 bytes. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/lockd')
0 files changed, 0 insertions, 0 deletions