aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2023-05-30 20:21:43 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2023-06-02 21:18:41 +0200
commitf949dd5c906fc36d74d86d39fb9c4d514eea57d6 (patch)
treef345c7c9b1e1a8b671c17419feedeacd261a0581 /config
parentd4d94a1ff37fec554af1d08569e189ea1eede6af (diff)
downloadupstream-f949dd5c906fc36d74d86d39fb9c4d514eea57d6.tar.gz
upstream-f949dd5c906fc36d74d86d39fb9c4d514eea57d6.tar.bz2
upstream-f949dd5c906fc36d74d86d39fb9c4d514eea57d6.zip
kernel: Set CONFIG_FRAME_WARN depending on target
This set the CONFIG_FRAME_WARN option depending on some target settings. It will use the default from the upstream kernel and not the hard coded value of 1024 now. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 16a20512d852f6ecebf8c57cd7fa2572a06a9d0b)
Diffstat (limited to 'config')
-rw-r--r--config/Config-kernel.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index 3a2189d63a..32524f5aed 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -387,6 +387,17 @@ config KERNEL_DEBUG_INFO_REDUCED
DEBUG_INFO build and compile times are reduced too.
Only works with newer gcc versions.
+config KERNEL_FRAME_WARN
+ int
+ range 0 8192
+ default 1280 if KERNEL_KASAN && !ARCH_64BIT
+ default 1024 if !ARCH_64BIT
+ default 2048 if ARCH_64BIT
+ help
+ Tell the compiler to warn at build time for stack frames larger than this.
+ Setting this too low will cause a lot of warnings.
+ Setting it to 0 disables the warning.
+
# KERNEL_DEBUG_LL symbols must have the default value set as otherwise
# KConfig wont evaluate them unless KERNEL_EARLY_PRINTK is selected
# which means that buildroot wont override the DEBUG_LL symbols in target