aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/vmalloc.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2025-06-10 09:24:04 +0000
committerKent Overstreet <[email protected]>2025-06-12 03:21:30 +0000
commite82b3a63a9a91cc5c585efb3e28f32100f24e3e1 (patch)
treed39c501123601ef9c883b6973ad3c041b3f00a36 /rust/helpers/vmalloc.c
parentbcachefs: Don't pass trans to fsck_err() in gc_accounting_done (diff)
downloadkernel-e82b3a63a9a91cc5c585efb3e28f32100f24e3e1.tar.gz
kernel-e82b3a63a9a91cc5c585efb3e28f32100f24e3e1.zip
bcachefs: ioctl: avoid stack overflow warning
Multiple ioctl handlers individually use a lot of stack space, and clang chooses to inline them into the bch2_fs_ioctl() function, blowing through the warning limit: fs/bcachefs/chardev.c:655:6: error: stack frame size (1032) exceeds limit (1024) in 'bch2_fs_ioctl' [-Werror,-Wframe-larger-than] 655 | long bch2_fs_ioctl(struct bch_fs *c, unsigned cmd, void __user *arg) By marking the largest two of them as noinline_for_stack, no indidual code path ends up using this much, which avoids the warning and reduces the possible total stack usage in the ioctl handler. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions