mirror of
https://github.com/torvalds/linux.git
synced 2025-11-07 20:19:47 +02:00
Fix the problem of KASAN causing the stack frame size to increase
drivers/infiniband/hw/ocrdma/ocrdma_stats.c:686:16: error: stack frame size (20664) exceeds limit (8192) in 'ocrdma_dbgfs_ops_read' [-Werror,-Wframe-larger-than]
static ssize_t ocrdma_dbgfs_ops_read(struct file *filp, char __user *buffer,
^
Some functions called by ocrdma_dbgfs_ops_read occupy a lot of stack space.
Mark these functions as noinline_for_stack to prevent them from accumulating
in ocrdma_dbgfs_ops_read.
Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Link: https://lore.kernel.org/r/20240710091657.26291-1-flyingpeng@tencent.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| ocrdma.h | ||
| ocrdma_ah.c | ||
| ocrdma_ah.h | ||
| ocrdma_hw.c | ||
| ocrdma_hw.h | ||
| ocrdma_main.c | ||
| ocrdma_sli.h | ||
| ocrdma_stats.c | ||
| ocrdma_stats.h | ||
| ocrdma_verbs.c | ||
| ocrdma_verbs.h | ||