aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2019-03-24 19:44:51 +0000
committerRichard Weinberger <[email protected]>2019-05-07 19:36:39 +0000
commitf4844b35d68ab49c41d542c501fffb46ad81009a (patch)
treeba3a0defe190b28fabc143601fe5a79f45b511bc /lib/memory-notifier-error-inject.c
parentubifs: remove unused function __ubifs_shash_final (diff)
downloadkernel-f4844b35d68ab49c41d542c501fffb46ad81009a.tar.gz
kernel-f4844b35d68ab49c41d542c501fffb46ad81009a.zip
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 <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions